I have a string variable in the bdm and at the contract i have defined it a file. When i try to submit the form i get this error. How can i upload files ?

1
0
-1

{ "exception": "class org.bonitasoft.engine.bpm.flownode.FlowNodeExecutionException", "message": "USERNAME=helen.kelly | org.bonitasoft.engine.core.process.instance.api.exceptions.SActivityStateExecutionException: org.bonitasoft.engine.core.operation.exception.SOperationExecutionException: org.bonitasoft.engine.expression.exception.SExpressionEvaluationException: FLOW_NODE_INSTANCE_ID=80008 | Declared return type class java.lang.String is not compatible with evaluated type class org.bonitasoft.engine.bpm.contract.FileInputValue for expression rmaInput.documentoDiTrasporto" }

Comments

Submitted by contact_420 on Tue, 10/11/2016 - 15:22

Have you defined Document in your process? (Select Pool -> Data -> Documents).
In this definition you should choose to initiate this document from contract and select appropriate field from contract (with type "File").

Best gerards,
bpms.help

Submitted by xhoi.kallupi on Tue, 10/11/2016 - 16:17

i have done exactly what you said BUT i don't want to show it at the instantiation form.
At UI designer - > formInput(json) i defined them null but still can't submit the form.
This is what i get : { "exception": "class org.bonitasoft.engine.exception.BonitaRuntimeException", "message": "USERNAME=jan.fisher | org.bonitasoft.engine.persistence.SRetryableException: javax.persistence.PersistenceException: org.hibernate.exception.ConstraintViolationException: could not execute statement" }

Submitted by contact_420 on Wed, 10/12/2016 - 13:33

Sorry, but I'm not able to help you without source codes. I have exactly the same case in my process, but it works perfectly for me (version 7.3.1). Even when I tried I wasn't able to recreate the exception that you got.

Best regards,
bpms.help

1 answer

1
0
-1

I solved it by uninstalling and installing again.

Notifications