GithubHelp home page GithubHelp logo

xuhuisheng / activiti-demo Goto Github PK

View Code? Open in Web Editor NEW
43.0 43.0 68.0 849 KB

A demostration of Activiti

License: Apache License 2.0

Java 42.67% JavaScript 56.16% Batchfile 0.01% PLSQL 0.43% HTML 0.74%

activiti-demo's Issues

在流程定义process1中由于缺少spjg变量,在经理审批时报错。

异常如下:

HTTP ERROR 500

Problem accessing /activiti-demo/bpm/workspace!completeTask.do. Reason:

    Unknown property used in expression: ${spjg == 'false'}
Caused by:

org.activiti.engine.ActivitiException: Unknown property used in expression: ${spjg == 'false'}
    at org.activiti.engine.impl.el.JuelExpression.getValue(JuelExpression.java:53)
    at org.activiti.engine.impl.el.UelExpressionCondition.evaluate(UelExpressionCondition.java:37)
    at org.activiti.engine.impl.bpmn.behavior.ExclusiveGatewayActivityBehavior.leave(ExclusiveGatewayActivityBehavior.java:63)
    at org.activiti.engine.impl.bpmn.behavior.FlowNodeActivityBehavior.execute(FlowNodeActivityBehavior.java:36)
    at org.activiti.engine.impl.pvm.runtime.AtomicOperationActivityExecute.execute(AtomicOperationActivityExecute.java:44)
    at org.activiti.engine.impl.interceptor.CommandContext.performOperation(CommandContext.java:87)
    at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperationSync(ExecutionEntity.java:532)
    at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperation(ExecutionEntity.java:527)
    at org.activiti.engine.impl.pvm.runtime.AtomicOperationTransitionNotifyListenerStart.eventNotificationsCompleted(AtomicOperationTransitionNotifyListenerStart.java:52)
    at org.activiti.engine.impl.pvm.runtime.AbstractEventAtomicOperation.execute(AbstractEventAtomicOperation.java:56)
    at org.activiti.engine.impl.interceptor.CommandContext.performOperation(CommandContext.java:87)

流程定义中定义如下:

<sequenceFlow id="flow8" sourceRef="exclusivegateway1"
            targetRef="endevent1">
            <conditionExpression xsi:type="tFormalExpression"><![CDATA[${spjg == 'false'}]]></conditionExpression>
</sequenceFlow>
<sequenceFlow id="flow7" sourceRef="exclusivegateway1"
            targetRef="usertask2">
            <conditionExpression xsi:type="tFormalExpression"><![CDATA[${spjg == 'true'}]]></conditionExpression>
</sequenceFlow>

自动委托

  1. 自动委托没有起止时间设置
  2. 自动委托没有针对流程定义

强化自动部署流程的功能

支持自动扫描目录,把创建时间比部署时间旧的流程部署,避免重复部署。
而且每个xml部署一个deployment,别删一个流程定义,就都删没了。

暂时不考虑自动扫描目录和比对内容md5的功能。

jumpCmd的问题

不会触发当前节点的complete和前一个节点的create事件
跳转以后,history的end_time为null

手动委派

当任务操作者完成任务后,需要从下一个任务的 candidateGroup 和 candidateUsers 的并集中 选择一个用户并设置下一个任务的assignee .

国内特色流程之回退

针对用户任务:
回退暂不考虑业务需求
1、回退到上一个任务节点,如果上一节点为开始节点 弹出回退失败,开始节点不能回退。(可以称之为默认回退)
2、回退到之前办理过(即流程流转过的)的任意的任务节点,并在页面让用户进行选择回退至某一个任务节点。
3、针对分支聚合的情况,回退至多个任务节点。
4、支持子流程的回退.
以上需求尽量对各大主流数据库进行测试回退功能!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.