Wait for Event in WF

stevenm
Kilo Guru

I'm trying to execute the items of an order guide in a specific order.  I found this post:  https://community.servicenow.com/community?id=community_question&sys_id=76369129db9aaf004abd5583ca96... in which Chuck mentions a way to do this.  I have most of it working except getting the Wait for Event to execute in the child workflow.  

I have read this:  https://docs.servicenow.com/bundle/jakarta-servicenow-platform/page/administer/workflow-administrati... that seems to indicate that a workflow Create Event is really just a trigger for an email notification.  That I need something different to trigger within workflows.  

So based on what Chuck said, my main workflow needs to create an event that the subsequent workflow will wait for and see.  That's what I've been googling to find for the past 2 hours.  Anyone know where I can find this?

 

1 ACCEPTED SOLUTION

Also, below thread could help

 

https://community.servicenow.com/community?id=community_question&sys_id=f9f85651db27770414d6fb243996...


Please mark this response as correct or helpful if it assisted you with your question.

View solution in original post

8 REPLIES 8

SanjivMeher
Kilo Patron
Kilo Patron

I think what you should be using is Wait for WF Event activity under Conditions. 'Create Event' is to trigger a notification or script action.

 

find_real_file.png


Please mark this response as correct or helpful if it assisted you with your question.

stevenm
Kilo Guru

I do use that in the "child" workflow.  But I can't seem to get it to execute.  I've tried multiple posts that Chuck has authored from that listed above to a broadcastEvent.  I just can't seem to get the wait for to see the fired event and continue.

Can you post a screenshot from your workflow? 

stevenm
Kilo Guru

Capture1 file shows that I have a run script in my "master" workflow.  This is the workflow that HAS to run first.  The last step is to run the script to trigger a broadcastEvent - my latest attempt.  Capture2 and Capture3 show the call of the script include that does the broadcastevent.  

 

Capture4 is the subsequent workflow that runs AFTER the first one.  It has the wait for event in it which is shown in Capture5.

The second workflow simply never gets the event.