default value

Can't define "Default value" for Java Object "Local variable"

Hi,

I am new here and trying to understand scripting in Bonita.
At the moment I try to setup default value for Java Object of my own class com.company.model.TestObject.

I tried to base my script on: https://bonitasoft-community.github.io/bonita-camp/en/02-data-contract.html
but no matter what I do I always get: Unable to deserialize object

What am I doing wrong? Can anyone help?

Default values for contracts

I have a process that is automating a business decision based on the inputted data.
Now the form is dynamic, meaning some fields are shown cause of prior inputs like select box or a checkbox.
Because of this the json coming from the client can sometimes contain more fields and sometimes less.
But we all know that Bonita will give an Error if the contract is not met.
So what I want to know if there is a way to set the contract a default value, so that if that contract field is not present in the json than that field can be initialized with the default value.

Dropdown list with default value

Issue with default value for pool variable in 6.3 ?

I define a variable in a pool (text) with a default value.

When I execute, in the instantiation form of the processus, the text field is empty.

It works perfectly in a task form if I define a variable in the task, but the pool variable is still empty.

Is this a bug according to you ?

Notifications