|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Interface used to perform some administrative operations that concern execution engine objects.
The first method to be called by client application is the first method of this interface - connect(), and only if user authentication is OK, other methods can be used (otherwise, every method throws NotConnected exception).
Method Summary | |
WMActivityInstanceIterator |
checkDeadlinesForActivities(WMSessionHandle session,
WMActivityInstance[] acts)
When this operation is called, shark checks for deadlines of activities specified by given parameters, and takes appropriate action if deadlines are exceeded. |
WMActivityInstanceIterator |
checkDeadlinesForProcesses(WMSessionHandle shandle,
java.lang.String[] procIds)
When this operation is called, shark checks for deadlines of all active activities for the process instances with a given Ids, and takes appropriate action if deadlines are exceeded. |
WMActivityInstanceIterator |
checkDeadlinesWithFiltering(WMSessionHandle shandle,
WMFilter procOrActFilter)
When this operation is called, shark checks for deadlines of all active activities based on provided filter, and takes appropriate action if deadlines are exceeded. |
WMActivityInstanceIterator |
checkLimitsForActivities(WMSessionHandle sessionHandle,
WMActivityInstance[] acts)
When this operation is called, shark checks for limit of the activity specified by given parameters, and takes appropriate action if limit is exceeded. |
WMProcessInstanceIterator |
checkLimitsForProcesses(WMSessionHandle sessionHandle,
java.lang.String[] procIds,
boolean checkActivities)
When this operation is called, shark checks for limits of the process specified by given parameter, and if checkActivities parameter is 'true' it also checks for the limits of all of the active activities for these processes, and takes appropriate action if limits are exceeded. |
WMActivityInstanceIterator |
checkLimitsWithActivityFiltering(WMSessionHandle sessionHandle,
WMFilter actFilter)
When this operation is called, shark checks for limits of all active activities and all active processes, and takes appropriate action if limits are exceeded. |
WMProcessInstanceIterator |
checkLimitsWithProcessFiltering(WMSessionHandle sessionHandle,
WMFilter procFilter,
boolean checkActivities)
When this operation is called, shark checks for limits of all active processes, and if checkActivities parameter is 'true' it also checks for the limits of all of the activite activities for these processes, and takes appropriate action if limits are exceeded. |
void |
clearProcessCache(WMSessionHandle shandle)
Clears process cache. |
void |
clearResourceCache(WMSessionHandle shandle)
Clears resource cache. |
WMProcessInstanceIterator |
deleteProcesses(WMSessionHandle shandle,
java.lang.String[] procIds)
Deletes closed process instances from instance persistence repository. |
WMProcessInstanceIterator |
deleteProcessesWithFiltering(WMSessionHandle shandle,
WMFilter procFilter)
Deletes closed process instances from instance persistence repository. |
java.lang.String[] |
getDeadlineRichedProcessIds(WMSessionHandle shandle)
Gets the process Ids of the processes where there is at least one activity which reached the deadline. |
void |
injectException(WMSessionHandle shandle,
java.lang.String procId,
java.lang.String actId,
java.lang.Exception ex)
Provides a way to inject exception to specified activity so process definition can continue with 'Exception' transition if any. |
WMActivityInstanceIterator |
reevaluateAssignmentsForActivities(WMSessionHandle shandle,
WMActivityInstance[] acts,
boolean returnChangedOnly)
Reevaluates assignments for the active, non-accepted activities provided as a parameter. |
WMActivityInstanceIterator |
reevaluateAssignmentsForProcesses(WMSessionHandle shandle,
java.lang.String[] procIds,
boolean returnChangedOnly)
Reevaluates assignments for all the active, non-accepted activities within the given process instances. |
WMActivityInstanceIterator |
reevaluateAssignmentsWithFiltering(WMSessionHandle shandle,
WMFilter procOrActFilter,
boolean returnChangedOnly)
Reevaluates assignments for the active, non-accepted activities. |
void |
setProcessCacheSize(WMSessionHandle shandle,
int size)
Changes the size of process cache. |
void |
setResourceCacheSize(WMSessionHandle shandle,
int size)
Changes the size of resource cache. |
void |
startActivity(WMSessionHandle shandle,
java.lang.String procId,
java.lang.String blockActId,
WMEntity actDef)
Provides a way to jump-into the process instance, and manually start activity specified by XPDL definition. |
Method Detail |
public void startActivity(WMSessionHandle shandle, java.lang.String procId, java.lang.String blockActId, WMEntity actDef) throws java.lang.Exception
procId
- Id of process instance.blockActId
- instance Id of block activityactDef
- XPDL activity definition for the activity we want to manually start.
java.lang.Exception
- If something unexpected happens.public WMActivityInstanceIterator reevaluateAssignmentsWithFiltering(WMSessionHandle shandle, WMFilter procOrActFilter, boolean returnChangedOnly) throws java.lang.Exception
java.lang.Exception
public WMActivityInstanceIterator reevaluateAssignmentsForProcesses(WMSessionHandle shandle, java.lang.String[] procIds, boolean returnChangedOnly) throws java.lang.Exception
java.lang.Exception
public WMActivityInstanceIterator reevaluateAssignmentsForActivities(WMSessionHandle shandle, WMActivityInstance[] acts, boolean returnChangedOnly) throws java.lang.Exception
java.lang.Exception
public WMProcessInstanceIterator deleteProcessesWithFiltering(WMSessionHandle shandle, WMFilter procFilter) throws java.lang.Exception
java.lang.Exception
public WMProcessInstanceIterator deleteProcesses(WMSessionHandle shandle, java.lang.String[] procIds) throws java.lang.Exception
java.lang.Exception
public void injectException(WMSessionHandle shandle, java.lang.String procId, java.lang.String actId, java.lang.Exception ex) throws java.lang.Exception
java.lang.Exception
public void setProcessCacheSize(WMSessionHandle shandle, int size) throws java.lang.Exception
java.lang.Exception
public void clearProcessCache(WMSessionHandle shandle) throws java.lang.Exception
java.lang.Exception
public void setResourceCacheSize(WMSessionHandle shandle, int size) throws java.lang.Exception
java.lang.Exception
public void clearResourceCache(WMSessionHandle shandle) throws java.lang.Exception
java.lang.Exception
public java.lang.String[] getDeadlineRichedProcessIds(WMSessionHandle shandle) throws java.lang.Exception
java.lang.Exception
public WMActivityInstanceIterator checkDeadlinesWithFiltering(WMSessionHandle shandle, WMFilter procOrActFilter) throws java.lang.Exception
java.lang.Exception
public WMActivityInstanceIterator checkDeadlinesForProcesses(WMSessionHandle shandle, java.lang.String[] procIds) throws java.lang.Exception
java.lang.Exception
public WMActivityInstanceIterator checkDeadlinesForActivities(WMSessionHandle session, WMActivityInstance[] acts) throws java.lang.Exception
java.lang.Exception
public WMProcessInstanceIterator checkLimitsWithProcessFiltering(WMSessionHandle sessionHandle, WMFilter procFilter, boolean checkActivities) throws java.lang.Exception
java.lang.Exception
public WMProcessInstanceIterator checkLimitsForProcesses(WMSessionHandle sessionHandle, java.lang.String[] procIds, boolean checkActivities) throws java.lang.Exception
java.lang.Exception
public WMActivityInstanceIterator checkLimitsWithActivityFiltering(WMSessionHandle sessionHandle, WMFilter actFilter) throws java.lang.Exception
java.lang.Exception
public WMActivityInstanceIterator checkLimitsForActivities(WMSessionHandle sessionHandle, WMActivityInstance[] acts) throws java.lang.Exception
java.lang.Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |