[ 
https://issues.apache.org/jira/browse/ODE-973?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13751710#comment-13751710
 ] 

Hudson commented on ODE-973:
----------------------------

UNSTABLE: Integrated in ODE-1.x #403 (See 
[https://builds.apache.org/job/ODE-1.x/403/])
ODE-973: repeatEvery will wait for the duration to elapse before firing during 
the first iteration (sathwik: rev 96551b9ba2ec4b9ce91a4aee3ea51669da0209b4)
* bpel-runtime/src/main/java/org/apache/ode/bpel/runtime/EH_ALARM.java

                
> RepeatEvery within OnAlarm fires immediately without taking into 
> consideration of the wait time
> -----------------------------------------------------------------------------------------------
>
>                 Key: ODE-973
>                 URL: https://issues.apache.org/jira/browse/ODE-973
>             Project: ODE
>          Issue Type: Bug
>          Components: BPEL Runtime
>    Affects Versions: 1.3.5
>            Reporter: Sathwik Bantwal Premakumar
>            Assignee: Sathwik Bantwal Premakumar
>              Labels: patch
>             Fix For: 1.3.6, 1.4
>
>         Attachments: ODE-973.patch
>
>
> If the onAlarm has repeatEvery with a wait time, it gets fired without 
> waiting for the duration specified when it gets executed in the first 
> iteration.
> <bpel:onAlarm>
> <bpel:repeatEvery>"PT15S"</bpel:repeatEvery>
> <bpel:scope name="SubProcess-1" > </bpel:Scope>
> </bpel:OnAlarm>
> If we look at the EH_ALARM.java especially the run method,
>          if (_oalarm.forExpr != null){
>              calculate wait time
>         }else if (_oalarm.untilExpr != null){
>              calculate wait time
>         }
>          // We reduce to waiting for the alarm to be triggered.
>          instance(new WAIT(alarm));
> We can see that there is a check for "for" expression and "until" expression 
> but not for "repearEvery" expression.
> Shouldn't repeatEvery wait for 15 seconds as specified in the above 
> example when it gets executed during the first iteration?

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to