Skip to Content

Duplicated workflows for fast triggering event from CRM


I'm facing an issue when a credit limit sales order is created in CRM.

They are creating the order and manking a change to it 5 seconds later. Those created and changed events are triggered with a difference of 5 seconds and in background, the first WF is triggered (with the created event) and 5 seconds later other instance of that WF is triggered (with the changed event).

The problem is that the first WF is not being logically deleted when the seconds one is created (it has a wait step at the beggining of the WF to end in case another instancer of the WF is triggered).

This is caused by a perfoirmance issue that when the seconds WF is triggered, the first one is still not listening to the changed event.

Do you know if there's any way to solve this?


Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Posted on May 12, 2011 at 04:01 PM


    I think you can give a try to make use of process control step in the second workflow, I am sure that there would be a way to find out what is the top work item ID by using by a unique key or some kind of GUID.. then you can either create a class method or BOR method to logically delete the work-item by making use of the standard WAPI function modules provided by SAP.



    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on May 12, 2011 at 09:59 PM

    Hi MatiasAZ,

    In the first workflow(created) check the event. It should be the 'changed' event and proper binding should be there.

    If everything is fine, after the wait for event create a process control with the option as 'Complete workflow'.

    Initially your workflow should have the fork step type with two branches. Maintain the changed event wait step in one branch and created events step in other branch. So that the workflow will wait for 'Changed' event and workflow will be completed if the 'Changed' event occurs in the system.



    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on May 12, 2011 at 10:08 PM


    Are you talking about two instances of the same workflow?

    What if you started the workflow with a wait step (wait 1 minute), would that help?


    Rick Bakker

    hanabi technology

    Add a comment
    10|10000 characters needed characters exceeded

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.