Coder Social home page Coder Social logo

Comments (11)

jangalinski avatar jangalinski commented on July 20, 2024 1

Spring-AutoDeployment: spring does a classpath scan and deploys all files that match some extension-patterns. Deployment is not grouped and not linked to processApplication.
Consequences: processes can be used, but advanced features like deploymentAware jobExecutors and embedded forms won't work.

EnableProcessApplication: deployment scan is triggered by existing processes.xml (can be empty). Auto Deployment (s.a) is deactivated. isScanForProcessDefinitions defaults to true so bpmn resources are found and deployed.

Note: issue management has been moved to jira, it is a better solution to discuss general application features in the forum.

from camunda-bpm-spring-boot-starter.

osteinhauer avatar osteinhauer commented on July 20, 2024

Any news here?

from camunda-bpm-spring-boot-starter.

jangalinski avatar jangalinski commented on July 20, 2024

I will try to setup a (manual) testcase this weekend. imho this should work out of the box, at least when using the SpringBootProcessApplication.

from camunda-bpm-spring-boot-starter.

jangalinski avatar jangalinski commented on July 20, 2024

Always fun when you read about what you promised to do "next weekend" half a year after ...

I'll put it on the milestone.

from camunda-bpm-spring-boot-starter.

jangalinski avatar jangalinski commented on July 20, 2024

It works, but adding an integration test is too much effort for now (docker, shared DB, ....) . just trust me :-)

It requires using the @EnableProcessEngine annotation, it will not work with the spring autoDeployment!

from camunda-bpm-spring-boot-starter.

d-christ avatar d-christ commented on July 20, 2024

I can confirm that it works wit @enableprocessengine.

from camunda-bpm-spring-boot-starter.

icyerasor avatar icyerasor commented on July 20, 2024

Are you talking about @EnableProcessApplication?
It will not work when isScanForProcessDefinitions is set to true. Is that what you refer to as "spring autoDeployment"?

from camunda-bpm-spring-boot-starter.

icyerasor avatar icyerasor commented on July 20, 2024

Thx for the super fast reply.
When using @EnableProcessApplication & isScanForProcessDefinitions=true; deployment aware job execution does not seem to work for me (using 2.2.0). When changing to isScanForProcessDefinitions=false and referencing the resources manually it works.

Is that to be expected? If it should work in both cases as long as EnableProcessApplication is used, I can open a Jira issue.

from camunda-bpm-spring-boot-starter.

jangalinski avatar jangalinski commented on July 20, 2024

if you disable the scan, it is not supposed to work, since then no deployments are linked to the processApplication.
Set to trueit should work, if it doesn't, yes, please go ahead and open an issue to verify. Please provide an example, so we can check the use case.

from camunda-bpm-spring-boot-starter.

icyerasor avatar icyerasor commented on July 20, 2024

I investigated a little bit further with a minimal reproducer example and the issue seems not to be about isScanForProcessDefinitions=true/false, but what process definitions get deployed within the deployment bundles. If an exact same copy of a (sub)process gets deployed by two different instances/nodes, all of the processes in both bundles will be executed on both nodes.

Don't know if thats how its supposed to be, but seems rather surprising to me.

Minimal example here, Camunda-Jira-Issue created here.

from camunda-bpm-spring-boot-starter.

bmaehr avatar bmaehr commented on July 20, 2024

I was search for many hours why deployment aware job executors didn't work like expected for me.

The solution was finally a small thing: You need to set the deployment name (e.g. SpringProcessEngineConfiguration.setDeploymentName) otherwise both spring boot applications try to execute the processes of the last deployment.

from camunda-bpm-spring-boot-starter.

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.