<div>Hi,</div>
<div> </div>
<div>There is a possibilty that two events getting triggered for the same workflow.</div>
<div>Based on the PR, the concerned event gets triggered along with the workflow.</div>
<div> </div>
<div>You can do one thing, where you can place a condition in each of the branch of the fork - check whether the PR is released at the 1st case.  As it is found, only after an unrelease pr and then released pr. so place a condition in the branch which has the event release.</div>

<div> </div>
<div>this should work,</div>
<div>shankar<br></div>
<div class="gmail_quote">On Wed, Jul 20, 2011 at 9:02 PM, Mihir Sharma <span dir="ltr">&lt;<a href="http://mihir.wf">mihir.wf</a>@<a href="http://gmail.com">gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">Hi,<br><br>I needs to send mail if PR is released or unreleased or reject or cancel rejection to the creator. <br>
So I created a workflow which contains event of BUS2105 in START EVENT - RELEASESTEPCREATED, RELEASED, REJECTION_STOP, REJECTION_START.<br><br>So if anything happen in ME54N a mail should get triggered.<br><br>I used FORK which contains 4 wait event because only 1 event will be triggered for 1 PR. And accordingly formatted mail will be send.<br>

<p>If PR is released for the first time mail is triggered successfully. If that same PR is unreleased and then again released for same release code mail is triggered twice and keeps triggering twice if again it is unreleased and then released.<br>
<br>In SWEL below messages is seen twice for RELEASE event.<br><br>BUS2105 RELEASED 20.07.2011 19:23:58 EVENTITEM SWW_EI_EVENT_RECEIVE_IBF<br><br>so same mail is triggered twice.<br><br>This this is same for all remaining events.<br>
<br>When I show in SWE3 and in OBJECT DATA, their exist a entry of PR(object key) for BUS2105 release event. If I delete that entry then again for the first time it will trigger 1 mail but for next release of same PR will trigger mail twice.<br>
<br>The whole problem is for all events mentioned in FORK.<br><br>Thanks in advance.</p><br>_______________________________________________<br>SAP-WUG mailing list<br><a href="mailto:SAP-WUG@mit.edu">SAP-WUG@mit.edu</a><br>
<a href="http://mailman.mit.edu/mailman/listinfo/sap-wug" target="_blank">http://mailman.mit.edu/mailman/listinfo/sap-wug</a><br><br></blockquote></div><br><br clear="all"><br>-- <br>shankar<br>