Skip to Content
author's profile photo Former Member
Former Member

2 start events for workflow

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

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Posted on Dec 02, 2011 at 06:46 PM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Dec 02, 2011 at 10:35 PM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 07, 2011 at 04:26 PM

    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'?

    Add a comment
    10|10000 characters needed characters exceeded

    • 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

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.