Style Rules

Method and Style is a set of best practices intended to make the meaning of the case logic clear and complete from the printed diagrams. Many of those practices are reinforced by checking the model against style rules in Case Modeler.

The reasoning behind these style rules is explained in the book CMMN Method and Style, by Bruce Silver.

The style rules are listed below:

  • [0001] - Tasks must have a name.

  • [0002] - Stages must have a name.

  • [0003] - Timer event listener label should be the timer expression.

  • [0004] - Timer event listener trigger should be a standard event of the triggering item.

  • [0009] - Link ON-part name should be a standard event.

  • [0010]- Names of all tasks and stages should be unique.

  • [0118] - Repeat task or stage should either be manually activated or have a repetition rule.

  • [0119] - Repeat task with no entry condition and not manually activatd should have a directional association from file item(s) in repetition rule.

  • [0020] - Triggering item of an ON-part link should not be a Sentry.

  • [0100] - ON-part link should not cross a stage boundary.

  • [0101] - ON-part link label should be a standard event.

  • [0102] - Label of Sentry triggered by milestones should reference the milestone name.

  • [0105] - A stage should not contain more than one Required milestone.

  • [0112] - ON-part link label from a file item must be a file item standard event.

  • [0120] - A plan item triggered by a Repeat item should be Repeat.

  • [0121] - The triggering item of a Repeat plan item should be Repeat.

  • [0125] - The source of an exit ON-part link should have an exit condition.

  • [0123] - An Autocomplete stage should have at least one Required item.