Conditionally load the flow action

Hi, There is an activity called from the action tab of the flow action in the "before this action" section. As per the value calculated in the activity for a property in pyWorkPage, I want to load the flow action. For example, if the value = 0; I do not want to load the flow action rather I want to go to the next step in the flow. How can I achieve this?

***Updated by moderator: Marissa to close post***
This post has been archived for educational purposes. Contents and links will no longer be updated. If you have the same/similar question, please write a new post.


Keep up to date on this post and subscribe to comments

May 25, 2009 - 8:44am


I think you will be able to achieve the desired results by just restructuring the flow. For an example if you move your activity to a utility shape in the flow and use a decision shape in order to branch to different assignments you will be able to move to different places conditionally

If you want to load different flow actions in one assignment conditionally, you can include when conditions to flow actions to get the desired result

Thank you


May 25, 2009 - 10:39am

You can call a FlowAction from an activity based on a condition.Check the activity "performFlowAction" and see how it is being called with necessary params.I hope this will workout for you.


May 26, 2009 - 1:20am

You can consider putting the logic to calculate the value of the Property in a separate Activity just before the Assignment and then having a When rule associated with the target FlowAction that operates your inclusion/exclusion logic.

June 2, 2009 - 2:48am

Thanks Indrajith, I was able to solve it with your suggestion.[8D]

June 3, 2009 - 3:15pm


Originally posted by SELVARAV

Thanks Indrajith, I was able to solve it with your suggestion.[8D]

Just to reiterate, the preprocessing activity of the default flow action is not the right place for logic that determines whether this assignment shape should have been reached at all.