package com.cmvr.test.flow.runtime.dispatcher;

import com.cmvr.test.flow.runtime.message.TaskNodeExecuteMessage;
import com.cmvr.test.flow.runtime.message.TaskNodeExecuteResult;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

@Slf4j
@Component("START")
@RequiredArgsConstructor
public class FlowStartNodeHandler implements FlowNodeTypeHandler {

    @Override
    public TaskNodeExecuteResult handle(TaskNodeExecuteMessage message) {
        // todo 暂时start节点没有处理

        return TaskNodeExecuteResult.success(message.getInputParams());
    }
}
