Webserver Jobs

Webserver Jobs

lucas_klein83QQC
Advocate Advocate
85 Views
1 Reply
Message 1 of 2

Webserver Jobs

lucas_klein83QQC
Advocate
Advocate

[ FlexSim 19.2.4 ]

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.

0 Likes
Accepted solutions (1)
86 Views
1 Reply
Reply (1)
Message 2 of 2

philboboADSK
Autodesk
Autodesk
Accepted solution

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.

24249-submitjob.png

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.



Phil BoBo
Sr. Manager, Software Development
0 Likes