Workflow scratchpad variable undefined check
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-31-2016 01:30 PM
i have two flows in my workflow. In one f the flows, i m setting the scratchPad variable initially to false and changing it to true later on task completion. If it follows the other parth, the variable declaration itself will not take place..
I m trying something like the below one but it is not working. can someone help me on this?
if(workflow.scratchpad.taskCompleted=='NoTracking' ||
(workflow.scratchpad.task6Completed =='true' &&
(workflow.scratchpad.task5Completed =='true' || workflow.scratchpad.task5Completed = 'undefined'))){

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-31-2016 02:34 PM
Did you set the scratchpad variables before using them? What exactly are you seeing?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-31-2016 02:41 PM
I see you need to use a double equals on the final condition.
== 'undefined'
or create all of your variables in the beginning of the workflow and set them to NULL to avoid using undefined variables.
workflow.scratchpad.task5Completed = '';