change workflow activity execution state
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-23-2016 01:57 AM
Hi All,
In my workflow join activity i forgot to change the condition activity.result == complete, my workflow designed as shown in screenshot
so, the condition didn't match in if activity and hence directly joined to JOin activity and so even task1, task2 completed, the workflow got struck as condition didn't match. so, i need to move the workflow to further steps. How can i do that?
I tried the below, it sets join activity status to finished but it is not going to next steps. Please advice.
var gr = new GlideRecord('wf_executing');
gr.addQuery('sys_id','sysidof thw activityfromcontext');
gr.query();
if(gr.next())
{
gr.state = 'finished';
gr.update();
}
Thanks and regards,
Swamy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-23-2016 02:15 AM
What the join activity is doing? Could you please share a screenshot of join activity.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-23-2016 02:49 AM
Hi Paul,
Thanks for your reply.
it joins two tasks, if the two tasks were closed complete then a third task should be created.
Thanks and regads,
Swamy

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-23-2016 02:59 AM
Hi Amaradi,
But isn't the join waiting for the 2 branches to finish? The first 2 create tasks are still eligible/executing and didn't finished.
Telmo
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-23-2016 03:04 AM
Oh..in the above screenshot i tried set the activity staus to finished to check whether it is proceeding or not. But, i have 3 workflows which were stuck at join(two tasks were completed).
Thanks and regards,
Swamy