I have correlation property defined as following: <vprop:property xmlns="http://www.w3.org/2001/XMLSchema" name="subtask-id" type="string"/> <vprop:propertyAlias messageType='tns:acceptTaskDataRequest' part='parameters' propertyName='tns:subtask-id' > <vprop:query>xsd:DocPartX/xsd:ElemY/xsd:value[1]/xsd:id_num</vprop:query> </vprop:propertyAlias>
Note that inside acceptTaskDataRequest I have only one 'value' element (removing other 'value' elements is performed in assign operation - which is also the first activity in my foreach construct). If i remove [1] qualifier, i get error that multiple values for correlation are returned, which is realy strange because i have only one 'value' element. shepy wrote: > > > Relevant part (on id_num correlation is performed) : > > <complexType name="DocPartX"> > <sequence> > <element name="ElemX" type="boolean" nillable="true" /> > <element name="ElemY" type="P0002:ElemY" /> > </sequence> > </complexType> > <complexType name="ElemY"> > <sequence> > <element name="value" type="P0002:ElemYContent" > maxOccurs="unbounded"/> > </sequence> > </complexType> > <complexType name="ElemYContent"> > <sequence> > <element name="id_num" type="string"/> > <element name="name" type="string"/> > <element name="result_from_external_service" > type="string"/> > </sequence> > </complexType> > > In foreach sequence I first prepare document with SINGLE ElemY. Then I > invoke external service with this document and then receive document with > filled result_from_external_service element. > > Any hint on cause of this problem is appreciated. Thanx. > -- View this message in context: http://www.nabble.com/Correlation-in-foreach-tp26050377p26058869.html Sent from the Apache Ode User mailing list archive at Nabble.com.
