Coder Social home page Coder Social logo

Comments (19)

meyerdan avatar meyerdan commented on July 20, 2024

Hi Jan,

what do I have to do to start it?

Daniel

from camunda-bpm-spring-boot-starter.

jangalinski avatar jangalinski commented on July 20, 2024

Just run the Application in examples webapp. https://github.com/camunda/camunda-bpm-spring-boot-starter/blob/master/examples/camunda-spring-boot-starter-example-webapp/src/main/java/org/camunda/bpm/spring/boot/starter/example/webapp/Application.java The webapp is then accesible under http://localhost:8080/ you will need to created an admin user and then manually start the process instance via tasklist. Thanks for looking into this.

from camunda-bpm-spring-boot-starter.

meyerdan avatar meyerdan commented on July 20, 2024

Hi Jan,

can I run https://github.com/camunda/camunda-bpm-spring-boot-starter/blob/master/examples/camunda-spring-boot-starter-example-webapp/src/main/java/org/camunda/bpm/spring/boot/starter/example/webapp/Application.java

from the cmd line or should I implort into Eclipse?

Sorry for asking such beginner questions...

from camunda-bpm-spring-boot-starter.

meyerdan avatar meyerdan commented on July 20, 2024

I am running it from eclipse 💃

from camunda-bpm-spring-boot-starter.

jangalinski avatar jangalinski commented on July 20, 2024

Ah, I assumed you had the project in your IDE. If not, just use maven https://docs.spring.io/spring-boot/docs/current/maven-plugin/run-mojo.html

(or old school: mvn clean package && java -jar )

.... in IDE: right click the class and say "run Java Application" ... its jjust a Java file with a main method.

from camunda-bpm-spring-boot-starter.

meyerdan avatar meyerdan commented on July 20, 2024

I have it running. When I press F12 in the tasklist I see a JS error in the console. Will investigate

from camunda-bpm-spring-boot-starter.

meyerdan avatar meyerdan commented on July 20, 2024

hi Jan,

What is the value of the Process Engine Configuration setting "authorizationEnabled"? Is it set to false?
Could you try with setting that to true? I do not know how to configure this myself and christian is busy :D

daniel

from camunda-bpm-spring-boot-starter.

osteinhauer avatar osteinhauer commented on July 20, 2024

Hi Daniel.

The authorization properties are „camunda default values“.

But I have created a #35 branch and added the possibility to configure authorization.

You can put a file named application.properties in the src/main/resources folder and play with the properties:

camunda.bpm.authorization.enabled=true/false
camunda.bpm.authorization.enabled-for-custom-code=true/false

Am 21.01.2016 um 13:52 schrieb Daniel Meyer [email protected]:

hi Jan,

What is the value of the Process Engine Configuration setting "authorizationEnabled"? Is it set to false?
Could you try with setting that to true? I do not know how to configure this myself and christian is busy :D

daniel


Reply to this email directly or view it on GitHub #35 (comment).

from camunda-bpm-spring-boot-starter.

osteinhauer avatar osteinhauer commented on July 20, 2024

By the way: If you install the springsource toolsuite plugin in eclipse you can use autocompletion in property files 😉

Am 21.01.2016 um 13:52 schrieb Daniel Meyer [email protected]:

hi Jan,

What is the value of the Process Engine Configuration setting "authorizationEnabled"? Is it set to false?
Could you try with setting that to true? I do not know how to configure this myself and christian is busy :D

daniel


Reply to this email directly or view it on GitHub.

from camunda-bpm-spring-boot-starter.

meyerdan avatar meyerdan commented on July 20, 2024

I found the problem. If you log into tasklist and inspect the requests that are performed (by opening DEV tools), then you see that an OPTIONS request on the filter resource comes back 200 OK but without any content. I placed a breakpoint in the method it shoud invoke in the backend and see that the method never gets called.

image

The underlying problem is that the javascript in the Webapp sets the wrong accept headers

Accept: application/hal+json, application/json; q=0.5

while it should be

Accept: application/json

Why is this not always a problem?
The spring boot starter uses a jersey version which we do not test in combination with the webapp.

To fix this in the correct way we would need to make sure the Tasklist JS code sets the correct accept header.

But we cannot change the 7.4.0 js code since it is already released.

Two options:

  1. release the spring boot extension and accept this as a known limitation and fix the bug for the next spring boot release. Which could be just 3 days later!!!
  2. try to fix the bug before the release

I strongly advise to go for option 1. Why? => there is an unlimited number of bugs anyway this is just one we know about by accident. While fixing it, we may discover 100 other bugs and if we want to fix them too, then we will never perform a release.

Daniel

from camunda-bpm-spring-boot-starter.

meyerdan avatar meyerdan commented on July 20, 2024

See: https://app.camunda.com/jira/browse/CAM-5299

from camunda-bpm-spring-boot-starter.

jangalinski avatar jangalinski commented on July 20, 2024

I tried this with 7.4.5-ee which should fix the issue, but have the same problem: create filter is not visible, no filter-> no tasks ... ideas?

from camunda-bpm-spring-boot-starter.

justinwyer avatar justinwyer commented on July 20, 2024

This is still a problem in 7.5.0-alpha3, the 7.4.0 webjar's are present.

from camunda-bpm-spring-boot-starter.

jangalinski avatar jangalinski commented on July 20, 2024

There is more to it:

  1. webjars are not part of the bom, so you have to manually import them and set the correct version - https://app.camunda.com/jira/browse/CAM-5704
  2. webjars are broken (not built) in alpha2 and alpha3 - https://app.camunda.com/jira/browse/CAM-5707

from camunda-bpm-spring-boot-starter.

hawky-4s- avatar hawky-4s- commented on July 20, 2024

@jangalinski: did you test the issue with the new webjar already?

from camunda-bpm-spring-boot-starter.

jangalinski avatar jangalinski commented on July 20, 2024

not with 7.5 alpha. with 7.4.5 it did not work

from camunda-bpm-spring-boot-starter.

ronalders avatar ronalders commented on July 20, 2024

This is fixed when you explicitly upgrade the webjars to 7.5.0 CE. I tested it and it workes fine now, i thank this issue can be closed now.

from camunda-bpm-spring-boot-starter.

jangalinski avatar jangalinski commented on July 20, 2024

Thanks for testing. Thats good news. I guess we should switch to 7.5 for 1.2 then. Objections?

from camunda-bpm-spring-boot-starter.

jangalinski avatar jangalinski commented on July 20, 2024

fixed via #94

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.