How to shutdown an (on-premise) mendix app from a microflow?

0
I want to shutdown an on-premise Mendix app with an action in a Microflow, from that same app.   The app runs on-premise (windows service console). (For cloud apps I could find some API's focused on ci/cd)   I checked the Runtime Java API and some other Mendix API's but could find the solution.   Does anybody have an idea how to realize this?  
asked
2 answers
0

There aren't any API's to control the windows service console.  If you have Mendix running as a windows service you can stop/start the service remotely using powershell. 

answered
0

Hey Jitze,

I was able to shutdown local application with Java action with following code, I was not able to test it on-premise, but I guess it's should work only what can happen that your CI/CD try to get application running again.

  // BEGIN USER CODE       

System.exit(0);        

return null;        

// END USER CODE

Best regards, Slavko

NOTE: this was tested on Mendix 10.11

 

answered