#contract

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:

Complex type contract

I am using the upload widget in UI designer to upload a photo and save it to a document that I have previously defined. I've made a complex contract that contains a child "upload" of type File. When I run the workflow instance, I get the following error:

Notifications