【工作流】如何添加工作流运行时依赖

前端

  1. package.json中新增依赖 @kunlun/workflow,版本跟@kunlun/dependencies的填一样

  2. src/main.ts内导入依赖

//  导入代码放在VueOioProvider()方法执行前即可
import '@kunlun/workflow/dist/kunlun-workflow.css';
import '@kunlun/workflow';

VueOioProvider({
    // TODO
});

后端

  1. 父pom新增依赖
    <properties>
    <pamirs.core.version>4.7.8</pamirs.core.version>
    <pamirs.workflow.designer.version>4.7.8</pamirs.workflow.designer.version>
    <pamirs.workbench.version>4.7.8</pamirs.workbench.version>
    </properties>
    <dependencyManagement>
    <dependencies>
        <dependency>
            <groupId>pro.shushi.pamirs.core</groupId>
            <artifactId>pamirs-core-dependencies</artifactId>
            <version>${pamirs.core.version}</version>
            <type>pom</type>
            <scope>import</scope>
        </dependency>
        <dependency>
            <artifactId>pamirs-workflow</artifactId>
            <version>${pamirs.workflow.version}</version>
            <type>pom</type>
            <scope>import</scope>
        </dependency>
        <dependency>
            <groupId>pro.shushi.pamirs.work.bench</groupId>
            <artifactId>pamirs-work-bench-core</artifactId>
            <version>${pamirs.workbench.version}</version>
        </dependency>
        <dependency>
            <groupId>pro.shushi.pamirs.work.bench</groupId>
            <artifactId>pamirs-work-bench-view</artifactId>
            <version>${pamirs.workbench.version}</version>
        </dependency>
    </dependencies>
    </dependencyManagement>

2.boot启动工程的pom新增依赖

<dependency>
    <groupId>pro.shushi.pamirs.core</groupId>
    <artifactId>pamirs-sql-record-core</artifactId>
</dependency>
<dependency>
    <groupId>pro.shushi.pamirs.core</groupId>
    <artifactId>pamirs-trigger-core</artifactId>
</dependency>
<dependency>
    <groupId>pro.shushi.pamirs.core</groupId>
    <artifactId>pamirs-trigger-bridge-tbschedule</artifactId>
</dependency>
<dependency>
    <groupId>pro.shushi.pamirs.core</groupId>
    <artifactId>pamirs-user-core</artifactId>
</dependency>
<dependency>
    <groupId>pro.shushi.pamirs.core</groupId>
    <artifactId>pamirs-user-view</artifactId>
</dependency>
<dependency>
    <groupId>pro.shushi.pamirs.core</groupId>
    <artifactId>pamirs-auth-core</artifactId>
</dependency>
<dependency>
    <groupId>pro.shushi.pamirs.core</groupId>
    <artifactId>pamirs-business-core</artifactId>
</dependency>
<dependency>
    <groupId>pro.shushi.pamirs.core</groupId>
    <artifactId>pamirs-business-view</artifactId>
</dependency>
<dependency>
    <groupId>pro.shushi.pamirs.workflow</groupId>
    <artifactId>pamirs-workflow-core</artifactId>
</dependency>
<dependency>
    <groupId>pro.shushi.pamirs.work.bench</groupId>
    <artifactId>pamirs-work-bench-core</artifactId>
</dependency>
<dependency>
    <groupId>pro.shushi.pamirs.work.bench</groupId>
    <artifactId>pamirs-work-bench-view</artifactId>
</dependency>

3.application.yml配置新增依赖

pamirs:
  boot:
    modules:
      - user
      - auth
      - business
      - sql_record
      - trigger
      - workflow

特别注意

工作流模块如果线上部署需要流程设计器能力,可以参考文档流程设计器部署注意事项

Oinone社区 作者:nation原创文章,如若转载,请注明出处:https://doc.oinone.top/workflow/13144.html

访问Oinone官网:https://www.oinone.top获取数式Oinone低代码应用平台体验

(0)
nation的头像nation数式员工
上一篇 2024年5月29日 下午10:39
下一篇 2024年5月30日 下午7:32

相关推荐

发表回复

登录后才能评论