question

Patrick N avatar image
0 Likes"
Patrick N asked Felix Möhlmann answered

Set parameter from sum of global table column

Is it possible to use the sum of a global table column as my parameter which then should dictate the number of task executors I have available in my model?


Thanks in advance

FlexSim 22.0.0
global tabletaskexecutorparameters
5 |100000

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

1 Answer

·
Felix Möhlmann avatar image
0 Likes"
Felix Möhlmann answered

Change the parameter type to "Expressions". This allows you to use a FlexScript expression that will get evaluated when calling the parameter. Then you can use SQL to query the table for the sum of a column.

1647871184244.png

How this controls the number of task executers depends on how they are controlled in the model (dispatcher, process flow, custom task sequences, ...).


1647871184244.png (28.8 KiB)
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.