# Process Runtime API

Process runtime provides API to interact with process flow for standard commands used to operate flow. This chapter will guide you through all the APIs using simple examples. It will teach you how to call a service and use the parameters to control flow. To interact with the process runtime for example, you need to set up client tools and design a process flow.&#x20;

&#x20;

<table data-header-hidden><thead><tr><th width="429.3333333333333"></th><th></th><th></th></tr></thead><tbody><tr><td>Request </td><td>Description </td><td>HTTP Method </td></tr><tr><td>1. /BPMREST/service/runtime/process/start </td><td>To start the flow. </td><td>POST </td></tr><tr><td>2. /BPMREST/service/runtime/process/[Process Name]/start </td><td>Old API to start flow. It is not recommended. </td><td>POST </td></tr><tr><td>3. /BPMREST/service/runtime/tasks/[Task ID]/claim?user=[User Name] </td><td>To claim a task by user. </td><td>POST </td></tr><tr><td>4. /BPMREST/service/runtime/tasks/[Task ID]/complete?user=[User Name] </td><td>To complete a process by user. </td><td>POST </td></tr><tr><td>5. /BPMREST/service/runtime/instance/[Instance ID]/tasks </td><td>To get task by instance ID. </td><td>GET </td></tr><tr><td>6. /BPMREST/service/runtime/tasks?[group/role/user]=[User Name/Role Name/Group Name] </td><td>To get task by user or role or group name </td><td>GET </td></tr><tr><td>7. /BPMREST/service/runtime/tasks/[Task ID]/variables </td><td>To get Task variables </td><td>POST </td></tr><tr><td>8. /BPMREST/service/runtime/tasks/[Task ID]/assign?user=[User Name]&#x26;user=[User Name1]..&#x26;user=[User Name n] </td><td>To assign task to user/ users </td><td>POST </td></tr><tr><td>9. /BPMREST/service/runtime/instance/[Instance ID]/tasks/assign?user=[User Name] </td><td>To assign instance to user </td><td>POST </td></tr><tr><td>10. /BPMREST/service/runtime/refreshCache </td><td>To refresh cache for all process </td><td>POST </td></tr><tr><td>11. /BPMREST/service/runtime/classAction </td><td>To refresh cache for a specific process  </td><td>POST </td></tr></tbody></table>
