mirror of
https://gitee.com/dromara/liteFlow.git
synced 2026-05-15 04:22:09 +08:00
28 lines
586 B
Java
28 lines
586 B
Java
/**
|
|
* <p>Title: liteflow</p>
|
|
* <p>Description: 轻量级的组件式流程框架</p>
|
|
* @author Bryan.Zhang
|
|
* @email weenyc31@163.com
|
|
* @Date 2020/4/1
|
|
*/
|
|
package com.yomahub.flowtest.components;
|
|
|
|
import com.yomahub.liteflow.core.FlowExecutor;
|
|
import com.yomahub.liteflow.core.NodeComponent;
|
|
import org.springframework.stereotype.Component;
|
|
|
|
import javax.annotation.Resource;
|
|
|
|
@Component("m2")
|
|
public class M2Component extends NodeComponent {
|
|
|
|
@Resource
|
|
private FlowExecutor flowExecutor;
|
|
|
|
@Override
|
|
public void process() {
|
|
System.out.println("m2 component executed!");
|
|
}
|
|
|
|
}
|