Automatic variable check on REST API process start
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-20-2015 01:59 PM
Hi guys,
we starting our process from REST API. Is there any automatic way, to check that all needed variables for the process are set? And if there are not all required variables set, I would receive Response code 400 and process would not be started?
Thanks for the answers!
we starting our process from REST API. Is there any automatic way, to check that all needed variables for the process are set? And if there are not all required variables set, I would receive Response code 400 and process would not be started?
Thanks for the answers!
Labels:
- Labels:
-
Archive
3 REPLIES 3
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-21-2015 01:28 AM
You can make a REST call to <code>/service/form/form-data?processDefinitionId=value</code> and it will return the formProperties in JSON response. For each of the form properties, you can check if the required attribute is true or false.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-21-2015 02:45 AM
Yea, I know that, but is there way that Activiti checks if all needed variables are passed and if not, doesn't start the process?
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-28-2015 11:06 AM
No, Activiti has no such mechanism, that will need to be done in a custom rest api that wraps the activiti java api.
