Search in sources :

Example 1 with ServiceTaskStateHandler

use of io.seata.saga.engine.pcext.handlers.ServiceTaskStateHandler in project seata by seata.

the class StateMachineProcessHandler method initDefaultHandlers.

public void initDefaultHandlers() {
    if (stateHandlers.isEmpty()) {
        stateHandlers.put(DomainConstants.STATE_TYPE_SERVICE_TASK, new ServiceTaskStateHandler());
        stateHandlers.put(DomainConstants.STATE_TYPE_SCRIPT_TASK, new ScriptTaskStateHandler());
        stateHandlers.put(DomainConstants.STATE_TYPE_SUB_MACHINE_COMPENSATION, new ServiceTaskStateHandler());
        stateHandlers.put(DomainConstants.STATE_TYPE_SUB_STATE_MACHINE, new SubStateMachineHandler());
        stateHandlers.put(DomainConstants.STATE_TYPE_CHOICE, new ChoiceStateHandler());
        stateHandlers.put(DomainConstants.STATE_TYPE_SUCCEED, new SucceedEndStateHandler());
        stateHandlers.put(DomainConstants.STATE_TYPE_FAIL, new FailEndStateHandler());
        stateHandlers.put(DomainConstants.STATE_TYPE_COMPENSATION_TRIGGER, new CompensationTriggerStateHandler());
        stateHandlers.put(DomainConstants.STATE_TYPE_LOOP_START, new LoopStartStateHandler());
    }
}
Also used : LoopStartStateHandler(io.seata.saga.engine.pcext.handlers.LoopStartStateHandler) ChoiceStateHandler(io.seata.saga.engine.pcext.handlers.ChoiceStateHandler) SucceedEndStateHandler(io.seata.saga.engine.pcext.handlers.SucceedEndStateHandler) ScriptTaskStateHandler(io.seata.saga.engine.pcext.handlers.ScriptTaskStateHandler) CompensationTriggerStateHandler(io.seata.saga.engine.pcext.handlers.CompensationTriggerStateHandler) SubStateMachineHandler(io.seata.saga.engine.pcext.handlers.SubStateMachineHandler) FailEndStateHandler(io.seata.saga.engine.pcext.handlers.FailEndStateHandler) ServiceTaskStateHandler(io.seata.saga.engine.pcext.handlers.ServiceTaskStateHandler)

Aggregations

ChoiceStateHandler (io.seata.saga.engine.pcext.handlers.ChoiceStateHandler)1 CompensationTriggerStateHandler (io.seata.saga.engine.pcext.handlers.CompensationTriggerStateHandler)1 FailEndStateHandler (io.seata.saga.engine.pcext.handlers.FailEndStateHandler)1 LoopStartStateHandler (io.seata.saga.engine.pcext.handlers.LoopStartStateHandler)1 ScriptTaskStateHandler (io.seata.saga.engine.pcext.handlers.ScriptTaskStateHandler)1 ServiceTaskStateHandler (io.seata.saga.engine.pcext.handlers.ServiceTaskStateHandler)1 SubStateMachineHandler (io.seata.saga.engine.pcext.handlers.SubStateMachineHandler)1 SucceedEndStateHandler (io.seata.saga.engine.pcext.handlers.SucceedEndStateHandler)1