Oracle神諭

            BlogJava :: 首頁(yè) :: 新隨筆 :: 聯(lián)系 :: 聚合  :: 管理 ::
            284 隨筆 :: 9 文章 :: 106 評(píng)論 :: 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).
          在流程定義中表現(xiàn)一個(gè)執(zhí)行路徑和維持一個(gè)指示器給一個(gè)節(jié)點(diǎn)。
          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.
              準(zhǔn)備一個(gè)信號(hào)給標(biāo)記。這個(gè)方法激活這個(gè)標(biāo)記并且離開(kāi)當(dāng)前的狀態(tài)越過(guò)缺省的躍遷。
          ------------------------------------
          Class ProcessInstance
          is one execution of a ProcessDefinition. To create a new process execution of a process definition, just use the ProcessInstance(ProcessDefinition).
          是一個(gè)流程定義的執(zhí)行。
          ProcessInstance(ProcessDefinition)
          ---------------------------------------
          Class ProcssDefinition
          創(chuàng)建一個(gè)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();
          為流程實(shí)例維持所有的key-variable對(duì)。

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

          --------------------------
          任務(wù)節(jié)點(diǎn):
          <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(); //標(biāo)志這個(gè)任務(wù)已經(jīng)結(jié)束

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

          posted on 2005-09-19 11:49 java世界暢談 閱讀(952) 評(píng)論(0)  編輯  收藏 所屬分類(lèi): JBPM
          主站蜘蛛池模板: 涪陵区| 邮箱| 宁武县| 开化县| 贵港市| 云南省| 松滋市| 赤水市| 瑞丽市| 赤壁市| 佳木斯市| 乌拉特后旗| 留坝县| 瑞金市| 西青区| 五莲县| 汤原县| 黄陵县| 敖汉旗| 天等县| 米林县| 大港区| 新密市| 宣汉县| 连山| 大同县| 桦甸市| 辽宁省| 泉州市| 宁海县| 石城县| 舒城县| 铜陵市| 阳谷县| 鄱阳县| 买车| 洛川县| 胶南市| 鹿泉市| 广州市| 浑源县|