Chapter 4. Creating a business process in Business Central

The process designer is the Red Hat Process Automation Manager process modeler. The output of the modeler is a BPMN 2.0 process definition file. The definition is used as input for the Red Hat Process Automation Manager process engine, which creates a process instance based on the definition.

The procedures in this section provide a general overview of how to create a simple business process. For a more detailed business process example, see Getting started with business processes.

Prerequisites

Procedure

  1. In Business Central, go to MenuDesignProjects.
  2. Click the project name to open the project’s asset list.
  3. Click Add Asset → Business Process.
  4. In the Create new Business Process wizard, enter the following values:

    • Business Process: New business process name
    • Package: Package location for your new business process, for example com.myspace.myProject
  5. Click Ok to open the process designer.
  6. In the upper-right corner, click the Diagram properties diagram properties icon and add your business process property information, such as process data and variables:

    1. Scroll down and expand Process Data.
    2. Click btn plus next to Process Variables and define the process variables that you want to use in your business process.
  7. In the process designer canvas, use the left toolbar to drag and drop BPMN components to define your business process logic, connections, events, tasks, or other elements.
  8. After you add and define all components of the business process, click Save to save the completed business process.

4.1. Creating business process tasks

You can create the following types of tasks as part of your business process:

  • Business rule tasks: Used to make decisions through a Decision Model and Notation (DMN) model or rule flow group
  • Script tasks: Used to execute a piece of code written in Java, JavaScript, or MVEL
  • User tasks: Used to include human actions as input to the business process

As an example, this procedure uses a user task.

Procedure

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

    Figure 4.1. 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 one of the available task types, such as a user task.

    Figure 4.2. Convert into a User task

    Converting in to a user task
  3. For this example, click the user task and in the upper-right corner, click the Diagram properties diagram properties icon.
  4. Add the user task property information, such as the following details:

    1. Expand Implementation/Execution and enter values for both the Task Name and Actor fields.
    2. Click btn assign next to Assignments to open the Data I/O window
    3. Create the input and output assignments for the user task.
  5. After you add and define all task information, click Save to save the updated business process.

4.2. Making a copy of a business process

You can make a copy of a business process in Business Central and modify the copied process as needed.

Procedure

  1. In the business process designer, click Copy in the upper-right toolbar.
  2. In the Make a Copy window, enter a new name for the copied business process, select the target package, and optionally add a comment.
  3. Click Make a Copy.
  4. Modify the copied business process as needed and click Save to save the updated business process.

4.3. Resizing elements and using the zoom function to view business processes

You can resize individual elements in a business process and zoom in or out to modify the view of your business process.

Procedure

  1. In the business process designer, select the element and click the red dot in the lower-right corner of the element.
  2. Drag the red dot to resize the element.

    Figure 4.3. Resize an element

    Resizing an element
  3. To zoom in or out to view the entire diagram, click the plus or minus sign on the lower-right side of the canvas.

    Figure 4.4. Enlarge or shrink a business process

    Zooming to view the entire diagram

4.4. Generating process documentation in Business Central

In the process designer in Business Central, you can view and print a report of the process definition. The process documentation summarizes the components, data, and visual flow of the process in a format (PDF) that you can print and share more easily.

Procedure

  1. In Business Central, navigate to a project that contains a business process and select the process.
  2. In the process designer, click the Documentation tab to view the summary of the process file, and click Print in the top-right corner of the window to print the PDF report.

    Figure 4.5. Generate process documentation

    Project-level service task settings