自定义流程

风流意气都作罢 提交于 2020-02-08 16:51:43

流程包括:事件、活动、流、节点

 

事件

**Event:流程的状态,无条件执行
属性:id、name
起始
<startEvent id="***" name="***"     />
结束
<endEvent id="***" name="***"     />

 

活动

activity:单个的任务属性:id、name、URI子元素1:input 属性:name、type、UIR
子元素2:output 属性:name、type、UIR如:决策服务
<activity id="decide1" name="决策服务1" URI="www.baidu.com">   <input name="Strategy1.xls" type="File" UIR="www.google.com/1" />   <input name="Result.properties" type="File" UIR="www.google.com/2" />   <output name="Strategy3.xls" type="File" UIR="www.google.com/3" />   <output name="Result2.properties" type="File" UIR="www.google.com/4" /> </activity>

 

flow:箭头属性:id、name、from、to

 

<process id="..." name="...">
    <startEvent id="startEvent1" name="***"/>
    <activity id="activity1" name="决策服务1" URI="www.baidu.com">    <input name="Strategy1.xls" type="File" UIR="www.google.com/1" />     <input name="Result.properties" type="File" UIR="www.google.com/2" />     <output name="Strategy3.xls" type="File" UIR="www.google.com/3" />     <output name="Result2.properties" type="File" UIR="www.google.com/4" />   </activity>   <endEvent id="endEvent1" name="***"/>   <flow id="flow1" name="..." from="startEvent1" to="decide1" />  <flow id="flow2" name="..." from="decide1" to="endEvent1" /> </process>

 

节点

Node:支路的交点,控制流向
parallelNode并行节点属性:id,name

 

 

 

 

<process id="..." name="...">
    <!--起始事件-->
    <startEvent id="startEvent1" name="Start"/>
    <!--活动1-->
    <activity id="activity1" name="读取策略" URI="www.baidu.com">
        <input name="Strategy1.xls" type="File" UIR="www.google.com/1" />
        <input name="Result.properties" type="File" UIR="www.google.com/2" />
        <output name="Strategy3.xls" type="File" UIR="www.google.com/3" />
        <output name="Result2.properties" type="File" UIR="www.google.com/4" />
    </activity>
    <!--并行节点-->
    <parallelNode id="parallelNode1" name="" />
    <!--活动2-->
    <activity id="activity2" name="执行检测软件" URI="www.baidu.com">
        <input name="Strategy1.xls" type="File" UIR="www.google.com/1" />
        <input name="Result.properties" type="File" UIR="www.google.com/2" />
        <output name="Strategy3.xls" type="File" UIR="www.google.com/3" />
        <output name="Result2.properties" type="File" UIR="www.google.com/4" />
    </activity>
    <!--活动3-->
    <activity id="activity3" name="输出策略" URI="www.baidu.com">
        <input name="Strategy1.xls" type="File" UIR="www.google.com/1" />
        <input name="Result.properties" type="File" UIR="www.google.com/2" />
        <output name="Strategy3.xls" type="File" UIR="www.google.com/3" />
        <output name="Result2.properties" type="File" UIR="www.google.com/4" />
    </activity>
    <!--并行节点-->
    <parallelNode id="parallelNode2" name="" />
    <!--活动4-->
    <activity id="activity4" name="执行决策程序" URI="www.baidu.com">
        <input name="Strategy1.xls" type="File" UIR="www.google.com/1" />
        <input name="Result.properties" type="File" UIR="www.google.com/2" />
        <output name="Strategy3.xls" type="File" UIR="www.google.com/3" />
        <output name="Result2.properties" type="File" UIR="www.google.com/4" />
    </activity>
    <!--结束事件-->
    <endEvent id="endEvent1" name="***"/>
    <!--流-->
    <flow id="flow1" name="..." from="startEvent1" to="activity1" />
    <flow id="flow2" name="..." from="activity1" to="parallelNode1" />
    <flow id="flow3" name="..." from="parallelNode1" to="activity2" />
    <flow id="flow4" name="..." from="activity2" to="parallelNode2" />
    <flow id="flow5" name="..." from="parallelNode1" to="activity3" />
    <flow id="flow6" name="..." from="activity3" to="parallelNode2" />
    <flow id="flow7" name="..." from="parallelNode2" to="activity4" />
    <flow id="flow8" name="..." from="activity4" to="endEvent1" />
</process>

 

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!