<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Exchange Server">
<!-- converted from rtf -->
<style><!-- .EmailQuote { margin-left: 1pt; padding-left: 4pt; border-left: #800000 2px solid; } --></style>
</head>
<body>
<font face="Calibri" size="2"><span style="font-size:11pt;">
<div>Rick and Jocelyn,</div>
<div>&nbsp;</div>
<div>Thanks for your inputs. That's pretty much what I was thinking, but I wasn't sure.</div>
<div>&nbsp;</div>
<div>Rick, I agree with not looking at the event table, and I like your suggestion. In any case, as both of you pointed out, the potential timing issue would have to be handled. </div>
<div>&nbsp;</div>
<div>Meanwhile, by further investigation, I found that there is indeed a way I'll be able to determine from the change document whether the other event&nbsp; should<i> </i> have been raised (not as good as knowing if it really was raised, but hopefully that's not
a major distinction!) - either or both of release status and release strategy will have changed&nbsp; - if neither of those changed then the new workflow will do A &amp; B; if one or both of those changed it will only do A.</div>
<div>&nbsp;</div>
<div>Thanks again. I can always count on this group to clear my brain fog on a question.</div>
<div>&nbsp;</div>
<div>Margaret</div>
<div>&nbsp;</div>
<div>&nbsp;</div>
<div>-----Original Message-----<br>

From: sap-wug-bounces@mit.edu [<a href="mailto:sap-wug-bounces@mit.edu">mailto:sap-wug-bounces@mit.edu</a>] On Behalf Of Dart, Jocelyn<br>

Sent: Tuesday, February 21, 2012 5:24 AM<br>

To: SAP Workflow Users' Group<br>

Subject: Re: Determine if another event was simultaneously raised for same object?</div>
<div>&nbsp;</div>
<div>Hi, Also just remember you can't guarantee event order. Nothing wrong with your current approach IMHO. Jocelyn</div>
<div>&nbsp;</div>
<div>Sent from my iPhone with many apologies for the spelling, grammar and any other deficiencies </div>
<div>&nbsp;</div>
<div>On 21/02/2012, at 6:49 PM, &quot;Rick Bakker&quot; &lt;<a href="mailto:rbakker@gmail.com">rbakker@gmail.com</a>&gt; wrote:</div>
<div>&nbsp;</div>
<div>&gt; Hello,</div>
<div>&gt; </div>
<div>&gt; If I understand correctly, you have events X, Y and Z.</div>
<div>&gt; </div>
<div>&gt; You want X to start off a workflow W1 and have it do ActionA, and then </div>
<div>&gt; also do ActionB but only if Y or Z have not occurred.</div>
<div>&gt; </div>
<div>&gt; One way to do this would be to have Y and Z both listed as triggering </div>
<div>&gt; events for another workflow, W2, which does nothing but start and stop.</div>
<div>&gt; </div>
<div>&gt; Then, W1 can test for the presence of W2 to know if Y and/or Z have </div>
<div>&gt; occurred and whether ActionB then needs to be done.</div>
<div>&gt; </div>
<div>&gt; Of course, W1 can only look at the past, not the future, so timing may </div>
<div>&gt; be an issue. I assume all the events have the same object key.</div>
<div>&gt; </div>
<div>&gt; --</div>
<div>&gt; You could also cheat and look in the event table but that is not </div>
<div>&gt; recommended - the event trace could be turned off at any time.</div>
<div>&gt; </div>
<div>&gt; regards</div>
<div>&gt; Rick Bakker</div>
<div>&gt; hanabi technology</div>
<div>&gt; </div>
<div>&gt; On Tue, Feb 21, 2012 at 8:42 AM, Hilsbos, Margaret A </div>
<div>&gt; &lt;<a href="mailto:Margaret.Hilsbos@dayzim.com">Margaret.Hilsbos@dayzim.com</a>&gt; wrote:</div>
<div>&gt;&gt; Hi workflow experts,</div>
<div>&gt;&gt; </div>
<div>&gt;&gt; </div>
<div>&gt;&gt; </div>
<div>&gt;&gt; I have an interesting problem that probably has a simple answer, but </div>
<div>&gt;&gt; it’s not coming to me, so I’m hoping someone can help.</div>
<div>&gt;&gt; </div>
<div>&gt;&gt; </div>
<div>&gt;&gt; </div>
<div>&gt;&gt; For our custom purchase requisition workflow (BUS2105), we want to </div>
<div>&gt;&gt; handle a new custom event that is raised when a certain custom field </div>
<div>&gt;&gt; is changed.&nbsp; If only our new event is raised, we want it to do two </div>
<div>&gt;&gt; things – let’s call them ActionA and ActionB.&nbsp; But, if the </div>
<div>&gt;&gt; SignificantlyChanged event and/or ReleaseStepCreated is also raised </div>
<div>&gt;&gt; (according to normal SAP logic and customizing settings), then we </div>
<div>&gt;&gt; want the result of our custom event to only be ActionA. So, when our </div>
<div>&gt;&gt; custom event is raised, I think it needs to know what other events </div>
<div>&gt;&gt; were also raised for the same object and the same save action.</div>
<div>&gt;&gt; </div>
<div>&gt;&gt; </div>
<div>&gt;&gt; </div>
<div>&gt;&gt; What would be the best way to determine whether other events were raised?</div>
<div>&gt;&gt;&nbsp; Or is there a different way to look at this problem altogether?</div>
<div>&gt;&gt; </div>
<div>&gt;&gt; </div>
<div>&gt;&gt; </div>
<div>&gt;&gt; Further info:</div>
<div>&gt;&gt; </div>
<div>&gt;&gt; </div>
<div>&gt;&gt; </div>
<div>&gt;&gt; ·&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; We’re using change document BANF to raise the custom event, with</div>
<div>&gt;&gt; field restrictions limiting it to changes in our custom field. The </div>
<div>&gt;&gt; custom event is defined on a delegated subtype of BUS2105.</div>
<div>&gt;&gt; </div>
<div>&gt;&gt; ·&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; The existing workflow definition listens for SignificantlyChanged</div>
<div>&gt;&gt; and cancels the current workflow, because a new workflow will be </div>
<div>&gt;&gt; started on ReleaseStepCreated.&nbsp; I expect to add our custom event here </div>
<div>&gt;&gt; and/or trigger a separate workflow to handle the additional processing.</div>
<div>&gt;&gt; </div>
<div>&gt;&gt; </div>
<div>&gt;&gt; </div>
<div>&gt;&gt; Thanks for any suggestions!</div>
<div>&gt;&gt; </div>
<div>&gt;&gt; </div>
<div>&gt;&gt; </div>
<div>&gt;&gt; Margaret Hilsbos</div>
<div>&gt;&gt; </div>
<div>&gt;&gt; Senior Business Systems Analyst</div>
<div>&gt;&gt; </div>
<div>&gt;&gt; Corporate IT, Day &amp; Zimmermann</div>
<div>&gt;&gt; </div>
<div>&gt;&gt; </div>
<div>&gt;&gt; </div>
<div>&gt;&gt; </div>
<div>&gt;&gt; _______________________________________________</div>
<div>&gt;&gt; SAP-WUG mailing list</div>
<div>&gt;&gt; <a href="mailto:SAP-WUG@mit.edu">SAP-WUG@mit.edu</a></div>
<div>&gt;&gt; <a href="http://mailman.mit.edu/mailman/listinfo/sap-wug">http://mailman.mit.edu/mailman/listinfo/sap-wug</a></div>
<div>&gt;&gt; </div>
<div>&gt; </div>
<div>&gt; _______________________________________________</div>
<div>&gt; SAP-WUG mailing list</div>
<div>&gt; <a href="mailto:SAP-WUG@mit.edu">SAP-WUG@mit.edu</a></div>
<div>&gt; <a href="http://mailman.mit.edu/mailman/listinfo/sap-wug">http://mailman.mit.edu/mailman/listinfo/sap-wug</a></div>
<div>&nbsp;</div>
<div>_______________________________________________</div>
<div>SAP-WUG mailing list</div>
<div><a href="mailto:SAP-WUG@mit.edu">SAP-WUG@mit.edu</a></div>
<div><a href="http://mailman.mit.edu/mailman/listinfo/sap-wug">http://mailman.mit.edu/mailman/listinfo/sap-wug</a></div>
<div>&nbsp;</div>
</span></font>
</body>
</html>