package com.qqchen.deploy.backend.workflow.constants;

public interface WorkFlowConstants {

    String WORKFLOW_EXEC_ERROR = "WORKFLOW_EXEC_ERROR";

    String BOUNDARY_EVENT_ERROR_PREFIX = "BOUNDARY_EVENT_ERROR_";

    String END_EVENT_ERROR_PREFIX = "END_EVENT_ERROR_";

    String SEQUENCE_FLOW_ERROR_PREFIX = "SEQUENCE_FLOW_ERROR_";

    String ASYNC_CONTINUATION = "async-continuation";

    String WORKFLOW_PREVIOUS_NODE_EXECUTION_STATE_VARIABLE_NAME = "PREVIOUS_NODE_EXECUTION_STATE";

    /**
     * 执行状态：成功
     */
    String WORKFLOW_NODE_EXECUTION_STATE_SUCCESS = "SUCCESS";

    /**
     * 执行状态：失败
     */
    String WORKFLOW_NODE_EXECUTION_STATE_FAILURE = "FAILURE";

    /**
     * 执行状态：中止
     */
    String WORKFLOW_NODE_EXECUTION_STATUS_ABORTED = "ABORTED";
}
