Skip to content
This repository has been archived by the owner on Sep 6, 2023. It is now read-only.

Latest commit

 

History

History
48 lines (38 loc) · 1.7 KB

TaskNamingConventionChecker.md

File metadata and controls

48 lines (38 loc) · 1.7 KB
title parent
Task Naming Convention Checker
Available Checkers

Task Naming Convention Checker

The Task Naming Convention Checker verifies if tasks match a predefined naming convention.

Assumptions

  • The BPMN-models have to be in the classpath at build time

Configuration

The rule should be configured as follows:

<rule>
    <name>TaskNamingConventionChecker</name>
    <state>false</state>
    <elementConventions>
        <elementConvention>
            <name>convention</name>
            <description>taskname has to start with a capital letter followed by letters,hyphens or spaces</description>
            <pattern>[A-ZÄÖÜ][a-zäöü\\\-\\\s]+</pattern>
        </elementConvention>
    </elementConventions>
</rule>

An element convention consists of:

  • a name
  • a regular expression for the naming convention (pattern)
  • a description to describe the convention (optional)

Error messages

task name must be specified

The task name is missing and has to be specified in the model.

task name '%taskName%' is against the naming convention

The task name is invalid and has to be changed according to the naming convention.

Example

task name 'Rechnung 1' is against the naming convention
name convention: [A-ZÄÖÜ][a-zäöü\\-\\s]+ (All words starting with a capital letter and containing no number)

Task name against naming convention