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