Code Monkey home page Code Monkey logo

Comments (5)

jangalinski avatar jangalinski commented on June 16, 2024

Hi zapata. Thanks for reporting this. I never worked with "transaction" in camunda before, so I just missed this.

To fix, have a look into RegisterAllBpmnParseListener. It adds a listener to every transition that fires an event to the bus. In case of transaction, I do:

 @Override
  public void parseTransaction(Element transactionElement, ScopeImpl scope, ActivityImpl activity) {
    addExecutionListener(activity);
  }

  void addExecutionListener(final ActivityImpl activity) {
    for (String event : EXECUTION_EVENTS) {
      activity.addListener(event, executionListener);
    }
  }

which seems to be wrong. Maybe (would have to check), we need a behavior like sequenceFlows:

  void addExecutionListener(final TransitionImpl transition) {
    transition.addListener(EVENTNAME_TAKE, executionListener);
  }

from camunda-platform-7-reactor.

jangalinski avatar jangalinski commented on June 16, 2024

I asked the forum: https://forum.camunda.org/t/what-events-are-allowed-on-the-transaction-element/910

from camunda-platform-7-reactor.

jangalinski avatar jangalinski commented on June 16, 2024

According to https://forum.camunda.org/t/how-to-get-the-elementtype-of-a-modelinstanceelement-that-is-not-a-flowelement-transaction/912/2 this should work with 7.5.0 is that an option for you?

I think I will implement a version hook, where events for start/end transaction are only fired if its >= 7.5 This extension does not have the manpower to support multiple versions over time.

from camunda-platform-7-reactor.

Zapata avatar Zapata commented on June 16, 2024

7.5 is good for me!

As a quick fix i just removed the BPMN Transaction which is almost useless anyway (at least in Camunda).

Many thanks for you quick answer.

from camunda-platform-7-reactor.

jangalinski avatar jangalinski commented on June 16, 2024

No prob. I can confirm that 7.5 works. I will add a version switch to the transaction element so no events will get fired for version < 7.5

from camunda-platform-7-reactor.

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.