强制跳转流程

  • SDK调用
WorkflowEngineClient client = new WorkflowEngineClient();
client.setUrl(URL+"/engine");  //引擎客户端
String procId = "20181229000001";
int taskId = 2;
ChoiceStep choiceStep = new ChoiceStep();
choiceStep.setStepName("结束");
choiceStep.setStepLabel(结束"); 
//构建下一步处理人员
List<ChoiceStepUser> choiceStepUsers  = new ArrayList<ChoiceStepUser>();
ChoiceStepUser choiceStepUser = new ChoiceStepUser();
choiceStepUser.setUserId("a7b26d12-91dc-407b-822d-84110999f18b");
choiceStepUser.setOrgId("345f561c-f0ca-4fd0-9443-24346f36a0ad");
choiceStepUsers.add(choiceStepUser);
choiceStep.setStepUsers(choiceStepUsers);
Result result = client.forceSkipWorkflow(procId, taskId, "强制跳转", "强制跳转", choiceStep);
String resultStr = JSONObject.fromObject(result,getJsonConfig()).toString();
  • CURL 调用
curl -X  POST  "URL/engine/forceSkipWorkflow"  -H "accept: application/json" -H "Content-Type: application/json" -d \
"{   \
    "stepName": "结束",    \
    "stepLabel": "审批步骤1->结束",    \
    "stepUsers": [   \
        {   \
          "userId": "a7b26d12-91dc-407b-822d-84110999f18b",    \
          "orgId": "345f561c-f0ca-4fd0-9443-24346f36a0ad"   \
        }   \
    ],    \
    "procId": "20190102000007",    \
    "taskId": 2,    \
    "opinionContent": "强制跳转",    \
    "opinionArea": "强制跳转"   \
}"
  • 响应示例
{
    "success": true,
    "message": "强制跳转成功",
    "statusCode": 200
}