flowable6.5.x自定义表单(一、大纲篇)

flowable6.5.x自定义表单(一、大纲篇)

2020-07-07:由于最近比较忙,没有来的及更新代码以及博客。不好意思!!
2022-05-05:已经从上家离职,源码没有留下,不过大致的思路就是下面的图片

&&大致功能意向
在这里插入图片描述

  1. 流程图在线制作,在用户节点中关联表单
  2. 自定义表单制作
  3. 流程定义导入,导入成功之后,就可以发起流程。并对流程的操作:流程认领、流程节点流转、流程跳转、流程图跟踪等等

一、功能概述:

  1. 自定义表单(vue-form-generate)
  2. 流程制作(flowable-ui-modeler)
  3. 流程制作人员分配(flowable-ui-idm)
  4. 流程定义管理
  5. 流程发起
  6. 我的流程
  7. 我的待办
  8. 我的已办
  9. 流程图
  10. 流程跟踪图
  11. 节点自由跳转

二、环境:

  • jdk1.8
  • mysql5.7
  • springboot2.2.x
  • flowable6.5.x
  • mongodb4.2x
  • vue-admin

三、源码地址:

# 参考开源自定义表单流程项目地址
gitee:https://gitee.com/zjm16/zjmzxfzhl

# git源码地址

 1. 流程图制作github:https://github.com/revertXC/csdn-flowable-ui-modeler
 2. 用户管理idm:https://github.com/revertXC/csdn-flowable-ui-idm.git

模块名变更项
flowable-ui-modeler1、登录忽略
2、候选人分配给发起人,跳到下一个节点无法分配给发起人修复。
在导出xml的时候将 $INITIATOR 替换成 ${INITIATOR}
flowable-ui-idm1、登录忽略
  • 3
    点赞
  • 18
    收藏
    觉得还不错? 一键收藏
  • 7
    评论
非常抱歉,我之前的回答有误。在 Flowable 6.5 中,确实没有 `org.flowable.engine.delegate.Expression` 接口。 如果需要处理复杂条件,可以使用 `org.flowable.engine.impl.bpmn.behavior.ExclusiveGatewayActivityBehavior` 中的 `org.flowable.engine.impl.bpmn.behavior.ExclusiveGatewayActivityBehavior#evaluateConditions(DelegateExecution)` 方法,该方法可以通过代理类计算条件达式的值。 以下是一个使用代理类处理复杂条件的示例: 1. 定义一个 Java 类,实现 `org.flowable.engine.delegate.JavaDelegate` 接口。该接口用于执行 Java 代码,并可以访问流程实例的变量。 ``` public class MyJavaDelegate implements JavaDelegate { @Override public void execute(DelegateExecution execution) { // 获取 execution 中的变量,根据变量值计算条件达式的值 // 将计算结果设置为 execution 的变量 } } ``` 2. 在 ExclusiveGateway 中定义条件达式,值为代理类的实例。 ``` <exclusiveGateway id="exclusiveGateway1" name="Exclusive Gateway"> <extensionElements> <activiti:executionListener expression="${myJavaDelegate}" event="start" /> </extensionElements> <condition id="flow1Condition" name="flow1"> <!-- 空值,代理类中计算条件达式的值 --> </condition> <condition id="flow2Condition" name="flow2"> <!-- 空值,代理类中计算条件达式的值 --> </condition> </exclusiveGateway> ``` 3. 在流程启动时,将代理类的实例设置为 execution 的变量。 ``` Map<String, Object> variables = new HashMap<>(); variables.put("myJavaDelegate", new MyJavaDelegate()); runtimeService.startProcessInstanceByKey("myProcess", variables); ``` 4. 在代理类中可以通过 DelegateExecution 对象获取流程实例的变量,根据变量值计算条件达式的值,并将计算结果设置为 execution 的变量。 ``` public class MyJavaDelegate implements JavaDelegate { @Override public void execute(DelegateExecution execution) { // 获取 execution 中的变量 Object variable = execution.getVariable("myVariable"); // 根据变量值计算条件达式的值 boolean conditionValue = true; // 假设计算结果为 true // 将计算结果设置为 execution 的变量 execution.setVariable("flow1Condition", conditionValue); execution.setVariable("flow2Condition", !conditionValue); } } ``` 以上就是一个使用代理类处理复杂条件的示例。希望能够对你有所帮助。

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 7
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值