Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Table of contents

Table of Contents

Immediate cause

Some might say that there is a trend among business process modeling, where modeling with preconditions is taking precedence over modeling flow. When the business requirements grow, classic BPM flowcharts become less and less readable, until they finally overflow (no pun intended) with complexity. Maintenance on such complex flowcharts will become difficult and eventually impossible.

...

Using ad hoc tasks and preconditions requires a shift in business process modeling. Instead of thinking about a task and possible next tasks, the business process modeler needs to figure out when a task is applicable and necessary.

Complexity and traceability

Business process modelers that have a lot of experience using classic BPM might argue that this shift in modeling has two downside.

...

For more information about the Decision Requirements Graph see Decision Requirements Graph.

Step-by-step guide

We will provide a step-by-step guide on how to make optimal use of the the power of the Decision Requirements Graph when modeling preconditions. When following these steps conditions used in preconditions and in necessity (required) will be much easier to understand and maintain.

1. Attributes for tasks

Create an entity for each ad hoc Task, with the attribute <TaskName>.MayBePerformed and if applicable <TaskName>.MustBePerformed.
Of course it is also possible to create a single combination-entity with a may-be-performed-attribute and a must-be-performed-attribute for all tasks, this is subject to the Business Engineer's taste or agreed architectural (project) guidelines. In this document we use an entity for each task.

2. Preconditions on tasks

Create a precondition (and possible conditional requirement) that uses the attributes mentioned before. The structure will always be the same: the precondition will be <TaskName>.MayBePerformed.
In the example below we have two ad hoc tasks, Approve travel request and Ask for additional information. We now focus on the precondition Approve travel request may be performed.

3. Logic for attribute

Use any logic element to infer when the task may and/or must be performed. Below a decision table is sketched that states when the task ApproveTravelRequest may be performed.
Note that the column on the right might be considered redundant, since the attribute also has a default value False.

Image RemovedImage Added

4. Inspect with Decision Requirements Graph

Use the Decision Requirements Graph to inspect the logic underneath the derived attribute. This Decision Requirements Graph can be generated from the logic element or from the attribute itself, in both cases by clicking the scale icon .
Unfortunately the Decision Requirements Graph cannot be generated not from the precondition in the task, since the precondition is an expression and not necessarily a decision (derived attribute).

Image RemovedImage Added

Pros 

  1. When following the strategy as discussed in this article, totally different projects will have the same structure.
  2. Maintenance on projects becomes easier, since it is always clear where to start inspecting existing preconditions.
  3. Complexity is not scattered over decisions, processes, tasks and flow but it is concentrated in the area where it belongs, namely logic.
  4. ...

Cons

  1. Tasks are modeled in a process module, but the majority of logic elements that infer when these tasks may and/or must be performed are probably modeled in interaction modules. This means that entity and attribute duplication and data mappings are necessary.
  2. When a task has a very simple precondition, the strategy described here is quite excessive.
  3. ...

...