public class ExceptionActions
extends java.lang.Object
Modifier | Constructor and Description |
---|---|
protected |
ExceptionActions(EngineClient client) |
Modifier and Type | Method and Description |
---|---|
protected java.util.Set<WorkItemRecord> |
getSuspendableWorkItems(java.lang.String scope,
java.lang.String id)
Retrieves a list of 'suspendable' workitems (ie.
|
protected java.util.Set<WorkItemRecord> |
getSuspendableWorkItems(YSpecificationID id) |
protected java.util.Set<WorkItemRecord> |
getSuspendableWorkItemsInChain(java.util.Map<java.lang.String,WorkletRunner> runners,
java.lang.String caseID)
Returns all suspendable workitems in the hierarchy of ancestor cases
|
protected boolean |
suspendAllCases(ExletRunner hr)
Suspends all live workitems in all live cases for the specification passed
|
protected boolean |
suspendAncestorCases(ExletRunner runner,
java.util.Set<WorkItemRecord> items)
Suspends all running worklet cases in the hierarchy of handlers
|
protected boolean |
suspendAncestorCases(java.util.Map<java.lang.String,WorkletRunner> runners,
ExletRunner runner)
Suspends all running worklet cases in the hierarchy of handlers
|
protected boolean |
suspendCase(ExletRunner hr)
Suspends all live workitems in the specified case
|
protected java.util.Set<WorkItemRecord> |
suspendCase(java.lang.String caseID)
Suspends all live workitems in the specified case
|
boolean |
suspendWorkItem(WorkItemRecord wir) |
protected boolean |
suspendWorkItemList(java.util.Set<WorkItemRecord> items)
Suspends each workitem in the list of items passed
|
protected void |
unsuspendList(ExletRunner runner)
unsuspends all previously suspended workitems in this case and/or spec
|
protected WorkItemRecord |
unsuspendWorkItem(WorkItemRecord wir)
Moves a workitem from suspended to its previous status
|
protected ExceptionActions(EngineClient client)
protected boolean suspendWorkItemList(java.util.Set<WorkItemRecord> items)
items
- - items a list of workitems to suspendprotected boolean suspendAncestorCases(ExletRunner runner, java.util.Set<WorkItemRecord> items)
runner
- - the runner for the child worklet caseprotected java.util.Set<WorkItemRecord> getSuspendableWorkItems(YSpecificationID id)
protected boolean suspendAllCases(ExletRunner hr)
hr
- the HandlerRunner instance with the workitem to suspendprotected boolean suspendCase(ExletRunner hr)
hr
- the HandlerRunner instance with the workitem to suspendprotected java.util.Set<WorkItemRecord> suspendCase(java.lang.String caseID)
caseID
- - the id of the case to suspendpublic boolean suspendWorkItem(WorkItemRecord wir)
protected java.util.Set<WorkItemRecord> getSuspendableWorkItems(java.lang.String scope, java.lang.String id)
scope
- - either case (all items in a case) or spec (all items in all case
instances of that specification) or task (all workitem instances
of that task)id
- - the id of the case/spec/taskprotected java.util.Set<WorkItemRecord> getSuspendableWorkItemsInChain(java.util.Map<java.lang.String,WorkletRunner> runners, java.lang.String caseID)
caseID
- protected boolean suspendAncestorCases(java.util.Map<java.lang.String,WorkletRunner> runners, ExletRunner runner)
runner
- - the runner for the child worklet caseprotected WorkItemRecord unsuspendWorkItem(WorkItemRecord wir)
wir
- - the workitem to unsuspendprotected void unsuspendList(ExletRunner runner)
Copyright © 2004-2014 The YAWL Foundation.