Mule 1.4对JBPM的集成

Mule 1.4集成了JBPM功能,这样就能将ESB和BPM的优势相互结合起来。

支持分成两种:

1 ESB的事件触发JBPM的流程,配置如下:

    <mule-descriptor name="ToBPMS" implementation="org.mule.components.simple.LogComponent">
        <inbound-router>
            <endpoint address="Incoming1"/>
            <endpoint address="Incoming2"/>
        </inbound-router>
        <outbound-router>
            <router className="org.mule.routing.outbound.FilteringOutboundRouter">
                <endpoint address="bpm://MyProcess" synchronous="false" />
            </router>
        </outbound-router>
    </mule-descriptor>


2 BPM流程触发ESB的事件

    <mule-descriptor name="FromBPMS" implementation="org.mule.components.simple.LogComponent">
        <inbound-router>
            <endpoint address="bpm://MyProcess" />
        </inbound-router>
        <outbound-router>
            <router className="org.mule.routing.outbound.EndpointSelector">
                <endpoint address="Outgoing1"/>
                <endpoint address="Outgoing2"/>
                <endpoint address="Outgoing3"/>
            </router>
        </outbound-router>
    </mule-descriptor> 

你可能感兴趣的:(jbpm)