Task Contract/Task Inputs unable to add Process variables, Parameters or Local Variables.

Hi,

I'm starting my very first projects using Bonita on version 2021.2 and I wanted to understand something that puzzles me.

On the "Execution" tab of a task (whose task is called "Contract" but has the title "Task Inputs") using the "Add from data..." I can add existing data from Business variables and Documents but not from Process variables, Parameters or Local Variables.

I can, however, create a variable (scoped to the task?) which is left undefined until set by the form.

I see the interest of this variable as I way to expose new values gathered in the form, which would be lost otherwise.

 

But think it could be even more valuable if there was a way to fill it before calling form, as there is already data available from connectors and the process instance itself, without the need to do extra API or remote calls on the form.

This could be very easily accomplished if the remaining type of variables could be allowed to be inserted from the "Add from data..." button, without any additional mechanism.

 

Please consider this in future releases.

 

Best regards,

Hi,

 

Thank you, I see this for business variables.

 

As for Process variables, maybe there is a reasoning to remove them from the "Add from data" mechanism, which I'm not understanding.

What could be the use case there?

Using business variables, there is an edit mode that automatically generate a form with the existing values of your data. This can be used on tasks.

Indeed, process variables are not supported by the contract to form generation.