Decide Node not Rendering

Hello - I am having difficulty getting a decision node to render correctly in Modeler CLI. I made a simple action def as an example. This is the code:

package batteryActivity {
private import ScalarValues::*;
action def MonitorBattery;
action def AddCharge;
action def EndCharging;
attribute batteryCharge : Real;
action def ChargeBattery{
first start;

    then merge continueCharging;

    then action monitor : MonitorBattery;

    then decide;
        if batteryCharge < 100 then addCharge;
        if batteryCharge >= 100 then endCharging;
    
    action addCharge : AddCharge;
    then continueCharging;

    action endCharging : EndCharging;

    then done;
}

}

And this is what the view looks like:

Hi, this is a bug on our side, not your model. TheChargeBattery action is valid as written.

The two guarded branches (if batteryCharge < 100 then addCharge;) are TransitionUsage elements, and the ActionFlowView was dropping them.

We have a fix and it will be out in the upcoming v0.11.0 release.

Until then, you can render the same view as a GeneralView, which will draw both branches and their guard labels correctly:

view chargingMT : StandardViewDefinitions::GeneralView {
    expose batteryActivity::ChargeBattery::**;
}

Best,
Simas