What is BRANCH Flow Step in webMethods

BRANCH

Here is the basic definition;
BRANCH flow step conditionally executes an operation based on the value of a variable at run time.

Simply means if you want to apply any condition please use BRANCH step ;-).
In other words it's used as If - Else/Switch clause in webmethods.

Let's see the properties of BRANCH flow step; 

1. Evaluate Label
  • If you want to use BRANCH as if -else then set the Evaluate label property as true.
  • If the Evaluate label property is set as false then it will act as Switch clause.

2. Label

3. Switch
This property is used only when Evaluate label  property is set to false i.e, in Switch case. 
You need to mention the name of the variable in this property on which you wants to apply condition.


Let's see the practical implementation;
If-else Implementation;
1. Take a BRANCH step and set Evaluate label to true.
2. Take a SEQUENCE/MAP flow step as the child step of BRANCH and in the label property apply the condition.

Switch Implementation;
1. Take a BRANCH step and set Evaluate label to false.
2. Set the name of the variable on which you want to apply the condition in Switch property.
3. Take a SEQUENCE/MAP flow step as the child step of BRANCH and in the label property set the value.

Comments

Popular posts from this blog

ATS Events in webMethods

How to Activate/Deactivate ATS Events in MWS