Thanks for joining us on November 27-29, 2018 at the Gartner Application Strategies & Solutions Summit 2018 in Las Vegas, USA.
Sometimes, you may find that your plugin needs to make an AJAX call to retrieve data from an API that does not come with Joget Workflow v3. And normally, in order to do that, you will need to write a Servlet or Web Service to handle the call.
In Joget, our plugin architecture provides an interface that enables you to implement your Web Service in a plugin.
After you do your Web Service implementation, you may access it using the URL format shown below:
If your Web Service needs to access the app definition that made the call, the URL format will have to have an extra parameter, as shown below:
You can then obtain the app definition in your implementation by using this code:
There are 2 JSON APIs available in this sample plugin:
1. User List
2. Form Fields List