我使用camunda_bpm_api
(git url和drupal8 camunda+drupal8 sample module模块)模块在Drupal我的自定义应用程序连接到服务器camunda。检索任务列表分配给特定用户camunda
我所用的功能如下检索process definitions
:
private function fetchProcessDefinitions() {
return \Drupal::service('camunda_bpm_api.process_definition')->getList();
}
这是正常工作。
我如何检索分配给特定用户的任务?我试图如下:
public function fetchTaskList() {
$payload = array('assignee' => 'nimyav');
return \Drupal::service('camunda_bpm_api.task')->getList($payload);
}
但其retriveing all the tasks
不论assignee
?
我该如何做到这一点?任何帮助表示赞赏。
我猜中了。谢谢 :) 。另一个问题**如何通过其余API API获取任务进程的表单变量?当我尝试** http:// localhost:8080/engine-rest/engine/default/task/0ce473ad-a922-11e7-bc26-005056a64ad8/form-variables **它获得一个json,不包含给定的表单变量在表单提交中。 – Crazyrubixfan
嗨,它也可以使用像返回**公共函数getTaskVariables($ id,数组$变量,$ businessKey = NULL){ 返回$ this-> request('get',array(),'/ process-instance /' 。$ id。'/ variables'); } ** 正在通过** http://192.168.1.188:8080/engine-rest/process-instance/e78f1bd3-a921-11e7-bc26-005056a64ad8 /变量获取响应** – Crazyrubixfan