question

Ryusuke T avatar image
0 Likes"
Ryusuke T asked Jordan Johnson answered

Use Internal Tracked Variable doesn't work properly

I tried to watch a value by using the Use Internal Tracked Variable variable in an object processing flow, but it didn't work as expected.

Am I using it wrong?

Use Internal Tracked Variable.fsm

use internal tracked variable
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

1 Answer

Jordan Johnson avatar image
0 Likes"
Jordan Johnson answered

A Variable is a shared asset used to manage a value. If you set it to use an Internal Tracked Variable, then it creates a Tracked Variable inside itself for each instance. The only way to change that value is by using the Set Value activity in Process Flow. See the attached model:

use-internal-tracked-variable_1.fsm

Also, the TrackedVariable chart doesn't work on Tracked Variables in instances. It will work when you make it, but when you open the model again, the instance is destroyed and re-made, so the TrackedVariable is also destroy and remade, which means the chart loses its reference.

In the attached model, I made a chart that properly accesses the TrackedVariable values through the getstat() command.


5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.