You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kie.apache.org by "dongsiji (via GitHub)" <gi...@apache.org> on 2025/09/18 10:13:07 UTC

[I] Error with invoking DMN with springboot programatically [incubator-kie-issues]

dongsiji opened a new issue, #2104:
URL: https://github.com/apache/incubator-kie-issues/issues/2104

   I am trying to invoke a DMN diagram programatically in springboot instead of quarkus with kogito 10.0.0. I saw that there were some examples of that in `dmn-incubation-api-quarkus` but I tried to import the relevant packages into springboot but couldn't inject the `AppRoot` and `DecisionService` in springboot because I guess these aren't being instantiated. Am I missing some imports or are there other ways to invoke a DMN diagram programmatically? I have imported 
    the following in my pom.xml:
   
   ```
       <dependency>
         <artifactId>kogito-api-incubation-application</artifactId>
         <groupId>org.kie.kogito</groupId>
       </dependency>
       <dependency>
         <artifactId>kogito-api-incubation-decisions</artifactId>
         <groupId>org.kie.kogito</groupId>
       </dependency>
       <dependency>
         <artifactId>kogito-api-incubation-decisions-services</artifactId>
         <groupId>org.kie.kogito</groupId>
       </dependency>
   ```
   
   error logs:
   
   ```
   ***************************
   APPLICATION FAILED TO START
   ***************************
   
   Description:
   
   Field appRoot in sg.gov.tech.prsWorkflowEngine.services.IntranetAnnotationService required a bean of type 'org.kie.kogito.incubation.application.AppRoot' that could not be found.
   
   
   Action:
   
   Consider defining a bean of type 'org.kie.kogito.incubation.application.AppRoot' in your configuration.
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@kie.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@kie.apache.org
For additional commands, e-mail: commits-help@kie.apache.org


Re: [I] Error with invoking DMN with springboot programatically [incubator-kie-issues]

Posted by "yesamer (via GitHub)" <gi...@apache.org>.
yesamer commented on issue #2104:
URL: https://github.com/apache/incubator-kie-issues/issues/2104#issuecomment-3307255929

   Hi @dongsiji , a couple of suggestions:
   - Please update to 10.1.0 
   - Please refer to this [example](https://github.com/apache/incubator-kie-kogito-examples/tree/main/kogito-springboot-examples/dmn-springboot-example) for your use case.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@kie.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@kie.apache.org
For additional commands, e-mail: commits-help@kie.apache.org


Re: [I] Error with invoking DMN with springboot programatically [incubator-kie-issues]

Posted by "dongsiji (via GitHub)" <gi...@apache.org>.
dongsiji commented on issue #2104:
URL: https://github.com/apache/incubator-kie-issues/issues/2104#issuecomment-3308684779

   hi @yesamer, I have upgraded it to 10.1.0 and the examples work for my use case, but I was wondering if there were any way to invoke the DMN execution like in the example in `dmn-incubation-api-quarkus` where I retrieve the DMN model via namespace and model name and evaluate it in code instead of making an API call. Thanks.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@kie.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@kie.apache.org
For additional commands, e-mail: commits-help@kie.apache.org


Re: [I] Error with invoking DMN with springboot programatically [incubator-kie-issues]

Posted by "yesamer (via GitHub)" <gi...@apache.org>.
yesamer commented on issue #2104:
URL: https://github.com/apache/incubator-kie-issues/issues/2104#issuecomment-4443327398

   @dongsiji Sorry for the late reply. Where I can find this `dmn-incubation-api-quarkus` example you're referencing?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@kie.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@kie.apache.org
For additional commands, e-mail: commits-help@kie.apache.org