ode-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hudson (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (ODE-973) RepeatEvery within OnAlarm fires immediately without taking into consideration of the wait time
Date Tue, 27 Aug 2013 22:37:52 GMT

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

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

SUCCESS: Integrated in ODE-trunk-jdk6 #735 (See [https://builds.apache.org/job/ODE-trunk-jdk6/735/])
ODE-973: repeatEvery will wait for the duration to elapse before firing during the first iteration
(sathwik: rev 08ab8a5ec7ba1d7871638de9816647a69e8e969d)
* 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

Mime
View raw message