12345678910111213141516171819202122232425 |
- /**
- * <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.NodeComponent;
- import org.springframework.stereotype.Component;
- @Component("a")
- public class AComponent extends NodeComponent {
- @Override
- public void process() {
- String str = this.getSlot().getRequestData();
- System.out.println(str);
- System.out.println("Acomponent executed!");
- this.getSlot().setOutput(this.getNodeId(), "A component output");
- }
- }
|