Chapter 17. Activiti KickStart
Table of Contents
Overview(概述)
Changing the database(變更數(shù)據(jù)庫(kù))
Overview(概述)
Activiti KickStart is a webbased tool to quickly create 'adhoc' business processes using a subset of constructs available to the Activiti engine. KickStart provides a simple UI that doesn't require to learn BPMN or any modeling environment, as it works with concepts that are familiar to every business user. However, the processes that are created using KickStart, are fully BPMN 2.0 compliant and can be used as a starting point for more complex BPM endeavours.
Activiti KickStart的是一個(gè)基于Web的工具,用Activiti引擎可用的構(gòu)件(constructs)的子集提供給快速創(chuàng)建“即席(adhoc)”的業(yè)務(wù)流程。Kickstart提供了不必學(xué)習(xí)BPMN或者任何建模環(huán)境的簡(jiǎn)單UI,因?yàn)樗鼧淞⒘嗣總€(gè)業(yè)務(wù)用戶都熟悉的概念。但是,通過KickStart創(chuàng)建的的流程,是和BPMN 2.0兼容,并可作為更為復(fù)雜BPM努力的起點(diǎn)。
KickStart integrates perfectly with the Activiti engine. As such, processes created with KickStart are immediataly usable in Activiti Explorer and are visible in Probe.
KickStart能和Activiti引擎完美集成。因此,采用KickStart創(chuàng)建的流程在Activiti Explorer立即可用,并在Probe里面可見。
KickStart serves many business cases, but the following three are probably the most common:
KickStart服務(wù)許多商業(yè)案例,但以下三個(gè)可能是最常見:
- Simple business processes: some processes are just simple by nature, and every company has them. Think about an expense process, a holiday leave process, a hiring process, etc... These kind of processes are probably already being done using paper or e-mail. KickStart allows to model these processes quickly and change them whenever it is needed. As such, KickStart really lowers the threshold to automate these business processes.
- 簡(jiǎn)單的業(yè)務(wù)流程:一些流程天然簡(jiǎn)單,并且每個(gè)公司都有??紤]到付費(fèi)流程,請(qǐng)假流程,雇傭流程,等等…這些流程用書面或者e-mail的方式已經(jīng)完成。Kickstart運(yùn)行快速對(duì)這些流程建模,每當(dāng)需要時(shí)改變它們。因此,Kickstart真正地降低了門檻,并讓這些業(yè)務(wù)流程自動(dòng)化。
- Prototyping: before diving into complex BPMN 2.0 modeling and thinking about the corner cases of the process, it is often wise to get all people involved aligned and work out a prototype that shows the vision of what needs to be done. KickStart allows to do exatcly that: create a business process prototype on the fly, to get your ideas visible for everyone.
- 原型:在鉆研復(fù)雜的BPMN 2.0建模和考慮流程的偏例之前,它往往是明智的,讓所有參與的人平等,制定一個(gè)原型來展示所要完成的愿景。KickStart的允許恰恰如此:創(chuàng)建一個(gè)業(yè)務(wù)流程的原型,讓大家看到你的想法。
- Adhoc work: in some cases, coordination is required between different people or groups in a company. You know how it normally goes: sending an email here, doing a telephone there ... which often ends up in a tar pit of nobody knowing what or when something needs to be done. However, a business process management platform such as Activiti is an excellent way of distributing and follow-up everything, as it is intended to track exactly such things. KickStart allows you to create processes for adhoc work in a matter of minutes, and distribute and coordinate tasks between people easily.
- 即席工作:在一些情況,在一個(gè)公司里,不同的人員或組之間的協(xié)作是必要的。您知道正常時(shí)如何運(yùn)作的:在這里發(fā)送郵件,在那里打電話…這經(jīng)常終止于沒有人知道需要完成什么或者何時(shí)完成這樣的焦油坑。但是,諸如Activiti這樣的業(yè)務(wù)流程管理平臺(tái)是解決分發(fā)和后續(xù)事情的卓越解決之道,因?yàn)樗哪康氖菧?zhǔn)確跟蹤這些事情。Kickstart允許您在數(shù)分鐘之內(nèi)創(chuàng)建即席工作的流程,并在人們之間分發(fā)和協(xié)調(diào)任務(wù)。
Following screenshots show the capabilities of Activiti KickStart. Take for example the next picture. It shows how an expense process is created in a matter of a few minutes.
下列屏幕截圖展示了Activiti KickStart的能力。下圖作為示例。它展示如何在幾分鐘之內(nèi)創(chuàng)建一個(gè)付費(fèi)流程。
After clicking the save button, the process is immediately usable in Activiti Explorer:
在點(diǎn)擊“保存”按鈕之后,這個(gè)流程立即在Activiti Explorer可用。
KickStart also allows to define forms for every task:
KickStart也允許為每個(gè)任務(wù)定義表單:
Which are obviously directly usable in Activiti Explorer:
這些明顯直接在Activiti Explorer可用:
At any time during process creation, it is possible to view the corresponding BPMN 2.0 diagram of the business process:
在流程建立的任意時(shí)間,它可以查看相應(yīng)的BPMN2.0業(yè)務(wù)流程圖。
Whenever it is required, the processes defined with KickStart can be opened up and modified:
每當(dāng)它是必需,與KickStart的定義的流程可被打開和修改:
Processes created with KickStart are fully compliant with the BPMN 2.0 XML, which means that the process can be imported into any BPMN 2.0 editor:
用KickStart的創(chuàng)建的流程是完全符合BPMN2.0的XML,這意味著該流程可以由任何兼容的BPMN2.0編輯器輸入:
Changing the database(變更數(shù)據(jù)庫(kù))
Activiti KickStart is currently not yet using the REST API, but uses the service API by including the Activiti engine as a library. While Explorer, Probe and Cycle use the same mechanism for changing the database (see here), the same does not yet apply for KickStart.
Activiti KickStart當(dāng)前還沒有使用REST API,而是通過包括了Activiti引擎作為類庫(kù)使用服務(wù)API。雖然Explorer,Probe和Cycle使用相同的機(jī)制改變數(shù)據(jù)(參見這里),但這不適于KickStart。
To change the database that KickStart uses in the demo setup, generate a new activiti.cfg.jar, and place it in the apps/apache-tomcat-6.x/webapps/activiti-kickstart/WEB-INF/lib folder.
為了改變演示安裝里KickStart使用的數(shù)據(jù)庫(kù),產(chǎn)生一個(gè)新的activiti.cfg.jar,并將它放置到apps/apache-tomcat-6.x/webapps/activiti-kickstart/WEB-INF/lib文件夾。