cancel
Showing results for 
Search instead for 
Did you mean: 

2 start events for workflow

Former Member
0 Kudos

Hi all,

I want a workflow to start based on 2 different events from 2 different biz object types. What is the best way to handle this? I have tried putting both biz objects in the Basic Data tab of WF builder along with their respective events but the WF is starting when only one of the events occurs and I want both of the events to occur before the WF actually starts. Thx

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

The requirement is:

1. To have the WF automatically select the additionals vendor which is also the PO vendor.

2. To only have the WF start based on vendor '100123' & Purch. Org 'P123'

The start condition that i would need to set is not available in one of the biz objects....and both events will happen at the same time. The 1st biz object is based on PO creation (BUS2012 with event 'Create') and with a start condition of vendor '100123' & Purchasing Org. 'P123'. The 2nd start event is with object BUS2106 with event 'Created with Multiple Vendors'. I only want the WF to start based on both biz object events and the start condition for BUS2012.

My problem is that I have BUS2012 w/event 'Create' at WF header in basic data tab & the 2nd event at task level 'TS' on triggering events tab. When i create a PO with vendor '100555' it is triggering the task and i do not want it to trigger. I know that it is triggering at TS level because of the defined start event on the triggering events tab. How can I only have the WF & TS start when BUS2106 with event 'Created with Multiple Vendors' occurs AND also respects the start condtion for BUS2012 with event 'Create'?

former_member185167
Active Contributor
0 Kudos

Hello,

If you want a workflow to start only if two events have taken place then one thing you could do is have two workflows, one started by each event. One workflow is just a dummy workflow, which sits and waits for a terminating event (or just does a wait for a few minutes). The other workflow is the main workflow and it checks for the existence of the dummy workflow - if it is there then continue, if not then stop.

This is just a suggestion, there may be better ways, but it will work.

You do have to know the connection between the BUS2012 and BUS2106 object instances; I assume you can't match them on key.

regards

Rick Bakker

hanabi technology

former_member185167
Active Contributor
0 Kudos

Hello,

That is a strange requirement. What you could do is put both in the Triggering events tab so that either will start the workflow, and then in the workflow figure out which event started it and then wait for the other. It will be simpler if you can assume an order - i.e. event A always happens before event B.

regards

Rick Bakker

hanabi technology

bpawanchand
Active Contributor
0 Kudos

HI,

That is how events behave , I hope you cannot merge two events so that it can trigger only once, What you can try to do is define a start condition in such a way thet until and unless both events are raised you should not start the workflow.

Regards

Pavan