ode-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Anup Chandran <anup.chand...@3ds.com>
Subject Re: Assign Activity : Copy to message variable xxxx requires a message for the r-value
Date Mon, 13 Aug 2007 11:54:48 GMT

Alex, Here is the complete BPEL definition :

<?xml version="1.0" encoding="UTF-8"?>
<bpws:process
xmlns:bpws="http://schemas.xmlsoap.org/ws/2004/03/business-process/"
xmlns:ns="http://client.epm.apps.matrixone.com"
xmlns:tns="http://eclipse.org/bpel/sample" exitOnStandardFault="yes"
name="ECRProcess" suppressJoinFailure="yes"
targetNamespace="http://eclipse.org/bpel/sample">
<bpws:import importType="http://schemas.xmlsoap.org/wsdl/"
location="ECRProcess.wsdl" namespace="http://eclipse.org/bpel/sample"/>
<bpws:import importType="http://schemas.xmlsoap.org/wsdl/"
location="ComMatrixoneAppsEpmMyECR.wsdl"
namespace="http://client.epm.apps.matrixone.com"/>
<bpws:partnerLinks>
<bpws:partnerLink myRole="ECRProcessProvider" name="client"
partnerLinkType="tns:ECRProcess" partnerRole="ECRProcessRequester"/>
<bpws:partnerLink name="CreateECRPartnerLink" partnerLinkType="ns:CreateECR"
partnerRole="you"/>
</bpws:partnerLinks>
<bpws:variables>
<bpws:variable messageType="tns:ECRProcessRequestMessage" name="input"/>
<bpws:variable messageType="tns:ECRProcessResponseMessage" name="output"/>
<bpws:variable messageType="ns:createBusResponse"
name="CreateECRPartnerLinkResponse"/>
<bpws:variable messageType="ns:createBusRequest"
name="CreateECRPartnerLinkRequest"/>
</bpws:variables>
<bpws:sequence name="main">
<bpws:receive createInstance="yes" name="receiveCreationRequest"
operation="receiveIssue" partnerLink="client" portType="tns:ECRProcess"
variable="input"/>
<bpws:assign name="Assign" validate="no">
<bpws:copy>
<bpws:from><![CDATA[concat("Hello,*******************",
$input.payload/tns:username," ", $input.payload/tns:password
," ",$input.payload/tns:type," ",$input.payload/tns:name,"
",$input.payload/tns:revision," ",$input.payload/tns:policy)]]></bpws:from>
<bpws:to part="payload" variable="output"/>
</bpws:copy>
</bpws:assign>
<bpws:assign name="AssignForInvoke" validate="no">
<bpws:copy>
<bpws:from part="payload" variable="input"/>
<bpws:to variable="CreateECRPartnerLinkRequest"/>
</bpws:copy>
</bpws:assign>
<bpws:assign name="SystemOut" validate="no">
<bpws:copy>
<bpws:from><![CDATA[concat("CreateECRPartnerLinkRequest ...",
$CreateECRPartnerLinkRequest.username," ",
$CreateECRPartnerLinkRequest.password
," ",$CreateECRPartnerLinkRequest.type,"
",$CreateECRPartnerLinkRequest.name,"
",$CreateECRPartnerLinkRequest.revision,"
",$CreateECRPartnerLinkRequest.policy)]]></bpws:from>
<bpws:to part="payload" variable="output"/>
</bpws:copy>
</bpws:assign>
<bpws:invoke inputVariable="CreateECRPartnerLinkRequest" name="CreateECR"
operation="createBus" outputVariable="CreateECRPartnerLinkResponse"
partnerLink="CreateECRPartnerLink" portType="ns:CreateECR"/>
<bpws:invoke inputVariable="output" name="callbackClient"
operation="onResult" partnerLink="client"
portType="tns:ECRProcessCallback"/>
</bpws:sequence>
</bpws:process>


When i invoke the process i see some errors at the assign activity,

ERROR - GeronimoLog.error(104) |
file:/C:/apache-tomcat-5.5.20/webapps/ode/WEB-I
NF/processes/ECRProcess/ECRProcess.bpel:25: error:
[CopyToMessageFromNonMessage]
 Copy to message variable CreateECRPartnerLinkRequest requires a message for
the
 r-value.
01:29:56,604 ERROR [BpelC]
file:/C:/apache-tomcat-5.5.20/webapps/ode/WEB-INF/pro
cesses/ECRProcess/ECRProcess.bpel:25: error: [CopyToMessageFromNonMessage]
Copy
to message variable CreateECRPartnerLinkRequest requires a message for the
r-val
ue.
ERROR - GeronimoLog.error(108) | Deploy failed; BPEL compilation errors.
org.apache.ode.bpel.compiler.api.CompilationException: error:
[CompilationErrors
] Compilation completed with 1 error(s).



Not sure what is wrong with the assign, all i 'm doing is copying a
substructure "payload" from input message to CreateECRPartnerLinkRequest
variable.
Any idea what is missing?

Regards
Anup





Anup Chandran wrote:
> 
> The assign def in BPEL file :
> 
> <bpws:assign name="AssignForInvoke" validate="no">
> <bpws:copy>
> <bpws:from part="payload" variable="input"/>
> <bpws:to variable="CreateECRPartnerLinkRequest"/>
> </bpws:copy>
> </bpws:assign>
> 
> I get the following error on deploy:
> 
> 
> ERROR :
> 
> ERROR - GeronimoLog.error(104) |
> file:/C:/apache-tomcat-5.5.20/webapps/ode/WEB-I
> NF/processes/ECRProcess/ECRProcess.bpel:25: error:
> [CopyToMessageFromNonMessage]
>  Copy to message variable CreateECRPartnerLinkRequest requires a message
> for the
>  r-value.01:02:37,487 ERROR [BpelC]
> file:/C:/apache-tomcat-5.5.20/webapps/ode/WEB-INF/pro
> cesses/ECRProcess/ECRProcess.bpel:25: error: [CopyToMessageFromNonMessage]
> Copy
> to message variable CreateECRPartnerLinkRequest requires a message for the
> r-val
> ue.
> ERROR - GeronimoLog.error(108) | Deploy failed; BPEL compilation errors.
> org.apache.ode.bpel.compiler.api.CompilationException: error:
> [CompilationErrors
> ] Compilation completed with 1 error(s).
>         at
> org.apache.ode.bpel.compiler.BpelCompiler.compile(BpelCompiler.java:6
> 94)
> 
> Alex, Can i use Assign to map complexType to ComplexType? Not sure what
> the error means..
> 
> Regards
> Anup
> 

-- 
View this message in context: http://www.nabble.com/Assign-Activity-%3A-Copy-to-message-variable-xxxx-requires-a-message-for-the-r-value-tf4252542.html#a12124862
Sent from the Apache Ode User mailing list archive at Nabble.com.


Mime
View raw message