I need to execute the user task from a remote java app and as I know the proper way is to use processAPI : processAPI.executeUserTask(long userTaskInstanceId, Map<String, Serializable> inputs)
the problem is that i dont’t know how to create Map<String, Serializable> inputs, I have tried puting variable names and values (k,v) in map but engine throws an exeption that says missing input…
I tried to understand how the engine does it when we use the protal but i couldn’t get my answer.
any help is appreciated
Here is some code to create and start a process…you can use this to model your executeUserTask.
Map processData = new HashMap();
processData.put("whoIsDoingThisTask", username); //user data
processData.put("whoIsTheSender", whoIsTheSender); //user data
processData.put("additionalText", additionalText); //user data
Bonitasoft empowers development teams with Bonita, the open-source and extensible platform to solve the most demanding process automation use cases. The Bonita platform accelerates delivery of complex applications with clear separation between capabilities for visual programming and for coding. Bonita integrates with existing solutions, orchestrates heterogeneous systems, and provides deep visibility into processes across the organization.