What parameter is returned when "Send to Port" logic is "Push to ItemTypeFlowList"?

What parameter is returned when "Send to Port" logic is "Push to ItemTypeFlowList"?

michael_oconnell
Not applicable
35 Views
2 Replies
Message 1 of 3

What parameter is returned when "Send to Port" logic is "Push to ItemTypeFlowList"?

michael_oconnell
Not applicable

[ FlexSim 16.1.0 ]

If I'm using "Push to ItemTypeFlowList" port logic and I'm using a transport, what parameter indicates the port through which the item is being pulled and will travel.

Other portr logics allow me to use the following in "Use Transport" logic.

int port = param(2);

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

michael_oconnell
Not applicable

int port = param(2) produces port=0.

0 Likes
Message 3 of 3

sam_stubbsYXX86
Community Manager
Community Manager
Accepted solution

When you push and pull items to and from a list, you aren't actually using ports. The item is simply being put onto a list until another object sends a request to pull the item off the list. Once the pull happens, then any connected transports will get the task sequence to retrieve the item and then drop off the item at the pulling object. So, of you need a reference to the object the item is going to, you can use the "destination" variable found within the Use Transport code.

2440-destination.png