Search code examples
jbosswildflyjbpmredhat-bpm

How to change process variable value through remote rest api call for current human task in jbpm 6.5.0Final


I have a many human task. After start the process i want to update some process variable value with rest API call that's relates to current task. If anyone knows how to do that commend bellow.

I try with /execute this is only start the task then how to update the process variable for already started process instance?


Solution

  • Based on the documentation

    Here is how to do update the process variable. However, this will update an entire process rather than only that specific task.

    server/containers/{id}/processes/instances/{pInstanceId}/variables - POST
    

    If you want to update process variable from a task, you should do it during task completion. However, this requires you to have output variables from that task. Otherwise, it won't take any effect.

    server/containers/{id}/tasks/{tInstanceId}/states/completed - PUT
    

    Anyway, the full documentation of rest can be viewed in

    {localhost}:{port}/kie-server/docs