Maximum outgoing transitions per state#

Maximum outgoing transitions per state

Description#

Maximum outgoing transitions per state. Parameter: maximum value (e.g.: ‘7’)

The rule parameter is an integer value describing the maximum authorized transitions per state. Default value is 7.

Rationale#

This enforces compliance with a specific modeling standard by placing an upper bound on outgoing transitions for any state machine state.

Verification#

This rule checks all states in the model. For each one, it retrieves the Number of outgoing transitions per state metric. The rule fails if outgoing transitions exceed the authorized maximum.

Resolution#

Modify the offending state to reduce its number of outgoing transitions.

Customization#

This rule depends on the Number of outgoing transitions per state metric, that must be included in the package. If you customize the ID of this metric, you must provide it when instantiating the rule, using the parameter metric_id.

Cf. Customization for an example.