<HTML><BODY style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space; "><BR><DIV><DIV>On Jun 13, 2007, at 3:01 PM, Luis Assunção wrote:</DIV><BR class="Apple-interchange-newline"><BLOCKQUOTE type="cite"><SPAN class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><DIV class="Section1"><P class="MsoNormal"><FONT size="2" color="navy" face="Arial"><SPAN style="font-size: 10.0pt;font-family:Arial;color:navy; color: rgb(0, 0, 128); font-size: 13.3333px; "><SPAN class="Apple-style-span" style="color: rgb(0, 0, 128); font-family: Arial; font-size: 13.3333px; ">Ilkay</SPAN></SPAN></FONT></P><DIV><FONT size="2" color="navy" face="Arial"><SPAN style="font-size: 10.0pt;font-family:Arial;color:navy; color: rgb(0, 0, 128); font-size: 13.3333px; "><SPAN class="Apple-style-span" style="color: rgb(0, 0, 128); font-family: Arial; font-size: 13.3333px; "> </SPAN></SPAN></FONT><BR class="khtml-block-placeholder"></DIV><P class="MsoNormal"><FONT size="2" color="navy" face="Arial"><SPAN style="font-size: 10.0pt;font-family:Arial;color:navy; color: rgb(0, 0, 128); font-size: 13.3333px; "><SPAN class="Apple-style-span" style="color: rgb(0, 0, 128); font-family: Arial; font-size: 13.3333px; ">First of all thank you for your answer, but I have some questions about your suggestion.</SPAN></SPAN></FONT></P><P class="MsoNormal" style="margin-left:18.0pt; font-family: Times New Roman; font-size: 16px; "><FONT size="2" color="navy" face="Arial"><SPAN style="font-size:10.0pt;font-family:Arial;color:navy; color: rgb(0, 0, 128); font-size: 13.3333px; "><SPAN class="Apple-style-span" style="color: rgb(0, 0, 128); font-family: Arial; font-size: 13.3333px; ">-Did you suggest that I develop new actors or there is some kind of actors in Kepler, ready to use, with the functionality (task-assigner; Check-Task) that you have proposed?</SPAN></SPAN></FONT></P></DIV></SPAN></BLOCKQUOTE><DIV>I suggested new actors.</DIV><BR><BLOCKQUOTE type="cite"><SPAN class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><DIV class="Section1"><P class="MsoNormal" style="margin-left:18.0pt; font-family: Times New Roman; font-size: 16px; "><FONT size="2" color="navy" face="Arial"><SPAN style="font-size:10.0pt;font-family:Arial;color:navy; color: rgb(0, 0, 128); font-size: 13.3333px; "><SPAN class="Apple-style-span" style="color: rgb(0, 0, 128); font-family: Arial; font-size: 13.3333px; ">-On Check Task1 are you suggested I call a web service that only responds when K-1 result is available?</SPAN></SPAN></FONT></P><P class="MsoNormal" style="margin-left:18.0pt; font-family: Times New Roman; font-size: 16px; "><FONT size="2" color="navy" face="Arial"><SPAN style="font-size:10.0pt;font-family:Arial;color:navy; color: rgb(0, 0, 128); font-size: 13.3333px; "><SPAN class="Apple-style-span" style="color: rgb(0, 0, 128); font-family: Arial; font-size: 13.3333px; ">-After I sent my previous message I have tried kepler to invoke Web services but I found many limitations. First The Web Service actor only works with simple data types and it don’t support asynchronous calls and callbacks, a easy way to solve my problem: task3 will be notified on completion of  task4(K-1).</SPAN></SPAN></FONT></P></DIV></SPAN></BLOCKQUOTE><DIV><BR class="khtml-block-placeholder"></DIV><DIV><BR class="khtml-block-placeholder"></DIV>Pasted below a messages from Dan Crawl on our new web service actor. </DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>Dan: We should think about being able to do asynchronous calls and callbacks. It might be as simple as having a notification port.</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>-ilkay</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><BR></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Hi,</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><BR></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">I've created a new actor that can invoke web service operations with</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">complex types. It's called WSWithComplexTypes. To see it in action,</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">look at these workflows in $KEPLER/workflows/test/spa/:</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><BR></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">NewWebServiceArrayReturnTest.xml</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">NewWebServiceDecodeOutputTest.xml</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">NewWebServiceNestedTypesTest.xml</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><BR></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><BR></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">WSWithComplexTypes invokes web services defined by WSDLs. Similar</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">to WebService, given a web service WSDL URL and an operation name,</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">WSWithComplexTypes specializes its input and output ports to reflect</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">the input and output parameters of the operation. For simple web</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">service types, e.g., string, int, double, etc., the ports are set to</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">the matching Ptolemy types. For complex web service types, the ports</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">are set to XMLTOKEN. When the actor fires, it reads each input port,</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">invokes the web service operation with the input data, and outputs the</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">response to the output ports.</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><BR></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">WSWithComplexTypes also has two parameters, inputMechanism and</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">outputMechanism, that aid in working with complex web service types. Their</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">default setting is 'simple', which causes WSWithComplexTypes to specialize</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">its ports as already described. By setting to 'composite', a composite</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">actor is additionally created for each (web service operation) parameter</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">that is a complex type. Each composite actor contains the XMLAssembler or</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">XMLDisassembler actors needed to build the complex web service type, and</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">the external ports are all simple Ptolemy types. Changing the mechanism</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">back to 'simple' deletes the connected composite actors. (If you have</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">made changes to the composite actors and don't want them lost, disconnect</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">them from WSWithComplexTypes before changing the mechanism to 'simple').</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><BR></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">If you have any questions, let me know.</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><BR></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">  --dan</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">________</DIV><DIV><BR><DIV><BR class="khtml-block-placeholder"></DIV><BR><BLOCKQUOTE type="cite"><SPAN class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><DIV class="Section1"><DIV style="margin-left: 18pt; font-family: Times New Roman; font-size: 16px; "></DIV><P class="MsoNormal" style="margin-left:18.0pt; font-family: Times New Roman; font-size: 16px; "><FONT size="2" color="navy" face="Arial"><SPAN style="font-size:10.0pt;font-family:Arial;color:navy; color: rgb(0, 0, 128); font-size: 13.3333px; "><SPAN class="Apple-style-span" style="color: rgb(0, 0, 128); font-family: Arial; font-size: 13.3333px; ">I appreciate If you can give me more some help</SPAN></SPAN></FONT></P><DIV style="margin-left: 18pt; font-family: Times New Roman; font-size: 16px; "><FONT size="2" color="navy" face="Arial"><SPAN style="font-size:10.0pt;font-family:Arial;color:navy; color: rgb(0, 0, 128); font-size: 13.3333px; "><SPAN class="Apple-style-span" style="color: rgb(0, 0, 128); font-family: Arial; font-size: 13.3333px; "> </SPAN></SPAN></FONT><BR class="khtml-block-placeholder"></DIV><P class="MsoNormal" style="margin-left:18.0pt; font-family: Times New Roman; font-size: 16px; "><FONT size="2" color="navy" face="Arial"><SPAN style="font-size:10.0pt;font-family:Arial;color:navy; color: rgb(0, 0, 128); font-size: 13.3333px; "><SPAN class="Apple-style-span" style="color: rgb(0, 0, 128); font-family: Arial; font-size: 13.3333px; ">Thanks</SPAN></SPAN></FONT></P><P class="MsoNormal" style="margin-left:18.0pt; font-family: Times New Roman; font-size: 16px; "><FONT size="2" color="navy" face="Arial"><SPAN style="font-size:10.0pt;font-family:Arial;color:navy; color: rgb(0, 0, 128); font-size: 13.3333px; "><SPAN class="Apple-style-span" style="color: rgb(0, 0, 128); font-family: Arial; font-size: 13.3333px; ">Luis</SPAN></SPAN></FONT></P><DIV><FONT size="2" color="navy" face="Arial"><SPAN style="font-size: 10.0pt;font-family:Arial;color:navy; color: rgb(0, 0, 128); font-size: 13.3333px; "><SPAN class="Apple-style-span" style="color: rgb(0, 0, 128); font-family: Arial; font-size: 13.3333px; "> </SPAN></SPAN></FONT><BR class="khtml-block-placeholder"></DIV><P class="MsoNormal" style="margin-left:36.0pt; font-family: Times New Roman; font-size: 16px; "><FONT size="2" face="Tahoma"><SPAN style="font-size:10.0pt;font-family:Tahoma; font-size: 13.3333px; "><SPAN class="Apple-style-span" style="font-family: Tahoma; font-size: 13.3333px; ">-----Original Message-----</SPAN><BR style="font-family: Tahoma; font-size: 13.3333px; "><B style="font-family: Tahoma; font-size: 13.3333px; font-weight: bold; "><SPAN style="font-weight:bold; font-family: Tahoma; font-size: 13.3333px; "><SPAN class="Apple-style-span" style="font-family: Tahoma; font-size: 13.3333px; font-weight: bold; ">From:</SPAN></SPAN></B><SPAN class="Apple-style-span" style="font-family: Tahoma; font-size: 13.3333px; "> Ilkay Altintas [<A href="mailto:altintas@sdsc.edu">mailto:altintas@sdsc.edu</A>] </SPAN><BR style="font-family: Tahoma; font-size: 13.3333px; "><B style="font-family: Tahoma; font-size: 13.3333px; font-weight: bold; "><SPAN style="font-weight:bold; font-family: Tahoma; font-size: 13.3333px; "><SPAN class="Apple-style-span" style="font-family: Tahoma; font-size: 13.3333px; font-weight: bold; ">Sent:</SPAN></SPAN></B><SPAN class="Apple-style-span" style="font-family: Tahoma; font-size: 13.3333px; "> quarta-feira, 13 de Junho de 2007 1:28</SPAN><BR style="font-family: Tahoma; font-size: 13.3333px; "><B style="font-family: Tahoma; font-size: 13.3333px; font-weight: bold; "><SPAN style="font-weight:bold; font-family: Tahoma; font-size: 13.3333px; "><SPAN class="Apple-style-span" style="font-family: Tahoma; font-size: 13.3333px; font-weight: bold; ">To:</SPAN></SPAN></B><SPAN class="Apple-style-span" style="font-family: Tahoma; font-size: 13.3333px; "> Luis Assunção</SPAN><BR style="font-family: Tahoma; font-size: 13.3333px; "><B style="font-family: Tahoma; font-size: 13.3333px; font-weight: bold; "><SPAN style="font-weight:bold; font-family: Tahoma; font-size: 13.3333px; "><SPAN class="Apple-style-span" style="font-family: Tahoma; font-size: 13.3333px; font-weight: bold; ">Cc:</SPAN></SPAN></B><SPAN class="Apple-style-span" style="font-family: Tahoma; font-size: 13.3333px; "> <A href="mailto:Kepler-users@ecoinformatics.org">Kepler-users@ecoinformatics.org</A></SPAN><BR style="font-family: Tahoma; font-size: 13.3333px; "><B style="font-family: Tahoma; font-size: 13.3333px; font-weight: bold; "><SPAN style="font-weight:bold; font-family: Tahoma; font-size: 13.3333px; "><SPAN class="Apple-style-span" style="font-family: Tahoma; font-size: 13.3333px; font-weight: bold; ">Subject:</SPAN></SPAN></B><SPAN class="Apple-style-span" style="font-family: Tahoma; font-size: 13.3333px; "> Re: [kepler-users] Workflow with instances dependency</SPAN></SPAN></FONT></P><DIV style="margin-left: 36pt; font-family: Times New Roman; font-size: 16px; "><FONT size="3" face="Times New Roman"><SPAN style="font-size:12.0pt; font-family: Times New Roman; font-size: 16px; "><SPAN class="Apple-style-span" style="font-family: Times New Roman; font-size: 16px; "> </SPAN></SPAN></FONT><BR class="khtml-block-placeholder"></DIV><P class="MsoNormal" style="margin-left:36.0pt; font-family: Times New Roman; font-size: 16px; "><FONT size="3" face="Times New Roman"><SPAN style="font-size:12.0pt; font-family: Times New Roman; font-size: 16px; "><SPAN class="Apple-style-span" style="font-family: Times New Roman; font-size: 16px; ">Luis,</SPAN></SPAN></FONT></P><DIV><DIV style="margin-left: 36pt; font-family: Times New Roman; font-size: 16px; "><FONT size="3" face="Times New Roman"><SPAN style="font-size:12.0pt; font-family: Times New Roman; font-size: 16px; "><SPAN class="Apple-style-span" style="font-family: Times New Roman; font-size: 16px; "> </SPAN></SPAN></FONT><BR class="khtml-block-placeholder"></DIV></DIV><DIV><P class="MsoNormal" style="margin-left:36.0pt; font-family: Times New Roman; font-size: 16px; "><FONT size="3" face="Times New Roman"><SPAN style="font-size:12.0pt; font-family: Times New Roman; font-size: 16px; "><SPAN class="Apple-style-span" style="font-family: Times New Roman; font-size: 16px; ">You can have a workflow the has the instances of web services for item K of your simulation under PN or SDF (given n below is known before scheduling) and has monitoring actors (check and get results if necessary) for the tasks in item K-1. So assuming that your Task 1 through 4 depends also on each other and there are n items, one way to model it is:</SPAN></SPAN></FONT></P></DIV><DIV><DIV style="margin-left: 36pt; font-family: Times New Roman; font-size: 16px; "><FONT size="3" face="Times New Roman"><SPAN style="font-size:12.0pt; font-family: Times New Roman; font-size: 16px; "><SPAN class="Apple-style-span" style="font-family: Times New Roman; font-size: 16px; "> </SPAN></SPAN></FONT><BR class="khtml-block-placeholder"></DIV></DIV><DIV><DIV style="margin-left: 36pt; font-family: Times New Roman; font-size: 16px; "><FONT size="3" face="Times New Roman"><SPAN style="font-size:12.0pt; font-family: Times New Roman; font-size: 16px; "><SPAN class="Apple-style-span" style="font-family: Times New Roman; font-size: 16px; "> </SPAN></SPAN></FONT><BR class="khtml-block-placeholder"></DIV></DIV><DIV><P class="MsoNormal" style="margin-left:36.0pt; font-family: Times New Roman; font-size: 16px; "><FONT size="3" face="Times New Roman"><SPAN style="font-size:12.0pt; font-family: Times New Roman; font-size: 16px; "><SPAN class="Apple-style-span" style="font-family: Times New Roman; font-size: 16px; ">                                                            Check Task1(K-1)    Check Task4 (K-1)</SPAN></SPAN></FONT></P></DIV><DIV><P class="MsoNormal" style="margin-left:36.0pt; font-family: Times New Roman; font-size: 16px; "><FONT size="3" face="Times New Roman"><SPAN style="font-size:12.0pt; font-family: Times New Roman; font-size: 16px; "><SPAN class="Apple-style-span" style="font-family: Times New Roman; font-size: 16px; ">                                                                  |                                             |</SPAN></SPAN></FONT></P></DIV><DIV><P class="MsoNormal" style="margin-left:36.0pt; font-family: Times New Roman; font-size: 16px; "><FONT size="3" face="Times New Roman"><SPAN style="font-size:12.0pt; font-family: Times New Roman; font-size: 16px; "><SPAN class="Apple-style-span" style="font-family: Times New Roman; font-size: 16px; ">                                                                 V                                            V</SPAN></SPAN></FONT></P></DIV><DIV><P class="MsoNormal" style="margin-left:36.0pt; font-family: Times New Roman; font-size: 16px; "><FONT size="3" face="Times New Roman"><SPAN style="font-size:12.0pt; font-family: Times New Roman; font-size: 16px; "><SPAN class="Apple-style-span" style="font-family: Times New Roman; font-size: 16px; ">K-Assigner(0..K..n) -> Task1 (K) -> Task2 (K)-------------- -> Task3 (K) -> Task4 (K) </SPAN></SPAN></FONT></P></DIV><DIV><DIV style="margin-left: 36pt; font-family: Times New Roman; font-size: 16px; "><FONT size="3" face="Times New Roman"><SPAN style="font-size:12.0pt; font-family: Times New Roman; font-size: 16px; "><SPAN class="Apple-style-span" style="font-family: Times New Roman; font-size: 16px; "> </SPAN></SPAN></FONT><BR class="khtml-block-placeholder"></DIV></DIV><DIV><P class="MsoNormal" style="margin-left:36.0pt; font-family: Times New Roman; font-size: 16px; "><FONT size="3" face="Times New Roman"><SPAN style="font-size:12.0pt; font-family: Times New Roman; font-size: 16px; "><SPAN class="Apple-style-span" style="font-family: Times New Roman; font-size: 16px; ">K-Assigner will keep assigning the new items as the item before is processed. In this way, you can model it using web services as only web services for one item will be used at one time. </SPAN></SPAN></FONT></P></DIV><DIV><DIV style="margin-left: 36pt; font-family: Times New Roman; font-size: 16px; "><FONT size="3" face="Times New Roman"><SPAN style="font-size:12.0pt; font-family: Times New Roman; font-size: 16px; "><SPAN class="Apple-style-span" style="font-family: Times New Roman; font-size: 16px; "> </SPAN></SPAN></FONT><BR class="khtml-block-placeholder"></DIV></DIV><DIV><P class="MsoNormal" style="margin-left:36.0pt; font-family: Times New Roman; font-size: 16px; "><FONT size="3" face="Times New Roman"><SPAN style="font-size:12.0pt; font-family: Times New Roman; font-size: 16px; "><SPAN class="Apple-style-span" style="font-family: Times New Roman; font-size: 16px; ">If you do this in PN, you might end up having thousands of web services at the same time for Task 1, but you can get around it by limiting it in the workflow by the K-Assigner actor.</SPAN></SPAN></FONT></P></DIV><DIV><DIV style="margin-left: 36pt; font-family: Times New Roman; font-size: 16px; "><FONT size="3" face="Times New Roman"><SPAN style="font-size:12.0pt; font-family: Times New Roman; font-size: 16px; "><SPAN class="Apple-style-span" style="font-family: Times New Roman; font-size: 16px; "> </SPAN></SPAN></FONT><BR class="khtml-block-placeholder"></DIV></DIV><DIV><DIV style="margin-left: 36pt; font-family: Times New Roman; font-size: 16px; "><FONT size="3" face="Times New Roman"><SPAN style="font-size:12.0pt; font-family: Times New Roman; font-size: 16px; "><SPAN class="Apple-style-span" style="font-family: Times New Roman; font-size: 16px; "> </SPAN></SPAN></FONT><BR class="khtml-block-placeholder"></DIV></DIV><DIV><P class="MsoNormal" style="margin-left:36.0pt; font-family: Times New Roman; font-size: 16px; "><FONT size="3" face="Times New Roman"><SPAN style="font-size:12.0pt; font-family: Times New Roman; font-size: 16px; "><SPAN class="Apple-style-span" style="font-family: Times New Roman; font-size: 16px; ">There might be more efficient ways of doing the same thing by keeping two instances running at the same time using PN. Something like below, but the one below won't work.</SPAN></SPAN></FONT></P></DIV><DIV><DIV style="margin-left: 36pt; font-family: Times New Roman; font-size: 16px; "><FONT size="3" face="Times New Roman"><SPAN style="font-size:12.0pt; font-family: Times New Roman; font-size: 16px; "><SPAN class="Apple-style-span" style="font-family: Times New Roman; font-size: 16px; "> </SPAN></SPAN></FONT><BR class="khtml-block-placeholder"></DIV></DIV><DIV><DIV style="margin-left: 36pt; font-family: Times New Roman; font-size: 16px; "><FONT size="3" face="Times New Roman"><SPAN style="font-size:12.0pt; font-family: Times New Roman; font-size: 16px; "><SPAN class="Apple-style-span" style="font-family: Times New Roman; font-size: 16px; "> </SPAN></SPAN></FONT><BR class="khtml-block-placeholder"></DIV></DIV><DIV><P class="MsoNormal" style="margin-left:36.0pt; font-family: Times New Roman; font-size: 16px; "><FONT size="3" face="Times New Roman"><SPAN style="font-size:12.0pt; font-family: Times New Roman; font-size: 16px; "><SPAN class="Apple-style-span" style="font-family: Times New Roman; font-size: 16px; ">K-Assigner(0..K..n) -> Task1 (K-1) -> Task2 (K-1) -> Task3 (K-1) -> Task4 (K-1)</SPAN></SPAN></FONT></P></DIV><DIV><P class="MsoNormal" style="margin-left:36.0pt; font-family: Times New Roman; font-size: 16px; "><FONT size="3" face="Times New Roman"><SPAN style="font-size:12.0pt; font-family: Times New Roman; font-size: 16px; "><SPAN class="Apple-style-span" style="font-family: Times New Roman; font-size: 16px; ">                                  |                           |                                                            |</SPAN></SPAN></FONT></P></DIV><DIV><P class="MsoNormal" style="margin-left:36.0pt; font-family: Times New Roman; font-size: 16px; "><FONT size="3" face="Times New Roman"><SPAN style="font-size:12.0pt; font-family: Times New Roman; font-size: 16px; "><SPAN class="Apple-style-span" style="font-family: Times New Roman; font-size: 16px; ">                                  |                          V                                                           V </SPAN></SPAN></FONT></P></DIV><DIV><P class="MsoNormal" style="margin-left:36.0pt; font-family: Times New Roman; font-size: 16px; "><FONT size="3" face="Times New Roman"><SPAN style="font-size:12.0pt; font-family: Times New Roman; font-size: 16px; "><SPAN class="Apple-style-span" style="font-family: Times New Roman; font-size: 16px; ">                                  -> Task1 (K) -> Task2 (K) ------------------------> Task3 (K) -> Task4 (K)</SPAN></SPAN></FONT></P></DIV><DIV><DIV style="margin-left: 36pt; font-family: Times New Roman; font-size: 16px; "><FONT size="3" face="Times New Roman"><SPAN style="font-size:12.0pt; font-family: Times New Roman; font-size: 16px; "><SPAN class="Apple-style-span" style="font-family: Times New Roman; font-size: 16px; "> </SPAN></SPAN></FONT><BR class="khtml-block-placeholder"></DIV></DIV><DIV><DIV style="margin-left: 36pt; font-family: Times New Roman; font-size: 16px; "><FONT size="3" face="Times New Roman"><SPAN style="font-size:12.0pt; font-family: Times New Roman; font-size: 16px; "><SPAN class="Apple-style-span" style="font-family: Times New Roman; font-size: 16px; "> </SPAN></SPAN></FONT><BR class="khtml-block-placeholder"></DIV></DIV><DIV><P class="MsoNormal" style="margin-left:36.0pt; font-family: Times New Roman; font-size: 16px; "><FONT size="3" face="Times New Roman"><SPAN style="font-size:12.0pt; font-family: Times New Roman; font-size: 16px; "><SPAN class="Apple-style-span" style="font-family: Times New Roman; font-size: 16px; ">Hope you get the illustrations correctly...</SPAN></SPAN></FONT></P></DIV><DIV><DIV style="margin-left: 36pt; font-family: Times New Roman; font-size: 16px; "><FONT size="3" face="Times New Roman"><SPAN style="font-size:12.0pt; font-family: Times New Roman; font-size: 16px; "><SPAN class="Apple-style-span" style="font-family: Times New Roman; font-size: 16px; "> </SPAN></SPAN></FONT><BR class="khtml-block-placeholder"></DIV></DIV><DIV><P class="MsoNormal" style="margin-left:36.0pt; font-family: Times New Roman; font-size: 16px; "><FONT size="3" face="Times New Roman"><SPAN style="font-size:12.0pt; font-family: Times New Roman; font-size: 16px; "><SPAN class="Apple-style-span" style="font-family: Times New Roman; font-size: 16px; ">-ilkay</SPAN></SPAN></FONT></P></DIV><DIV><DIV style="margin-left: 36pt; font-family: Times New Roman; font-size: 16px; "><FONT size="3" face="Times New Roman"><SPAN style="font-size:12.0pt; font-family: Times New Roman; font-size: 16px; "><SPAN class="Apple-style-span" style="font-family: Times New Roman; font-size: 16px; "> </SPAN></SPAN></FONT><BR class="khtml-block-placeholder"></DIV><DIV><DIV><P class="MsoNormal" style="margin-left:36.0pt; font-family: Times New Roman; font-size: 16px; "><FONT size="3" face="Times New Roman"><SPAN style="font-size:12.0pt; font-family: Times New Roman; font-size: 16px; "><SPAN class="Apple-style-span" style="font-family: Times New Roman; font-size: 16px; ">On Jun 6, 2007, at 5:44 PM, Luis Assunção wrote:</SPAN></SPAN></FONT></P></DIV><P class="MsoNormal" style="margin-left:36.0pt; font-family: Times New Roman; font-size: 16px; "><FONT size="3" face="Times New Roman"><SPAN style="font-size:12.0pt; font-family: Times New Roman; font-size: 16px; "><BR style="font-family: Times New Roman; font-size: 16px; "><BR style="font-family: Times New Roman; font-size: 16px; "></SPAN></FONT></P><DIV><P class="MsoNormal" style="margin-left:36.0pt; font-family: Times New Roman; font-size: 16px; "><FONT size="2" face="Arial"><SPAN style="font-size:10.0pt;font-family:Arial; font-size: 13.3333px; "><SPAN class="Apple-style-span" style="font-family: Arial; font-size: 13.3333px; ">Hi</SPAN></SPAN></FONT></P><DIV><DIV style="margin-left: 36pt; font-family: Times New Roman; font-size: 16px; "><FONT size="2" face="Arial"><SPAN style="font-size:10.0pt;font-family:Arial; font-size: 13.3333px; "><SPAN class="Apple-style-span" style="font-family: Arial; font-size: 13.3333px; "> </SPAN></SPAN></FONT><BR class="khtml-block-placeholder"></DIV></DIV><P class="MsoNormal" style="margin-left:36.0pt; font-family: Times New Roman; font-size: 16px; "><FONT size="2" face="Arial"><SPAN style="font-size:10.0pt;font-family:Arial; font-size: 13.3333px; "><SPAN class="Apple-style-span" style="font-family: Arial; font-size: 13.3333px; ">In my current research I have to modulate a simulation where I have thousands of input items and for each item I have the following workflow.</SPAN></SPAN></FONT></P><DIV><DIV style="margin-left: 36pt; font-family: Times New Roman; font-size: 16px; "><FONT size="2" face="Arial"><SPAN style="font-size:10.0pt;font-family:Arial; font-size: 13.3333px; "><SPAN class="Apple-style-span" style="font-family: Arial; font-size: 13.3333px; "> </SPAN></SPAN></FONT><BR class="khtml-block-placeholder"></DIV></DIV><P class="MsoNormal" style="margin-left:36.0pt; font-family: Times New Roman; font-size: 16px; "><FONT size="2" face="Arial"><SPAN style="font-size:10.0pt;font-family:Arial; font-size: 13.3333px; "><SPAN class="Apple-style-span" style="font-family: Arial; font-size: 13.3333px; ">Task1 ->Task2->Task3->Task4</SPAN></SPAN></FONT></P><P class="MsoNormal" style="margin-left:36.0pt; font-family: Times New Roman; font-size: 16px; "><FONT size="2" face="Arial"><SPAN style="font-size:10.0pt;font-family:Arial; font-size: 13.3333px; "><SPAN class="Apple-style-span" style="font-family: Arial; font-size: 13.3333px; ">But Task2 of item K depends of the completion of Task1 from item K-1 and Task3 of item K depends of the completion of Task4 from item K-1</SPAN></SPAN></FONT></P><DIV><DIV style="margin-left: 36pt; font-family: Times New Roman; font-size: 16px; "><FONT size="3" face="Times New Roman"><SPAN style="font-size:12.0pt; font-family: Times New Roman; font-size: 16px; "><SPAN class="Apple-style-span" style="font-family: Times New Roman; font-size: 16px; "> </SPAN></SPAN></FONT><BR class="khtml-block-placeholder"></DIV></DIV><P class="MsoNormal" style="margin-left:36.0pt; font-family: Times New Roman; font-size: 16px; "><FONT size="2" face="Arial"><SPAN style="font-size:10.0pt;font-family:Arial; font-size: 13.3333px; "><SPAN class="Apple-style-span" style="font-family: Arial; font-size: 13.3333px; ">I am interested to use modeling based on Workflows and I am also interested to support task execution as a Web Service.</SPAN></SPAN></FONT></P><P class="MsoNormal" style="margin-left:36.0pt; font-family: Times New Roman; font-size: 16px; "><FONT size="2" face="Arial"><SPAN style="font-size:10.0pt;font-family:Arial; font-size: 13.3333px; "><SPAN class="Apple-style-span" style="font-family: Arial; font-size: 13.3333px; ">I am tried to modeling using Kepler with Web Service actor but I think it isn’t suitable to describe an workflow with thousand of instances (huge graphical boxes) and worst I don’t know the best way to describe task execution with dependencies from previous execution?</SPAN></SPAN></FONT></P><DIV><DIV style="margin-left: 36pt; font-family: Times New Roman; font-size: 16px; "><FONT size="2" face="Arial"><SPAN style="font-size:10.0pt;font-family:Arial; font-size: 13.3333px; "><SPAN class="Apple-style-span" style="font-family: Arial; font-size: 13.3333px; "> </SPAN></SPAN></FONT><BR class="khtml-block-placeholder"></DIV></DIV><P class="MsoNormal" style="margin-left:36.0pt; font-family: Times New Roman; font-size: 16px; "><FONT size="2" face="Arial"><SPAN style="font-size:10.0pt;font-family:Arial; font-size: 13.3333px; "><SPAN class="Apple-style-span" style="font-family: Arial; font-size: 13.3333px; ">Can someone advise me about what is the best pattern to this case?</SPAN></SPAN></FONT></P><DIV><DIV style="margin-left: 36pt; font-family: Times New Roman; font-size: 16px; "><FONT size="2" face="Arial"><SPAN style="font-size:10.0pt;font-family:Arial; font-size: 13.3333px; "><SPAN class="Apple-style-span" style="font-family: Arial; font-size: 13.3333px; "> </SPAN></SPAN></FONT><BR class="khtml-block-placeholder"></DIV></DIV><P class="MsoNormal" style="margin-left:36.0pt; font-family: Times New Roman; font-size: 16px; "><FONT size="2" face="Arial"><SPAN style="font-size:10.0pt;font-family:Arial; font-size: 13.3333px; "><SPAN class="Apple-style-span" style="font-family: Arial; font-size: 13.3333px; ">I appreciate in advance some advising.</SPAN></SPAN></FONT></P><P class="MsoNormal" style="margin-left:36.0pt; font-family: Times New Roman; font-size: 16px; "><FONT size="2" face="Arial"><SPAN style="font-size:10.0pt;font-family:Arial; font-size: 13.3333px; "><SPAN class="Apple-style-span" style="font-family: Arial; font-size: 13.3333px; ">Many thanks</SPAN></SPAN></FONT></P><DIV><DIV style="margin-left: 36pt; font-family: Times New Roman; font-size: 16px; "><FONT size="2" face="Arial"><SPAN style="font-size:10.0pt;font-family:Arial; font-size: 13.3333px; "><SPAN class="Apple-style-span" style="font-family: Arial; font-size: 13.3333px; "> </SPAN></SPAN></FONT><BR class="khtml-block-placeholder"></DIV></DIV><P class="MsoNormal" style="margin-left:36.0pt; font-family: Times New Roman; font-size: 16px; "><FONT size="2" face="Arial"><SPAN style="font-size:10.0pt;font-family:Arial; font-size: 13.3333px; "><SPAN class="Apple-style-span" style="font-family: Arial; font-size: 13.3333px; ">Luis Assuncao</SPAN></SPAN></FONT></P><P class="MsoNormal" style="margin-left:36.0pt; font-family: Times New Roman; font-size: 16px; "><FONT size="2" face="Arial"><SPAN style="font-size:10.0pt;font-family:Arial; font-size: 13.3333px; "><SPAN class="Apple-style-span" style="font-family: Arial; font-size: 13.3333px; ">Email: </SPAN><A href="mailto:lass@isel.ipl.pt"><SPAN class="Apple-style-span" style="color: rgb(0, 0, 255); font-family: Arial; font-size: 13.3333px; -khtml-text-decorations-in-effect: underline; ">lass@isel.ipl.pt</SPAN></A></SPAN></FONT></P><DIV><DIV style="margin-left: 36pt; font-family: Times New Roman; font-size: 16px; "><FONT size="2" face="Arial"><SPAN lang="PT" style="font-size:10.0pt;font-family:Arial; font-size: 13.3333px; "><SPAN class="Apple-style-span" style="font-family: Arial; font-size: 13.3333px; "> </SPAN></SPAN></FONT><BR class="khtml-block-placeholder"></DIV></DIV><DIV><DIV style="margin-left: 36pt; font-family: Times New Roman; font-size: 16px; "><FONT size="2" face="Arial"><SPAN lang="PT" style="font-size:10.0pt;font-family:Arial; font-size: 13.3333px; "><SPAN class="Apple-style-span" style="font-family: Arial; font-size: 13.3333px; "> </SPAN></SPAN></FONT><BR class="khtml-block-placeholder"></DIV></DIV></DIV><DIV><P class="MsoNormal" style="margin-left:36.0pt; font-family: Times New Roman; font-size: 16px; "><FONT size="3" face="Times New Roman"><SPAN style="font-size:12.0pt; font-family: Times New Roman; font-size: 16px; "><SPAN class="Apple-style-span" style="font-family: Times New Roman; font-size: 16px; ">_______________________________________________</SPAN></SPAN></FONT></P></DIV><DIV><P class="MsoNormal" style="margin-left:36.0pt; font-family: Times New Roman; font-size: 16px; "><FONT size="3" face="Times New Roman"><SPAN style="font-size:12.0pt; font-family: Times New Roman; font-size: 16px; "><SPAN class="Apple-style-span" style="font-family: Times New Roman; font-size: 16px; ">Kepler-users mailing list</SPAN></SPAN></FONT></P></DIV><DIV><P class="MsoNormal" style="margin-left:36.0pt; font-family: Times New Roman; font-size: 16px; "><FONT size="3" face="Times New Roman"><SPAN style="font-size:12.0pt; font-family: Times New Roman; font-size: 16px; "><A href="mailto:Kepler-users@ecoinformatics.org"><SPAN class="Apple-style-span" style="color: rgb(0, 0, 255); font-family: Times New Roman; font-size: 16px; -khtml-text-decorations-in-effect: underline; ">Kepler-users@ecoinformatics.org</SPAN></A></SPAN></FONT></P></DIV><DIV><P class="MsoNormal" style="margin-left:36.0pt; font-family: Times New Roman; font-size: 16px; "><FONT size="3" face="Times New Roman"><SPAN style="font-size:12.0pt; font-family: Times New Roman; font-size: 16px; "><A href="http://mercury.nceas.ucsb.edu/ecoinformatics/mailman/listinfo/kepler-users"><SPAN class="Apple-style-span" style="color: rgb(0, 0, 255); font-family: Times New Roman; font-size: 16px; -khtml-text-decorations-in-effect: underline; ">http://mercury.nceas.ucsb.edu/ecoinformatics/mailman/listinfo/kepler-users</SPAN></A></SPAN></FONT></P></DIV></DIV><DIV style="margin-left: 36pt; font-family: Times New Roman; font-size: 16px; "><FONT size="3" face="Times New Roman"><SPAN style="font-size:12.0pt; font-family: Times New Roman; font-size: 16px; "><SPAN class="Apple-style-span" style="font-family: Times New Roman; font-size: 16px; "> </SPAN></SPAN></FONT><BR class="khtml-block-placeholder"></DIV><DIV><SPAN style="border-spacing: 0px 0px;text-align:auto;-khtml-text-decorations-in-effect: none; -apple-text-size-adjust: auto;orphans: 2;widows: 2;word-spacing:0px"><SPAN style="border-spacing: 0px 0px;text-align:auto;-khtml-text-decorations-in-effect: none; -apple-text-size-adjust: auto;orphans: 2;widows: 2;word-spacing:0px"><DIV><P class="MsoNormal" style="margin-left:36.0pt; font-family: Times New Roman; font-size: 16px; "><FONT size="1" color="black" face="Helvetica"><SPAN style="font-size:9.0pt;font-family:Helvetica;color:black"><SPAN style="border-spacing: 0px 0px;text-align:auto;-khtml-text-decorations-in-effect: none; -apple-text-size-adjust: auto;orphans: 2;widows: 2;word-spacing:0px">-- </SPAN></SPAN></FONT></P></DIV><DIV><P class="MsoNormal" style="margin-left:36.0pt; font-family: Times New Roman; font-size: 16px; "><FONT size="1" color="black" face="Helvetica"><SPAN style="font-size:9.0pt;font-family:Helvetica;color:black">Ilkay ALTINTAS</SPAN></FONT></P></DIV><DIV><P class="MsoNormal" style="margin-left:36.0pt; font-family: Times New Roman; font-size: 16px; "><FONT size="1" color="black" face="Helvetica"><SPAN style="font-size:9.0pt;font-family:Helvetica;color:black">Lab Director, Scientific Workflow Automation Technologies (SWAT)</SPAN></FONT></P></DIV><DIV><P class="MsoNormal" style="margin-left:36.0pt; font-family: Times New Roman; font-size: 16px; "><FONT size="1" color="black" face="Helvetica"><SPAN style="font-size:9.0pt;font-family:Helvetica;color:black">San Diego Supercomputer Center(SDSC), UCSD</SPAN></FONT></P></DIV><DIV><P class="MsoNormal" style="margin-left:36.0pt; font-family: Times New Roman; font-size: 16px; "><FONT size="1" color="black" face="Helvetica"><SPAN style="font-size:9.0pt;font-family:Helvetica;color:black">9500 Gilman Drive, MC: 0505  La Jolla, CA  92093-0505</SPAN></FONT></P></DIV><DIV><P class="MsoNormal" style="margin-left:36.0pt; font-family: Times New Roman; font-size: 16px; "><FONT size="1" color="black" face="Helvetica"><SPAN style="font-size:9.0pt;font-family:Helvetica;color:black">phone: (858) 822-5453                        fax: (858) 534-8303</SPAN></FONT></P></DIV><DIV><P class="MsoNormal" style="margin-left:36.0pt; font-family: Times New Roman; font-size: 16px; "><FONT size="1" color="black" face="Helvetica"><SPAN style="font-size:9.0pt;font-family:Helvetica;color:black">web: <A href="http://users.sdsc.edu/%7Ealtintas"><SPAN class="apple-style-span"><SPAN style="-khtml-text-decorations-in-effect: underline; color: rgb(0, 0, 255); "><FONT color="#001fe8"><SPAN style="-khtml-text-decorations-in-effect: underline; color: rgb(0, 31, 232); "><SPAN style="-khtml-text-decorations-in-effect: underline; color: rgb(0, 31, 232); "><SPAN style="color:#001FE8; -khtml-text-decorations-in-effect: underline; "><SPAN class="Apple-style-span" style="color: rgb(0, 31, 232); -khtml-text-decorations-in-effect: underline; ">http://users.sdsc.edu/~altintas</SPAN></SPAN></SPAN></SPAN></FONT></SPAN></SPAN></A></SPAN></FONT></P></DIV><P class="MsoNormal" style="margin-left:36.0pt; font-family: Times New Roman; font-size: 16px; "><FONT size="1" color="black" face="Helvetica"><SPAN style="font-size:9.0pt;font-family:Helvetica;color:black"><BR><BR></SPAN></FONT></P></SPAN></SPAN></DIV><DIV style="margin-left: 36pt; font-family: Times New Roman; font-size: 16px; "><FONT size="3" face="Times New Roman"><SPAN style="font-size:12.0pt; font-family: Times New Roman; font-size: 16px; "><SPAN class="Apple-style-span" style="font-family: Times New Roman; font-size: 16px; "> </SPAN></SPAN></FONT><BR class="khtml-block-placeholder"></DIV></DIV></DIV><BR class="Apple-interchange-newline"></SPAN></BLOCKQUOTE></DIV><BR><DIV> <SPAN class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><SPAN class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><SPAN class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">-- </DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Ilkay ALTINTAS</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Lab Director, Scientific Workflow Automation Technologies (SWAT)</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">San Diego Supercomputer Center(SDSC), UCSD</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">9500 Gilman Drive, MC: 0505  La Jolla, CA  92093-0505</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">phone: (858) 822-5453                        fax: (858) 534-8303</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">web: <A href="http://users.sdsc.edu/%7Ealtintas"><FONT class="Apple-style-span" color="#001FE8"><SPAN class="Apple-style-span" style="color: rgb(0, 31, 232); -khtml-text-decorations-in-effect: underline; "><SPAN class="Apple-style-span" style="color: rgb(0, 31, 232); -khtml-text-decorations-in-effect: underline; "><SPAN class="Apple-style-span" style="color: rgb(0, 31, 232); -khtml-text-decorations-in-effect: underline; ">http://users.sdsc.edu/~altintas</SPAN></SPAN></SPAN></FONT></A></DIV><BR class="Apple-interchange-newline"></SPAN></SPAN></SPAN> </DIV><BR></BODY></HTML>