在工作流結束過程中,類裡面配置工作流結束時的過程
實現方法:
public class UpdateStatus implements JavaDelegate, ApplicationContextAware {
private static ApplicationContext applicationContext;
/**
* 採購稽核結果處理
* @param execution
*/
@Override
public void execute(DelegateExecution execution) {
Service service = applicationContext
.getBean(Service.class);
String audit = execution.getVariable("audit").toString();
// 執行業務邏輯
.................
}
@Override
public void setApplicationContext(ApplicationContext applicationContext1) throws BeansException {
applicationContext = applicationContext1;
}
}
方法繼承JavaDelegate、ApplicationContextAware 實現工作流結束過程