<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.3059" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><SPAN class=243520117-18042007><FONT face=Arial 
color=#0000ff size=2>Patrick, there're several ways you can skin the kitty. 
Here're a couple&nbsp;of things that i can think of 
immediately:</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=243520117-18042007><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=243520117-18042007><FONT face=Arial 
color=#0000ff size=2>1. create a task for each of your bsp with swfvisu defined, 
and then use 'task determined by expression' mechanism to pick the correct one 
based on the results of the previous background step. It's very 
strainghtforward, very small initial development effort needed, but&nbsp;will 
require some maintenance if they would want to add a new bsp later (create new 
task and all).</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=243520117-18042007><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=243520117-18042007><FONT face=Arial 
color=#0000ff size=2>2. create a&nbsp;"launcher" iview (bsp or java) and point 
your&nbsp;task's swfvisu there. The "launcher" will read the task container, 
pick the correct BSP and start it. The launcher can also take care of the 
workitem handling. It involves more initial&nbsp;development, but almost 
maintenance free&nbsp;&nbsp;- to add a new bsp they will just need to put it's 
name in the container.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=243520117-18042007><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=243520117-18042007></SPAN><FONT 
face=Arial><FONT color=#0000ff><FONT size=2>H<SPAN class=243520117-18042007>ope 
this helps.</SPAN></FONT></FONT></FONT></DIV>
<DIV><FONT face=Arial><FONT color=#0000ff><FONT size=2><SPAN 
class=243520117-18042007></SPAN></FONT></FONT></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial><FONT color=#0000ff><FONT size=2><SPAN 
class=243520117-18042007>Regards,</SPAN></FONT></FONT></FONT></DIV>
<DIV><FONT face=Arial><FONT color=#0000ff><FONT size=2><SPAN 
class=243520117-18042007>Serge B.</SPAN></FONT></FONT></FONT></DIV>
<DIV dir=ltr align=left><BR></DIV>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> sap-wug-bounces@mit.edu 
[mailto:sap-wug-bounces@mit.edu] <B>On Behalf Of 
</B>patrick.j.de-valensart@gskbio.com<BR><B>Sent:</B> Wednesday, April 18, 2007 
3:37 AM<BR><B>To:</B> sap-wug@mit.edu<BR><B>Subject:</B> RE: How to integrate a 
BSP in a workflow step?<BR></FONT><BR></DIV>
<DIV></DIV><BR><FONT face=Arial size=2>Hi Serge,</FONT> <BR><BR><FONT face=Arial 
size=2>Thanks a lot for your explanation. But that is exactly what I would do if 
there wasn't the constraint to have dynamic urls. To recap the issue:</FONT> 
<BR><FONT face=Arial size=2>- I have several bsp's. </FONT><BR><FONT face=Arial 
size=2>- My workflow has a background step with a method that determines the bsp 
to be called at each step and send emails accordingly. </FONT><BR><FONT 
face=Arial size=2>- I want to modify that step so that the correct bsp url is 
returned in a container element (instead of being sent out by email) and then 
have an asynchronous step from which my bsp is executed.</FONT> <BR><FONT 
face=Arial size=2>But if I use the swfvisu mechanism it will always point to the 
same url, right?</FONT> <BR><BR><FONT face=Arial size=2>Thanks anyway and kind 
regards,</FONT> <BR><FONT face=Arial size=2>Patrick</FONT> <BR><FONT face=Arial 
size=2><BR></FONT><FONT face=sans-serif color=#800080 size=2><BR>----- Message 
from "Breslavets Sergey" &lt;sergey.breslavets@volvo.com&gt; on Tue, 17 Apr 2007 
12:54:46 -0400 -----</FONT> 
<TABLE width="100%">
  <TBODY>
  <TR>
    <TD width="14%">
      <DIV align=right><FONT size=3><B>To:</B></FONT></DIV>
    <TD width="85%"><FONT size=3>"SAP Workflow Users' Group" 
      &lt;sap-wug@mit.edu&gt;</FONT> 
  <TR>
    <TD>
      <DIV align=right><FONT size=3><B>Subject:</B></FONT></DIV>
    <TD><FONT size=3>RE: How to integrate a BSP in a workflow 
  step?</FONT></TR></TBODY></TABLE><BR><FONT face=Arial color=blue size=2>Hi 
Patric,</FONT> <BR><FONT size=3>&nbsp;</FONT> <BR><FONT face=Arial color=blue 
size=2>you can generate an iview from your bsp and then setup the visualization 
(SWFVISU) for the task to point to the PCD location for the iview, then 
re-register workitems for uwl (function in the portal system admin). After that 
your bsp should start automatically when you execute your workitem from 
UWL.</FONT> <BR><FONT size=3>&nbsp;</FONT> <BR><FONT face=Arial color=blue 
size=2>do you plan to run the workitems from sapgui as well? there are different 
way the workitem is executed from uwl and from sapgui inbox. if you plan to use 
sapgui inbox as well then you'd need to have your task method</FONT><FONT 
size=3> </FONT><FONT face=Arial color=blue size=2>to call your bsp and take care 
of sso. </FONT><BR><FONT size=3>&nbsp;</FONT> <BR><FONT face=Arial color=blue 
size=2>also, your bsp application has to handle all the workitem operations 
(lock, unlock, complete, etc.) </FONT><BR><FONT size=3>&nbsp;</FONT> <BR><FONT 
face=Arial color=blue size=2>hope this help,</FONT> <BR><FONT face=Arial 
color=blue size=2>Serge</FONT> <BR><BR>
<HR>
<FONT face=Tahoma size=2><B>From:</B> sap-wug-bounces@mit.edu 
[mailto:sap-wug-bounces@mit.edu] <B>On Behalf Of 
</B>patrick.j.de-valensart@gskbio.com<B><BR>Sent:</B> Tuesday, April 17, 2007 
11:38 AM<B><BR>To:</B> sap-wug@mit.edu<B><BR>Subject:</B> How to integrate a BSP 
in a workflow step?</FONT><FONT size=3><BR></FONT><BR><FONT face=Arial 
size=2><BR>Hi wug'ers,</FONT><FONT size=3> <BR></FONT><FONT face=Arial 
size=2><BR>I have an old custom workflow used for access request approval. That 
workflow has a rather uncommon logic: it is first sending out a variable number 
of emails (through a custom method) each containing dynamically generated url 
(the same custom method is generating the url's) pointing to custom BSP's. It is 
then followed by a wait for event step, and the expected event is generated by 
the BSP's when they are executed by the users who received the emails. 
</FONT><FONT size=3><BR></FONT><FONT face=Arial size=2><BR>Now we are 
implementing UWL, but we do not want to integrate emails in it. Therefore I need 
to have this workflow generating workitems instead of sending emails. The 
workitems must call the BSP's dynamically (the url could be contained in a 
container element for example), and must be asynchronous so that they can 
terminate with the events published by the BSP's. What would be the best way to 
achieve this? I tried with webforms and web service steps, but this is where I 
am starting to get lost...</FONT><FONT size=3> <BR></FONT><FONT face=Arial 
size=2><BR>Any help or tip on this will be greatly appreciated...</FONT><FONT 
size=3> <BR></FONT><FONT face=Arial size=2><BR>Thanks a lot,</FONT><FONT size=3> 
</FONT><FONT face=Arial size=2><BR>Patrick</FONT><FONT size=3> </FONT><BR>
<TABLE>
  <TBODY>
  <TR>
    <TD bgColor=#ffffff><FONT color=#000000>The information contained in this 
      message is confidential and is intended for the addressee(s) only. This 
      information may also be legally privileged. If you have received this 
      message in error or there are any problems please notify the originator 
      immediately. The unauthorized use, disclosure, copying or alteration of 
      this message is strictly forbidden. GlaxoSmithKline Biologicals will not 
      be liable for direct, special, indirect or consequential damages arising 
      from alteration of the contents of this message by a third party or as a 
      result of any virus being passed on.<BR></FONT></TD></TR></TBODY></TABLE>
<TABLE>
  <TBODY>
  <TR>
    <TD bgColor=#ffffff><FONT color=#000000>L'information contenue dans ce 
      message est confidentielle et dediee exclusivement au(x) destinataire(s). 
      Cette information peut egalement etre de nature legalement privilegiee. Si 
      vous avez recu ce message par erreur ou s'il y a un probleme, priere d'en 
      avertir l'expediteur immediatement. L'usage illicite, la divulgation, la 
      copie ou la modification de ce message sont strictement interdits. 
      GlaxoSmithKline Biologicals ne peut etre tenue responsable des dommages 
      directs, speciaux, indirects ou consecutifs resultant de la modification 
      du contenu du message par un tiers ou d'un virus transmis avec le 
      message.<BR></FONT></TD></TR></TBODY></TABLE></BODY></HTML>