Activating/Deactivating Optimization of Static Actions

To activate/deactivate optimization of static actions in hierarchy states, proceed as follows:

  1. Open the project that contains your state machine.

    This may also be the default project.

  2. In the project editor, open the Project Properties window and go to the Statemachine node.
  3. To deactivate optimization of static actions, Closedproceed as follows.

    • In the Statemachine node, deactivate the Optimize Static Action (Restricted Modeling) option to deactivate hierarchical code generation for all state machines in the project. 
  4. To activate optimization of static actions, Closedproceed as follows.

    Note

    If you activate the optimization, modeling is restricted as follows:

    If a substate of the state machine contains a direct transition out of its parent state, this transition must have the highest priority of all transitions from that substate.

    • Activate the Optimize Static Action (Restricted Modeling) option to activate the optimization for all state machines in the project.

      The optimization of static actions takes place. The changes in code generation thus introduced can alter the behavior of the state machine. If you activate the option for an existing state machine, check its behavior carefully. 

Note

Activating optimization of static actions can alter the behavior of the state machine. If you activate the option for an existing state machine, check its behavior carefully.

See also

Project Properties Window

State Machine Node