Can i retrigger the workflow from the activity which has failed using wait for condition

ashwani_eshoppi
Kilo Expert

I have added a wait for condition in the workflow and checking a field value inside the script , this field is getting populated from another REST message call.

In wait for condition, i have made a query to the table which has this field.

Now since the field is getting populated asynch , and if the script executes in wait for condition , and it does not match , it remains at the same running stage, until the workflow is retrigerred.

Is there a way, to retrigger the same halted activity?

1 ACCEPTED SOLUTION

ashwani_eshoppi
Kilo Expert

Thanks for your responses.


I have implemented a solution which works fine.


Trigerred the event defined in wait for event activity from the scripted web services using the below code.


new Workflow.broadcastevent(context.sys_id,"event_name").



For workflow, events is identified only through broadcast events and not gs.eventqueue


Eariler i was trying to trigger an event through eventqueue, which though was showing in event logs, did not interacted with event of wait for event activity.


View solution in original post

11 REPLIES 11

zica
Giga Guru

Hi Ashwani,



Just a little update : the OOB business rule ' SNC - Run parent workflows' is operating on task table.


I don't understand why in your instance it is on global table.


Does the workflow is re-triggered if you put an additional comment in you req_item form?



Kind regards,


ZA


ashwani_eshoppi
Kilo Expert

Thanks for your responses.


I have implemented a solution which works fine.


Trigerred the event defined in wait for event activity from the scripted web services using the below code.


new Workflow.broadcastevent(context.sys_id,"event_name").



For workflow, events is identified only through broadcast events and not gs.eventqueue


Eariler i was trying to trigger an event through eventqueue, which though was showing in event logs, did not interacted with event of wait for event activity.