public class WorkletEventServer extends Interface_Client
Modifier and Type | Class and Description |
---|---|
static class |
WorkletEventServer.Event |
Constructor and Description |
---|
WorkletEventServer()
Constructs a new event server
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
addListener(java.lang.String uri)
Adds a listener to the set of registered listeners
|
void |
announceConstraintPass(java.lang.String caseID,
Element caseData,
RuleType rType)
Announces a case-level exception
|
void |
announceConstraintPass(WorkItemRecord wir,
Element caseData,
RuleType rType)
Announces an item-level exception
|
void |
announceException(java.lang.String caseID,
Element caseData,
RdrNode node,
RuleType rType)
Announces a case-level exception
|
void |
announceException(WorkItemRecord wir,
Element caseData,
RdrNode node,
RuleType rType)
Announces an item-level exception
|
void |
announceSelection(java.util.Set<WorkletRunner> runners,
RdrNode node)
Announces a worklet selection
|
boolean |
hasListeners() |
java.lang.String |
removeListener(java.lang.String uri)
Removes a listener to the set of registered listeners
|
void |
shutdownListeners()
Announces the worklet service is shutting down
|
executeGet, executePost, getReply, initPostConnection, prepareParamMap, send, setReadTimeout, stripOuterElement, successful
public boolean hasListeners()
public java.lang.String addListener(java.lang.String uri)
uri
- the URI of the listener to addpublic java.lang.String removeListener(java.lang.String uri)
uri
- the URI of the listener to removepublic void announceException(java.lang.String caseID, Element caseData, RdrNode node, RuleType rType)
caseID
- the id of the case on which the exception was raisedcaseData
- the current case data used to evaluate the exceptionnode
- the node that evaluated to truerType
- the type of exception raisedpublic void announceException(WorkItemRecord wir, Element caseData, RdrNode node, RuleType rType)
wir
- the workitem on which the exception was raisedcaseData
- the current case data used to evaluate the exceptionnode
- the node that evaluated to truerType
- the type of exception raisedpublic void announceConstraintPass(java.lang.String caseID, Element caseData, RuleType rType)
caseID
- the id of the case on which the exception was raisedcaseData
- the current case data used to evaluate the exceptionrType
- the type of exception raisedpublic void announceConstraintPass(WorkItemRecord wir, Element caseData, RuleType rType)
wir
- the workitem on which the exception was raisedcaseData
- the current case data used to evaluate the exceptionrType
- the type of exception raisedpublic void announceSelection(java.util.Set<WorkletRunner> runners, RdrNode node)
runners
- a set of descriptors containing case, workitem, data
and raised worklet infopublic void shutdownListeners()
Copyright © 2004-2014 The YAWL Foundation.