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, doPostdoDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, servicepublic void shutdown()
WorkletEventListenershutdown in class WorkletEventListenerpublic void caseLevelExceptionEvent(java.lang.String caseID,
Element caseData,
RdrNode node,
RuleType ruleType)
WorkletEventListenercaseLevelExceptionEvent in class WorkletEventListenercaseID - 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)
WorkletEventListeneritemLevelExceptionEvent in class WorkletEventListenerwir - 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)
WorkletEventListenerselectionEvent in class WorkletEventListenerwir - 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)
WorkletEventListenerconstraintSuccessEvent in class WorkletEventListenercaseID - 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.