question

Lucas Klein avatar image
0 Likes"
Lucas Klein asked Phil BoBo answered

Webserver Jobs

Reading the FlexSim webserver documentation, I can see that is possible to submit some commands using the "submitjob" operation to a FlexSim model. Is there any way that I can submit Flexscript commands using this feature, or must I use only the server queryhandlers?

Thanks in advance.

FlexSim 19.2.4
flexscriptwebservercommands
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

Phil BoBo avatar image
0 Likes"
Phil BoBo answered

The list of commands that you pass to submitjob is a set of query handlers.

Those queryhandlers can execute FlexScript.

For example, in the example submitjob in the documentation, it calls a nodefunction in tools called "setupscript" which can execute FlexScript. It also calls settable and passes the string "hello," which could be FlexScript.

Just following that example, you could set the FlexScript code using settable and then execute it using toolsnodefunction.

Alternatively, you could create a custom query handler in your model that executes a string of FlexScript that is passed to it directly. You aren't limited to using only the query handlers already defined in the main tree.


submitjob.png (173.9 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.