iRobo.Activity.CancellationScope

Cancellation Scope activity is used  to cancel some activities within a scope.

It is composed of Body and Cancellation Handler sections. Add as much activities to the Body or the Cancellation Handler sections.The Body holds activities to be executed, while the Cancellation Handler holds the activities that are executed only if the Body is canceled.


     Note: 

         Cancellation Handler is executed only if the Body is canceled. 

         Thus, if the Body activities are not canceled, then the Cancellation Handler never executes.     

       

                                                                                                       

Properties

Misc

  • DisplayName -  Activity header name.


Example on Using CancellationScope Activity   

Here is an example for a tourism company as a client wants to buy a ticket to Miami and we have two agencies that can sell the ticket. If the two agencies started together the same operation, then one will finish and the other will get into try catch to change its status to "Cancel".


  1. Open iRobo Studio, and then open a new Workflow.
  2. Drag Cancellation Scope Activity to the Sequence as shown in the image below.

  1. Drag Write Line Activity and Parallel Activity to the Sequence.
  2. Drag two Cancellation Scope Activity  to the Sequence within the Parallel Activity, and drag activities within as shown in the image below.

  1. Click Save button from iRobo Studio Menu to save Workflow.
  2. Click Play button to start the automated process.



                                                                                                       




Created with the Personal Edition of HelpNDoc: Benefits of a Help Authoring Tool