ode-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Matthieu Riou" <matth...@offthelip.org>
Subject Re: Dynamic onAlarm value Is it possible ?
Date Mon, 13 Oct 2008 14:41:53 GMT
On Tue, Oct 7, 2008 at 9:09 AM, Nowakowski, Mateusz <
Mateusz.Nowakowski@sabre-holdings.com> wrote:

> Hi all,
>
> I have one design problem. From syntactical point of view it should
> work, but I don't know if it is possible in ODE.
>
> BPEL has onAlarm functionality. It can be placed inside global event
> handler field like this:
>        <bpel:eventHandlers>
>                <bpel:onAlarm>
>                        <bpel:for>"PT1M50S"</bpel:for>
>                        <bpel:scope>
>                                <bpel:throw
> faultName="tns:TimeoutFault"/>
>                        </bpel:scope>
>                </bpel:onAlarm>
>        </bpel:eventHandlers>
>
> But if it is in global place, there can be only static value.
>
> My situation is that the client can send this value in payload and I
> would like to use this value as onAlarm value. In other words I want
> dynamic onAlarm value.
>
> My solution is:
> - Declare global variable:
> <bpel:variable name="onAlarmValue" type="xs:string"/>
> - Main sequence will receive message, assign value to onAlarmValue
> variable
> - create new scope with eventHandlers defined like this:
>        <bpel:eventHandlers>
>                <bpel:onAlarm>
>                        <bpel:for>$onAlarmValue</bpel:for>
>                        <bpel:scope>
>                                <bpel:throw
> faultName="tns:TimeoutFault"/>
>                        </bpel:scope>
>                </bpel:onAlarm>
>        </bpel:eventHandlers>
> - the whole other instructions are inside sequence inside scope
>
> Assuming that onAlarmValue variable format is correct, will it work ?
>

It definitely should. Did you find any problem?

Thanks,
Matthieu


>
> --
> Regards
> Mateusz Nowakowski
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message