Skip to main content

JBoss BRMS - 製作自動BPM流程

在閱讀這張之前,請先安裝好JBoss BRMS 5.3.x,因為先前寫過,就不再重複。
有需要的朋友,可以到先前安裝的文章, 安裝BRMS 到 EAP 6.x

JBoss BRMS 裡面的流程,是由JBoss 社群裡面的jBPM專案組成的。這一版的jBPM前身是Drools Project 裡面的Drools Flow出來。跟jBPM 3 是完全不同的核心。 好拉,講古就講到這裡。 來看一下 JBoss BRMS 的 jBPM吧。。

首先。先來看看JBoss BRMS 裡面跟jBPM相關的有三大塊,


  • BPM 引擎, 負責建立每個執行的Session, 與呼叫外部任務(包含人工作業),在BRMS 裡面會出現的方式,一, 包在你程式裡面的引擎(jbpm的jar檔),二, BRMS裡面內建提供的Business Central Web 系統。
  • 任務伺服器 Task Server, 負責人工作業的產生,管理Task 的LifeCycle. BRMS裡面的一個WAR檔。需要資料去儲存目前Task的狀態。
  • 流程定義儲存庫,定義的部分在BRMS裡面可以靠,一,JBoss Developer Studio 拉選,二,使用BRMS裡面的 JBoss BRMS 控制台。可以儲存於檔案,或是資料庫。




這次我們先建立最簡單的流程,後面我在陸續,更細部的介紹。先把一個流程跑起來再說。
因為只是個小小的流程,所以這次暫時不會跟Task Server 有聯結。日後會陸續介紹。

首先,登入我們的JBoss BRMS 的控制台,

1. 建立一個Package
首先請登入JBoss BRMS 的 控制台 http://jboss-brms
到左邊的Knowlege Base下,選擇新增Package, 叫做com.demo



2. 建立一個BPMN2.0

於 Create New 的地方選擇 New BPMN2 Porcess, 下個畫面輸入myfirstBP, 記得把Package 選在剛剛建立的那個com.demo上喔。

  

3. 拉一個會說Hello World 跟 Goodbye World 的小流程。

請到左邊的選單中把Start Event拖到中間的空白頁上。

把滑鼠滑倒start node的上面後,會出現一些小圖,選擇空白方筐

滑鼠點選剛剛建立的Task, 設定這個新增的node 是Script node, 名字name 給 Say Hello.


按下Script 新增我們要執行的內容,


也就是,印出Hello World

下一個做法也相同,

Name是 Say Goodbye, 要執行的內容Script 是Goodbye Wolrd


這次不要選擇方筐,請選擇單一實線圈圈的End Task,


這就是我們完成的第一個小流程。

到畫面的左上方,按下Save Change


左邊選單,請選擇com-> demo


這時右邊會出現一個這個Package的清單。選擇上方的Edit Tab後,按下畫面中的 Validate 按鈕,以及Build 按鈕,把電子檔compile出來。








4. 登入JBoss BRMS Business Central

執行第一個jBPM的流程,選擇左邊的Process Overview, 這時就會看到剛剛建立的商業流程。

 
  選擇Process之後按下start -> ok.


  恭喜你,你執行完成了!!去看log就會發現有Hello World, 跟 Goodbye World 無誤。



以上。






Comments

Popular posts from this blog

Fuse Integration Service - Setup JBDS and create first quickstart application

Before we go and start creating our first application, I want to show you how to setup your JBoss Developer Studio, create a small application from the quickstart example and then running it on Fuse Integration Service.

I am using JBoss Developer Studio version 9, you can find it here.
After download the

jboss-devstudio-9.0.0.GA-installer-eap.jar
double-click it, and start installing with default values.

After successful installation, we will need install the plugins for Fuse, on JBoss Central view, select software update, select enable early access.


And select JBoss Fuse Development for the plugin,


Click on install, and we are all set to go!

First thing first, we want to create a Fuse project to deploy on the base of Fuse Integration Service, which is OpenShift. If you have not installed it, please go back to my previous post for instructions. So on your JBDS, right click and start creating the project. Select new, maven project, if you have installed the plugin correctly, you should …

Red Hat JBoss Fuse/A-MQ - Fuse and A-MQ Version 6.3 GA is released!

Fuse and A-MQ 6.3 GA has just went out. Maybe, you would think this is just only a minor version release why should I care? Hold your thoughts on that! Because they have done a lot of improvements and also added many new features into this release.

Besides various bug fixes and making sure Fuse Fabric is much more stable. There are two major change in this version update:

New Tooling in JBoss Developer Studio (JBDS) 9.1 GA. Newer Apache Camel version – Camel v2.17. I was really impressed by the work put in to make developing Camel application much simpler. First is the installation of tooling itself. Now it has a all-in-one installer so you don't need to worry about which plugins you need to check. See the videos below to see the new "Getting Started" of Fuse 6.3.



And If you notice from the above video, the presentation of camel route in JBDS has also updated. It fixed some of the miss representation of logic and making it easier to read.

Old Camel Route
New Camel Route
On …

RHTE - Supercharge your integration services

Red Hat Tech Exchange has taken place in Vietnam, Ho Chi Minh city two weeks ago, it is a great event held by Red Hat in Asia Pacific Region. It is open to all Red Hat partners who are interested in learning what Red Hat is doing recently, see what the trend of the open source world, basically it is a great event to share your knowledge and experience, to meet other enthusiastic people.

I am very fortunate to talk in this great event, to talk about the things I have been working on and even discuss it with many. Also got lots of great ideas too. So here are the slide.

My first talk was with Thomas Qvarnström about how to handle large size data in JBoss Fuse and how JBoss Data Grid can help in the situation.

Here is the agenda of the talk, we will be talk about this in the up coming webinar on 24th Sept.

Integration often involves storing, retrieving, and transforming data. Using a traditional database in your integration is likely to becomes a bottleneck that is expensive and hard to …