GetUnitAndPriceRuleFlow.bpmn 3.5 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<definitions xmlns="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:activiti="http://activiti.org/bpmn" xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI" xmlns:dc="http://www.omg.org/spec/DD/20100524/DC" xmlns:di="http://www.omg.org/spec/DD/20100524/DI" xmlns:g="http://www.jboss.org/drools/flow/gpd" xmlns:tns="http://www.jboss.org/drools" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" expressionLanguage="http://www.mvel.org/2.0" id="Definition" name="" targetNamespace="http://www.jboss.org/drools" typeLanguage="http://www.java.com/javaTypes">
    <process id="cn.ibizlab.core.sample.service.logic.ibizorderdetailgetunitandprice" isClosed="false" isExecutable="true"
             name="sample_ibizorderdetail_getunitandprice_RuleFlow" processType="Private"
             tns:packageName="cn.ibizlab.core.sample.service.logic.ibizorderdetailgetunitandprice">
        <extensionElements>
            <tns:import name="java.util.Map" />
            <tns:import name="org.springframework.util.StringUtils"/>
            <tns:import name="cn.ibizlab.util.helper.RuleUtils"/>
            <tns:metaData express="new cn.ibizlab.core.sample.domain.IBIZUNIProduct()" name="product" type="refentity"/>
            <tns:metaData express="" name="default" type="entity"/>
            <tns:global identifier="product" type="cn.ibizlab.core.sample.domain.IBIZUNIProduct" />
            <tns:global identifier="default" type="cn.ibizlab.core.sample.domain.IBIZOrderDetail" />
            <tns:metaData express="T(cn.ibizlab.util.security.SpringContextHolder).getBean(T(cn.ibizlab.core.sample.service.IBIZUNIProductService))" name="ibizuniproductservice" type="service"/>
            <tns:metaData express="T(cn.ibizlab.util.security.SpringContextHolder).getBean(T(cn.ibizlab.core.sample.service.IBIZOrderDetailService))" name="iBzSysIBIZOrderDetailDefaultService" type="service"/>
            <tns:metaData express="T(cn.ibizlab.util.security.AuthenticationUser).getAuthenticationUser()" name="curuser" type="session"/>
        </extensionElements>


        <!-- 开始 -->
        <startEvent id="begin" isInterrupting="true"/>

        <!-- 填充单位和单价 -->
        <businessRuleTask activiti:exclusive="true" g:ruleFlowGroup="prepareparam2group" id="prepareparam2" implementation="http://www.jboss.org/drools/rule" name="填充单位和单价"/>
        <!-- 最后结束节点 -->
        <endEvent id="prepareparam2_end" name="end"/>

        <sequenceFlow id="prepareparam2_end_line" sourceRef="prepareparam2" targetRef="prepareparam2_end"/>

        <!-- 获取商品信息 -->
        <businessRuleTask activiti:exclusive="true" g:ruleFlowGroup="deaction1group" id="deaction1" implementation="http://www.jboss.org/drools/rule" name="获取商品信息"/>

        <!-- 获取商品ID -->
        <businessRuleTask activiti:exclusive="true" g:ruleFlowGroup="prepareparam1group" id="prepareparam1" implementation="http://www.jboss.org/drools/rule" name="获取商品id"/>


        <!-- 连接 -->
        <sequenceFlow id="begin_prepareparam1" sourceRef="begin" targetRef="prepareparam1">
        </sequenceFlow>

        <!-- 连接 -->
        <sequenceFlow id="deaction1_prepareparam2" sourceRef="deaction1" targetRef="prepareparam2">
        </sequenceFlow>

        <!-- 连接 -->
        <sequenceFlow id="prepareparam1_deaction1" sourceRef="prepareparam1" targetRef="deaction1">
        </sequenceFlow>

    </process>
</definitions>