Code Monkey home page Code Monkey logo

Comments (3)

vavi avatar vavi commented on May 22, 2024
  1. 目前锁的机制的确有较大的优化空间; 一般不建议使用LockStrategy
  2. 问题1,看下传入ProcessInstance#uniqueId
    2.问题2,没太明白。

from smartengine.

JannLim avatar JannLim commented on May 22, 2024

在并行网关存在的场景下,必须设置LockStrategy,不然ParallelGatewayBehavior(125行)会出现npe。
问题1,将uniqueId作为锁的key锁是可以正常使用的。
问题2,出现的场景是流程中开启了子线程,父线程中出现了并行网关,所以设置了LockStrategy,那么此时进入到子线程之后,由于LockStrategy不为空,所以导致流程实例没有insert操作,子线程执行完成无法回到主线程。
针对于上述两个问题,我这里修复了一版,没有发pr,版本: https://github.com/JannLim/SmartEngine/tree/hotfix-subprocess

from smartengine.

vavi avatar vavi commented on May 22, 2024

好的 我看下哈。

from smartengine.

Related Issues (20)

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.