endpot/camunda-rest-client

camunda rest client

Installs: 4 039

Dependents: 0

Suggesters: 0

Security: 0

Stars: 19

Watchers: 5

Forks: 14

Open Issues: 6

pkg:composer/endpot/camunda-rest-client

v1.1.5 2020-06-05 05:09 UTC

README

# an example to use camunda rest api to complete task

use Camunda\Entity\Request\TaskRequest;
use Camunda\Service\TaskService;

$host = 'http://localhost:8080/engine-rest';
$taskRequest = new TaskRequest();
$taskService = new TaskService($host);

$taskId = '8cd376cc-bf7f-11e7-a6e2-005056c00008';
echo $taskService->complete($taskId, $taskRequest);