|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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(WfSynchRobot robot)
Creates and adds a new event listener for the event key passed as argument. |
void |
changeAssignmentEvent(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 |
changeDataEvent(WfExecutionObject obj,
ProcessData old_data,
Role role,
String instructions)
Method called in order to emit a change of data event in an activity. |
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,
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(TeamReference teamRef)
Method called by lifecycle to cause the WfProcess to add it's roles to the Team. |
void |
doRobotWork(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 |
emitCustomEvent(String event_type,
Object target,
Hashtable value_map)
Creates and emits a custom event. |
void |
emitPastDeadlineEvent(WfExecutionObject object)
Emits event that a deadline has come and gone for the execution object passed as argument. |
void |
executionErrorEvent(WfExecutionObject obj,
Exception exception)
Used to notify the service that an exception occurred. |
Enumeration |
getAssociatedProcesses(TeamReference team,
WfState state)
Deprecated. use method that takes WTContainerRef
as argument. |
QueryResult |
getAssociatedProcesses(TeamReference team,
WfState state,
WTContainerRef context_ref)
Supported API: false |
WfNode |
getPersistentNode(WfNode trans_node)
Returns the persistent node that corresponds to a transient node, constructed for propagation purposes. |
Enumeration |
getPredecessors(WfNode node)
Returns all predecessor nodes to a node passed as argument. |
Enumeration |
getSuccessors(WfNode node)
Instantiates the successors of a given workflow node. |
void |
queueCompleteTransition(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(WfActivity activity,
boolean new_thread)
Queues the restoration of the state of objects associated with activity passed as argument. |
void |
queueStateChange(WfExecutionObject obj,
WfTransition transition,
boolean new_thread,
boolean propagate)
Queues the state change. |
void |
queueStateChange(WTCollection collection,
WfTransition transition,
boolean new_thread,
boolean propagate)
Queues the state change for a collection of execution objects. |
void |
queueSynchCheck(WfSynchRobot robot)
Queues the a synchronization checking request. |
void |
queueTimeEvent(WfExecutionObject obj,
Timestamp time,
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(WfSynchRobot robot)
Removes an event listener for the event key passed as argument that is also associated to the robot. |
WfNode |
resetReachableNodes(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 |
public void changeStateEvent(WfExecutionObject obj, WfState old_state, Vector events) throws WTException
obj
- old_state
- events
-
WTException
public void changeDataEvent(WfExecutionObject obj, ProcessData old_data) throws WTException
obj
- old_data
-
WTException
public Enumeration getSuccessors(WfNode node) throws WTException
node
-
WTException
public Enumeration getPredecessors(WfNode node) throws WTException
node
-
WTException
public void sendEventToSuccessors(ObjectReference node_ref, Object event, boolean is_immediate) throws WTException
node_ref
- event
- is_immediate
-
WTException
public void createProcessEvent(WfProcess obj) throws WTException
obj
-
WTException
public void changeAssignmentEvent(WfAssignedActivity obj, WTPrincipal new_assignee, WTPrincipal old_assignee, Role role) throws WTException
obj
- new_assignee
- old_assignee
- role
-
WTException
public void executionErrorEvent(WfExecutionObject obj, Exception exception)
obj
- exception
- public void changeResultEvent(WfExecutionObject obj, ProcessData old_data) throws WTException
obj
- old_data
-
WTException
public void doRobotWork(WfRobotActivity robot) throws WTException
robot
-
WTException
public WfNode resetReachableNodes(WfNode start_node) throws WTException
start_node
-
WTException
public void queueStateChange(WfExecutionObject obj, WfTransition transition, boolean new_thread, boolean propagate) throws WTException
obj
- transition
- new_thread
- propagate
-
WTException
public void queueStateChange(WTCollection collection, WfTransition transition, boolean new_thread, boolean propagate) throws WTException
collection
- transition
- new_thread
- propagate
-
WTException
public void queueTimeEvent(WfExecutionObject obj, Timestamp time, WfTransition transition) throws WTException
obj
- time
- transition
-
WTException
public void queueDeadlineCheck(WfExecutionObject obj) throws WTException
obj
-
WTException
public void queueTimeToDeadlineCheck(WfExecutionObject obj) throws WTException
obj
-
WTException
public void queueTimePastDeadlineCheck(WfExecutionObject obj) throws WTException
obj
-
WTException
public void queueCompleteTransition(WfActivity activity, Vector events) throws WTException
activity
- events
-
WTException
public void queueRestoreState(WfActivity activity, boolean new_thread) throws WTException
activity
- new_thread
-
WTException
public void queueSynchCheck(WfSynchRobot robot) throws WTException
robot
-
WTException
public WfNode getPersistentNode(WfNode trans_node) throws WTException
trans_node
-
WTException
public void addEventListener(WfSynchRobot robot)
robot
- public void removeEventListener(WfSynchRobot robot)
robot
- public ProcessingQueue createUserWorkQueue(WfProcess process) throws WTException
process
-
WTException
public ProcessingQueue createPropagationQueue(WfProcess process) throws WTException
process
-
WTException
public WfProcess setPrimaryBusinessObject(WfProcess process, WTObject object) throws WTException
process
- object
-
WTException
public WfProcess setPrimaryBusinessObject(WfProcess process, WTObject object, boolean persist) throws WTException
process
- object
- persist
-
WTException
public void emitPastDeadlineEvent(WfExecutionObject object) throws WTException
object
-
WTException
public void deleteDedicatedQueues(WfProcess process) throws WTException
process
-
WTException
public void emitCustomEvent(String event_type, Hashtable value_map) throws WTException
event_type
- value_map
-
WTException
public void emitCustomEvent(String event_type, Object target, Hashtable value_map) throws WTException
event_type
- target
- value_map
-
WTException
public void doReteamProcess(TeamReference teamRef) throws WTException
teamRef
-
WTException
public Enumeration getAssociatedProcesses(TeamReference team, WfState state) throws WTException
WTContainerRef
as argument.
team
- state
-
WTException
public QueryResult getAssociatedProcesses(TeamReference team, WfState state, WTContainerRef context_ref) throws WTException
team
- state
- context_ref
-
WTException
public void changeDataEvent(WfExecutionObject obj, ProcessData old_data, Role role, String instructions) throws WTException
obj
- old_data
- role
- instructions
-
WTException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |