package com.zt.plat.module.qms.core.liteflow.handler;

import org.springframework.stereotype.Component;

import com.yomahub.liteflow.core.FlowExecutor;

import com.zt.plat.framework.mq.redis.core.pubsub.AbstractRedisChannelMessageListener;
import jakarta.annotation.Resource;

@Component
public class LoderLiteFlowHandler extends AbstractRedisChannelMessageListener<RedisLiteFlowMessage> {

    @Resource
    private FlowExecutor flowExecutor;

	@Override
	public void onMessage(RedisLiteFlowMessage message) {
		flowExecutor.reloadRule();
	}

}
