Java API

Get process paramters through API?

Is it possible to get the value of process parameters through a REST or Java API call?

The documentation says:

"From 7.x, to use parameters in forms, you need to retrieve them using the REST API."

But it doesn't take you do any place that discusses how to make these calls.

Thanks regular_smile.png

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 java.time.LocalDateTime.now()", LocalDateTime.class.getName()))`

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

Hi,

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;

Notifications