Joget DX Preview Release Available for Download

Check out Joget DX, the next generation successor to Joget Workflow for faster, simpler digital transformation.

Skip to end of metadata
Go to start of metadata

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. 

The example below uses Form Element Plugin.  However, the interface can be used with other Plugin Types

After you do your Web Service implementation, you may access it using the URL format shown below:

Example:

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:

Example:

You can then obtain the app definition in your implementation by using this code:

Sample Plugin 

sample.zip

There are 2 JSON APIs available in this sample plugin:

1. User List

2. Form Fields List

  • No labels