<rt id="bn8ez"></rt>
<label id="bn8ez"></label>

  • <span id="bn8ez"></span>

    <label id="bn8ez"><meter id="bn8ez"></meter></label>

    沉睡森林@漂在北京

    本處文章除注明“轉載”外均為原創,轉載請注明出處。

      BlogJava :: 首頁 :: 新隨筆 :: 聯系 :: 聚合  :: 管理 ::
      152 隨筆 :: 4 文章 :: 114 評論 :: 0 Trackbacks
     

    憋了幾天,終于出來了一點東西。下面是流程圖和我寫的xml文件。總的來說,對OSWorkflow還是不能算清楚。重點在設計方面疑問還很多。

     

    流程圖:

    XML文件:

    <?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>

     

     

     

    posted on 2008-10-07 20:28 王總兵 閱讀(347) 評論(0)  編輯  收藏 所屬分類: Workflow
    主站蜘蛛池模板: 亚洲精品123区在线观看| 久久夜色精品国产噜噜噜亚洲AV| 国产精品亚洲片在线va| 永久免费bbbbbb视频| 国产亚洲精品美女久久久久| 亚洲午夜福利AV一区二区无码| 99re6在线视频精品免费下载| 国产精品亚洲片在线va| 亚洲国产精品免费视频| 成人免费一区二区三区在线观看| 黄页网址大全免费观看12网站| 亚洲AV成人片色在线观看| 在线免费观看一级片| 青柠影视在线观看免费| 午夜在线a亚洲v天堂网2019| 久久精品国产亚洲77777| 亚洲国产精品VA在线看黑人| 久久精品网站免费观看| 成人无码区免费A∨直播| 久久精品国产亚洲αv忘忧草 | 狠狠色婷婷狠狠狠亚洲综合| 1区2区3区产品乱码免费| 国产成人亚洲综合a∨| 亚洲人成人伊人成综合网无码 | 男女一进一出抽搐免费视频| 亚洲国产精品久久丫| 好吊妞788免费视频播放| 成人无码区免费视频观看| 中字幕视频在线永久在线观看免费 | 国产精品无码亚洲一区二区三区| 久久亚洲精品AB无码播放| 亚洲综合无码精品一区二区三区| 成年大片免费视频| 好大好深好猛好爽视频免费| 国产精品视频永久免费播放| 日本精品人妻无码免费大全| 无人在线观看完整免费版视频| 国产美女在线精品免费观看| 日本高清免费aaaaa大片视频| 88xx成人永久免费观看| 黄 色一级 成 人网站免费|