Java API

What's the best way to use Bonita Java API in my process?

Imagine this use case example:

In a process, after the execution of a task, you need to use the Java API to, for example, create a new user in the Bonita Organization. After that, your process will continue.

What is the best way to do it?

Operations are excluded since they are meant to be used for mapping purposes.

There is a Groovy script connector that could be useful for this purpose but I'm not sure if this is the best way to do it.

Pros and cons?

Thank you!

createGroovyScriptExpression for returning LocalDateTime

Hello, I'm trying to execute the following code:

`org.bonitasoft.engine.operation.OperationBuilder operationBuilder = new org.bonitasoft.engine.operation.OperationBuilder();

org.bonitasoft.engine.operation.Operation operation = operationBuilder.createBusinessDataSetAttributeOperation(dataBusinessName, operation, LocalDateTime.class.getName(),
new ExpressionBuilder()
.createGroovyScriptExpression(operation, "return", LocalDateTime.class.getName()))`

How i can move a file that has been attached with widget?


I want to move a file to another folderThis file will be attached with a widget.

Now i have created a script task, and i have impelemented this code, but when i try to test, nothing works good.Here is the java code:

` import org.bonitasoft.engine.bpm.document.Document;
import org.bonitasoft.engine.bpm.document.DocumentValue;