|
WebLogic Integration | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.bea.b2b.wlpi.WorkflowInstance
An instance of the WorkflowInstance class represents a WebLogic Process Integrator workflow and can be used to send message to it or start it.
Field Summary | |
static com.bea.eci.logging.LogOutputStream |
log
|
static java.lang.String |
PARTYDC_KEY
|
static java.lang.String |
PARTYNAME_KEY
|
static java.lang.String |
PARTYROLE_KEY
|
Constructor Summary | |
WorkflowInstance(java.lang.String bpName,
int bpMajor,
int bpMinor,
java.lang.String role,
java.util.Hashtable[] partiesProps)
Keep this signature for backward compatibility Public WorkflowInstance constructor |
|
WorkflowInstance(java.lang.String bpName,
java.lang.String bpMajor,
java.lang.String bpMinor,
java.lang.String role,
java.util.Hashtable[] partiesProps)
Public WorkflowInstance constructor |
Method Summary | |
static WorkflowInstance |
getInstanceForId(java.lang.String id)
Create a WorkflowInstance object for the specific Id |
java.lang.String |
getInstanceId()
Getter for the WLPI Workflow instance id associated with this WorkflowInstance object |
MessageToken |
getMsgToken()
Getter for the token of the last message sent |
java.lang.String |
getOrgName()
Getter for the WLPI organization name |
java.lang.String |
getTemplateName()
Getter for the WLPI template name |
boolean |
getTerminateStatus()
Getter for the workflow termination status |
java.lang.String |
getTpName()
Getter for the Trading Partner name associated with this workflow instance |
java.lang.Object |
getVariable(java.lang.String name)
Gets the value of the specified instance variable for this workflow instance. |
boolean |
isCompleted()
Indicates if the workflow instance is completed its execution |
void |
postMessage(Message msg)
Send a business message to the WLPI workflow instance associated with this WorkflowInstance object. |
void |
postStartWFMessage(Message msg)
|
void |
setVariable(java.lang.String name,
java.lang.Object value)
Sets an instance variable for this workflow instance. |
void |
start()
Instantiate a workflow for the WLPI template name retrieved from the CPAid identified by the CPA and parties properties passed to the constructor. |
void |
waitForCompletion()
Waits for this workflow instance to complete. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Field Detail |
public static com.bea.eci.logging.LogOutputStream log
public static final java.lang.String PARTYNAME_KEY
public static final java.lang.String PARTYROLE_KEY
public static final java.lang.String PARTYDC_KEY
Constructor Detail |
public WorkflowInstance(java.lang.String bpName, int bpMajor, int bpMinor, java.lang.String role, java.util.Hashtable[] partiesProps) throws WLPIException
bpName
- Business Process NamebpMajor
- Business Process Major VersionbpMinor
- Business Process Minor Versionrole
- Role in business processpartiesProps
- Array of hashtable each containing
a party name and additional party propertiespublic WorkflowInstance(java.lang.String bpName, java.lang.String bpMajor, java.lang.String bpMinor, java.lang.String role, java.util.Hashtable[] partiesProps) throws WLPIException
bpName
- Business Process NamebpMajor
- Business Process Major VersionbpMinor
- Business Process Minor Versionrole
- Role in business processpartiesProps
- Array of hashtable each containing
a party name and additional party propertiesMethod Detail |
public java.lang.String getTpName()
public java.lang.String getOrgName()
public java.lang.String getTemplateName()
public MessageToken getMsgToken()
public boolean getTerminateStatus()
public boolean isCompleted()
public void waitForCompletion() throws WLPIException
public java.lang.String getInstanceId()
public void setVariable(java.lang.String name, java.lang.Object value) throws WLPIException
name
- Variable name.value
- Variable value.public java.lang.Object getVariable(java.lang.String name) throws WLPIException
name
- Variable name.public static WorkflowInstance getInstanceForId(java.lang.String id) throws WLPIException
id
- WLPI instance ID of the workflow.public void postMessage(Message msg) throws WLPIException
msg
- Business messagepublic void postStartWFMessage(Message msg) throws WLPIException
public void start() throws WLPIException
|
WebLogic Integration | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |