Chapter 3. Creating a Business Process

A business process is a graph that describes the order in which a series of steps must be executed using a flow chart. A business process consists of a collection of nodes that are linked to each other using connections. Each of the nodes represents one step in the overall process while the connections specify how to transition from one node to the other. Red Hat Process Automation Manager contains a predefined selection of node types to simplify business process creation.

Prerequisites

3.1. Creating the pizza orders business process

The pizza orders business process determines whether or not the new order contains the required data before proceeding. If all of the specified data requirements are met, the order will be processed.

Procedure

  1. Log in to Business Central and click MenuDesignProjectspizzaPlace.
  2. Click Add AssetBusiness Process.
  3. In the Create new Business Process wizard, enter the following values:

    1. Business Process: pizzaOrders.
    2. Package: select com.myspace.pizzaplace.
  4. Click Ok. The process designer opens.
  5. In the upper-right corner, click the Diagram properties diagram properties icon.
  6. Scroll down and expand Process Data.
  7. Click btn plus four times next to Process Variables, and define the following variables:

    Figure 3.1. Defining variables in the Process Data window

    Defining variables in the Process Data window
  8. In the process designer, click Save, then Save, to confirm your changes.

3.2. Creating the Process Order user task

Create a process order and add variables, such as the pizza ingredients and drink selection.

Procedure

  1. Click the start event to create an outgoing connection to a new task.

    Figure 3.2. Outgoing connection from the start event to a user task

    Creating an outgoing connection from the start event to a user task
  2. Convert the new task to a user task.

    Figure 3.3. Convert into a User task

    Converting in to a user task
  3. Click the user task and enter Process Order in the Name field.
  4. Expand Implementation/Execution and enter the following values:

    • Task Name: processOrder
    • Actor: Katy

      Figure 3.4. The Diagram properties window

      Input the Task Name and Actor in to the Diagram properties window
  5. Click btn assign next to Assignments.
  6. In the Process Order Data I/O window, create the following input assignments:

    Figure 3.5. The Process Order Data input and output assignments

    Input values in to the Process Order Data input and output assignments window
  7. Click Save.
  8. In the process designer, click Save, then Save, to confirm your changes.

3.3. Creating the Confirmation user task

Create an order confirmation user task, which will return the order details to the customer for confirmation before the final order is placed.

Procedure

  1. Click the Process Order task to create an outgoing connection to a new task.

    Figure 3.6. Outgoing connection from the Process Order task to a user task

    Creating an outgoing connection from the Process Order task to a user task
  2. Convert the new task to a user task.

    Figure 3.7. Convert into a User task

    Converting in to a user task
  3. Click the user task and enter Confirmation in the Name field.
  4. Expand Implementation/Execution and enter the following values:

    • Task Name: confirmation
    • Actor: Bill

      Figure 3.8. The Diagram properties window

      Input the Task Name and Actor in to the Diagram properties window
  5. Click btn assign next to Assignments.
  6. In the Confirmation Data I/O window, create the following input assignments:

    Figure 3.9. The Confirmation Data input and output assignments

    Input values in to the Confirmation Data input and output assignments window
  7. Click Save.
  8. In the process designer, click Save, then Save, to confirm your changes.

3.4. Adding an end node

Add an end node to signify the end of the pizza order process.

Procedure

  1. Click the Confirmation user task and connect it to an end event.

    Figure 3.10. Outgoing connection from the Confirmation user task

    Creating an outgoing connection from the Confirmation user task
  2. In the process designer, click Save, then Save, to confirm your changes.