Hi,
When using the auto formatting feature of Modeler with decision nodes inside actions, the formatting makes major changes in the model, and it becomes an incorrect model. Example below. From what I can see, it happens only when the decision node has a name, and only with Modeler v0.7.0 and not with Editor v0.9.0.
part Vehicle {
attribute mass;
}
action DontDrive;
action Drive;
action MyAction {
first start;
then decide MyDecision;
if Vehicle.mass > 1000 then DontDrive;
if Vehicle.mass <= 1000 then Drive;
then done;
}
becomes with auto formatting
part Vehicle {
attribute mass;
}
action DontDrive;
action Drive;
action MyAction {
first start;
then decide MyDecision;
first MyDecision if Vehicle.mass > 1000 then DontDrive;
first MyDecision if Vehicle.mass <= 1000 then Drive;
then done;
}
which is incorrect, as identified by Modeler