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

Match event parameters by value

Match event parameters by value

It would be very useful if the Wait For Event and Event-Triggered Source activities allow matching an event trigger parameter by constant value, rather than by label.

For example, suppose I want to wait for an item to enter through port two in a Wait For Event. At the moment, I have to create an Assign Labels activity that creates a label "port", set it to 2, then in the Wait For Event I can "match" the Input Port to the label.

It would be pretty cool if instead of just a "match (label)" option, there is also a "match value" option so I can just type in "2" into the first column and select "match value" from the second column. Or maybe even better: change the first column into a Universal Edit where one can either put "Label: xxx" or type an expression. This even allows use of global macros such as MY_OBJECT_OUTPUT_PORT.

Using an Event-Triggered Source, it's even a bit more complicated: before the token is created it has no labels, so I have to create a token for all entry events, grab the input port to a label, and then Decide whether to keep them or throw them right into a sink.

There it would also be nice to have a similar setup to the Wait For Event option, but with only the "assign" and "match value" options and of course not "match label" and "insert at front".

2 Comments

What is going to happen if the event itself is set into a list and is dynamically evaluated. Can we evaluate the change of the value in any kind to create an event to look for like watch a variable? Would such an approach work with a back order, too?

JordanLJohnson
Autodesk

This is possible in version 2018 Update 1. You can use the Match Value option, and put the value directly in the activity.

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

Submit Idea