#contract

Contract data from a user form is not available for operations

I have a bonita form that is sending the form data properly:

Contract Violation

  1. Why do I get this error while ! Im trying to go from a human Task to another but I get this error !

explanations: [" cannot be assigned to INTEGER", " cannot be assigned to INTEGER",…]
  1. 0: " cannot be assigned to INTEGER"
  2. 1: " cannot be assigned to INTEGER"
  3. 2: "{itemName=, itemQuantity=, companyAdress=, companyName=, itemPrice=, itemDescription=} cannot be assigned to COMPLEX type"
message: "Error while validating expected inputs"

Appeler sous procesus avec contrat complexe

Bonjour,

Je suis en BOS 7.8.1 Open Source

J'ai 2 pool:
-Un maitre qui appel un sous processus
-un esclave avec un contrat qui contient des éléments complexe (Objets imbriqués)

J'ai declaré un objet Virement en BDM que je set dans le processus maitre mais qui sera modifié par l'escave (pas la même granularité)

J'arrive à appeler le sous process en lui passant des éléments simples (String, int....) (en alterant mon contrat) mais pas des éléments complexes

J'ai essayé en passant l'objet directement

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
Notifications