OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

wsbpel-comment message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: Re: [wsbpel-comment] Is there syntax to terminate a while loop if it does not finish within certain time limit?


You may cause the while-activity to fail by putting it into a scope with an onAlarm event handler that throws a fault - something like this:

<scope>
  <faultHandlers>
    <catch faultName="timeout">
      <empty/>
    </catch>
  </faultHandlers>
  <eventHandlers>
    <onAlarm>
      <for>10s</for>
      <scope>
        <throw faultName="timeout"/>
      </scope>
    </onAlarm>    
  </eventHandlers>
  <while>...</while>
</scope>

HTH

Kind Regards

Dieter Koenig

Senior Technical Staff Member, WebSphere BPM Architecture
IBM Software Group



From:        Tan Tian Huat <ttianhuat@gmail.com>
To:        wsbpel-comment@lists.oasis-open.org
Date:        10.07.2012 11:24
Subject:        [wsbpel-comment] Is there syntax to terminate a while loop if it does not finish within certain time limit?
Sent by:        williamee@gmail.com




Dear all,
Say if we have a while loop in BPEL


<while>...<while>

Is it possible to terminate it if it does not complete within 10s?


Warmest Regards,
Tian Huat



[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]