- From: yu lin <linyusyc@yahoo.com.cn>
- Date: Tue, 18 Jul 2006 10:53:02 +0800 (CST)
- To: public-sws-ig@w3.org
Hi,everyone, I have a problem when i want to construct a composite process using "repeat-While" or "repeat-Until". i aim to build a loop structure, which is like this(write in program language, such as java), see following. ClassA aa = new ClassA(); string [] return1 = aa.runProcess1(); // execute process1 and get the output, which here is a string set. boolean condition = true; while{condition == true} { string return2 = aa.runSelectProcess(return1); /* run selectProcess, select a string from the string set "return1", * and selected string "return2" will be deleted from the string set "return1", * the updated return1 will be used as input for selectProcess in next loop step. */ string return3 = aa.runProcess2(return2); if ( return3.equals("OK") ){ condition = false; // if return3 is equals "OK" , then the loop is end. } } I don't know how to express the dataBinding among "Process1", "selectProcess" and "Process2" in OWL-S. In this loop, Process1 's output (return1) is binded to selectProcess 's input, and after selectProcess is executed, and return1 is updated, which will be used as input for selectProcess in next loop. if the update return1 can be expressed in "hasEffect" in selectProcess? may be it will use new class "loc" and "locBinding" in OWL-S 1.2 version or something else, but i don't know how to use it exactly. can someone show me an example. I also don't know how to get result from a loop structure, such as "repeat-While" and "repeat-Until". Does the "outputBinding" in "hasResult" only binded to the final output of the process in the loop structure when the loop is end? any hint will be very helpful, thanks. linyu. 2006/7/18 --------------------------------- Mp3疯狂搜-新歌热歌高速下 --0-237480309-1153191182=:60528 Content-Type: text/html; charset=gb2312 Content-Transfer-Encoding: 8bit <div>Hi,everyone,<BR> <BR> I have a problem when i want to construct a composite process using</div> <div> "repeat-While" or "repeat-Until". i aim to build a loop structure, </div> <div>which is like this(write in program language, such as java), see following.<BR> <BR> ClassA aa = new ClassA();<BR> <BR> string [] return1 = aa.runProcess1(); <BR> // execute process1 and get the output, which here is a string set.<BR> <BR> boolean condition = true;</div> <div><BR> while{condition == true} {<BR> <BR> string return2 = aa.runSelectProcess(return1); <BR> /* run selectProcess, select a string from the string set "return1", </div> <div> * and selected string "return2" will be deleted from the string set "return1",</div> <div> * the updated return1 will be used as input for selectProcess in next loop step. */</div> <div><BR> string return3 = aa.runProcess2(return2);<BR> if ( return3.equals("OK") ){<BR> condition = false; </div> <div> // if return3 is equals "OK" , then the loop is end.<BR> }<BR> }<BR> <BR> I don't know how to express the dataBinding among "Process1",</div> <div> "selectProcess" and "Process2" in OWL-S. In this loop, Process1 's output</div> <div> (return1) is binded to selectProcess 's input, and after selectProcess is</div> <div> executed, and return1 is updated, which will be used as input for</div> <div> selectProcess in next loop. if the update return1 can be expressed in</div> <div> "hasEffect" in selectProcess?<BR> <BR> may be it will use new class "loc" and "locBinding" in OWL-S 1.2 version or</div> <div>something else, but i don't know how to use it exactly. can someone show me</div> <div> an example.<BR> <BR> I also don't know how to get result from a loop structure, such as "repeat-While" and "repeat-Until". Does the "outputBinding" in "hasResult" only binded</div> <div> to the final output of the process in the loop structure when the loop is end?</div> <div><BR> any hint will be very helpful, thanks.<BR> <BR> linyu.<BR> 2006/7/18<BR></div><p>  <hr size=1><a href="http://music.yahoo.com.cn/?source=mail_mailbox_footer" target=blank> Mp3疯狂搜-新歌热歌高速下 </a> --0-237480309-1153191182=:60528--
Received on Wednesday, 19 July 2006 14:57:35 UTC