发起审批实例后,返回信息如下,不知道哪里有问题~
{"dingtalk_smartwork_bpms_processinstance_create_response": {"result": {"ding_open_errcode": 810003,"error_msg": "审批流表单格式错误","is_success": false},"request_id": "uak2zh81egg"}}
原代码:DingTalkClient client = new DefaultDingTalkClient("https://eco.taobao.com/router/rest", "json");
SmartworkBpmsProcessinstanceCreateRequest req = new SmartworkBpmsProcessinstanceCreateRequest();
req.setAgentId(Long.valueOf(6853696));
req.setProcessCode("PROC-EF6YCS6WO2-EIA5LGPTQ0CVT2VVRWLG2-4AI50XGI-121");
req.setOriginatorUserId("0545050127784700");
req.setDeptId(Long.valueOf("3288450"));
req.setApprovers("0545050127784700");
List<SmartworkBpmsProcessinstanceCreateRequest.FormComponentValueVo> list2 =new ArrayList<>();
SmartworkBpmsProcessinstanceCreateRequest.FormComponentValueVo obj3 = new SmartworkBpmsProcessinstanceCreateRequest.FormComponentValueVo();
SmartworkBpmsProcessinstanceCreateRequest.FormComponentValueVo obj4 = new SmartworkBpmsProcessinstanceCreateRequest.FormComponentValueVo();
SmartworkBpmsProcessinstanceCreateRequest.FormComponentValueVo obj5 = new SmartworkBpmsProcessinstanceCreateRequest.FormComponentValueVo();
obj3.setName("请假类型");
obj3.setValue("婚嫁");
obj3.setExtValue("总天数:3");
obj4.setName("开始时间:");
obj4.setValue("2017-07-13 13:33:27");
obj5.setName("结束时间:");
obj5.setValue("2017-07-15 13:33:27");
list2.add(obj3);
list2.add(obj4);
list2.add(obj5);
req.setFormComponentValues(list2);
SmartworkBpmsProcessinstanceCreateResponse rsp = client.execute(req, access_token);
System.out.println(rsp.getBody());
-------------------------
-------------------------
-------------------------
-------------------------
-------------------------
版权声明:本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《阿里云开发者社区用户服务协议》和《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。