getScheme This method should return the scheme tag that this custom service

Getscheme this method should return the scheme tag

This preview shows page 49 - 52 out of 100 pages.

getScheme This method should return the scheme tag that this custom service manager supports. Suggested values are as follows, but are not validated in any way by the YAWL Engine: Page 49 of 100
Image of page 49
jms Java Method Call rmi Remote Method Invocation http Hyper Text Transfer Protocol jms Java Message Service soap Simple Object Access Protocol announceWorkItem This method will be called by the YAWL Engine for new workitems where the scheme component of the service URL associated with that work item matches getScheme() on an ObserverGateway. The invokation supplies a reference to both the YAWL service URI together with the workitem, within the context of a NewWorkItemAnnouncement . The Announcements object is a container for Announcement objects, grouped by scheme. cancelAllWorkItemsInGroupOf This method will be called by the YAWL Engine whenever a previously announced work item for this service is cancelled. Again the call is only made where the scheme component of the task URL matches getScheme() on an Observer Gateway. announceTimerExpiry This method will be called by the YAWL Engine whenever a work item timer expires. announceCaseCompletion - with Service Reference Upon launching a case the caller may elect any Custom YAWL Service to be notified once the case is complete. When doing so, this method gets called by the runtime once the case has completed. As usual, the call is only made for ObserverGateway instances where the scheme component of the URL matches getScheme(). The call supplies a reference to the YAWL service from which the URL can be obtained, together with a case ID, and the output case data. announceCaseCompletion - without Service Reference This version of the case completion method is called for cases where a completion listening service is not specified. announceCaseCancellation This method is called by the Engine to announce when a case is cancelled. announceCaseSuspending This method is called by the Engine to announce when a case starts to suspend (i.e. enters the ’suspending’ state as opposed to entering the fully ’suspended’ state). announceCaseSuspended This method is called by the Engine to announce when a case suspends (i.e. becomes fully suspended as opposed to entering the ’suspending’ state). Page 50 of 100
Image of page 50
1 YEngine engine = YEngine . getInstance ( f a l s e ) ; 2 engine . registerInterfaceBObserverGateway ( t h i s ) ; Listing 5.2: Dynamically registering an Observer Gateway instance announceCaseResumption This method is called by the Engine to announce when a case resumes from a previous ’suspending’ or ’suspended’ state. announceWorkItemStatusChange Notifies a change of status for a work item. announceEngineInitialised This method is called by the Engine to advise that it has completed its initialisation routines and is in a ’running’ state. shutdown This method is called when the Engine is shutdown (i.e. when its servlet is destroyed); the observer gateway should use this notification to do its own finalisation processing.
Image of page 51
Image of page 52

You've reached the end of your free preview.

Want to read all 100 pages?

  • Spring '17
  • Sui
  • yawl

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern

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