Tuesday, April 29, 2014

How to use route activity in ADF taskflows?

If we would like to route the flow inside a taskflow based on the outcome of an expression, then we should use the Route activity.

Step1: Configure the Route activity as shown below in the taskflow
























In the above taskflow we observe that the router1 activity is the default activity. But where should the navigation go in the next step is determined by the expressions configured in the route activity

Step2: Configure the outcomes based on the outcome of an EL expression as shown below.
















Note:
  1. The default outcome is mandatory for the route activity.
  2. If the router outcome matches a from-outcome on a control flow case, control passes to the activity that the control flow case points to.
  3. If none of the cases for the router activity evaluates to true, or if no cases are specified, the outcome specified in the router default outcome field (if any) is used.

No comments:

Post a Comment