Uploaded image for project: 'ODE'
  1. ODE
  2. ODE-973

RepeatEvery within OnAlarm fires immediately without taking into consideration of the wait time

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.3.5
    • 1.3.6, 1.4
    • BPEL Runtime

    Description

      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?

      Attachments

        1. ODE-973.patch
          1 kB
          Sathwik

        Activity

          People

            sathwik Sathwik
            sathwik Sathwik
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: