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

Did you try workflow.fireEvent('eventName') API call to trigger the event as mentioned in below link?

 

https://docs.servicenow.com/bundle/geneva-servicenow-platform/page/administer/workflow_activities/re...


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

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.

Yes, this post is what I needed.  Thank you.  Wow was that a lot of searching.  

Not really...I was only searching for threads were Wait for Event was used


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