|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface WfEngineServiceSvr
The WfEngineServiceSvr interface contains the server accessible
API. Most of this API is devoted to capturing and emitting events; the
rest is concerned with event propagation.
Supported API: true
Extendable: false
| Method Summary | |
|---|---|
void |
addEventListener(wt.workflow.robots.WfSynchRobot robot)
Creates and adds a new event listener for the event key passed as argument. |
void |
changeAssignmentEvent(wt.workflow.work.WfAssignedActivity obj,
WTPrincipal new_assignee,
WTPrincipal old_assignee,
Role role)
Used to notify the service that an activity assignment changed. |
void |
changeDataEvent(WfExecutionObject obj,
ProcessData old_data)
Method called in order to emit a change of data event. |
void |
changeResultEvent(WfExecutionObject obj,
ProcessData old_data)
This method is used to communicate that the result of an execution process (mostly activity) was set. |
void |
changeStateEvent(WfExecutionObject obj,
wt.workflow.engine.WfState old_state,
Vector events)
Method called in order to emit a change of state event. |
void |
createProcessEvent(WfProcess obj)
Used to notify the service that a process was created. |
ProcessingQueue |
createPropagationQueue(WfProcess process)
Creates a queue to hold internal work (propagation, state changes) associated with the process passed as argument. |
ProcessingQueue |
createUserWorkQueue(WfProcess process)
Creates a queue to hold user work (robot work) associated with the process passed as argument. |
void |
deleteDedicatedQueues(WfProcess process)
Deletes dedicated queues associated with the process passed as argument if there are no other process using the queues. |
void |
doReteamProcess(wt.team.TeamReference teamRef)
Method called by lifecycle to cause the WfProcess to add it's roles to the Team. |
void |
doRobotWork(wt.workflow.robots.WfRobotActivity robot)
Method called by robot activities to do the work associated with a robot activity. |
void |
emitCustomEvent(String event_type,
Hashtable value_map)
Creates and emits a custom event. |
void |
emitCustomObjectEvent(String event_type,
Object target,
Hashtable value_map)
Creates and emits a custom event. |
void |
executionErrorEvent(WfExecutionObject obj,
Exception exception)
Used to notify the service that an exception occurred. |
Enumeration |
getAssociatedProcesses(wt.team.TeamReference team,
wt.workflow.engine.WfState state)
Deprecated. use method that takes WTContainerRef
as argument. |
wt.workflow.engine.WfNode |
getPersistentNode(wt.workflow.engine.WfNode trans_node)
Returns the persistent node that corresponds to a transient node, constructed for propagation purposes. |
Enumeration |
getPredecessors(wt.workflow.engine.WfNode node)
Returns all predecessor nodes to a node passed as argument. |
Enumeration |
getSuccessors(wt.workflow.engine.WfNode node)
Instantiates the successors of a given workflow node. |
void |
queueCompleteTransition(wt.workflow.engine.WfActivity activity,
Vector events)
Queues a request to complete an activity with a set of user defined events. |
void |
queueDeadlineCheck(WfExecutionObject obj)
Queues the checking the execution object's deadline. |
void |
queueRestoreState(wt.workflow.engine.WfActivity activity,
boolean new_thread)
Queues the restoration of the state of objects associated with activity passed as argument. |
void |
queueStateChange(WfExecutionObject obj,
wt.workflow.engine.WfTransition transition,
boolean new_thread,
boolean propagate)
Queues the state change. |
void |
queueSynchCheck(wt.workflow.robots.WfSynchRobot robot)
Queues the a synchronization checking request. |
void |
queueTimeEvent(WfExecutionObject obj,
Timestamp time,
wt.workflow.engine.WfTransition transition)
Queues a request to effect a state change at a given time to a a given execution object. |
void |
queueTimePastDeadlineCheck(WfExecutionObject obj)
Queues the checking the execution object's time past deadline. |
void |
queueTimeToDeadlineCheck(WfExecutionObject obj)
Queues the checking the execution object's time to deadline. |
void |
removeEventListener(wt.workflow.robots.WfSynchRobot robot)
Removes an event listener for the event key passed as argument that is also associated to the robot. |
wt.workflow.engine.WfNode |
resetReachableNodes(wt.workflow.engine.WfNode start_node)
Resets all nodes that can be reached from node passed as argument. |
void |
sendEventToSuccessors(ObjectReference node_ref,
Object event,
boolean is_immediate)
Propagate event to successors of the given node. |
WfProcess |
setPrimaryBusinessObject(WfProcess process,
WTObject object)
Sets the primary business object to the object passed as argument. |
WfProcess |
setPrimaryBusinessObject(WfProcess process,
WTObject object,
boolean persist)
Sets the primary business object to the object passed as an argument. |
| Method Detail |
|---|
void changeStateEvent(WfExecutionObject obj,
wt.workflow.engine.WfState old_state,
Vector events)
throws WTException
obj - old_state - events -
WTException
void changeDataEvent(WfExecutionObject obj,
ProcessData old_data)
throws WTException
obj - old_data -
WTException
Enumeration getSuccessors(wt.workflow.engine.WfNode node)
throws WTException
node -
WTException
Enumeration getPredecessors(wt.workflow.engine.WfNode node)
throws WTException
node -
WTException
void sendEventToSuccessors(ObjectReference node_ref,
Object event,
boolean is_immediate)
throws WTException
node_ref - event - is_immediate -
WTException
void createProcessEvent(WfProcess obj)
throws WTException
obj -
WTException
void changeAssignmentEvent(wt.workflow.work.WfAssignedActivity obj,
WTPrincipal new_assignee,
WTPrincipal old_assignee,
Role role)
throws WTException
obj - new_assignee - old_assignee - role -
WTException
void executionErrorEvent(WfExecutionObject obj,
Exception exception)
obj - exception -
void changeResultEvent(WfExecutionObject obj,
ProcessData old_data)
throws WTException
obj - old_data -
WTException
void doRobotWork(wt.workflow.robots.WfRobotActivity robot)
throws WTException
robot -
WTException
wt.workflow.engine.WfNode resetReachableNodes(wt.workflow.engine.WfNode start_node)
throws WTException
start_node -
WTException
void queueStateChange(WfExecutionObject obj,
wt.workflow.engine.WfTransition transition,
boolean new_thread,
boolean propagate)
throws WTException
obj - transition - new_thread - propagate -
WTException
void queueTimeEvent(WfExecutionObject obj,
Timestamp time,
wt.workflow.engine.WfTransition transition)
throws WTException
obj - time - transition -
WTException
void queueDeadlineCheck(WfExecutionObject obj)
throws WTException
obj -
WTException
void queueTimeToDeadlineCheck(WfExecutionObject obj)
throws WTException
obj -
WTException
void queueTimePastDeadlineCheck(WfExecutionObject obj)
throws WTException
obj -
WTException
void queueCompleteTransition(wt.workflow.engine.WfActivity activity,
Vector events)
throws WTException
activity - events -
WTException
void queueRestoreState(wt.workflow.engine.WfActivity activity,
boolean new_thread)
throws WTException
activity - new_thread -
WTException
void queueSynchCheck(wt.workflow.robots.WfSynchRobot robot)
throws WTException
robot -
WTException
wt.workflow.engine.WfNode getPersistentNode(wt.workflow.engine.WfNode trans_node)
throws WTException
trans_node -
WTExceptionvoid addEventListener(wt.workflow.robots.WfSynchRobot robot)
robot - void removeEventListener(wt.workflow.robots.WfSynchRobot robot)
robot -
ProcessingQueue createUserWorkQueue(WfProcess process)
throws WTException
process -
WTException
ProcessingQueue createPropagationQueue(WfProcess process)
throws WTException
process -
WTException
WfProcess setPrimaryBusinessObject(WfProcess process,
WTObject object)
throws WTException
process - object -
WTException
WfProcess setPrimaryBusinessObject(WfProcess process,
WTObject object,
boolean persist)
throws WTException
process - object - persist -
WTException
void deleteDedicatedQueues(WfProcess process)
throws WTException
process -
WTException
void emitCustomEvent(String event_type,
Hashtable value_map)
throws WTException
event_type - value_map -
WTException
void doReteamProcess(wt.team.TeamReference teamRef)
throws WTException
teamRef -
WTException
Enumeration getAssociatedProcesses(wt.team.TeamReference team,
wt.workflow.engine.WfState state)
throws WTException
WTContainerRef
as argument.
team - state -
WTException
void emitCustomObjectEvent(String event_type,
Object target,
Hashtable value_map)
throws WTException
event_type - target - value_map -
WTException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||