public class TestWorkletListener extends WorkletEventListener
Constructor and Description |
---|
TestWorkletListener() |
Modifier and Type | Method and Description |
---|---|
void |
caseLevelExceptionEvent(java.lang.String caseID,
Element caseData,
RdrNode node,
RuleType ruleType)
Receives notification of a case level exception being raised by the worklet service
|
void |
constraintSuccessEvent(java.lang.String caseID,
WorkItemRecord wir,
Element caseData,
RuleType ruleType)
Receives notification of a case or workitem that has passed pre or post
constraints
|
void |
itemLevelExceptionEvent(WorkItemRecord wir,
Element caseData,
RdrNode node,
RuleType ruleType)
Receives notification of a item level exception being raised by the worklet service
|
void |
selectionEvent(WorkItemRecord wir,
java.util.Map<java.lang.String,java.lang.String> caseMap,
RdrNode node)
Receives notification of a selection (substitution) by the worklet service
|
void |
shutdown()
Receives notification that the worklet service is shutting down
|
destroy, doGet, doPost
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, service
public void shutdown()
WorkletEventListener
shutdown
in class WorkletEventListener
public void caseLevelExceptionEvent(java.lang.String caseID, Element caseData, RdrNode node, RuleType ruleType)
WorkletEventListener
caseLevelExceptionEvent
in class WorkletEventListener
caseID
- the case on which the exception has been raisedcaseData
- the current caseData, used to evaluate the exceptionnode
- the RdrNode that evaluated to trueruleType
- the type of exception raisedpublic void itemLevelExceptionEvent(WorkItemRecord wir, Element caseData, RdrNode node, RuleType ruleType)
WorkletEventListener
itemLevelExceptionEvent
in class WorkletEventListener
wir
- the workitem for which the exception has been raisedcaseData
- the current caseData, used to evaluate the exceptionnode
- the RdrNode that evaluated to trueruleType
- the type of exception raisedpublic void selectionEvent(WorkItemRecord wir, java.util.Map<java.lang.String,java.lang.String> caseMap, RdrNode node)
WorkletEventListener
selectionEvent
in class WorkletEventListener
wir
- the workitem that has been replaced by a workletcaseMap
- a map of [caseID, worklet name] pairs, each one representing a
a worklet case launched for the workitem (one for single-instance
tasks, several for multiple-instance tasks)node
- the RdrNode that evaluated to truepublic void constraintSuccessEvent(java.lang.String caseID, WorkItemRecord wir, Element caseData, RuleType ruleType)
WorkletEventListener
constraintSuccessEvent
in class WorkletEventListener
caseID
- the case that passed constraints.wir
- the workitem that passed constraints. Will be null for case level constraints.caseData
- the current caseData, used for evaluationruleType
- the type of constraint rule passedCopyright © 2004-2014 The YAWL Foundation.