Search code examples
restjbpm

How Can I start a Process in JBPM using REST API (for JBPM 7.1.0 only)


I want to start process and do other tasks in JBPM 7.1.0 using REST API. Though these APIs are available for earlier versions of JBPM, but I am not able to implement it in 7.1.0. kindly help.


Solution

  • This answer based on assumption that you have deployed a container in KIE-SERVER.

    first of all...

    go to {server}:{port}/kie-server/docs/ to get the full documentation.

    To start a process: it really depends whether the project you are running is case project (new in jbpm 7) or normal project.

    1. for case-project [POST]

      {server}:{port}/kie-server/services/rest/server/containers/{containerID}/cases/{processID}/instances

    2. for normal process [POST]

      {server}:{port}/kie-server/services/rest/server/containers/{containerID}/processes/{processID}/instances