1.自定义审批规则设置态动态接口, 在customManage.eventEmit抛出的事件为 nodeRuleCustom:
1.1传递的参数为数组:
[
{
"nodeId": 节点id,
"formId": 表单id,
"templateId": 模板id
}
];
1.2需返回数据为一个对象:
{
"name": 按钮名称,
"customUrl": 要弹出页面的url,
"buttonId": 按钮的id
};
1.3设置完规则点击确认时,返回一个对象:
{
"nodeRuleSet": {
'failAction':不符合规则时的操作,
'ruleId':规则id,
'thirdPartRuleId': 第三方规则id
},
'buttonId': 设置规则的按钮的id
}。
2.自定义审批规则运行态动态接口, 在customManage.eventEmit抛出的事件为 checkRuleCustom:
2.1传递的参数为空数组[];
2.2需返回数据为一个对象:
{
"name": 按钮名称,
"customUrl": 要弹出页面的url,
"buttonId": 按钮的id
};