Skip to main content
Answer

Skip next process action based on a value in a previous task

  • May 15, 2021
  • 1 reply
  • 48 views

Johan van Eijsden
Captain
Forum|alt.badge.img+6

I have very straight forward process flow:

 

 

Based on a value of a task parameter, I would like to skip sending the email (via the SMTP connector). I know it is possible to do this with code, but I can't find where to do so. Can someone please explain me in a few steps how I can acomplish this?

Best answer by Mark Jongeling

Hi Johan,

That can be achieved by using a Process procedure on the Execute (table) task. You'll need some process variables and map those to the Output parameters of the Execute task process action. Once mapped, the process variables will obtain the values from the Execute task process action.

At the process action itself, go to the Performance tab and check the 'Use process procedure' checkbox.

Then in Control procedures, create a new one of the type Processes. Assign this one to the Process action named above.

From here on it's a bit of coding and using the @task_parmtr to decide which arrow to follow by setting it to the value 1.

Hope this helps! 

This topic has been closed for replies.

1 reply

Mark Jongeling
Administrator
Forum|alt.badge.img+23
  • Administrator
  • Answer
  • May 16, 2021

Hi Johan,

That can be achieved by using a Process procedure on the Execute (table) task. You'll need some process variables and map those to the Output parameters of the Execute task process action. Once mapped, the process variables will obtain the values from the Execute task process action.

At the process action itself, go to the Performance tab and check the 'Use process procedure' checkbox.

Then in Control procedures, create a new one of the type Processes. Assign this one to the Process action named above.

From here on it's a bit of coding and using the @task_parmtr to decide which arrow to follow by setting it to the value 1.

Hope this helps!