Giter VIP home page Giter VIP logo

Comments (6)

tijsrademakers avatar tijsrademakers commented on June 30, 2024

Hi Michal, please attach the full debug logging of a process instance run so we can do an analysis on the possible reasons for the delay that you are seeing.

from flowable-engine.

MichalHecko avatar MichalHecko commented on June 30, 2024

Hi,

sure, there are log of submiting task via my REST API over Flowable Service API.

This is kinda interesting, most of the time, the delay is inside ExclusiveGatewayActivityBehavior before script condition and rarely somewhere right after that activity.

obrázok

Content of that script:
<scriptTask id="ulozenieVyhodnoteniaDoKP" name="Uloženie vyhodnotenia do KP" scriptFormat="groovy" flowable:autoStoreVariables="false"> <script><![CDATA[vyhodnoteniePoziadavkyProcessScript.ulozenieVyhodnoteniaDoKP(execution);]]></script> </scriptTask>

Explore-logs-2024-04-29 12 10 33.txt

Let me know if i can submit you something more specific, but i dont know, what i am looking for... Maybe there is some lock mechanism inside ContinueProcessOperation, or something like that.

from flowable-engine.

MichalHecko avatar MichalHecko commented on June 30, 2024

In this case the delay must be somewhere inside this code in ContinueProcessOperation right after that log message:

There is an event dispatched but i got no logs what's going on before first line of my log in ScriptTask.

obrázok

from flowable-engine.

filiphr avatar filiphr commented on June 30, 2024

I don't think that the delay is in there @MichalHecko. It could be related to the script parsing (although your script looks really simple).

Is it possible for you to test this by swapping the script task with a service task with an expression like vyhodnoteniePoziadavkyProcessScript.ulozenieVyhodnoteniaDoKP(execution)?

Just to rule out whether it is something specific with the Script engine parsing or it is something else.

There is an event dispatched but i got no logs what's going on before first line of my log in ScriptTask.

Do you have some event listeners perhaps? We are not logging anything, but perhaps you have a custom event listener that is doing something?

from flowable-engine.

MichalHecko avatar MichalHecko commented on June 30, 2024

I replaced script tasks with service tasks only in one specific process and there is no delay within process flow. So we can blame script engine parsing or something very close to that code.
I am gonna close this issue and if problem occurs again even with service tasks i will reopen it.
Thanks for advice.

from flowable-engine.

filiphr avatar filiphr commented on June 30, 2024

Thanks for checking it @MichalHecko

from flowable-engine.

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.