Skip to content

endpot/camunda-rest-client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

camunda-rest-client

# 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);