On Mon, Jun 24, 2013 at 01:28:12PM -0400, Jean-François Rioux wrote:
>
> What's very different from your approach is that we have an accorded
> delay which defines a certain `limit` in time. From that `limit`, we
> need to go backward to define notification schedules, e.g., one day
> before this limit, send me an email each hours and copy my boss.
>
> It's important to understand that this `limit` is calculated by the
> `start time` + the `delay` and the former is not always time.now. This
> means, the timers will not always be triggered statically in time (e.g.,
> in your example, the first timer will always be 4h after the process has
> being started).

Hello again,

I think it important to correct something here.

The first timer will not be triggered 4 hours after the process got started
but 4 hours after the workitem got dispatched to the participant. Timers
are expressed relatively to the expression they adorn.

(using the old timeout to make the example more explicit)


```ruby
  sequence do
    wait '1h'
    alpha :timeout => "2d"
    bravo :timeout => "3d"
  end
```

In this example,

  t(process launch) <
  t(application of wait) <
  t(application of alpha) <
  t(application of bravo)

If all goes well, alpha receives its workitem 1h and a few seconds after the
process launch. Alpha has 2 days to deal with the workitem. Bravo receives
its workitem at most 2d and 1h and a few seconds after the process launch...

Timers and timeouts are not computed relatively to process launch, they are
computed relatively to their expression's apply time.


Best regards,

--
John Mettraux   -   http://lambda.io/jmettraux

-- 
-- 
you received this message because you are subscribed to the "ruote users" group.
to post : send email to [email protected]
to unsubscribe : send email to [email protected]
more options : http://groups.google.com/group/openwferu-users?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"ruote" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to