Idea

Mischa Spelt avatar image
8 Likes"
Mischa Spelt suggested Jordan Johnson commented

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".

process flowwait for eventfeature requestevent-triggered sourcematch label
· 1
5 |100000

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

Joerg Vogel avatar image Joerg Vogel commented ·

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?

0 Likes 0 ·

1 Comment

·
Jordan Johnson avatar image
1 Like"
Jordan Johnson commented

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

5 |100000

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

Write a Comment

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

Your Opinion Counts

Share your great idea, or help out by voting for other people's ideas.