Task management『任務(wù)管理』
The core business of jBPM is the ability to persist the execution of a process. 『jBPM的核心業(yè)務(wù)是有能力持久化流程的執(zhí)行。』A situation in which this feature is extremely useful is the management of tasks and tasklists for people.『在這特征中的一個解決方案對人們?nèi)蝿?wù)或者任務(wù)列表的管理是非常有用的』 jBPM allows to specify a piece of software describing an overall process which can have wait states for human tasks.『jBPM 允許定義一塊軟件描述全部的流程,它可以為用戶任務(wù)持有等待狀態(tài)』
1. Tasks『任務(wù)』
Tasks are part of the process definition and they define how task instances must be created and assigned during process executions.『任務(wù)是 流程定義的一部分,并且它們定義了在流程執(zhí)行中任務(wù)實(shí)例如何必須被創(chuàng)建和分派。 』
Tasks can be defined in task-nodes and in the process-definition.『任務(wù)可以被定義在task-nodes和流程定義的中』 The most common way is to define one or more tasks in a task-node.『最通用的方式是在task-node中定義一個或多個任務(wù)。』 In that case the task-node represents a task to be done by the user and the process execution should wait until the actor completes the task.『如果是那樣的話這個任務(wù)節(jié)點(diǎn)表現(xiàn)了一個任務(wù)被用戶執(zhí)行并且這個流程執(zhí)行應(yīng)當(dāng)?shù)却钡叫袆诱咄瓿伞!?When the actor completes the task, process execution should continue.『當(dāng)行動者完成這個任務(wù),流程執(zhí)行應(yīng)該繼續(xù)。』 When more tasks are specified in a task-node, the default behaviour is to wait for all the tasks to complete.『當(dāng)在任務(wù)節(jié)點(diǎn)中定義多個任務(wù),缺省行為是等待所有所有任務(wù)完成。』
Tasks can also be specified on the process-definition.『任務(wù)也可以被定義在流程定義中。』 Tasks specified on the process definition can be looked up by name and referenced from within task-nodes or used from inside actions.『定義在流程定義中的任務(wù)可以通過名字查找和從任務(wù)節(jié)點(diǎn)內(nèi)部參考或者從內(nèi)部行為中使用。』 In fact, all tasks (also in task-nodes) that are given a name can be looked up by name in the process-definition. 『實(shí)際上,所有的任務(wù)(在任務(wù)節(jié)點(diǎn)中的也一樣)可以在流程定義通過名字進(jìn)行查找』
Task names must be unique in the whole process definition.『任務(wù)名稱在整個流程定義中必須是不能重復(fù)的』