question

Beatriz Spaggiari avatar image
0 Likes"
Beatriz Spaggiari asked Jordan Johnson answered

Statistics Collector - Using a condition for collecting data from an event

I want to use a condition to collect data from a Processor - On Entry. The condition would be to collect information only from input port 1, rather than all other input ports. I try put a conditional: data.port == 1, but no information was collected. Keeping in always, the data was collected normally, but not this way. I tried doing the same thing in a combiner and it worked (I filtered the event only through input port 1 and it worked). Why in the processor did not work?

statistics collectorconditional
· 2
5 |100000

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

Jordan Johnson avatar image Jordan Johnson ♦♦ commented ·

I can't replicate the issue. Can you post your model?

0 Likes 0 ·
Beatriz Spaggiari avatar image Beatriz Spaggiari Jordan Johnson ♦♦ commented ·
0 Likes 0 ·
model-test.fsm (35.6 KiB)

1 Answer

·
Jordan Johnson avatar image
3 Likes"
Jordan Johnson answered

In the model you posted, the items are moved using a Task Sequence Sub Flow. When you create your own task sequence like that, the "port" information is lost; the OnEntry trigger always reports that the port is zero. This is true for either a processor or a combiner.

However, in your case, the token that creates the task sequence knows the port. All you have to do is assign the port to the item, so that you can reference the item's port label in the statistics collector.

In the attached model, I added an Assign Labels activity to the flow, and I updated the condition on the Statistics Collector:

model-test-modified.fsm


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 an Answer

Hint: Notify or tag a user in this post by typing @username.

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