ode-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "V. Seprak" <vladosep...@yahoo.com>
Subject Re: Correlation in foreach
Date Mon, 02 Nov 2009 15:24:58 GMT

And this is exactly what I did. I have added a property to my message which,
in first assign activity, I set to $Counter value. Then i correlate on this
property. This didn't help. When i start with clean ODE database then it
works, but only the first time process is executed. Every subsequent
invocation results with "duplicate key value violates unique constraint
bpel_selectors_correlation_key_key". I have noticed that ODE tries to insert
empty value as CORRELATION_KEY (BPEL_SELECTORS table). Something like "240~"
where it should insert "240~myCorrelationId". 

Alex Boisvert-3 wrote:
> Simply put, the way to resolve of this is to use a correlation set
> (nested)
> inside your <bpel:forEach> scope such that the correlation is unique to
> each
> instance of the <bpel:receive> activity.
> alex
> On Fri, Oct 30, 2009 at 12:40 PM, Karthick Sankarachary <
> sankarachary@intalio.com> wrote:
>> Using correlations inside of a parallel <forEach> activity might result
>> in
>> a
>> bpws:conflictingReceive, which the spec defines as follows:
>> "If during the execution of a business process instance, two or more
>> receive
>> activities for the same partner link, portType, operation and correlation
>> set(s) are in fact simultaneously enabled, then the standard fault
>> bpws:conflictingReceive MUST be thrown by a compliant implementation."
>> Off the top of my head, one way to work around this issue could be to
>> extend
>> the message variable that you're correlating on (via a <invoke> or
>> <receive>
>> activity, for instance), by adding a numeric property, say
>> "iterationNumber", which is set to the value of the <forEach> counterName
>> variable. That property basically acts as a discriminant between the
>> messages corresponding to different iterations. AFAIK, there is no
>> constraint in the spec per se that would allow us to implement this
>> feature
>> in the BPEL server.
>> Best Regards,
>> Karthick Sankarachary
>> On Fri, Oct 30, 2009 at 6:07 AM, shepy <vladoseprak@yahoo.com> wrote:
>> >
>> > It looks like correlation inside parallel foreach is not supported by
>> ODE.
>> > Can anybody confirm this?
>> > --
>> > View this message in context:
>> > http://old.nabble.com/Correlation-in-foreach-tp26050377p26129778.html
>> > Sent from the Apache Ode User mailing list archive at Nabble.com.
>> >
>> >

View this message in context: http://old.nabble.com/Correlation-in-foreach-tp26050377p26157287.html
Sent from the Apache Ode User mailing list archive at Nabble.com.

View raw message