亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? helloworldtest.java

?? jBpm是一個靈活可擴展的工作流管理系統(tǒng)。作為jBpm運行時server輸入的業(yè)務(wù)流程使用簡單強大的語言表達并打包在流程檔案中
?? JAVA
字號:
/*
 * JBoss, Home of Professional Open Source
 * Copyright 2005, JBoss Inc., and individual contributors as indicated
 * by the @authors tag. See the copyright.txt in the distribution for a
 * full listing of individual contributors.
 *
 * This is free software; you can redistribute it and/or modify it
 * under the terms of the GNU Lesser General Public License as
 * published by the Free Software Foundation; either version 2.1 of
 * the License, or (at your option) any later version.
 *
 * This software is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this software; if not, write to the Free
 * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
 * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
 */
package org.jbpm.tutorial.helloworld;

import junit.framework.TestCase;

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

public class HelloWorldTest extends TestCase {
  
  public void testHelloWorldProcess() {
    // This method shows a process definition and one execution
    // of the process definition.  The process definition has 
    // 3 nodes: an unnamed start-state, a state 's' and an 
    // end-state named 'end'.
    // The next line parses a piece of xml text into a
    // ProcessDefinition.  A ProcessDefinition is the formal 
    // description of a process represented as a java object.
    ProcessDefinition processDefinition = ProcessDefinition.parseXmlString(
      "<process-definition>" +
      "  <start-state>" +
      "    <transition to='s' />" +
      "  </start-state>" +
      "  <state name='s'>" +
      "    <transition to='end' />" +
      "  </state>" +
      "  <end-state name='end' />" +
      "</process-definition>"
    );
    
    // The next line creates one execution of the process definition.
    // After construction, the process execution has one main path
    // of execution (=the root token) that is positioned in the
    // start-state.
    ProcessInstance processInstance = 
        new ProcessInstance(processDefinition);
    
    // After construction, the process execution has one main path
    // of execution (=the root token).
    Token token = processInstance.getRootToken();
    
    // Also after construction, the main path of execution is positioned
    // in the start-state of the process definition.
    assertSame(processDefinition.getStartState(), token.getNode());
    
    // Let's start the process execution, leaving the start-state 
    // over its default transition.
    token.signal();
    // The signal method will block until the process execution 
    // enters a wait state.

    // The process execution will have entered the first wait state
    // in state 's'. So the main path of execution is not 
    // positioned in state 's'
    assertSame(processDefinition.getNode("s"), token.getNode());

    // Let's send another signal.  This will resume execution by 
    // leaving the state 's' over its default transition.
    token.signal();
    // Now the signal method returned because the process instance 
    // has arrived in the end-state.
    
    assertSame(processDefinition.getNode("end"), token.getNode());
  }

  
  public void testThreeStateProcess() {
    // This test shows a process similar to the simplest process 
    // above, but now there are 3 states instead of one, which will 
    // result in 2 extra signals to be given by the test. 
    ProcessDefinition processDefinition = ProcessDefinition.parseXmlString(
      "<process-definition>" +
      "  <start-state>" +
      "    <transition to='phase one' />" +
      "  </start-state>" +
      "  <state name='phase one'>" +
      "    <transition to='phase two' />" +
      "  </state>" +
      "  <state name='phase two'>" +
      "    <transition to='phase three' />" +
      "  </state>" +
      "  <state name='phase three'>" +
      "    <transition to='end' />" +
      "  </state>" +
      "  <end-state name='end' />" +
      "</process-definition>"
    );
    
    ProcessInstance processInstance = 
        new ProcessInstance(processDefinition);
    Token token = processInstance.getRootToken();
    assertSame(processDefinition.getStartState(), token.getNode());

    token.signal();
    assertSame(processDefinition.getNode("phase one"), token.getNode());

    token.signal();
    assertSame(processDefinition.getNode("phase two"), token.getNode());

    token.signal();
    assertSame(processDefinition.getNode("phase three"), token.getNode());

    token.signal();
    assertSame(processDefinition.getNode("end"), token.getNode());
  }
}

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
久久久亚洲精华液精华液精华液| 成人av影院在线| 欧洲国内综合视频| 亚洲精品一卡二卡| 色综合久久久久综合体| 一区二区三区在线免费| 在线精品视频小说1| 夜夜嗨av一区二区三区| 欧美日韩亚洲另类| 日本aⅴ免费视频一区二区三区| 制服丝袜av成人在线看| 久久国产剧场电影| 久久久久久久久久久久电影| 福利视频网站一区二区三区| 中文字幕在线一区| 91精品1区2区| 天天操天天色综合| 久久视频一区二区| 99久久精品免费看国产| 夜夜亚洲天天久久| 日韩欧美一区二区三区在线| 国产福利一区二区三区视频在线| 亚洲欧洲一区二区在线播放| 欧美日韩精品欧美日韩精品一综合| 日韩精品一二三区| 国产亚洲欧美激情| 欧美中文一区二区三区| 91免费小视频| 亚洲成人免费影院| wwwwxxxxx欧美| 91丨九色丨国产丨porny| 偷窥少妇高潮呻吟av久久免费| 亚洲精品在线一区二区| 99久久精品免费精品国产| 日本成人在线看| 国产欧美一区二区精品婷婷| 欧美丝袜丝nylons| 国产美女久久久久| 亚洲一区二区在线播放相泽| 久久影音资源网| 欧美主播一区二区三区| 精品一区二区国语对白| 亚洲男人的天堂一区二区 | 蜜臀av性久久久久av蜜臀妖精 | 99久久国产综合精品麻豆 | 美女久久久精品| 国产精品国产精品国产专区不蜜| 欧美人妖巨大在线| av动漫一区二区| 蜜桃av一区二区在线观看| 18涩涩午夜精品.www| 日韩视频一区在线观看| 色综合久久久久久久久久久| 国产老女人精品毛片久久| 亚洲午夜一区二区| 国产精品国产a级| 久久综合九色综合久久久精品综合 | 国产欧美精品在线观看| 欧美一级午夜免费电影| 色综合久久久久久久久久久| 国产激情精品久久久第一区二区| 热久久免费视频| 一区二区三区在线观看国产 | 国产日韩欧美电影| 91精品国产免费久久综合| 色呦呦国产精品| 成人久久久精品乱码一区二区三区| 六月丁香婷婷色狠狠久久| 国内不卡的二区三区中文字幕| 丝袜美腿一区二区三区| 亚洲自拍另类综合| 亚洲精品国产a| 国产精品福利一区| 国产欧美精品区一区二区三区 | 国产欧美日韩亚州综合| 精品国产精品网麻豆系列| 欧美一区二区日韩| 6080国产精品一区二区| 欧美日韩极品在线观看一区| 欧美亚洲一区二区在线| 日本韩国一区二区| 在线观看一区二区视频| 一本久久a久久免费精品不卡| 99精品欧美一区二区三区小说| 成人手机电影网| av在线不卡电影| 91麻豆精品秘密| 99国产精品久久久久| 91视频一区二区| 色一情一乱一乱一91av| 欧美性大战xxxxx久久久| 欧美在线免费播放| 欧美猛男超大videosgay| 欧美精品久久久久久久多人混战| 3d成人动漫网站| 日韩欧美国产电影| 久久久综合视频| 国产精品嫩草影院av蜜臀| 亚洲欧洲av色图| 一区二区三区精品| 午夜精品在线看| 久久精品国产成人一区二区三区 | 一区二区激情视频| 亚洲高清不卡在线观看| 青青草97国产精品免费观看无弹窗版| 免费一级欧美片在线观看| 精品夜夜嗨av一区二区三区| 懂色av一区二区三区免费看| 一本色道久久综合亚洲aⅴ蜜桃 | 欧美亚洲图片小说| 日韩视频免费观看高清完整版在线观看 | a级精品国产片在线观看| 色婷婷狠狠综合| 日韩一区二区电影在线| 久久久久久久免费视频了| 中文字幕综合网| 日韩国产精品久久久久久亚洲| 精品午夜一区二区三区在线观看| 成人免费视频国产在线观看| 欧美日韩在线综合| 久久久精品综合| 一区二区免费视频| 国产乱理伦片在线观看夜一区| 色综合色综合色综合色综合色综合 | 在线精品亚洲一区二区不卡| 欧美大黄免费观看| 亚洲狼人国产精品| 精品一二三四区| 在线视频欧美区| 精品国产91久久久久久久妲己| 亚洲欧美激情在线| 久久国产精品99久久久久久老狼| 99精品视频在线免费观看| 欧美一二三四在线| 亚洲精品视频在线观看免费 | 91精品国产麻豆国产自产在线| 国产精品成人免费精品自在线观看| 白白色 亚洲乱淫| 777午夜精品免费视频| 亚洲国产成人午夜在线一区 | 日韩国产精品91| 97aⅴ精品视频一二三区| 欧美va在线播放| 夜夜嗨av一区二区三区网页| 福利一区二区在线| 欧美tickling网站挠脚心| 亚洲成人av一区二区三区| 成人免费黄色大片| 久久综合久久综合亚洲| 日本人妖一区二区| 91官网在线观看| 日韩一区在线播放| 粉嫩一区二区三区性色av| 欧美大片顶级少妇| 日本欧美一区二区三区| 欧美亚洲高清一区| 亚洲精品第1页| av在线这里只有精品| 国产午夜精品理论片a级大结局| 蜜臀av一区二区| 欧美片在线播放| 午夜精品久久久久| 91福利在线观看| 亚洲女同ⅹxx女同tv| 成人免费毛片高清视频| 国产午夜精品美女毛片视频| 国产一区二区三区在线看麻豆| 91精品国模一区二区三区| 亚洲国产精品久久一线不卡| 一本色道久久综合狠狠躁的推荐 | 精品动漫一区二区三区在线观看| 午夜精品国产更新| 欧美日本韩国一区二区三区视频| 亚洲另类中文字| 91成人在线观看喷潮| 亚洲欧美另类图片小说| 91欧美一区二区| 亚洲永久精品大片| 欧美日韩亚洲高清一区二区| 亚洲成人资源网| 在线电影欧美成精品| 日韩电影在线观看电影| 欧美一区二区三区日韩视频| 秋霞影院一区二区| 精品免费日韩av| 国内精品伊人久久久久av一坑| 久久久综合视频| 99这里只有久久精品视频| 亚洲视频一区在线| 欧美日韩三级在线| 免费观看久久久4p| 国产日韩欧美一区二区三区乱码| 成人综合在线网站| 亚洲精品乱码久久久久久久久 | 亚洲综合色网站| 在线播放中文一区| 欧美性感一类影片在线播放| 天堂成人国产精品一区| 久久久噜噜噜久噜久久综合| 菠萝蜜视频在线观看一区|