#contract

Comment récupérer une variable définie dans le Contrat du Pool?

Bonjour,

J'aimerais savoir comment on fait pour récupérer les variable définie dans le Contrat du Pool.
J'ai fait une application qui appelle le processus via un appel REST, et qui définie une variable dans de contrat du pool.
Mais je ne sais pas comment réutiliser cette variable dans le processus, il n'y a pas d'opération possible dans le pool ( onglet 'Exécution' du pool). Sachant que ces un appel REST, je n'ai pas de formulaire d'instanciation.

Quelqu'un aurait une idée ?

Cordialement,

Problème Date avec l'engine API coté Java

Bonjour,

Je veux executer une tache partir de l'engine API avec des données définies dans un contrat. Mon problème viens du contrat qui contient une entrée de type date (LOCALDATE) et je ne sais pas exactement quoi envoyer dans la HashMap.

Détail de l'erreur :
org.bonitasoft.engine.bpm.contract.ContractViolationException: USERNAME=walter.bates | Error while validating expected inputs: [2018-04-04 cannot be assigned to LOCALDATE]

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.

Pre-populated Form Input

Hello All,

It's very clear how to read complex data in a form and send it back to the activity in the server.

But how do I pre-fill a complex Input object so I have default data in the form?

Thank you.

Get contract contents in a groovy script connector

Is it possible to get the contents of a contract in a groovy script? I created in my pool a contract that in UI Designer is an input field, I can get the contents of this contract in a groovy script?

Bonitasoft 7.4 - Contract Issue

We are getting following error in validation status:

UI-Designer form tag is selected and no target form is defined for entry for mapping. An auto-generated form will be used in development environment only.

When we click on UI designer it gives a popup "to create new form, we recommend that you first create contract then use the automatically generated form as your starting point".

Please guide us how to:

  • Generate a contract
  • Create a form at starting point

Accessing Doument Contract in bonita Script

I want to access document contract which i have created on step named "Step Upload" in example version 7.1.5-1.0.1 at link http://community.bonitasoft.com/project/file-upload-and-download-process... but its not working i am only trying to access contract using following code:

import org.bonitasoft.engine.bpm.contract.FileInputValue
import org.bonitasoft.engine.bpm.document.Document
import org.bonitasoft.engine.bpm.document.DocumentValue

How to make a filed of a complex type been optional in a contract?

Hi all

I have some questions about contracts.

I have a complex type and have some field that is optional (a description field), but I put in the contract the complex type.
As it is expected when I make a Submit and I don't fill the optional field I get an error saying this field is expected because it is in the contract.
Is there a way to say to the validator that this field of the complex type is optional?

Thank you very much.
Any assistance would be greatly appreciated.

Kind regards,
Héctor

How to modify a process variable or a bussines variable, from the activity form, witout using the contract?

Hi all

I am a newbie at Bonita 7.2.0, and have some doubts.

I have added a new porcess variable in the Bonita Studio, and I want to modify the value from a form button, I have one contract in that task to send datas from the form to the bonita flow.
In the button that I use to send the task, I have a javascript expression like this, with ti objects from the contract:

Notifications