remove - 删除无用的功能
This commit is contained in:
parent
2abd8050ad
commit
a8feabafab
@ -1,65 +0,0 @@
|
||||
package cn.axzo.workflow.core.engine.listener;
|
||||
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.flowable.common.engine.impl.cfg.TransactionListener;
|
||||
import org.flowable.common.engine.impl.interceptor.CommandContext;
|
||||
import org.flowable.common.engine.impl.interceptor.CommandContextCloseListener;
|
||||
import org.flowable.common.engine.impl.interceptor.CommandExecutor;
|
||||
import org.flowable.job.service.impl.asyncexecutor.AsyncExecutor;
|
||||
|
||||
/**
|
||||
* TODO
|
||||
*
|
||||
* @author wangli
|
||||
* @since 2024/4/28 21:59
|
||||
*/
|
||||
@Slf4j
|
||||
public class InitiatorAsyncApprovedListener implements TransactionListener, CommandContextCloseListener {
|
||||
protected AsyncExecutor asyncExecutor;
|
||||
protected CommandExecutor commandExecutor;
|
||||
|
||||
public InitiatorAsyncApprovedListener(AsyncExecutor asyncExecutor) {
|
||||
this.asyncExecutor = asyncExecutor;
|
||||
}
|
||||
|
||||
public InitiatorAsyncApprovedListener(AsyncExecutor asyncExecutor, CommandExecutor commandExecutor) {
|
||||
this(asyncExecutor);
|
||||
this.commandExecutor = commandExecutor;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void execute(CommandContext commandContext) {
|
||||
// TODO
|
||||
asyncExecutor.executeAsyncJob();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void closing(CommandContext commandContext) {
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public void afterSessionsFlush(CommandContext commandContext) {
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public void closed(CommandContext commandContext) {
|
||||
execute(commandContext);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void closeFailure(CommandContext commandContext) {
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public Integer order() {
|
||||
return 10;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean multipleAllowed() {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user