Table of Contents

FIXME This page is not fully translated, yet. Please help completing the translation.
(remove this paragraph once the translation is finished)

SetMilestonesFromDateFromTaskDescription

Description

The handler must be set to the first activity with event type Node-Enter.
Two parameters are given to the handler: the searchPattern and the datePattern.
Upon execution, all of the task descriptions on the searchPattern will be assessed, and if something is found, the datePattern will be employed to generate a date from the found material.
The generated date is added to the superordinate activity as a milestone.
If an activity has multiple tasks, the first date found will be used. Therefore, each task description in an activity should have the same date.
The date found in the task description must be surrounded by square brackets!


Action Class

com.dooris.bpm.actionhandler.SetMilestonesFromDateFromTaskDescription



Event Type

Node Enter

Action Name

any name

Mandatory Fields

none


Parameter

searchPattern

The regex with which the task description is searched.
Beispiel:

\d\d\.\d\d\.\d\d\d\d


datePattern

The pattern by which the date for the string (found via the regex) is generated.
It must match the searchPattern!
Based on the aforementioned “searchPattern”:

dd.MM.yyyy (works)
dd.MM.yy (does NOT work!)

CAUTION: THE DATE IN THE TASK DESCRIPTION MUST BE SURROUNDED BY SQUARE BRACKETS!!
THE REGEX WILL AUTOMATICALLY BE ADDED TO THIS!!


Example

Task description: Handler configuration: