设置:
${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; } }