<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Triggering Events in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/triggering-events/m-p/2301198#M502902</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a workflow that seems to be getting caught in the 'race between the update task and the WebtFlow Engine' - per the book 'Practical Workflow for SAP'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One suggested resolution for this was to create an event that trigger the next step once the update has taken place.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried creating a Terminating Event and right now I am trying a Triggering Event.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have Step A - this is a background step to determine an agent and put that agent in the WF container and to update a table with that value.  After the commit work for the update, I put my code to call the function to create the event UPDATED in my custom BO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The second step - Step B is a dialog step but has a triggering event defined as the UPDATED event from the same BO.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A couple of questions:&lt;/P&gt;&lt;P&gt;1.  When executing this workflow, is it possilbe for me (via SWIA) to see if my event was created successfully?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2.  I have done an event trace and it appears that the event is created and the receiving event is triggered.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3.  In SWIA, it appears that the WF is executing as designed (but not knowing whether the triggering event caused the second step to execute or not).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In order to test the triggering event, I left the triggering event condition on Step B, but in Step A, I commented the code to trigger the UPDATED event - thinking this would cause Step B to not process..... but it still does.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Something is not working properly and I cannot figure it out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help would be appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 18 May 2007 17:40:06 GMT</pubDate>
    <dc:creator>former_member51562</dc:creator>
    <dc:date>2007-05-18T17:40:06Z</dc:date>
    <item>
      <title>Triggering Events</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/triggering-events/m-p/2301198#M502902</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a workflow that seems to be getting caught in the 'race between the update task and the WebtFlow Engine' - per the book 'Practical Workflow for SAP'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One suggested resolution for this was to create an event that trigger the next step once the update has taken place.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried creating a Terminating Event and right now I am trying a Triggering Event.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have Step A - this is a background step to determine an agent and put that agent in the WF container and to update a table with that value.  After the commit work for the update, I put my code to call the function to create the event UPDATED in my custom BO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The second step - Step B is a dialog step but has a triggering event defined as the UPDATED event from the same BO.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A couple of questions:&lt;/P&gt;&lt;P&gt;1.  When executing this workflow, is it possilbe for me (via SWIA) to see if my event was created successfully?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2.  I have done an event trace and it appears that the event is created and the receiving event is triggered.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3.  In SWIA, it appears that the WF is executing as designed (but not knowing whether the triggering event caused the second step to execute or not).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In order to test the triggering event, I left the triggering event condition on Step B, but in Step A, I commented the code to trigger the UPDATED event - thinking this would cause Step B to not process..... but it still does.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Something is not working properly and I cannot figure it out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help would be appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 May 2007 17:40:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/triggering-events/m-p/2301198#M502902</guid>
      <dc:creator>former_member51562</dc:creator>
      <dc:date>2007-05-18T17:40:06Z</dc:date>
    </item>
    <item>
      <title>Re: Triggering Events</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/triggering-events/m-p/2301199#M502903</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can try creating another workflow for second step and keep the triggering event for this new workflow as Update on the BO.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 20 May 2007 16:43:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/triggering-events/m-p/2301199#M502903</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-20T16:43:24Z</dc:date>
    </item>
  </channel>
</rss>

