cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Wait for event listen to labels or Global Variables

Wait for event listen to labels or Global Variables

Hello,

Recently I have been doing processFlow logics where I need to stop a token until a label in an object or a global variable reach certain value. I accomplish this through a very inefficient way by doing a loop that every few seconds looks at the value, but this is slow and not precise enough for many applications.

Is there a way of listening to these similar to how we can wait for a content change in an object inside a wait for event?

If there isn´t it would be nice to have this in future versions.

Thank you.

2 Comments
roi_sn
Not applicable

Hi @Julio R, you can listen to changes in labels if they were created as tracked variables. You can do these both in objects and tokens.

julio_r
Not applicable

Hello @Roi Sánchez,

I actually was trying to do this on a label inside an item. I just did it but it's not as easy or fast as I would like. I hope someone has a better method.

First, I need to create a Traked value Lablel on the item class inside of the FlowItem Bin, since I don't know how to do it dynamically without Flexscript (and honestly I haven never set up a Tracked variable dynamically jet).

Then I need to create a WaitForEvent and in the Object field write the reference to the item (token.item).

Then for the Event field I need to open the flowitemClass tree and go to labels and select with the sampler the OnChange, since writing it won't do it. Maybe there is an easier way, I haven't found it.

Then you can use all the options for the on change event, wich are powerful and very easy to use.

Thank you!

Can't find what you're looking for? Ask the community or share your knowledge.

Submit Idea