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!

 

Hi,
If it is a reusable operation, like creating a new Bonita user, using a custom connector make sense. If it is a one shot action, you can do it in a groovy connector.

HTH
Romain