activiti会签直接写死人员
程序员文章站
2022-06-08 23:24:38
...
设置:
${test.resolve(execution,"张三,李四")}
需要提供java方法:
@Component public class Test { /** * 会签时,动态获取审批人 * @param execution * @return */ public List<String> resolve(DelegateExecution execution, String value) { System.out.println(value); String[] user = value.split(","); String instanceId = execution.getProcessInstanceId(); System.out.println("实例id:"+instanceId); List<String> users = Arrays.asList(user); return users; } }