Feeder logic using Process Flow

Feeder logic using Process Flow

ddtsk
Contributor Contributor
69 Views
2 Replies
Message 1 of 3

Feeder logic using Process Flow

ddtsk
Contributor
Contributor

[ FlexSim 24.1.1 ]

Hi community,

I have a use case where I need to write a feeding query logic in the process flow to pull parts from the queue based on condition. I am trying a if else condition to do so, but I am getting error while doing it.
Error:

time: 26.783511 exception: Exception caught in start() of activity "Pull from List" in process flow "ProcessFlow". Continuing throw...

time: 26.783511 exception: FlexScript exception: invalid variant type in list pull at MODEL:/Tools/ProcessFlow/ProcessFlow/Push to List>variables/onWaitTimerFired



Can someone help in resolving this,

Below I am attaching my sample model.
Feeder logic.fsm

0 Likes
Accepted solutions (1)
70 Views
2 Replies
Replies (2)
Message 2 of 3

joerg_vogel_HsH
Mentor
Mentor

@Hemanth Sai Kumar, where do you assign a label called Type at a token? Conditions of global variables belong into process flow and not into a query. If you have checked all global conditions, then you you query for an list entry matching your filter. And it should be an query clause of a SQL as programming language.

0 Likes
Message 3 of 3

jason_lightfootVL7B4
Autodesk
Autodesk
Accepted solution

You can't put a FlexScript expression in the query fields and only return numerics - it needs to be a query, object or array that get's returned.

But it looks like you should be able to push the item to the list and then just put this expression directly into the query field:

WHERE (Type=2 AND {Type_B_count<3}) OR (Type=1 AND {Type_R_count<2})

The braces {} are for FlexScript expressions and seem to be needed to refer to the Global Variables.

0 Likes