[jbosstools-issues] [JBoss JIRA] (JBIDE-8064) Variable initializer does not generate content for messages which use type attribute instead of element to declare the part.
Max Rydahl Andersen (JIRA)
issues at jboss.org
Wed Jul 30 10:22:32 EDT 2014
[ https://issues.jboss.org/browse/JBIDE-8064?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Max Rydahl Andersen updated JBIDE-8064:
---------------------------------------
Assignee: (was: Feng Qian)
> Variable initializer does not generate content for messages which use type attribute instead of element to declare the part.
> ----------------------------------------------------------------------------------------------------------------------------
>
> Key: JBIDE-8064
> URL: https://issues.jboss.org/browse/JBIDE-8064
> Project: Tools (JBoss Tools)
> Issue Type: Bug
> Components: bpel
> Affects Versions: 3.2.0.CR1
> Reporter: Marek Baluch
> Fix For: LATER
>
> Attachments: NPE_stack.txt, test_project.zip
>
> Original Estimate: 0 minutes
> Remaining Estimate: 0 minutes
>
> If a message has one of the formats bellow then the variable initializer will not generate the init content even when the user chooses yes.
> <message name="moderateRequestMessage">
> <part name="moderateRequest" type="tns:complexType"/>
> </message>
> or
> <message name="simpleResponseMessage">
> <part name="payload" type="xsd:string"/>
> </message>
> In the second case there's no need to generate any content - the variable initializer should not be triggered. The following case shows why the variable initializer should not be triggered for simple assignments:
> If we have the following variables:
> <bpel:variable name="simpleIn" messageType="tns:simpleRequestMessage"/>
> <bpel:variable name="processVar" type="xsd:string"/>
> and attempt the following assignment:
> <bpel:assign validate="no" name="assignToLocal">
> <bpel:copy>
> <bpel:from part="payload" variable="simpleIn"></bpel:from>
> <bpel:to variable="processVar"></bpel:to>
> </bpel:copy>
> </bpel:assign>
> we get a NPE in the log (see attachment).
--
This message was sent by Atlassian JIRA
(v6.2.6#6264)
More information about the jbosstools-issues
mailing list