Hi,
I am investigating the possibilities of using the http interface that FlexSim provides to integrate to an external control system that gives FlexSim orders about where to place items in the model. To accomplish this I need two-way communication between FlexSim and the control system. When new items arrive I need to ask the control system where to place the items, but the control system might also tell FlexSim at any time to reorder the items. The control system will most probably be located on a web server so I was looking at using the http interface.
I can implement the two-way communication by having the client to regularly poll the server for new messages, but this increases the overhead. Another option could be to use the server sent events that use the the http protocol, but I am not sure if it works with FlexSim.
Do you know if it is possible to use the server sent events with the http interface (applicationcommand("sendhttprequest")) in FlexSim? If it is has anyone used it and has some example on how it is done and what changes need to be made at the server and client end of the communication?
Also, is it possible to listen for incoming Http messages e.g. in process flow? Else, I guess polling the server is the only option.
Thank you!
Kind regards,
Axel