org.yawlfoundation.yawl.testService
Class TestWorkletListener

java.lang.Object
  extended by javax.servlet.GenericServlet
      extended by javax.servlet.http.HttpServlet
          extended by org.yawlfoundation.yawl.worklet.support.WorkletEventListener
              extended by org.yawlfoundation.yawl.testService.TestWorkletListener
All Implemented Interfaces:
Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

public class TestWorkletListener
extends WorkletEventListener

Author:
Michael Adams
See Also:
Serialized Form
Created/Last Date:
27/03/12

Constructor Summary
TestWorkletListener()
           
 
Method Summary
 void caseLevelExceptionEvent(String caseID, org.jdom.Element caseData, RdrNode node, RuleType ruleType)
          Receives notification of a case level exception being raised by the worklet service
 void constraintSuccessEvent(String caseID, WorkItemRecord wir, org.jdom.Element caseData, RuleType ruleType)
          Receives notification of a case or workitem that has passed pre or post constraints
 void itemLevelExceptionEvent(WorkItemRecord wir, org.jdom.Element caseData, RdrNode node, RuleType ruleType)
          Receives notification of a item level exception being raised by the worklet service
 void selectionEvent(WorkItemRecord wir, Map<String,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
 
Methods inherited from class org.yawlfoundation.yawl.worklet.support.WorkletEventListener
destroy, doGet, doPost
 
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, service
 
Methods inherited from class javax.servlet.GenericServlet
getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, init, log, log
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TestWorkletListener

public TestWorkletListener()
Method Detail

shutdown

public void shutdown()
Description copied from class: WorkletEventListener
Receives notification that the worklet service is shutting down

Specified by:
shutdown in class WorkletEventListener

caseLevelExceptionEvent

public void caseLevelExceptionEvent(String caseID,
                                    org.jdom.Element caseData,
                                    RdrNode node,
                                    RuleType ruleType)
Description copied from class: WorkletEventListener
Receives notification of a case level exception being raised by the worklet service

Specified by:
caseLevelExceptionEvent in class WorkletEventListener
Parameters:
caseID - the case on which the exception has been raised
caseData - the current caseData, used to evaluate the exception
node - the RdrNode that evaluated to true
ruleType - the type of exception raised

itemLevelExceptionEvent

public void itemLevelExceptionEvent(WorkItemRecord wir,
                                    org.jdom.Element caseData,
                                    RdrNode node,
                                    RuleType ruleType)
Description copied from class: WorkletEventListener
Receives notification of a item level exception being raised by the worklet service

Specified by:
itemLevelExceptionEvent in class WorkletEventListener
Parameters:
wir - the workitem for which the exception has been raised
caseData - the current caseData, used to evaluate the exception
node - the RdrNode that evaluated to true
ruleType - the type of exception raised

selectionEvent

public void selectionEvent(WorkItemRecord wir,
                           Map<String,String> caseMap,
                           RdrNode node)
Description copied from class: WorkletEventListener
Receives notification of a selection (substitution) by the worklet service

Specified by:
selectionEvent in class WorkletEventListener
Parameters:
wir - the workitem that has been replaced by a worklet
caseMap - 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 true

constraintSuccessEvent

public void constraintSuccessEvent(String caseID,
                                   WorkItemRecord wir,
                                   org.jdom.Element caseData,
                                   RuleType ruleType)
Description copied from class: WorkletEventListener
Receives notification of a case or workitem that has passed pre or post constraints

Specified by:
constraintSuccessEvent in class WorkletEventListener
Parameters:
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 evaluation
ruleType - the type of constraint rule passed


Copyright © 2004-2012 The YAWL Foundation.