如鵬網 大學生計算機學習社區

          CowNew開源團隊

          http://www.cownew.com 郵件請聯系 about521 at 163.com

            BlogJava :: 首頁 :: 新隨筆 :: 聯系 :: 聚合  :: 管理 ::
            363 隨筆 :: 2 文章 :: 808 評論 :: 0 Trackbacks

          package com.sample;

          import org.jbpm.graph.def.ProcessDefinition;
          import org.jbpm.graph.exe.ProcessInstance;

          public class Main
          {
           public static void main(String[] args)
           {
            ProcessDefinition processDefinition = ProcessDefinition
              .parseXmlResource("simple/processdefinition.xml");
            ProcessInstance instance = new ProcessInstance(processDefinition);
            while (!instance.hasEnded())
            {
             instance.signal();
            }
           }
          }



          不需要人工參與,不需要持久化狀態,流程一次性短時間內運行完成,其實這是把JBPM當成普通的流程圖運行引擎來用了,呵呵,大材小用了,:),不過省的自己寫流程運行引擎了。
          posted on 2007-11-15 15:29 CowNew開源團隊 閱讀(512) 評論(0)  編輯  收藏

          只有注冊用戶登錄后才能發表評論。


          網站導航:
           
          主站蜘蛛池模板: 安顺市| 浦北县| 襄垣县| 临高县| 丰宁| 六安市| 新野县| 怀宁县| 资中县| 库车县| 大城县| 芜湖市| 姜堰市| 恩平市| 普兰县| 汉中市| 景洪市| 丁青县| 眉山市| 淮南市| 曲周县| 楚雄市| 茂名市| 清苑县| 丽水市| 罗甸县| 仙桃市| 永年县| 衡阳市| 施秉县| 平阴县| 凤冈县| 娱乐| 蕲春县| 苏尼特右旗| 鄯善县| 石台县| 仙游县| 定远县| 德兴市| 余姚市|