<HTML><BODY style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space; ">Luis,<DIV><BR class="khtml-block-placeholder"></DIV><DIV>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:</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>                                                            Check Task1(K-1)    Check Task4 (K-1)</DIV><DIV>                                                                  |                                             |</DIV><DIV>                                                                 V                                            V</DIV><DIV>K-Assigner(0..K..n) -> Task1 (K) -> Task2 (K)-------------- -> Task3 (K) -> Task4 (K) </DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>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. </DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>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.</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>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.</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>K-Assigner(0..K..n) -> Task1 (K-1) -> Task2 (K-1) -> Task3 (K-1) -> Task4 (K-1)</DIV><DIV>                                  |                           |                                                            |</DIV><DIV>                                  |                          V                                                           V </DIV><DIV>                                  -> Task1 (K) -> Task2 (K) ------------------------> Task3 (K) -> Task4 (K)</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>Hope you get the illustrations correctly...</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>-ilkay</DIV><DIV><BR><DIV><DIV>On Jun 6, 2007, at 5:44 PM, Luis Assunção wrote:</DIV><BR class="Apple-interchange-newline"><BLOCKQUOTE type="cite"> <DIV class="Section1"><P class="MsoNormal"><FONT size="2" face="Arial"><SPAN style="font-size:10.0pt; font-family:Arial">Hi</SPAN></FONT></P><DIV><FONT size="2" face="Arial"><SPAN style="font-size:10.0pt; font-family:Arial"> </SPAN></FONT><BR class="khtml-block-placeholder"></DIV><P class="MsoNormal"><FONT size="2" face="Arial"><SPAN style="font-size:10.0pt; font-family:Arial">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></FONT></P><DIV><FONT size="2" face="Arial"><SPAN style="font-size:10.0pt; font-family:Arial"> </SPAN></FONT><BR class="khtml-block-placeholder"></DIV><P class="MsoNormal"><FONT size="2" face="Arial"><SPAN style="font-size:10.0pt; font-family:Arial">Task1 ->Task2->Task3->Task4</SPAN></FONT></P><P class="MsoNormal"><FONT size="2" face="Arial"><SPAN style="font-size:10.0pt; font-family:Arial">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></FONT></P><DIV><FONT size="3" face="Times New Roman"><SPAN style="font-size: 12.0pt"> </SPAN></FONT><BR class="khtml-block-placeholder"></DIV><P class="MsoNormal"><FONT size="2" face="Arial"><SPAN style="font-size:10.0pt; font-family:Arial">I am interested to use modeling based on Workflows and I am also interested to support task execution as a Web Service.</SPAN></FONT></P><P class="MsoNormal"><FONT size="2" face="Arial"><SPAN style="font-size:10.0pt; font-family:Arial">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></FONT></P><DIV><FONT size="2" face="Arial"><SPAN style="font-size:10.0pt; font-family:Arial"> </SPAN></FONT><BR class="khtml-block-placeholder"></DIV><P class="MsoNormal"><FONT size="2" face="Arial"><SPAN style="font-size:10.0pt; font-family:Arial">Can someone advise me about what is the best pattern to this case?</SPAN></FONT></P><DIV><FONT size="2" face="Arial"><SPAN style="font-size:10.0pt; font-family:Arial"> </SPAN></FONT><BR class="khtml-block-placeholder"></DIV><P class="MsoNormal"><FONT size="2" face="Arial"><SPAN style="font-size:10.0pt; font-family:Arial">I appreciate in advance some advising.</SPAN></FONT></P><P class="MsoNormal"><FONT size="2" face="Arial"><SPAN style="font-size:10.0pt; font-family:Arial">Many thanks</SPAN></FONT></P><DIV><FONT size="2" face="Arial"><SPAN style="font-size:10.0pt; font-family:Arial"> </SPAN></FONT><BR class="khtml-block-placeholder"></DIV><P class="MsoNormal"><FONT size="2" face="Arial"><SPAN style="font-size:10.0pt; font-family:Arial">Luis Assuncao</SPAN></FONT></P><P class="MsoNormal"><FONT size="2" face="Arial"><SPAN style="font-size:10.0pt; font-family:Arial">Email: <A href="mailto:lass@isel.ipl.pt">lass@isel.ipl.pt</A></SPAN></FONT></P><DIV><FONT size="2" face="Arial"><SPAN lang="PT" style="font-size:10.0pt; font-family:Arial"> </SPAN></FONT><BR class="khtml-block-placeholder"></DIV><DIV><FONT size="2" face="Arial"><SPAN lang="PT" style="font-size:10.0pt; font-family:Arial"> </SPAN></FONT><BR class="khtml-block-placeholder"></DIV> </DIV><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; ">Kepler-users mailing list</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><A href="mailto:Kepler-users@ecoinformatics.org">Kepler-users@ecoinformatics.org</A></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><A href="http://mercury.nceas.ucsb.edu/ecoinformatics/mailman/listinfo/kepler-users">http://mercury.nceas.ucsb.edu/ecoinformatics/mailman/listinfo/kepler-users</A></DIV> </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></DIV></BODY></HTML>