Modifying code segments for roundtripping

You can modify code segments for roundtripping that are procedural behaviors entered as operations and actions in statecharts.

About this task

Every segment in the implementation code has the following format:


... generated code
//#[ segment-type segment-identifier
C++ code you entered 
//#]   
... generated code continues

All these code segments are in the implementation files.

The only segments you can modify without losing the ability to roundtrip are as follows:

  • Static reactions

    //#[ reaction reaction-id
    // you can modify this code
    someReactionCode();
    // do not modify beyond the //#] sign
    //#]
  • Exit action

    //#[ exitAction ROOT.idle.(Entry)
    someExitAction();
    //#]
  • Entry action

    //#[ entryAction ROOT.idle.(Entry)
    someEntryAction();
    //#]
  • Transition actions

    //#[ transition transition-id
    someTransitionCode();
    //#]  
  • Primitive operations (procedural behaviors)

    //#[ operation doit()
    someOperationCode();
    someMoreOperationCode();
    //#]