<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE workflow PUBLIC "-//OpenSymphony Group//DTD OSWorkflow 2.6//EN" "http://www.opensymphony.com/osworkflow/workflow_2_8.dtd">
<workflow>
<initial-actions>
<action id="100" name="开始通知书质检发送流程">
<pre-functions>
<function type="class">
<arg name="class.name">com.opensymphony.workflow.util.Caller</arg>
</function>
</pre-functions>
<results>
<unconditional-result old-status="Finished" status="Underway" step="1" owner="${caller}"/>
</results>
</action>
</initial-actions>
<steps>
<step id="1" name="提交质检">
<actions>
<action id="1" name="提交质检文本">
<restrict-to>
<conditions type="AND">
<condition type="class">
<arg name="class.name">com.opensymphony.workflow.util.OSUserGroupCondition</arg>
<arg name="group">zj_hyz</arg>
</condition>
</conditions>
</restrict-to>
<pre-functions>
<function type="class">
<arg name="class.name">com.example.baopi.func.TiJiaoZhiJianFunction</arg>
</function>
</pre-functions>
<results>
<unconditional-result old-status="Finished" status="Underway" step="2" owner="zj_zjy1"/>
</results>
</action>
</actions>
</step>
<step id="2" name="质检处理">
<actions>
<action id="2" name="质检员处理">
<restrict-to>
<conditions type="AND">
<condition type="beanshell">
<arg name="script">true</arg>
</condition>
<condition type="class">
<arg name="class.name">com.opensymphony.workflow.util.StatusCondition</arg>
<arg name="status">Underway</arg>
</condition>
<condition type="class">
<arg name="class.name">com.opensymphony.workflow.util.OSUserGroupCondition</arg>
<arg name="group">zj_zjy</arg>
</condition>
</conditions>
</restrict-to>
<pre-functions>
<function type="class">
<arg name="class.name">com.example.baopi.func.ZhiJianChuLiFunction</arg>
</function>
</pre-functions>
<results>
<unconditional-result old-status="Finished" status="Underway" step="3" owner="zj_hyz1"/>
</results>
</action>
</actions>
</step>
<step id="3" name="合议组针对质检修改稿的处理">
<actions>
<action id="3" name="合议组处理">
<pre-functions>
<function type="class">
<arg name="class.name">com.example.baopi.func.ZhiJianFanHuiFunction</arg>
</function>
<function type="class">
<arg name="class.name">com.opensymphony.workflow.util.Caller</arg>
</function>
</pre-functions>
<results>
<result old-status="Finished" status="Underway" step="5" owner="zj_hyz1" >
<conditions type="AND">
<condition type="beanshell">
<arg name="script">
propertySet.getInt("opinion")==2
</arg>
</condition>
</conditions>
</result>
<unconditional-result old-status="Finished" status="Underway" step="5" owner="zj_cz1"/>
</results>
</action>
</actions>
</step>
<step id="5" name="处长处理">
<actions>
<action id="5" auto="true" name="处级报批">
<pre-functions>
<function type="beanshell">
<arg name="script">
System.out.println("处长处理...");
</arg>
</function>
</pre-functions>
<results>
<result old-status="Finished" status="Underway" step="6" owner="zj_bz1" >
<conditions type="AND">
<condition type="beanshell">
<arg name="script">
propertySet.getInt("opinion")==2
</arg>
</condition>
</conditions>
</result>
<unconditional-result old-status="Finished" status="Finished" step="1" owner="zj_hyz1"/>
</results>
</action>
</actions>
</step>
<step id="5" name="部级处理">
<actions>
<action id="5" auto="true" name="部级处理">
<pre-functions>
<function type="beanshell">
<arg name="script">
System.out.println("部级处理...");
</arg>
</function>
</pre-functions>
<results>
<unconditional-result old-status="Finished" status="Finished" step="1" owner="zj_hyz1"/>
</results>
</action>
</actions>
</step>
<step id="15" name="通知书发送处理">
<actions>
<action id="15" auto="true" name="发送通知书">
<pre-functions>
<function type="beanshell">
<arg name="script">
System.out.println("通知书发送...");
</arg>
</function>
</pre-functions>
<results>
<unconditional-result old-status="Finished" status="Finished" step="16" owner="zj_hyz1"/>
</results>
</action>
</actions>
</step>
<step id="16" name="flow over">
</step>
</steps>
</workflow>
|