EOS Low-Code Platform 8 EOS Low-Code Platform 8
产品简介
学习指南
更新说明
安装与集成
上线指南
初见EOS
低代码开发手册
专业代码开发手册
智能体开发手册
专题场景实战
公共服务框架
应用运行治理
运维指南
  • Java代码调用逻辑流

# Java代码调用逻辑流

在EOS高开项目中,使用LogicflowInvokerHelper.invokeLogicflow(String componentName, String bizName, Object[] args)实现java代码调用当前应用中的逻辑流,参考代码如下:

import com.primeton.ext.engine.component.LogicflowInvokerHelper;

List<DataObject> dataObjects = new ArrayList<>();
// 参数
Object[] args = new Object[]{ dataObjects };
// 执行逻辑流testContribution.DBOpeartor.addOpTest,并获取结果,
// componentName: testContribution.DBOpeartor
// bizName: addOpTest
Object[] result = LogicflowInvokerHelper.invokeLogicflow("testContribution.DBOpeartor", "addOpTest", args);
Map resultMap = (Map) result[0];

← 使用@Service如何避免被EOS事务拦截 后端业务代码如何发布为离线运算逻辑 →