Flow_15zn1tu
${true}
${1}
project-plan
${true}
${environment.variables.task_id}
Flow_1t45qnv
Flow_0gyvyyo
Flow_1gc46ur
Flow_1rg4oob
Flow_0bhibn0
状态变为申请审核(40)
状态变为审核中(50)
${true}
${1}
project-plan
${environment.variables.prj_id}
${50}
${false}
${environment.variables.task_id}
Flow_02nannf
Flow_193tusd
${content.handlers.length}
${!content.output.pass}
Flow_193tusd
Flow_1rcwh5r
Flow_0zubkyw
Flow_0nwaga3
next(null, this.environment.variables.pass===true);
审核不通过(30)
${1}
Flow_0bhibn0
Flow_0tj9nd6
Flow_0tj9nd6
Flow_0zubkyw
Flow_02taytj
Flow_1ucg773
Flow_0nwaga3
Flow_06cxzjx
Flow_15zn1tu
Flow_0gyvyyo
Flow_06kumr8
Flow_0nzbvpg
Flow_1t45qnv
Flow_06cxzjx
Flow_06kumr8
this.environment.services.get_handlers('owner').then((handlers) => {
for (var i = 0; i < handlers.length; i++) {
this.environment.services.gen_remind_task(handlers[i].id, '任务审核被驳回', '任务审核被驳回');
}
next();
});
Flow_1ucg773
Flow_02taytj
Flow_0nzbvpg
Flow_1rg4oob
Flow_02nannf
Flow_0iv9g3p
状态变为审核中(50)
${true}
${1}
project-plan
${environment.variables.prj_id}
${50}
${false}
${environment.variables.task_id}
Flow_0iv9g3p
Flow_1su3b3p
${content.handlers.length}
next(null, this.environment.variables.check_type===1);
Flow_0b7s3zy
Flow_0b7s3zy
Flow_1gc46ur
Flow_1su3b3p
Flow_1rcwh5r
// 只要有一个未通过,就算未通过审核
var passed = true;
let a = this.environment.services.get_value('a');
for (var i = 0; i < this.environment.output.task_approve_task_sync.length; i++) {
var value = this.environment.output.task_approve_task_sync[i];
if (value && !value.pass) {
passed = false;
break;
}
}
this.environment.variables.pass = passed;
next();
所有人都审核通过才算通过