传阅流程

  • SDK调用
        WorkflowEngineClient client = new WorkflowEngineClient();
        client.setUrl(URL+"/engine");  //引擎客户端
        String procId = "20190827000025";
        int taskId = 2;
        List<ChoiceStepUser> choiceStepUsers = new ArrayList();
        ChoiceStep choiceStep = new ChoiceStep();
        choiceStep.setResponseType("one");
        choiceStep.setStepLabel("选定特定用户->传阅步骤");
        choiceStep.setStepName("传阅步骤");
        ChoiceStepUser choicestepUser = new ChoiceStepUser();
        choicestepUser.setOrgId("843b22ca-bfb6-4637-b872-bf449b17dbb7");
        choicestepUser.setUserId("45507040-3a9d-45d1-91a3-8e742f5ed57b");
        choiceStepUsers.add(choicestepUser);
        Result result = client.circulateWorkflow(procId,taskId,choiceStepUsers);
        String resultStr = JSONObject.fromObject(result,getJsonConfig()).toString();
        System.out.println(resultStr);       
  • CURL调用
curl -X  POST  "URL/engine/circulateWorkflow "  -H "accept: application/json" -H "Content-Type: application/json" -d \
"{  \
   \"procId\": \"20181229000001\",    \
   \"taskId\": 2,    \
   \"choiceStepUsers\": [    \
     {    \
       \"userId\": \"62110792-2ACA-4502-9CAC-8F7A19F1F7D9\",      \
       \"orgId\": \"B1C5B3A4-CCBB-4374-A680-228D8D9209E9\"    \
     }    \
   ]    \
}"
  • 响应示例
{
  "message": "传阅成功",
  "statusCode": 200,
  "success": true
}