question

Brian R2 avatar image
0 Likes"
Brian R2 asked Matthew Gillespie answered

Problem with decide in process Flow

Hello, I have a problem with the Decide in the process flow, the condition is not completed successfully. The token go throw that condition and pass.

FlexSim 19.0.3
process flow
1.png (35.5 KiB)
2.png (18.6 KiB)
3.png (16.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.

Joerg Vogel avatar image Joerg Vogel commented ·

NULL as a result of a pull clause can be the expression that there is something wrong. The red triangle tells you this.

Please close FlexSim, start FlexSim again and run the model again. If you get the result NULL with the red triangle in left upper corner again then you should check your filter clause where you assign the label value. Please prepare your list in the manner that you can get a valid result of the pull activity to check if the filter clause works.

And maybe you can attach a model. Or a smaller extract of your model still behaving strange. Thanks!

0 Likes 0 ·
Brian R2 avatar image Brian R2 Joerg Vogel commented ·

Hi, yes, I put the pull from list a conditional request in the request number and require number. I go to attach my model to show you.

modelo.fsm

Thanks.

0 Likes 0 ·
modelo.fsm (251.8 KiB)

1 Answer

Matthew Gillespie avatar image
1 Like"
Matthew Gillespie answered

The issue is that the value on the estiba1 label is not actually NULL. It is a bug that the labels panel writes the word NULL in there. It should only be showing an empty cell with the red triangle in the corner that indicates no data.

The reason it's not NULL is that NULL means 0. However, the label has no value, not even 0. It's value is actually nullvar.

To fix that decide you should change the condition to

!token.estiba1

The exclamation mark (!) negates things and will make both nullvar and NULL turn into a true value (1).

Alternatively you could say

token.estiba1 == nullvar
5 |100000

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