<font size=2 face="sans-serif">Agreed with Jocelyn, I've successfully
implemented such an approach for an ISU workflow on my client project,
and it works very well. &nbsp;In my case, the SAP standard ISU events I
was interested in were BOR-based (I think they all are in ISU) , so I opted
to create a custom receiver to generate an equivalent OO event.</font>
<br>
<br><font size=2 face="sans-serif">Best Regards,<br>
James Johnson<br>
<br>
E-mail:JJohnson@uk.ibm.com<br>
Mobile: 07908715224</font>
<br>
<br>
<br>
<br><font size=1 color=#5f5f5f face="sans-serif">From: &nbsp; &nbsp; &nbsp;
&nbsp;</font><font size=1 face="sans-serif">&quot;Dart, Jocelyn&quot;
&lt;jocelyn.dart@sap.com&gt;</font>
<br><font size=1 color=#5f5f5f face="sans-serif">To: &nbsp; &nbsp; &nbsp;
&nbsp;</font><font size=1 face="sans-serif">&quot;SAP Workflow
Users' Group&quot; &lt;sap-wug@mit.edu&gt;</font>
<br><font size=1 color=#5f5f5f face="sans-serif">Date: &nbsp; &nbsp; &nbsp;
&nbsp;</font><font size=1 face="sans-serif">09/05/2015 13:32</font>
<br><font size=1 color=#5f5f5f face="sans-serif">Subject: &nbsp; &nbsp;
&nbsp; &nbsp;</font><font size=1 face="sans-serif">Re: Dynamic
even in a wait step</font>
<br><font size=1 color=#5f5f5f face="sans-serif">Sent by: &nbsp; &nbsp;
&nbsp; &nbsp;</font><font size=1 face="sans-serif">sap-wug-bounces@mit.edu</font>
<br>
<hr noshade>
<br>
<br>
<br><font size=3>Hi Mike</font>
<br><font size=3>Many moons ago we wrote an event receiver function module
that converted a BOR event into a OO event which saves creating event only
workflows</font>
<br><font size=3>Just a thought</font>
<br><font size=3>Rgds</font>
<br><font size=3>Jocelyn</font>
<br><font size=3><br>
Sent from my iPad</font>
<br><font size=3><br>
On 9 May 2015, at 6:49 am, Rick Bakker &lt;</font><a href=mailto:rbakker@gmail.com><font size=3 color=blue><u>rbakker@gmail.com</u></font></a><font size=3>&gt;
wrote:<br>
</font>
<br><font size=3>Hi Mike, </font>
<br>
<br><font size=3>How about have each of the wait events listed as a start
event of a workflow whose only step is to create a generic event to be
picked up by your main workflow?</font>
<br>
<br><font size=3>regards</font>
<br><font size=3>Rick</font>
<br>
<br><font size=3>On Fri, May 8, 2015 at 10:20 AM, Mike Pokraka &lt;</font><a href=mailto:wug@workflowconnections.com target=_blank><font size=3 color=blue><u>wug@workflowconnections.com</u></font></a><font size=3>&gt;
wrote:</font>
<br><font size=3>Hi Florin,<br>
<br>
Nice idea, I like it. It's sortof between my option 1 and 2 but cleaner.<br>
<br>
Another approach I'm considering is a bit more radical. It's a hybrid BOR<br>
and OO workflow precisely because of a multitude of events from Status<br>
Management, which still doesn't do OO-WF. I kept BOR in the WF because
I<br>
had it in my head that I could do dynamic waits for events straight from<br>
BSVW config.<br>
<br>
If the eventing in WF is too complex, I'm thinking an event forwarder into<br>
a pure OO workflow right from the beginning is probably better. With a
bit<br>
of subclassing*, I can reduce it to 3 or 4 event waits and a little<br>
consolidation logic in the event forwarder code.<br>
<br>
Still pondering, will post back what I finally decide on. Still open to<br>
other suggestions.<br>
<br>
Thanks,<br>
Mike<br>
<br>
* - Dang, I forgot to add support for OO interfaces into the customer<br>
connection suggestions!</font>
<br><font size=3><br>
<br>
On Fri, May 8, 2015 5:23 pm, Florin Wach (SI) wrote:<br>
&gt; Hi Mike,<br>
&gt;<br>
&gt; as I'm on the train, here's the short version after having thought
about<br>
&gt; some alternatives:<br>
&gt;<br>
&gt; Instead of a Wait step, create a subflow with a single asynchronous<br>
&gt; background step that executes a dummy method.<br>
&gt;<br>
&gt; Within that step you create a container element that is bound to the
name<br>
&gt; of the dynamic event you're waiting for.<br>
&gt;<br>
&gt; As terminating events of that task you define once all the possible<br>
&gt; events.<br>
&gt;<br>
&gt; A instance linkage check FM now compares the name of the event with
the<br>
&gt; value of that container element of the task.<br>
&gt;<br>
&gt; Have a look at the instance binding of BUS2012.Released where the
element<br>
&gt; 'ReleaseCode' is compared.<br>
&gt;<br>
&gt; The subflow has only the reason to avoid 20+ outcomes of the task
. &nbsp;With<br>
&gt; a subflow it looks more cleaner.<br>
&gt;<br>
&gt;<br>
&gt; Mit freundlichen Gruessen / With kind regards<br>
&gt; &nbsp; &nbsp;Florin Wach<br>
&gt; &nbsp; &nbsp;Senior Workflow Engineer<br>
&gt; &nbsp; &nbsp;Systems-Integration<br>
&gt;<br>
&gt; --------------------------------------------------<br>
&gt; </font><a href="http://www.systems-integration.net/" target=_blank><font size=3 color=blue><u>http://www.systems-integration.net</u></font></a><font size=3><br>
&gt;<br>
&gt;&gt; Am 08.05.2015 um 18:01 schrieb Mike Pokraka<br>
&gt;&gt; &lt;</font><a href=mailto:wug@workflowconnections.com><font size=3 color=blue><u>wug@workflowconnections.com</u></font></a><font size=3>&gt;:<br>
&gt;&gt;<br>
&gt;&gt; Hi all,<br>
&gt;&gt;<br>
&gt;&gt; I bumped into a limitation in the wait step and was wondering
if anyone<br>
&gt;&gt; had any more elegant workarounds than my klutzy attempts:<br>
&gt;&gt;<br>
&gt;&gt; What I'd like to do is wait for a dynamic event. It would be easy
with a<br>
&gt;&gt; container element for the event name, but unfortunately the Wait
step<br>
&gt;&gt; complains that &quot;Event &amp;WAITFORTHIS&amp; does not exist&quot;
when I try to insert<br>
&gt;&gt; a<br>
&gt;&gt; container element into the event field of a wait step.<br>
&gt;&gt;<br>
&gt;&gt; Background:<br>
&gt;&gt; The WF can be started by a variety of events. Depending on triggering<br>
&gt;&gt; event, there will be a variety of different events to wait for.<br>
&gt;&gt;<br>
&gt;&gt; Some approaches I've considered are:<br>
&gt;&gt; 1. A bunch of parallel wait branches and a series of switches
to<br>
&gt;&gt; de/activate them, but that's nasty (20+ events).<br>
&gt;&gt; 2. The start event triggers a second workflow (one for each scenario),<br>
&gt;&gt; which only waits for the relevant reactors and then signals the
main WF<br>
&gt;&gt; with a secondary event. Ugly.<br>
&gt;&gt; 3. Custom event receiver module in the event linkage table to
manipulate<br>
&gt;&gt; the relevant workflow. Obscure.<br>
&gt;&gt;<br>
&gt;&gt; I can't help thinking there must be a better way :-)<br>
&gt;&gt;<br>
&gt;&gt; Any input appreciated,<br>
&gt;&gt; Mike<br>
&gt;&gt; (Cross-posted on WUG and SCN)<br>
&gt;&gt;<br>
&gt;&gt; _______________________________________________<br>
&gt;&gt; SAP-WUG mailing list<br>
&gt;&gt; </font><a href="mailto:SAP-WUG@mit.edu"><font size=3 color=blue><u>SAP-WUG@mit.edu</u></font></a><font size=3><br>
&gt;&gt; </font><a href="http://mailman.mit.edu/mailman/listinfo/sap-wug" target=_blank><font size=3 color=blue><u>http://mailman.mit.edu/mailman/listinfo/sap-wug</u></font></a><font size=3><br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; SAP-WUG mailing list<br>
&gt; </font><a href="mailto:SAP-WUG@mit.edu"><font size=3 color=blue><u>SAP-WUG@mit.edu</u></font></a><font size=3><br>
&gt; </font><a href="http://mailman.mit.edu/mailman/listinfo/sap-wug" target=_blank><font size=3 color=blue><u>http://mailman.mit.edu/mailman/listinfo/sap-wug</u></font></a><font size=3><br>
&gt;<br>
<br>
_______________________________________________<br>
SAP-WUG mailing list</font><font size=3 color=blue><u><br>
</u></font><a href="mailto:SAP-WUG@mit.edu"><font size=3 color=blue><u>SAP-WUG@mit.edu</u></font></a><font size=3 color=blue><u><br>
</u></font><a href="http://mailman.mit.edu/mailman/listinfo/sap-wug" target=_blank><font size=3 color=blue><u>http://mailman.mit.edu/mailman/listinfo/sap-wug</u></font></a>
<br>
<br><font size=3>_______________________________________________<br>
SAP-WUG mailing list</font><font size=3 color=blue><u><br>
</u></font><a href="mailto:SAP-WUG@mit.edu"><font size=3 color=blue><u>SAP-WUG@mit.edu</u></font></a><font size=3 color=blue><u><br>
</u></font><a href="http://mailman.mit.edu/mailman/listinfo/sap-wug"><font size=3 color=blue><u>http://mailman.mit.edu/mailman/listinfo/sap-wug</u></font></a><tt><font size=2>_______________________________________________<br>
SAP-WUG mailing list<br>
SAP-WUG@mit.edu<br>
</font></tt><a href="http://mailman.mit.edu/mailman/listinfo/sap-wug"><tt><font size=2>http://mailman.mit.edu/mailman/listinfo/sap-wug</font></tt></a><tt><font size=2><br>
</font></tt>
<br><font size=2 face="sans-serif"><br>
Unless stated otherwise above:<br>
IBM United Kingdom Limited - Registered in England and Wales with number
741598. <br>
Registered office: PO Box 41, North Harbour, Portsmouth, Hampshire PO6
3AU<br>
</font>