Arguments wir the workitem to update data a JDOM Element containing data

Arguments wir the workitem to update data a jdom

This preview shows page 42 - 44 out of 100 pages.

Arguments: wir - the workitem to update; data - a JDOM Element containing data attributes and values; sessionHandle - the session handle of an active session. Returns: nil void updateCaseData(String caseID, Element data, String sessionHandle) throws IOException Purpose: Maps the case level data values specified to the identified case on the Engine side. Used to update the values of case-level data attributes, stored in the Engine, with the values of identically named attributes in the Element passed. Arguments: caseID - the identifier of the case to update data - a JDOM Element containing data attributes and values sessionHandle - the session handle of an active session. Returns: nil void forceCompleteWorkItem(WorkItemRecord wir, Element data, String sessionHandle) throws IOException Purpose: Force-completes the specified workitem. A force-completed workitem receives a final status of “ForcedComplete” and the process continues to the next task. Arguments: wir - the workitem to force-complete; data - a JDOM Element containing the workitem’s final data values; sessionHandle - the session handle of an active session. Returns: nil Page 42 of 100
Image of page 42
WorkItemRecord unsuspendWorkItem(String workItemID, String sessionHandle) throws IOException Purpose: Continues (i.e. unsuspends) the specified workitem. Does nothing if the workitem is not already suspended. Arguments: workItemID - the identifier of the workitem to continue; sessionHandle - the session handle of an active session. Returns: A WorkItemRecord referring to the updated workitem. void restartWorkItem(String workItemID, String sessionHandle) throws IOException Purpose: Restarts the specified workitem. Sets its status as “Enabled” and resets the item’s data values to those when it was initialised. Arguments: workItemID - the identifier of the workitem to restart; sessionHandle - the session handle of an active session. Returns: nil void startWorkItem(String workItemID, String sessionHandle) throws IOException Purpose: Starts the specified workitem in the engine. Arguments: workItemID - the identifier of the workitem to start; sessionHandle - the session handle of an active session. Returns: nil void cancelWorkItem(String workItemID, String sessionHandle) throws IOException Purpose: Cancels the specified workitem. Sets its status as “Failed” - no further processing will occur on the same branch as the failed workitem. Arguments: workItemID - the identifier of the workitem to cancel; sessionHandle - the session handle of an active session. Returns: nil As mentioned previously, the Worklet Exception Service makes extensive use of Interface X and so is a good example to browse for tips and pointers. That concludes this guide to creating a basic YAWL Custom Service. However, there are many more methods available via the Engine’s Interfaces to support your Custom Service’s operations. For more information can be found in the “YAWL Book” [ 10 ], and/or the YAWL javadoc (online at .
Image of page 43
Image of page 44

You've reached the end of your free preview.

Want to read all 100 pages?

  • Spring '17
  • Sui
  • yawl

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

Stuck? We have tutors online 24/7 who can help you get unstuck.
A+ icon
Ask Expert Tutors You can ask You can ask You can ask (will expire )
Answers in as fast as 15 minutes