question

Leo L6 avatar image
0 Likes"
Leo L6 asked Jeanette F edited

How to check if flow item has already left the system

Hi,

Sometimes in process flow an item assigned to a token will have value <no path> if the object has already left the system. How can I check if an item has left the system? I tried token.item==NULL but it doesn't seem to work

Thanks

FlexSim 22.0.16
process flowitem
· 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.

Jeanette F avatar image Jeanette F ♦♦ commented ·

Hi @Leo L6,

To receive a more accurate solution, please post your model or a sample model that demonstrates your question. I don't think you should have a token in your process flow with a reference to a flow item that has left the system. There should probably be something in place to keep the token synced with what's going on in your process flow. It would be helpful to see what you are trying to accomplish.

Proprietary models can be posted as a private question visible only to FlexSim U.S. support staff. You can also contact your local FlexSim distributor for phone or email help.

0 Likes 0 ·
Leo L6 avatar image Leo L6 Jeanette F ♦♦ commented ·

test10.fsm

Here you go. If you click on the source in the process flow you'll notice that every item says "no path". I want to create a conditional decide that checks if an item is "no path" or not

0 Likes 0 ·
test10.fsm (39.6 KiB)

1 Answer

·
Jeanette F avatar image
0 Likes"
Jeanette F answered Jeanette F edited

Hello @Leo L6,

You can check your flow item with the condition

token.item == 0 // 0x0 also works

Null pointer value.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.