//package digital.laboratory.platform.entrustment.config;
//
//import digital.laboratory.platform.entrustment.enums.EntrustEvent;
//import digital.laboratory.platform.entrustment.enums.EntrustStatusConstants;
//import org.springframework.beans.factory.annotation.Value;
//import org.springframework.context.annotation.Configuration;
//import org.springframework.statemachine.config.EnumStateMachineConfigurerAdapter;
//import org.springframework.statemachine.config.builders.StateMachineStateConfigurer;
//
///**
// * @author ChenJiangBao
// * @version 1.0
// * @description: 委托状态机配置类
// * @date 2025/3/14 11:47
// */
//@Configuration
//public class EntrustStateMachineConfig extends EnumStateMachineConfigurerAdapter<EntrustStatusConstants, EntrustEvent> {
//
//    @Value("${dlp.entrustment.isApprovalRequired}")
//    private boolean isApprovalRequired;  // 动态标志判断是否需要审批
//
//    @Override
//    public void configure(StateMachineStateConfigurer<EntrustStatusConstants, EntrustEvent> states) throws Exception {
//        states.withStates()
//                .initial(EntrustStatusConstants.ENTRUST_STATUS_CREATED)
//                .state(EntrustStatusConstants.ENTRUST_STATUS_WAITING_CHECK_CLAIM)
//                .state(EntrustStatusConstants.ENTRUST_STATUS_WAITING_CHECK)
//                .state(EntrustStatusConstants.ENTRUST_STATUS_WAITING_CONFIRM)
//                .state(EntrustStatusConstants.ENTRUST_STATUS_WAITING_DELIVER)
//                .state(EntrustStatusConstants.ENTRUST_STATUS_WAITING_ACCEPT)
//                .state(EntrustStatusConstants.ENTRUST_STATUS_ACCEPTED)
//                .state(EntrustStatusConstants.ENTRUST_STATUS_TEST_FINISH)
//                .state(EntrustStatusConstants.ENTRUST_STATUS_COMPLETED)
//                .state(EntrustStatusConstants.ENTRUST_STATUS_TERMINATED)
//                .state(EntrustStatusConstants.ENTRUST_STATUS_ABORTED)
//                .end(EntrustStatusConstants.ENTRUST_STATUS_COMPLETED);
//    }
//}
