|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.bea.b2b.wlpi.WorkflowInstance
The WorkflowInstance class represents a running workflow instance.
Method Summary | |
static WorkflowInstance |
getInstanceForId(java.lang.String id)
Gets the workflow instance object for the specified instance ID. |
java.lang.String |
getInstanceId()
Gets the instance ID of this workflow instance, or null if the workflow instance is not running. |
MessageToken |
getMsgToken()
Gets the message token created when the last message was sent. |
boolean |
getTerminateStatus()
Gets the terminate status (true or false). |
java.lang.Object |
getVariable(java.lang.String name)
Gets the value of the specified instance variable for this workflow instance. |
boolean |
isCompleted()
Determines whether this workflow instance is completed (true) or not (false). |
void |
setTerminateStatus(boolean status)
Sets the termination status (true or false). |
void |
setVariable(java.lang.String name,
java.lang.Object value)
Sets an instance variable for this workflow instance. |
void |
start()
Starts the workflow instance. |
void |
waitForCompletion()
Waits for this workflow instance to complete. |
Methods inherited from class java.lang.Object |
equals,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Method Detail |
public void start() 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 MessageToken getMsgToken()
public static WorkflowInstance getInstanceForId(java.lang.String id)
id
- WLPI instance ID of the workflow.public void waitForCompletion() throws WLPIException
public boolean isCompleted()
public void setTerminateStatus(boolean status)
status
- true to change the termination status to true,
or false to set it to false.public boolean getTerminateStatus()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |