[jbosstools-issues] [JBoss JIRA] Commented: (JBIDE-5394) BPEL Plugin is not correctly initalizing variables
Feng Qian (JIRA)
jira-events at lists.jboss.org
Wed Dec 16 01:56:30 EST 2009
[ https://jira.jboss.org/jira/browse/JBIDE-5394?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12500220#action_12500220 ]
Feng Qian commented on JBIDE-5394:
----------------------------------
Hi Brad,
It is my fault. My last comment is not right.
if the message part is element like:
<element name="xxx" >
<complexType>
......
</complexType>
</element>
It is not right too.
You should write it like this:
<element name="xxx" type="zzz"/>
<xs:complexType name="zzz">
<xs:sequence>
<xs:element name='name' type='xs:string'/>
</xs:sequence>
</xs:complexType>
remove the minOccurs='0' attribute from the 'name' element.
In the xsd spec, there is minOccurs='0' or not is equivalent in this scene. As if this is a the third party lib error.
I have asked this problem in the mailist.
> BPEL Plugin is not correctly initalizing variables
> --------------------------------------------------
>
> Key: JBIDE-5394
> URL: https://jira.jboss.org/jira/browse/JBIDE-5394
> Project: Tools (JBoss Tools)
> Issue Type: Bug
> Components: bpm
> Environment: EAP 5 + Riftsaw 2.0 M2 b61 + JBoss Tools 1.0.0.v200912010817N-H2-RC1
> Reporter: Brad Maxwell
> Assignee: Feng Qian
> Fix For: 3.1.0.GA
>
> Attachments: InvokeHelloWSBPEL.zip
>
>
> The BPEL plugin is not correctly initializing the variables.
> 1) Create a new Process
> 2) Add an Assign
> 3) Go to details
> 4) Click New
> 5) Select to copy from variable input/payload/inpuy
> 6) Select to copy to variable HelloWSPartnerLinkRequest.hello/name
> 7) Click away, it will prompt you to see if you want to create an Initializer
> 8) Click Yes
> The code generate is this below. Running this process causes Riftsaw to spit out this error: INFO [org.apache.ode.bpel.runtime.ASSIGN] (ODEServer-29) Assignment Fault: {http://docs.oasis-open.org/wsbpel/2.0/process/executable}selectionFailure,lineNo=80,faultExplanation=No results for expression: {OXPath10Expression name}
> bpel:copy>
> <bpel:from>
> <bpel:literal xml:space="preserve"><tns:hello xmlns:tns="http://jboss.com/examples/ws/Hello" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
> </tns:hello>
> </bpel:literal>
> </bpel:from>
> <bpel:to variable="HelloWSPartnerLinkRequest" part="hello"></bpel:to>
> </bpel:copy>
> After days of trying various things, I then began comparing my example to the quick starts. I found the issue is 'name' is not being initialized. I hacked the code and added <name xmlns=""/> and it resolved the issue.
> <bpel:assign validate="no" name="Assign-Input2Request">
> <bpel:copy>
> <bpel:from>
> <bpel:literal xml:space="preserve">
> <tns:hello xmlns:tns="http://jboss.com/examples/ws/Hello" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
> <name xmlns=""/>
> </tns:hello>
> </bpel:literal>
> </bpel:from>
> <bpel:to part="hello" variable="HelloWSPartnerLinkRequest"></bpel:to>
> </bpel:copy>
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jbosstools-issues
mailing list