Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

OVERVIEW:

  • The 'Switch' Activity is used to identify unique branches of the selected data source. This allows for a single data source to have unique chains of Activities for every different type of values. For example, a single data source could contain logic to handle different types of events.

       Image RemovedImage Added

  • After opening the 'Switch' activity, you will get the below configuration panel.

      

Default Configuration Parameters:

...

  • The best way to see the power of this activity is to step through an extended example. Let us suppose that we have three types of customers: Bronze, Gold, and Platinum. We might also have customers that have not yet been entered into a particular program. For every customer, we need to execute different activities.
  • We are getting the customer details from the 'HTTPS' activity. you can refer to the 'HTTPS' activity to configure it.
  • Now, let’s create Case Switch that branches the workflow based on the CustomerType. After creating it will look like as shown below:

...

  • Note that the default case would be used to handle customers that have not yet been entered into a program.
  • A case can also be removed by clicking on the red delete button.
  • After adding the case you will notice that on the workflow designer page there are some buttons added as shown below.

        Image RemovedImage Added

  • You can add different types of activities and create different logic for all types of customers.
  • You can add activity on the 'After Switch' button. When the case will complete its execution 'After Switch' button will start executing.