Joget DX 8 Stable Released
The stable release for Joget DX 8 is now available, with a focus on UX and Governance.
This plugin was created to solve use cases where we need to format the JSON response of a JSON API call in order to store data into a form or workflow variable.
This plugin can be considered as an alternative to the default bundled JSON Tool.
The configurations are exactly similar to the default bundled JSON Tool in Joget, just with an additional optional property to write bean shell script to format/modify the JSON response.
The plugin source codes can be found at JogetOSS Github. Feel free to clone and customize to suit your needs.
Name | Description |
---|---|
Enable Response Formatting | When checked, you can start writing bean shell script to format the JSON response. |
Script | The "Enable Response Formatting" property must be enabled in order to write bean shell script here. Injected Variables:
Expected Return Object: It is expected to return a Map object that would later on be processed as configured to store to form and/or workflow variables. Example: Return the response only for the first item in a JSON array with the object name of "apps". return data.get("apps")[0]; |
APP_enhanced_json_tool-sampleApp.jwa
Notes: