This is a bug, thank you for reporting it.
Until the bug is fixed, here is a workaround:
- Install the chart (on the Advanced panel in Properties)
- Open the properties for the Statistics Collector that appears in the Toolbox
- Edit the code for the BasicFR State Change Finish and Start events:
/**Custom Code*/
StatisticsCollector collector = ownerobject(c);
treenode listenTo = param(1);
Array objects = collector.Objects.as(Group).toFlatArray();
Array result;
for (int i = 1; i <= objects.length; i++)
if (isclasstype(objects,"BasicFR") || isclasstype(objects, "BasicTE"))
result.push(objects);
result.push(-1);
return result;
- Edit the code for the Non BasicFR State Change Finish and Start events:
/**Custom Code*/
StatisticsCollector collector = ownerobject(c);
treenode listenTo = param(1);
Array objects = collector.Objects.as(Group).toFlatArray();
Array result;
for (int i = 1; i <= objects.length; i++)
if (!isclasstype(objects,"BasicFR") && !isclasstype(objects, "BasicTE"))
result.push(objects);
result.push(-1);
return result;
Here is your model with these changes applied:
basicte-stateganttchart_1.fsm
.
Jordan Johnson
Principal Software Engineer
>