This commit is contained in:
qimingjin 2021-07-21 22:22:59 +08:00
parent 0d878edfe9
commit 889909031c
2 changed files with 31 additions and 1 deletions

View File

@ -11,7 +11,7 @@ import org.springframework.stereotype.Service;
* @date 2021/1/12 19:13
*/
@Service("purApplayCheckFlowListener")
public class purchaseApplayCheckFlowListener extends AbstractExecutionListener<PurchaseOrderForm> {
public class PurchaseApplayCheckFlowListener extends AbstractExecutionListener<PurchaseOrderForm> {
@Override
protected void process() {

View File

@ -0,0 +1,30 @@
package com.snow.flowable.listener.purchaseOrder;
import com.snow.flowable.common.enums.FlowDefEnum;
import com.snow.flowable.common.skipTask.AbstractSkipTask;
import lombok.extern.slf4j.Slf4j;
import org.flowable.task.api.Task;
import org.springframework.stereotype.Service;
import java.util.List;
@Service
@Slf4j
public class PurchaseAutoApprovalTask extends AbstractSkipTask {
@Override
public boolean canSkip(Task task) {
return false;
}
@Override
protected String getProcessDefinitionKey() {
return FlowDefEnum.PURCHASE_ORDER_PROCESS.getCode();
}
@Override
protected List<String> getTaskKeys() {
return null;
}
}