change workflow activity execution state

amaradiswamy
Kilo Sage

Hi All,

In my workflow join activity i forgot to change the condition activity.result == complete, my workflow designed as shown in screenshot

find_real_file.png

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

11 REPLIES 11

tanumoy
Tera Guru

What the join activity is doing? Could you please share a screenshot of join activity.


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


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


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