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

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

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

    Oracle神諭

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

    (一)結構:
    (1)XML定義文件(definition)
    (2)plain java   JBpm對象模型  定義 執行 日志
    (3)DataBase  定義 執行 日志
    (二)
    A process definition can be represented in 3 different forms : as xml, as java objects and as records in the jBPM database. Executional (=runtime) information and logging information can be represented in 2 forms : as java objects and as records in the jBPM database.{一個流程定義可以表現為三種不同的形態:XML 、java對象和jBpm數據庫中的記錄。執行(運行)信息和日志信息可以表現為兩種形態:java對象和jBpm數據庫中的記錄}

    For more information about the xml representation of process definitions and process archives, see Chapter 13, jBPM Process Definition Language (JPDL).{Process Definition Language JPDL}

    This chapter will discuss the transformations done between the java objects and the jBPM database. To store java objects in the database and retrieve them, jBPM uses hibernate internally. While it is not strictly necessary to have hibernate knowledge for using jBPM, it is recommended. {這個章節將要討論在java對象和jBPM數據庫之間的轉換。為了在數據庫中存儲對象和獲取他們,jBPM使用內部使用了Hibernate。當然不是在使用jBPM中嚴格要擁有Hibernate的知識,它是建議的}

    More information on how to deploy a process archive to the database can be found in Section 13.1.1, “Deploying a process archive” .


    (三)Session的層次:
    JbpmSessionFactory
    |
    |
    |
    JbpmSession
    |
    |
    |
    GraphSession
    TaskMgmtSession
    ContextSession

    (四) The jBPM database classes

    The jBPM persistence operations can be found in the named sessions like e.g. GraphSession, TaskMgmtSession and ContextSession,... The named sessions can be obtained from a JbpmSession. The JbpmSession in its turn can be obtained from a JbpmSessionFactory. {jBPM持久層操作可以發現被命名為sessions,例如想GraphSession TaskMgmtSession和ContextSession.... 這個命名sessions可以從JbpmSession中獲得。JbmpSession可以從JbpmSessionFactory中獲得}

    A JbpmSessionFactory is threadsafe so in your application, you need one JbpmSessionFactory. That singleton can be referenced e.g. in a static variable with lazy initialization (beware about the issues around lazy initialization and double-checked locking). At creation time, the JbpmSessionFactory prepares all information in a way that JbpmSessions can be created super fast. {一個JbpmSessionFactory在你的程序中是線程安全的,你僅僅需要一個JbpmSessionFactory. 那個單例可以被參考在例如在lazy初始化下的靜態變量(小心發布在Lazy 初始化并且雙層檢查鎖定。在創建時刻,JbpmSessionFactory 在某種程度準備所有信息那樣可以被快速創建)}

    As a user, you should create one JbpmSession per thread or per request. The JbpmSession has a JDBC connection to the database. {作為一個用戶,你應該創建一個JbpmSession 每一個線程或每一次請求。JbpmSession擁有一個連接數據庫的Jdbc連接。}

    The purpose of the JbpmSession and JbpmSessionFactory is only to wrap their hibernate counterparts. For advanced features such as detached objects or optimistic locking, see the hibernate documentation. {這個JbpmSession和JbpmSessionFactory的目的僅僅是為了包裝Hibernate 副本。 對于高級特征 例如分離對象或樂觀鎖,看hibernate文檔。}

    public class PersistenceApiTest extends TestCase {

      static JbpmSessionFactory jbpmSessionFactory = JbpmSessionFactory.buildJbpmSessionFactory();

      public void testStartProcessInstance() {
        // obtain a session
        JbpmSession jbpmSession = jbpmSessionFactory.openJbpmSession();
        try {
          // start a user managed transaction
          jbpmSession.beginTransaction();

          // load information from the database
          // (note that process definitions will be cached in memory
          // in the second level cache of hibernate)
          ProcessDefinition auctionProcess =
            jbpmSession.getGraphSession().findLatestProcessDefinition("auction");

          // perform a POJO workflow operation on the plain object model.
          ProcessInstance auctionInstance = new ProcessInstance(auctionProcess);
          auctionInstance.signal();
         
          // store the result in the database
          jbpmSession.getGraphSession().saveProcessInstance(auctionInstance);
         
          // commit the user transaction
          jbpmSession.commitTransaction();

        } finally {
          // close the session.
          jbpmSession.close();     
        }
      }
    }

    posted on 2005-06-14 18:04 java世界暢談 閱讀(1830) 評論(0)  編輯  收藏 所屬分類: 工作流
    主站蜘蛛池模板: 国产精品亚洲一区二区三区| 亚洲午夜久久久久久尤物| 午夜国产羞羞视频免费网站| 国产嫩草影院精品免费网址| 亚洲人成亚洲人成在线观看| 久久精品蜜芽亚洲国产AV| 亚洲av无码一区二区三区天堂古代| 蜜臀亚洲AV无码精品国产午夜.| 国产精品网站在线观看免费传媒| 亚洲第一网站免费视频| 国产无遮挡吃胸膜奶免费看| 国产亚洲一卡2卡3卡4卡新区| 日韩高清免费在线观看| 亚洲宅男永久在线| 4444www免费看| 2020天堂在线亚洲精品专区| 黄色视屏在线免费播放| aa级一级天堂片免费观看| 国产成人亚洲精品青草天美| 亚洲.国产.欧美一区二区三区| 精品无码AV无码免费专区| 亚洲国模精品一区| 亚洲狠狠成人综合网| 免费人成毛片动漫在线播放| 中文字幕亚洲精品| 两性色午夜视频免费网| 亚洲乱码国产一区网址| 在线人成免费视频69国产| 日日噜噜噜噜夜夜爽亚洲精品| 色偷偷亚洲第一综合网| 国产亚洲精品线观看动态图| 日韩精品视频在线观看免费| 日本免费网站观看| 特级毛片爽www免费版| 四虎永久在线精品免费观看地址 | 亚洲国产模特在线播放| 全免费a级毛片免费看不卡| 亚洲伊人久久精品| 亚洲毛片不卡av在线播放一区| 最近免费中文字幕高清大全| 亚洲av永久无码一区二区三区|