WSO2业务流程bpel,gui中的“if”零件 [英] WSO2 Business Process bpel, error in gui with "if" component

查看:183
本文介绍了WSO2业务流程bpel,gui中的“if”零件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前在Eclipse Developer Studio中使用wso2 Bu​​siness Process Server进行简单的业务流程。我创建了一个具有if条件的小bpel进程。我得到它在服务器上工作没有问题。但是,我不得不在源代码中使我的if条件,我无法配置每个gui的if组件。当我点击if组件的Details选项卡时,总是会收到以下错误:

 发生错误。有关详细信息,请参阅错误日志
org.eclipse.ui.internal.EditorReference。< init>(Lorg / eclipse / ui / internal / EditorManager; Lorg / eclipse / ui / IEditorInput; Lorg / eclipse / ui / internal / registry / EditorDescriptor;) V

有谁知道如何避免这个错误?配置每个GUI用于演示的if条件是非常好的。



我使用Developer Studio 3.2.0



这是我的bpel源代码:

 <! -  Befunde BPEL流程[由Eclipse BPEL生成设计师]  - > 
<! - 日期:2012年3月05日12:13:11 IST 2012 - >
< bpel:process name =Befunde
targetNamespace =http://avintis.com/befunde
suppressJoinFailure =yes
xmlns:tns =http ://avintis.com/befunde
xmlns:bpel =http://docs.oasis-open.org/wsbpel/2.0/process/executable
xmlns:ns1 =urn:hl7 -org:v2xml
xmlns:hl7 =http://wso2.org/hl7
xmlns:ns =http://ws.apache.org/axis2>

<! - 导入客户端WSDL - >
< bpel:import location =BefundeArtifacts.wsdlnamespace =http://avintis.com/befundeimportType =http://schemas.xmlsoap.org/wsdl//>

<! - ================================= ============================
<! - PARTNERLINKS - >
<! - 参与此BPEL流程的服务列表 - >
<! - ===================================== ======================
< bpel:partnerLinks>
<! - 'client'角色表示此服务的请求者。 - >
< bpel:partnerLink name =client
partnerLinkType =tns:Befunde
myRole =BefundeProvider
/>


< / bpel:partnerLinks>

<! - ================================= ============================
<! - VARIABLES - >
<! - 此BPEL流程中使用的邮件和XML文档列表 - >
<! - ===================================== ======================
< bpel:variables>
<! - 引用在启动期间作为输入传递的消息 - >
< bpel:variable name =input
messageType =tns:BefundeRequestMessage/>

<! -
引用将返回给请求者的消息
- >
< bpel:variable name =output
messageType =tns:BefundeResponseMessage/>



< / bpel:variables>

<! - ================================= ============================
<! - ORCHESTRATION LOGIC - >
<! - 一组协调邮件流的活动 - >
<! - 在此业务流程中集成的服务 - >
<! - ===================================== ======================
< bpel:sequence name =main>

<! - 从请求者接收输入。
注意:这映射到Befunde.wsdl
- >中定义的操作
< bpel:receive name =receiveInputpartnerLink =client
portType =tns:Befunde
operation =processvariable =input
createInstance = 是/>

<! - 生成对同步请求的回复 - >
< bpel:assign validate =noname =InputToResult>

< bpel:copy>
< bpel:from>
< bpel:literal>
< tns:BefundeResponse xmlns:hl7 =http://wso2.org/hl7xmlns:ns1 =urn:hl7-org:v2xmlxmlns:tns =http://avintis.com/ befundexmlns:xsi =http://www.w3.org/2001/XMLSchema-instance>< tns:result> tns:result< / tns:result>

< / tns:BefundeResponse>
< / bpel:literal>
< / bpel:from>
< bpel:to variable =outputpart =payload>< / bpel:to>
< / bpel:copy>
< bpel:copy>
< bpel:from part =payloadvariable =input>
< bpel:query queryLanguage =urn:oasis:names:tc:wsbpel:2.0:sublang:xpath1.0>
<![CDATA [hl7:message / ns1:ORU_R01 / ns1:ORU_R01.RESPONSE / ns1:ORU_R01.ORDER_OBSERVATION / ns1:ORU_R01.OBSERVATION / ns1:OBX / ns1:OBX.8]]>
< / bpel:query>
< / bpel:from>
< bpel:to part =payloadvariable =output>
< bpel:query queryLanguage =urn:oasis:names:tc:wsbpel:2.0:sublang:xpath1.0>
<![CDATA [tns:result]]>
< / bpel:query>
< / bpel:to>
< / bpel:copy>

< / bpel:assign>


< bpel:if name =If_OBX8>
< bpel:condition>
<![CDATA [$ output.payload / tns:result =HH]]>
< / bpel:condition>

< bpel:assign validate =noname =Panic>
< bpel:copy>
< bpel:from>
< bpel:literal xml:space =preserve> Panic< / bpel:literal>
< / bpel:from>
< bpel:to part =payloadvariable =output>
< bpel:query queryLanguage =urn:oasis:names:tc:wsbpel:2.0:sublang:xpath1.0><![CDATA [tns:result]]>< / bpel:查询>
< / bpel:to>
< / bpel:copy>
< / bpel:assign>


< bpel:else>
< bpel:assign validate =noname =Normal>
< bpel:copy>
< bpel:from>
< bpel:literal xml:space =preserve> Normal< / bpel:literal>
< / bpel:from>
< bpel:to part =payloadvariable =output>
< bpel:query queryLanguage =urn:oasis:names:tc:wsbpel:2.0:sublang:xpath1.0><![CDATA [tns:result]]>< / bpel:查询>
< / bpel:to>
< / bpel:copy>
< / bpel:assign>
< / bpel:else>
< / bpel:if>
< bpel:reply name =replyOutput
partnerLink =client
portType =tns:Befunde
operation =process
variable =输出
/>
< / bpel:sequence>
< / bpel:process>


解决方案

这是一个已知的问题,解释为 WSO2开发人员工作室编辑分配活动的属性



请尝试 Developer Studio 3.0.0 ,这个工作!


I currently work on a simple business process with the wso2 Business Process Server in Eclipse Developer Studio. I have created a little bpel process with an "if" condition. I got it to work on the server without problems. But, I had to make my "if" condition in the source code, I was not able to configure the if component per gui. I always get the following error when I click on the "Details" tab of the "if" component:

An error has occurred. See error log for more details.
org.eclipse.ui.internal.EditorReference.<init>(Lorg/eclipse/ui/internal/EditorManager;Lorg/eclipse/ui/IEditorInput;Lorg/eclipse/ui/internal/registry/EditorDescriptor;)V

Does anyone know how to avoid this error? It would be great to configure the "if" condition per GUI for demonstrations…

I'am using Developer Studio 3.2.0

Here is my bpel source code:

<!-- Befunde BPEL Process [Generated by the Eclipse BPEL Designer] -->
<!-- Date: Mon Mar 05 12:13:11 IST 2012 -->
<bpel:process name="Befunde"
         targetNamespace="http://avintis.com/befunde"
         suppressJoinFailure="yes"
         xmlns:tns="http://avintis.com/befunde"
         xmlns:bpel="http://docs.oasis-open.org/wsbpel/2.0/process/executable"
         xmlns:ns1="urn:hl7-org:v2xml" 
         xmlns:hl7="http://wso2.org/hl7" 
         xmlns:ns="http://ws.apache.org/axis2">

    <!-- Import the client WSDL -->
    <bpel:import location="BefundeArtifacts.wsdl" namespace="http://avintis.com/befunde" importType="http://schemas.xmlsoap.org/wsdl/" />

    <!-- ================================================================= -->         
    <!-- PARTNERLINKS                                                      -->
    <!-- List of services participating in this BPEL process               -->
    <!-- ================================================================= -->         
    <bpel:partnerLinks>
        <!-- The 'client' role represents the requester of this service. -->
        <bpel:partnerLink name="client"
                     partnerLinkType="tns:Befunde"
                     myRole="BefundeProvider"
                     />


    </bpel:partnerLinks>

    <!-- ================================================================= -->         
    <!-- VARIABLES                                                         -->
    <!-- List of messages and XML documents used within this BPEL process  -->
    <!-- ================================================================= -->         
    <bpel:variables>
        <!-- Reference to the message passed as input during initiation -->
        <bpel:variable name="input"
                  messageType="tns:BefundeRequestMessage"/>

        <!-- 
          Reference to the message that will be returned to the requester
          -->
        <bpel:variable name="output"
                  messageType="tns:BefundeResponseMessage"/>



    </bpel:variables>

    <!-- ================================================================= -->         
    <!-- ORCHESTRATION LOGIC                                               -->
    <!-- Set of activities coordinating the flow of messages across the    -->
    <!-- services integrated within this business process                  -->
    <!-- ================================================================= -->         
    <bpel:sequence name="main">

        <!-- Receive input from requester. 
             Note: This maps to operation defined in Befunde.wsdl 
             -->
        <bpel:receive name="receiveInput" partnerLink="client"
                 portType="tns:Befunde"
                 operation="process" variable="input"
                 createInstance="yes"/>

        <!-- Generate reply to synchronous request -->
        <bpel:assign validate="no" name="InputToResult">

            <bpel:copy>
                <bpel:from>
                    <bpel:literal>
                        <tns:BefundeResponse xmlns:hl7="http://wso2.org/hl7" xmlns:ns1="urn:hl7-org:v2xml" xmlns:tns="http://avintis.com/befunde" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><tns:result>tns:result</tns:result>

                        </tns:BefundeResponse>
                    </bpel:literal>
                </bpel:from>
                <bpel:to variable="output" part="payload"></bpel:to>
            </bpel:copy>
            <bpel:copy>
                <bpel:from part="payload" variable="input">
                    <bpel:query queryLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xpath1.0">
                        <![CDATA[hl7:message/ns1:ORU_R01/ns1:ORU_R01.RESPONSE/ns1:ORU_R01.ORDER_OBSERVATION/ns1:ORU_R01.OBSERVATION/ns1:OBX/ns1:OBX.8]]>
                    </bpel:query>
                </bpel:from>
                <bpel:to part="payload" variable="output">
                    <bpel:query queryLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xpath1.0">
                        <![CDATA[tns:result]]>
                    </bpel:query>
                </bpel:to>
            </bpel:copy>

        </bpel:assign>


        <bpel:if name="If_OBX8">
            <bpel:condition>
                <![CDATA[$output.payload/tns:result="HH"]]>
            </bpel:condition>

                <bpel:assign validate="no" name="Panic">
                <bpel:copy>
                    <bpel:from>
                        <bpel:literal xml:space="preserve">Panic</bpel:literal>
                    </bpel:from>
                    <bpel:to part="payload" variable="output">
                        <bpel:query queryLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xpath1.0"><![CDATA[tns:result]]></bpel:query>
                    </bpel:to>
                </bpel:copy>
            </bpel:assign>


            <bpel:else>
                <bpel:assign validate="no" name="Normal">
                    <bpel:copy>
                        <bpel:from>
                            <bpel:literal xml:space="preserve">Normal</bpel:literal>
                        </bpel:from>
                        <bpel:to part="payload" variable="output">
                            <bpel:query queryLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xpath1.0"><![CDATA[tns:result]]></bpel:query>
                        </bpel:to>
                    </bpel:copy>
                </bpel:assign>
            </bpel:else>
        </bpel:if>
        <bpel:reply name="replyOutput" 
               partnerLink="client"
               portType="tns:Befunde"
               operation="process" 
               variable="output"
               />
    </bpel:sequence>
</bpel:process>

解决方案

It's a known issue as explained WSO2 developer studio edit properties of an assign activity

Please try out Developer Studio 3.0.0, that works!

这篇关于WSO2业务流程bpel,gui中的“if”零件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆