How execute a (human) task with contract defined input values using the java API ?

1
0
-1

Hello.

I'm looking at the java API documentation, and I have not found any way to execute a task setting its contract inputs values at the same time ?

The goal is to design processes with human tasks, using the contract variables to define what should be user's input, but execute them from external systems (exposing web services in our case).

What is the best design for that ?

Thanks for your help.

Regards.

2 answers

1
+1
-1

Hi,

Take a look at ProcessRuntimeAPI.executeUserTask()
To get an instance of a ProcessAPI, which is a sub interface of ProcessRuntimeAPI, use TenantAPIAccessor.getProcessAPI()

Hope this helps

Regards

1
0
-1

Hello.
In deed, this seems to be the solution. I've seen the API operation before, but I didn't understand that it involves the task's contract inputs.
We're still at a pre-design step, and we'll do the first prototyping code in few weeks.
I keep your advice and I'll come back to tell you about our results.
Thanks a lot.
Regards.

Notifications