question

Luciano Cavallero avatar image
0 Likes"
Luciano Cavallero asked Jason Lightfoot edited

'match value' option in Wait for Event activity doesn't always work.

Hi,

I'm using "Wait for Activity" with the option 'match value' to filter events in differents PF.
Usually it work as expected: I set a value that will be correctly matched but in a process flow is does not work.

Taking a look into the tree of the activity I can see as follow:
- where it work I can see that the node at rank 3 is a number, updated on model reset, contain the value wrote in the acivity's GUI:

- where it don't work (for me in a specific Object Process Flow) I can see that the for the same configuration that the node at rank 3 contain a string (non a number) of the value: for this reason that the 'Wait for Event' activity does not work:

Then: why my process flow doesn't correctly recognize the right 'match value' datatype and continue to set the node as string? it is certainly the fault of the process flow but I don't know how to fix the problems.

Anyone encountered my same problem?

Thanks,

Luciano Cavallero

Flexcon s.r.l.
Strada del Drosso, 33/8 I–10135 TORINO - Italy
www.flexcon.it

FlexSim 21.0.1
processflowwait for eventprocess
1612801497674.png (166.9 KiB)
1612801704412.png (182.6 KiB)
· 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.

Jason Lightfoot avatar image Jason Lightfoot ♦ commented ·

@Luciano Cavallero If I enclose "1234" in quotes and press reset it changes the datatye to string. If I then remove the quotes, at reset it changes it back to numeric. Can you tell us the steps to reproduce this?

0 Likes 0 ·
Luciano Cavallero avatar image Luciano Cavallero Jason Lightfoot ♦ commented ·

Hi Jason,I haven't a procedure to repeat the problem because the problem raised during the porting of a model from 2019 to 2021: everything work on alla PF excpet one! If I try to reproduce in new PF in that model the problem does not appear!

I would to understand if I can check some 'properties' or 'flag' of the not-working PF to address the problem.

Thanks for you time!

BR

Luciano.

0 Likes 0 ·

1 Answer

·
Luciano Cavallero avatar image
1 Like"
Luciano Cavallero answered Jason Lightfoot edited

Hi Jason,

I discovered the problem: Into a "Object Process Flow" with NO attached objects, if you add an "Wait for Event" with a "match value" for a numeric value, the famous node at rank 3 contain a string.

As soon as you attache a object to the PF at next model reset the node at rank 3 changes to numeric value.

(My PF is a object pf where object are attached when simulation start, all other object pf in the model attach object at model reset...)

Thanks

Luciano.


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

Jason Lightfoot avatar image Jason Lightfoot ♦ commented ·

Ah that's great @Luciano Cavallero. Thanks for the update. I'll flag it for review in case the developers want to change something to avoid this.

1 Like 1 ·

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.