- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-07-2017 03:51 AM
Hi Everyone,
I have created if condition with custom activities based on multiple condition as shown below, the condition is true and log messages are captured but the return value is "no" instead of returning a string based on condition match and which will not match with activity.result and failing the flow of workflow. Please let me know how to fix it.
one of the activities condition
Thanks,
Sowmya
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-07-2017 07:47 AM
Hi Sowmya,
I recently came across a similar situation, and as a workaround used several redundant workflow.scratchpad in the if else ladder, and later used a switch .The switch conditions for paths had the workflow scratchpad.
For eg.
in run script :
if(this ==this){
workflow.scratchpad.first='true';
}
else if(this== that){
workflow.scratchpad.first='true';
workflow.scratchpad.second='true';
}
else{
workflow.scratchpad.first='true';
workflow.scratchpad.second='true';
workflow.scratchpad.third='true';
}
in switch conditions, for one path i used workflow.scratchpad.first=='true'; similarly i used workflow.scratchpad.second='true'; in other and so on..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-07-2017 08:35 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-08-2017 03:46 AM
Thanks a lot. It helped me to achieve my requirement.
Thanks,
Sowmya
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-14-2018 09:22 AM
Thank you so much Chuck Tomasi, Switch activity is working well for multiple choices.