Book Image

Mastering jBPM6

By : Simone Fiorini, Arun V Gopalakrishnan
Book Image

Mastering jBPM6

By: Simone Fiorini, Arun V Gopalakrishnan

Overview of this book

Table of Contents (18 chapters)
Mastering jBPM6
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Preface
Index

Tasks


A task represents an action that needs to be performed.

User

  • BPMN element: <bpmn2:userTask>.

  • Description: Task that requires a human interaction with a UI or a programmed API.

  • Configuration: Use Actors or Groups for assigning the task to the users. Use the Assignments, DataInputSet, and DataOutputSet properties for task parameter mapping to the enclosing process instance.

Send

  • BPMN element: <bpmn2:sendTask>

  • Description: General-purpose task for a send message action

  • Configuration: The MessageRef property is a key to the ID attribute of a message element (bpmn2:message), which must be defined in the process scope

Note

It needs a custom WorkItemHandler to be registered with the send key.

Receive

  • BPMN element: <bpmn2:receiveTask>

  • Description: General-purpose task for a receive message action

  • Configuration: The MessageRef property is a key to the ID attribute of a message element (bpmn2:message), which must be defined in the process scope

Note

It needs a custom WorkItemHandler to be registered with the receive key.

Manual

  • BPMN element: <bpmn2:manualTask>

  • Description: Task whose purpose is oriented to documenting that an action must be performed manually and that it can be ignored by the engine

Service

  • BPMN element: <bpmn2:serviceTask>.

  • Description: Service task that supports a Java or SOAP WebService call.

  • Configuration: Use the ServiceImplementation, ServiceInterface, and ServiceOperation properties to configure the callable service/class. The WebService implementation requires the WSDL URL to be imported in the global scope (process imports).

Business rule

  • BPMN element: <bpmn2:businessRuleTask>

  • Description: Task that executes a Drool rule

  • Configuration: Use the Ruleflow Group property to select the name of the Rule Group that defines the set of rules that you need to execute

Script

  • BPMN element: <bpmn2:scriptTask>

  • Description: Task that executes Java or MVEL scripts

  • Configuration: Use the On Entry Actions, On Exit Actions, and Script language properties

None

  • BPMN element: <bpmn2:task>

  • Description: Ad hoc task

  • Configuration: You must register a WorkItemHandler with the task key