Bonita process execution

Hello community,

I am working on a mission management process and I have already created: my BPMN diagram, my business data model, my business variable. Now I have created an instantiation contract on my pool so that at the execution of the pool the user in charge of planning a mission fills in the form then goes to his superior in charge of validating the planned mission. My contract at the beginning of the execution does not take into account the mission fees (since the one in charge of planning a mission is not the one who decides the mission fees).

Now when I execute the process and fill in the form created by my contract and validate, it returns an error saying: 

USERNAME=walter.bates | org.bonitasoft.engine.commons.exceptions.SRetryableException: javax.persistence.PersistenceException: org.hibernate.PropertyValueException: not-null property references a null or transient value : com.company.model.MissionManagement.mission_fees

I think that the problem comes from the fact that there is no value for the mission fees and in my starting contract defined on the pool the mission fees field is not present because the mission planning actor is not the one who decides the mission fees. 

How do I tell my process that at the beginning the mission costs are not taken into account?

I hope I have formulated my concerns correctly. Please help.

Thank.

Hi Christ, 

It seems that the mission_fees variable is set to "mandatory" in your BDM. When set to "mandatory", the variable cannot be null when the the object of your BDM is created.

Hello Nour,

Thanks I had already resolved the problem.

I have a human task where the actor upload a document(By using the upload widget from UI design) and I tested it and I don't know where my document has gone to? Can you tell me please where it is stored?

Also do you know free CMS that I can use and how to connect to Bonita?So that I can transfer my uploaded document there.

Thanks

Hi Christ,

To better understand documents, I recommend taking a look at the documentation: https://documentation.bonitasoft.com/bonita/2022.2/data/documents#_connectors_and_documents

During a process instance, you can use connectors to interact with content management systems (such as the Alfresco and CMIS connectors)

Hope this helps