public class ExceptionService
extends java.lang.Object
| Constructor and Description | 
|---|
| ExceptionService(WorkletService workletService) | 
| Modifier and Type | Method and Description | 
|---|---|
| void | cleanseWorkletRunners(java.util.Set<WorkletRunner> toRemove) | 
| void | completeInitialisation(boolean persisting) | 
| java.util.List | getExternalTriggersForCase(java.lang.String caseID)retrieves a complete list of external exception triggers from the ruleset
  for the specified case | 
| java.util.List<java.lang.String> | getExternalTriggersForItem(java.lang.String itemID) | 
| java.util.Set<WorkletRunner> | getRunningWorklets() | 
| YSpecificationID | getSpecIDForCaseID(java.lang.String caseID)returns the spec id for the specified case id | 
| java.lang.String | getStatus(java.lang.String taskID)stub method called from RdrConditionFunctions class | 
| WorkItemRecord | getWorkItemRecord(java.lang.String itemID)returns the specified wir for the id passed | 
| void | handleCaseCancellationEvent(java.lang.String caseID)Handles a notification from the Engine that a case has been cancelled. | 
| void | handleCheckCaseConstraintEvent(YSpecificationID specID,
                              java.lang.String caseID,
                              java.lang.String data,
                              boolean preCheck)Handles a notification from the Engine that a case is either starting
 or has completed. | 
| void | handleCheckWorkItemConstraintEvent(WorkItemRecord wir,
                                  java.lang.String data,
                                  boolean preCheck)Handles a notification from the Engine that a workitem is either starting
 or has completed. | 
| java.lang.String | handleConstraintViolationException(WorkItemRecord wir,
                                  java.lang.String data) | 
| void | handleResourceUnavailableException(java.lang.String resourceID,
                                  WorkItemRecord wir,
                                  java.lang.String caseData,
                                  boolean primary) | 
| void | handleTimeoutEvent(WorkItemRecord wir,
                  java.lang.String taskList)Handles a notification from the Engine that a workitem associated with the
  timeService has timed out. | 
| java.lang.String | handleWorkItemAbortException(WorkItemRecord wir,
                            java.lang.String data) | 
| boolean | isWorkletCase(java.lang.String caseID)returns true if case specified is a worklet instance | 
| protected void | raise(java.lang.String msg) | 
| java.lang.String | raiseException(WorkItemRecord wir,
              RuleType ruleType,
              RdrConclusion conclusion)Raises an exception (triggered via the API) using the conclusion passed in | 
| void | raiseExternalException(java.lang.String level,
                      java.lang.String id,
                      java.lang.String trigger)Raise an externally triggered exception | 
| java.lang.String | replaceWorklet(RuleType xType,
              java.lang.String caseID,
              java.lang.String itemID)Replaces a running worklet case with another worklet case after an
  amendment to the ruleset for this exception. | 
| java.util.Set<WorkItemRecord> | suspendCase(java.lang.String caseID) | 
| boolean | suspendWorkItem(java.lang.String itemID) | 
public ExceptionService(WorkletService workletService)
public void completeInitialisation(boolean persisting)
public void handleCaseCancellationEvent(java.lang.String caseID)
caseID - the case cancelled by the Enginepublic void handleCheckWorkItemConstraintEvent(WorkItemRecord wir, java.lang.String data, boolean preCheck)
wir - the workitem that triggered the eventdata - the current case data (i.e. immediately prior to item start or
             after item completion)preCheck - true for pre-constraints, false for post-constraintspublic void handleCheckCaseConstraintEvent(YSpecificationID specID, java.lang.String caseID, java.lang.String data, boolean preCheck)
specID - specification id of the casecaseID - the id for the casedata - the case-level data paramspreCheck - true for pre-constraints, false for post-constraintspublic void handleTimeoutEvent(WorkItemRecord wir, java.lang.String taskList)
wir - - the item that caused the timeout eventtaskList - - a list of taskids of those tasks that were running in
        parallel with the timeout taskpublic void handleResourceUnavailableException(java.lang.String resourceID,
                                               WorkItemRecord wir,
                                               java.lang.String caseData,
                                               boolean primary)
public java.lang.String handleWorkItemAbortException(WorkItemRecord wir, java.lang.String data)
public java.lang.String handleConstraintViolationException(WorkItemRecord wir, java.lang.String data)
public boolean suspendWorkItem(java.lang.String itemID)
public java.util.Set<WorkItemRecord> suspendCase(java.lang.String caseID)
public java.util.Set<WorkletRunner> getRunningWorklets()
public java.util.List<java.lang.String> getExternalTriggersForItem(java.lang.String itemID)
public void cleanseWorkletRunners(java.util.Set<WorkletRunner> toRemove)
public WorkItemRecord getWorkItemRecord(java.lang.String itemID)
public YSpecificationID getSpecIDForCaseID(java.lang.String caseID)
public java.util.List getExternalTriggersForCase(java.lang.String caseID)
caseID - - the id of the case to get the triggers forpublic void raiseExternalException(java.lang.String level,
                                   java.lang.String id,
                                   java.lang.String trigger)
level - - the level of the exception (case/item)id - - the id of the case or item on which the exception is being raisedtrigger - - the identifier of (or reason for) the external exceptionpublic java.lang.String raiseException(WorkItemRecord wir, RuleType ruleType, RdrConclusion conclusion)
wir - the wir to raise the exception forruleType - the exception rule typeconclusion - a populated conclusion objectpublic java.lang.String replaceWorklet(RuleType xType, java.lang.String caseID, java.lang.String itemID) throws java.io.IOException
xType - - the type of exception that launched the workletcaseID - - the id of the original checked out caseitemID - - the id of the original checked out workitemjava.io.IOExceptionpublic boolean isWorkletCase(java.lang.String caseID)
public java.lang.String getStatus(java.lang.String taskID)
protected void raise(java.lang.String msg)
              throws java.io.IOException
java.io.IOExceptionCopyright © 2004-2014 The YAWL Foundation.