problem using SE-Orchestra v1b1...

View: New views
3 Messages — Rating Filter:   Alert me  

problem using SE-Orchestra v1b1...

by julien.mullet :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi all,

I am currently using the PEtALS-SE-Orchestra-v1.0beta1 to implement some basic
use cases.
I am using the BPEL Designer plugin for Eclipse to create my BPEL processes.

I developped first a basic BPEL process that worked on the SE-Orchestra. That
process consists in retrieving a payload from an incoming message and returning
it in a output message. In the message type definition part of the process WSDL
file, I declared the messages like that :

<message name="myProcessRequestMessage">
<part name="inputData" type="xsd:string"/>
</message>
<message name="myProcessResponseMessage">
<part name="outputData" type="xsd:string"/>
</message>
(I didn't use complex types for defining my message parts, and that worked
fine).


Now, I am trying to develop the same use case, but, this time, I use complex
types for defining my messages in the WSDL file :

<types>
<schema xmlns="http://www.w3.org/2001/XMLSchema [...] >
<element name="myProcessRequestElement">
<complexType>
<sequence>
<element name="input" type="string"/>
</sequence>
</complexType>
</element>
[...]
</type>

<message name="myProcessRequestMessage">
<part name="inputData" element="tns:myProcessRequestElement"/>
</message>
[...]
I successfully deploy my sa-packaged BPEL process in a PEtALS container, but
when invoking it through a soap proxy or through the PEtALS-SE-SampleClient, I
get an exception :

[...]
[petals.container....petals-se-orchestra] is requestResponse : true
[petals.container....petals-se-orchestra] handle process...
error:
{http://docs.oasis-open.org/wsbpel/2.0/process/executable}selectionFailure
org.ow2.orchestra.exception.BpelFaultException:
{http://docs.oasis-open.org/wsbpel/2.0/process/executable}selectionFailure
        at
org.ow2.orchestra.lang.jaxen.XPathEvaluator.createNode(XPathEvaluator.java:120)
        at
org.ow2.orchestra.lang.jaxen.XPathEvaluator.selectOrCreateNodes(XPathEvaluator.java:99)
        at
org.ow2.orchestra.lang.jaxen.XPathVariableQueryEvaluator.assign(XPathVariableQueryEvaluator.java:73)
        at org.ow2.orchestra.execution.element.To.setValue(To.java:68)
        at org.ow2.orchestra.execution.element.Copy.execute(Copy.java:58)
        at
org.ow2.orchestra.execution.activity.Assign.executeBusinessLogic(Assign.java:51)
        at
org.ow2.orchestra.execution.activity.AutomaticActivity.executeActivity(AutomaticActivity.java:40)
        at
org.ow2.orchestra.execution.activity.AbstractActivity.execute(AbstractActivity.java:107)
        at org.jbpm.pvm.impl.ExecuteNode.perform(ExecuteNode.java:58)
        at
org.jbpm.pvm.impl.ExecutionImpl.performAtomicOperationSync(ExecutionImpl.java:356)
        at
org.jbpm.pvm.impl.ExecutionImpl.performAtomicOperation(ExecutionImpl.java:337)
        at org.jbpm.pvm.impl.ExecutionImpl.signal(ExecutionImpl.java:190)
        at org.jbpm.pvm.impl.ExecutionImpl.signal(ExecutionImpl.java:181)
        at
org.ow2.orchestra.execution.services.Receiver.handle(Receiver.java:122)
        at
org.ow2.petals.engine.orchestra.BPELContext.launchBPELProcess(BPELContext.java:317)
        at
org.ow2.petals.engine.orchestra.OrchestraServiceImpl.launchProcess(OrchestraServiceImpl.java:83)
        at
org.ow2.petals.engine.orchestra.listener.JBIListener.onJBIMessage(JBIListener.java:73)
        at
org.ow2.petals.component.framework.listener.MessageExchangeProcessor.processInOutAsProvider(MessageExchangeProcessor.java:453)
        at
org.ow2.petals.component.framework.listener.MessageExchangeProcessor.processAsProvider(MessageExchangeProcessor.java:351)
        at
org.ow2.petals.component.framework.listener.MessageExchangeProcessor.process(MessageExchangeProcessor.java:267)
        at
org.ow2.petals.component.framework.listener.MessageExchangeProcessor.run(MessageExchangeProcessor.java:118)
        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown
Source)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
        at java.lang.Thread.run(Unknown Source)

That error seems to occur at the "Assign" activity of my process where I copy a
fixed string value "TEST" to the "input" field of my "myProcessRequestElement".

Maybe, the orchestration engine is not able to handle message composed of
complex type elements.

Have you ever managed to create such a process which interface contains
messages composed of complex type elements ? Maybe, I miss something with the
BPEL langage.



Best regards,

Julien MULLET


--
You receive this message as a subscriber of the petals-users@... mailing list.
To unsubscribe: mailto:petals-users-unsubscribe@...
For general help: mailto:sympa@...?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws

Re: problem using SE-Orchestra v1b1...

by Nicolas Salatge - EBM WebSourcing :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

julien.mullet@... a écrit :

> Hi all,
>
> I am currently using the PEtALS-SE-Orchestra-v1.0beta1 to implement some basic
> use cases.
> I am using the BPEL Designer plugin for Eclipse to create my BPEL processes.
>
> I developped first a basic BPEL process that worked on the SE-Orchestra. That
> process consists in retrieving a payload from an incoming message and returning
> it in a output message. In the message type definition part of the process WSDL
> file, I declared the messages like that :
>
> <message name="myProcessRequestMessage">
> <part name="inputData" type="xsd:string"/>
> </message>
> <message name="myProcessResponseMessage">
> <part name="outputData" type="xsd:string"/>
> </message>
> (I didn't use complex types for defining my message parts, and that worked
> fine).
>
>
> Now, I am trying to develop the same use case, but, this time, I use complex
> types for defining my messages in the WSDL file :
>
> <types>
> <schema xmlns="http://www.w3.org/2001/XMLSchema [...] >
> <element name="myProcessRequestElement">
> <complexType>
> <sequence>
> <element name="input" type="string"/>
> </sequence>
> </complexType>
> </element>
> [...]
> </type>
>
> <message name="myProcessRequestMessage">
> <part name="inputData" element="tns:myProcessRequestElement"/>
> </message>
> [...]
> I successfully deploy my sa-packaged BPEL process in a PEtALS container, but
> when invoking it through a soap proxy or through the PEtALS-SE-SampleClient, I
> get an exception :
>
> [...]
> [petals.container....petals-se-orchestra] is requestResponse : true
> [petals.container....petals-se-orchestra] handle process...
> error:
> {http://docs.oasis-open.org/wsbpel/2.0/process/executable}selectionFailure
> org.ow2.orchestra.exception.BpelFaultException:
> {http://docs.oasis-open.org/wsbpel/2.0/process/executable}selectionFailure
> at
> org.ow2.orchestra.lang.jaxen.XPathEvaluator.createNode(XPathEvaluator.java:120)
> at
> org.ow2.orchestra.lang.jaxen.XPathEvaluator.selectOrCreateNodes(XPathEvaluator.java:99)
> at
> org.ow2.orchestra.lang.jaxen.XPathVariableQueryEvaluator.assign(XPathVariableQueryEvaluator.java:73)
> at org.ow2.orchestra.execution.element.To.setValue(To.java:68)
> at org.ow2.orchestra.execution.element.Copy.execute(Copy.java:58)
> at
> org.ow2.orchestra.execution.activity.Assign.executeBusinessLogic(Assign.java:51)
> at
> org.ow2.orchestra.execution.activity.AutomaticActivity.executeActivity(AutomaticActivity.java:40)
> at
> org.ow2.orchestra.execution.activity.AbstractActivity.execute(AbstractActivity.java:107)
> at org.jbpm.pvm.impl.ExecuteNode.perform(ExecuteNode.java:58)
> at
> org.jbpm.pvm.impl.ExecutionImpl.performAtomicOperationSync(ExecutionImpl.java:356)
> at
> org.jbpm.pvm.impl.ExecutionImpl.performAtomicOperation(ExecutionImpl.java:337)
> at org.jbpm.pvm.impl.ExecutionImpl.signal(ExecutionImpl.java:190)
> at org.jbpm.pvm.impl.ExecutionImpl.signal(ExecutionImpl.java:181)
> at
> org.ow2.orchestra.execution.services.Receiver.handle(Receiver.java:122)
> at
> org.ow2.petals.engine.orchestra.BPELContext.launchBPELProcess(BPELContext.java:317)
> at
> org.ow2.petals.engine.orchestra.OrchestraServiceImpl.launchProcess(OrchestraServiceImpl.java:83)
> at
> org.ow2.petals.engine.orchestra.listener.JBIListener.onJBIMessage(JBIListener.java:73)
> at
> org.ow2.petals.component.framework.listener.MessageExchangeProcessor.processInOutAsProvider(MessageExchangeProcessor.java:453)
> at
> org.ow2.petals.component.framework.listener.MessageExchangeProcessor.processAsProvider(MessageExchangeProcessor.java:351)
> at
> org.ow2.petals.component.framework.listener.MessageExchangeProcessor.process(MessageExchangeProcessor.java:267)
> at
> org.ow2.petals.component.framework.listener.MessageExchangeProcessor.run(MessageExchangeProcessor.java:118)
> at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown
> Source)
> at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
> at java.lang.Thread.run(Unknown Source)
>
> That error seems to occur at the "Assign" activity of my process where I copy a
> fixed string value "TEST" to the "input" field of my "myProcessRequestElement".
>
> Maybe, the orchestration engine is not able to handle message composed of
> complex type elements.
>  
no,  the orchestration engine is able to handle message composed of
complex type elements.
> Have you ever managed to create such a process which interface contains
> messages composed of complex type elements ?
yes, but these examples are not available in open source for the moment.
Send me your bpel process ( if it is possible) or try to realize the
assignment using  XPATH expressions instead of variables.

Best regards,

             Nicolas SALATGE

> Maybe, I miss something with the
> BPEL langage.
>
>
>
> Best regards,
>
> Julien MULLET
>  




--
You receive this message as a subscriber of the petals-users@... mailing list.
To unsubscribe: mailto:petals-users-unsubscribe@...
For general help: mailto:sympa@...?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws

Re: Re: problem using SE-Orchestra v1b1...

by julien.mullet :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I want to thank Nicolas Salatge for having fixed my problem quickly.

Below, the explanations about my problem with my BPEL process.
In my BPEL process, there is an Assign activity where I had declared a <copy>
element (see source code below) :

<bpws:copy>
  <bpws:from><![CDATA[concat("Hello ", $input.payload/tns:input)]]></bpws:from>
  <bpws:to part="payload" variable="output">
    <bpws:query
queryLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xpath1.0"><![CDATA[/tns:result]]></bpws:query>
  </bpws:to>
</bpws:copy>

That <copy> affects the destination "output" variable using variable access
method (<to part="payload" variable="output">...</to>).

After changing the way affecting the "output" variable from "variable access"
method to an "expression" method. It worked. See fixed code below :
<bpws:copy>
  <bpws:from><![CDATA[concat("Hello ", $input.payload/tns:input)]]></bpws:from>
  <bpws:to><![CDATA[$output.payload/tns:result]]></bpws:to>
</bpws:copy>

There is currently a minor bug in the Orchestra engine integrated in the
SE-Orchestra that prevents from using "by variable" affectation. You should use
the "by expression" affectation method instead.
The Orchestra team is aware of that problem and works toward fixing it.

Thank you,

Julien MULLET from Thales group.


--
You receive this message as a subscriber of the petals-users@... mailing list.
To unsubscribe: mailto:petals-users-unsubscribe@...
For general help: mailto:sympa@...?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
LightInTheBox - Buy quality products at wholesale price