Hi all,
How can I know if an input in a form is mandatory or not through the REST API?
Also I’m trying to update a process variable’s value by giving it a value in an instantiation form…but the variable is not updating, any help?
Thanks Lionel. This covers the mandatory inputs (which was the question ;)) but…do you know how I can obtain the non mandatory inputs aswell? By non mandatory inputs I mean the ones that are marked as not required in the ui designer! which, in turn, won’t be in the task contract
The mandatory widget options are managed on the client side. The contract is managed on the server side.
So to get the contract definition, you will use a REST Api, as described in my initial answer, to interrogate the server and get the contract definition.
For the mandatory widgets, you will have to use Javascript to know if a widget is mandatory or not. But I got to say that I’m unsure what you would be the need for that. Because, as a web developer you know which widgets are mandatory or not since you configured them.
Bonitasoft empowers development teams with Bonita, the open-source and extensible platform to solve the most demanding process automation use cases. The Bonita platform accelerates delivery of complex applications with clear separation between capabilities for visual programming and for coding. Bonita integrates with existing solutions, orchestrates heterogeneous systems, and provides deep visibility into processes across the organization.