Oracle神諭

            BlogJava :: 首頁 :: 新隨筆 :: 聯系 :: 聚合  :: 管理 ::
            284 隨筆 :: 9 文章 :: 106 評論 :: 0 Trackbacks

          Class Token
          represents one path of execution and maintains a pointer to a node in the ProcessDefinition. Most common way to get a hold of the token objects is with ProcessInstance.getRootToken() or ProcessInstance.findToken(String).
          在流程定義中表現一個執行路徑和維持一個指示器給一個節點。
          ProcessInstance.getRootToken()
          ProcessInstance.findToken(String)

          signal()
              provides a signal to the token. this method activates this token and leaves the current state over the default transition.
              準備一個信號給標記。這個方法激活這個標記并且離開當前的狀態越過缺省的躍遷。
          ------------------------------------
          Class ProcessInstance
          is one execution of a ProcessDefinition. To create a new process execution of a process definition, just use the ProcessInstance(ProcessDefinition).
          是一個流程定義的執行。
          ProcessInstance(ProcessDefinition)
          ---------------------------------------
          Class ProcssDefinition
          創建一個ProcessDefinition
          parseParResource(String parResource)
          parseParZipInputStream(ZipInputStream zipInputStream)
          parseXmlInputStream(InputStream inputStream)
          parseXmlReader(Reader reader)
          parseXmlResource(String resource)
          parseXmlString(String string)
          -----------------------------
          Class ContextInstance
          maintains all the key-variable pairs for a process instance. You can obtain a ContextInstance from a processInstance from a process instance like this :
           ProcessInstance processInstance = ...;
           ContextInstance contextInstance = processInstance.getContextInstance();
          為流程實例維持所有的key-variable對。

          ContextInstance  contextInstance = ProcessInstance.getContextInstance();
          contextInstance.setVariable("amount",new Integer(500));
          contextInstance.setVariable("reason","I met my deadline");

          --------------------------
          任務節點:
          <task-node name="t">
            <task name="change nappy">
              <assignment  class="org.jbpm.tutorial.taskmgmt.NappyAssignmentHandler"/>
            </task>
            <transition to="end">
          </task-node>

          TaskInstance taskInstance = (TaskInstance)processInstance.getTaskMgmtInstance().getTaskInstances().iterator().next();

          taskInstance.end(); //標志這個任務已經結束

          --------------------------------------------

          posted on 2005-09-19 11:49 java世界暢談 閱讀(952) 評論(0)  編輯  收藏 所屬分類: JBPM
          主站蜘蛛池模板: 崇信县| 新津县| 塔城市| 安多县| 金湖县| 滨海县| 重庆市| 保靖县| 新蔡县| 盱眙县| 元江| 临湘市| 江津市| 上饶市| 公主岭市| 新绛县| 正阳县| 含山县| 千阳县| 文成县| 莎车县| 彰武县| 三穗县| 高邑县| 固镇县| 湖北省| 渭源县| 旅游| 睢宁县| 德昌县| 仪陇县| 屏东市| 灯塔市| 二连浩特市| 屏边| 万州区| 恩平市| 南平市| 徐水县| 夏河县| 铅山县|