public abstract class WorkletEventListener
extends javax.servlet.http.HttpServlet
Constructor and Description |
---|
WorkletEventListener() |
Modifier and Type | Method and Description |
---|---|
abstract 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
|
abstract 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 |
destroy() |
void |
doGet(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
Replies to browsers with a simple message
|
void |
doPost(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
Receives event notifications from the Worklet Service and passes them on to
extending classes via the appropriate method calls
|
abstract void |
itemLevelExceptionEvent(WorkItemRecord wir,
Element caseData,
RdrNode node,
RuleType ruleType)
Receives notification of a item level exception being raised by the worklet service
|
abstract 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
|
abstract void |
shutdown()
Receives notification that the worklet service is shutting down
|
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, service
public void destroy()
destroy
in interface javax.servlet.Servlet
destroy
in class javax.servlet.GenericServlet
public void doPost(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res) throws java.io.IOException, javax.servlet.ServletException
doPost
in class javax.servlet.http.HttpServlet
req
- the http requestres
- the http responsejava.io.IOException
javax.servlet.ServletException
public void doGet(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res) throws java.io.IOException, javax.servlet.ServletException
doGet
in class javax.servlet.http.HttpServlet
req
- the http requestres
- the http responsejava.io.IOException
javax.servlet.ServletException
public abstract void selectionEvent(WorkItemRecord wir, java.util.Map<java.lang.String,java.lang.String> caseMap, RdrNode node)
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 abstract void constraintSuccessEvent(java.lang.String caseID, WorkItemRecord wir, Element caseData, RuleType ruleType)
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 passedpublic abstract void caseLevelExceptionEvent(java.lang.String caseID, Element caseData, RdrNode node, RuleType ruleType)
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 abstract void itemLevelExceptionEvent(WorkItemRecord wir, Element caseData, RdrNode node, RuleType ruleType)
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 abstract void shutdown()
Copyright © 2004-2014 The YAWL Foundation.