Chapter 9. Milestones
Milestones are a special service task that can be configured in the case definition designer by adding the milestone node to the process designer palette. When creating a new case definition, a milestone configured as
Adhoc autostart is included on the design palette by default. Newly created milestones are not set to
Adhoc autostart by default.
Case management milestones generally occur at the end of a stage, but they can also be the result of achieving other milestones. A milestone always requires a condition to be defined in order to track progress. Milestones react to case file data when data is added to a case. A milestone represents a single point of achievement within the case instance. It can be used to flag certain events, which can be useful for Key Performance Indicator (KPI) tracking or identifying the tasks that are still to be completed.
Milestones can be in any of the following states during case execution:
Active- The condition has been defined on the milestone but it has not been met.
Completed- The milestone condition has been met, the milestone has been achieved, and the case can proceed to the next task.
Terminated- The milestone is no longer a part of the case process and is no longer required.
While a milestone is available or completed it can be triggered manually by a signal or automatically if `Adhoc autostart`is configured when a case instance starts. Milestones can be triggered as many times as required, however, it is directly achieved when the condition is met.
9.1. Milestone configuration and triggering
Case milestones can be configured to start automatically when a case instance starts or they can triggered using a signal, which is configured manually during the case design.
- A case project has been created in Business Central.
- A case definition has been created.
- In the process designer, click to open the Object Library on the left of the design palette.
From the list, open Milestone and drag the
Milestoneobject onto the palette.
- With the milestone node selected, click to open the Properties panel on the right.
Open Assignments to add a completion condition. Milestones include a
conditionparameter by default.
To define the completion condition to for the milestone, select
Constantfrom the list. The condition must be provided using the Drools syntax.
Set this property to
truefor milestones that are required to start automatically when a case instance starts.
Set this property to
falsefor milestones that are to be triggered by a signal event.
- Set this property to
(Optional) Configure a signal event to trigger a milestone once a case goal has been reached.
- With the signal event selected in the case design palette, open the Properties panel on the right.
Signal Scopeproperty to
SignalRefexpression editor and type the name of the milestone to be triggered.
Click Ok to finish.