This is an automated email from the ASF dual-hosted git repository.

egonzalez pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-kie-kogito-apps.git


The following commit(s) were added to refs/heads/main by this push:
     new ddb765b7f [incubator-kie-issues-2087] Workflow Runtime: JobReschedule 
mutation failing in Spring Boot application (#2267)
ddb765b7f is described below

commit ddb765b7f12debc3e0c35d2cbcb6fdd26e532d3d
Author: Enrique <[email protected]>
AuthorDate: Mon Sep 8 09:44:29 2025 +0200

    [incubator-kie-issues-2087] Workflow Runtime: JobReschedule mutation 
failing in Spring Boot application (#2267)
---
 .../addon/DataIndexAddonBeansProducer.java         |   2 +-
 .../service/json/JobDescriptionDeserializer.java   |   2 +-
 .../kogito-addons-springboot-embedded-jobs/pom.xml | 193 +++++++++++----------
 .../SpringbootJobServiceConfiguration.java         |   1 +
 .../jobs/springboot/resource/JobResourceV1.java    |   2 +-
 5 files changed, 108 insertions(+), 92 deletions(-)

diff --git 
a/data-index/data-index-springboot/data-index-common-addons-springboot/src/main/java/org/kie/kogito/index/sprinboot/addon/DataIndexAddonBeansProducer.java
 
b/data-index/data-index-springboot/data-index-common-addons-springboot/src/main/java/org/kie/kogito/index/sprinboot/addon/DataIndexAddonBeansProducer.java
index 5cf5ad267..7b65480fc 100644
--- 
a/data-index/data-index-springboot/data-index-common-addons-springboot/src/main/java/org/kie/kogito/index/sprinboot/addon/DataIndexAddonBeansProducer.java
+++ 
b/data-index/data-index-springboot/data-index-common-addons-springboot/src/main/java/org/kie/kogito/index/sprinboot/addon/DataIndexAddonBeansProducer.java
@@ -42,7 +42,7 @@ import io.vertx.core.Vertx;
 public class DataIndexAddonBeansProducer {
 
     @Bean
-    public KogitoRuntimeClient 
createKogitoRuntimeClient(@Value("${kogito.dataindex.gateway.url:null}") 
Optional<String> gatewayUrl,
+    public KogitoRuntimeClient 
createKogitoRuntimeClient(@Value("${kogito.dataindex.gateway.url:#{null}}") 
Optional<String> gatewayUrl,
             DataIndexAuthTokenReader authTokenReader,
             List<ProcessSvgService> processSvgService,
             List<SourceFilesProvider> sourceFilesProvider,
diff --git 
a/jobs-service/jobs-service-internal-api/src/main/java/org/kie/kogito/jobs/service/json/JobDescriptionDeserializer.java
 
b/jobs-service/jobs-service-internal-api/src/main/java/org/kie/kogito/jobs/service/json/JobDescriptionDeserializer.java
index 16a1acb49..c52ac8687 100644
--- 
a/jobs-service/jobs-service-internal-api/src/main/java/org/kie/kogito/jobs/service/json/JobDescriptionDeserializer.java
+++ 
b/jobs-service/jobs-service-internal-api/src/main/java/org/kie/kogito/jobs/service/json/JobDescriptionDeserializer.java
@@ -42,7 +42,7 @@ public class JobDescriptionDeserializer extends 
StdDeserializer<JobDescription>
     private static final long serialVersionUID = -8307549297456060422L;
 
     public JobDescriptionDeserializer() {
-        super(ProcessInstanceJobDescription.class);
+        super(JobDescription.class);
     }
 
     @Override
diff --git a/jobs/kogito-addons-springboot-embedded-jobs/pom.xml 
b/jobs/kogito-addons-springboot-embedded-jobs/pom.xml
index 66665e4f5..bcfb4eb59 100644
--- a/jobs/kogito-addons-springboot-embedded-jobs/pom.xml
+++ b/jobs/kogito-addons-springboot-embedded-jobs/pom.xml
@@ -20,101 +20,116 @@
 
 -->
 <project xmlns="http://maven.apache.org/POM/4.0.0";
-       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
-       xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 
http://maven.apache.org/xsd/maven-4.0.0.xsd";>
-       <modelVersion>4.0.0</modelVersion>
-       <parent>
-               <artifactId>jobs</artifactId>
-               <groupId>org.kie</groupId>
-               <version>999-SNAPSHOT</version>
-       </parent>
+    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
+    xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 
http://maven.apache.org/xsd/maven-4.0.0.xsd";>
+    <modelVersion>4.0.0</modelVersion>
+    <parent>
+        <artifactId>jobs</artifactId>
+        <groupId>org.kie</groupId>
+        <version>999-SNAPSHOT</version>
+    </parent>
 
 
-       <artifactId>kogito-addons-springboot-embedded-jobs</artifactId>
-       <name>Kogito Apps :: Jobs :: SpringBoot</name>
+    <artifactId>kogito-addons-springboot-embedded-jobs</artifactId>
+    <name>Kogito Apps :: Jobs :: SpringBoot</name>
 
-       <properties>
-               
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
-               
<java.module.name>org.kie.kogito.app.jobs.springboot</java.module.name>
-       </properties>
+    <properties>
+        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
+        <java.module.name>org.kie.kogito.app.jobs.springboot</java.module.name>
+    </properties>
 
 
-       <dependencies>
-               <dependency>
-                       <groupId>org.kie.kogito</groupId>
-                       <artifactId>kogito-api</artifactId>
-               </dependency>
-               <dependency>
-                       <groupId>org.kie.kogito</groupId>
-                       <artifactId>jobs-service-api</artifactId>
-               </dependency>
-               <dependency>
-                       <groupId>org.slf4j</groupId>
-                       <artifactId>slf4j-api</artifactId>
-               </dependency>
-               <dependency>
-                       <groupId>org.kie</groupId>
-                       <artifactId>jobs-common-embedded</artifactId>
-               </dependency>
+    <dependencies>
+        <dependency>
+            <groupId>org.kie.kogito</groupId>
+            <artifactId>kogito-api</artifactId>
+        </dependency>
+        <dependency>
+            <groupId>org.kie.kogito</groupId>
+            <artifactId>jobs-service-api</artifactId>
+        </dependency>
+        <dependency>
+            <groupId>org.slf4j</groupId>
+            <artifactId>slf4j-api</artifactId>
+        </dependency>
+        <dependency>
+            <groupId>org.kie</groupId>
+            <artifactId>jobs-common-embedded</artifactId>
+        </dependency>
 
-               <dependency>
-                       <groupId>org.kie.kogito</groupId>
-                       <artifactId>kogito-events-core</artifactId>
-               </dependency>
+        <dependency>
+            <groupId>org.kie.kogito</groupId>
+            <artifactId>kogito-events-core</artifactId>
+        </dependency>
 
-               <!--runtime -->
+        <!--runtime -->
+        <dependency>
+            <groupId>com.fasterxml.jackson.datatype</groupId>
+            <artifactId>jackson-datatype-jsr310</artifactId>
+        </dependency>
+        <!--runtime -->
+        <dependency>
+            <groupId>org.springframework.boot</groupId>
+            <artifactId>spring-boot-actuator</artifactId>
+        </dependency>
+        <dependency>
+            <groupId>org.springframework.boot</groupId>
+            <artifactId>spring-boot-starter</artifactId>
+        </dependency>
+        <dependency>
+            <groupId>org.springframework.boot</groupId>
+            <artifactId>spring-boot-starter-web</artifactId>
+        </dependency>
+        <dependency>
+            <groupId>org.springframework</groupId>
+            <artifactId>spring-tx</artifactId>
+        </dependency>
+        <!--testing -->
+        <dependency>
+            <groupId>org.springframework.boot</groupId>
+            <artifactId>spring-boot-starter-test</artifactId>
+            <scope>test</scope>
+        </dependency>
+        <dependency>
+            <groupId>io.rest-assured</groupId>
+            <artifactId>rest-assured</artifactId>
+            <scope>test</scope>
+        </dependency>
+        <dependency>
+            <groupId>org.awaitility</groupId>
+            <artifactId>awaitility</artifactId>
+        </dependency>
+    </dependencies>
 
-               <dependency>
-                       <groupId>org.springframework.boot</groupId>
-                       <artifactId>spring-boot-starter</artifactId>
-                       <version>${version.org.springframework.boot}</version>
-               </dependency>
-               <dependency>
-                       <groupId>org.springframework.boot</groupId>
-                       <artifactId>spring-boot-starter-web</artifactId>
-                       <version>${version.org.springframework.boot}</version>
-               </dependency>
-               <dependency>
-                       <groupId>org.springframework</groupId>
-                       <artifactId>spring-tx</artifactId>
-                       <version>6.2.8</version>
-               </dependency>
-               <!--testing -->
-               <dependency>
-                       <groupId>org.springframework.boot</groupId>
-                       <artifactId>spring-boot-starter-test</artifactId>
-                       <version>${version.org.springframework.boot}</version>
-                       <scope>test</scope>
-               </dependency>
-               <dependency>
-                       <groupId>io.rest-assured</groupId>
-                       <artifactId>rest-assured</artifactId>
-                       <scope>test</scope>
-               </dependency>
-               <dependency>
-                       <groupId>org.awaitility</groupId>
-                       <artifactId>awaitility</artifactId>
-               </dependency>
-       </dependencies>
-
-       <profiles>
-               <profile>
-                       <id>jpa</id>
-                       <activation>
-                               <activeByDefault>true</activeByDefault>
-                       </activation>
-                       <dependencies>
-                               <dependency>
-                                       <groupId>org.kie</groupId>
-                                       
<artifactId>kogito-addons-springboot-embedded-jobs-jpa</artifactId>
-                                       <scope>test</scope>
-                               </dependency>
-                               <dependency>
-                                       <groupId>org.kie</groupId>
-                                       
<artifactId>kie-addons-springboot-flyway</artifactId>
-                                       <scope>test</scope>
-                               </dependency>
-                       </dependencies>
-               </profile>
-       </profiles>
+    <dependencyManagement>
+        <dependencies>
+            <dependency>
+                <groupId>org.kie.kogito</groupId>
+                <artifactId>kogito-spring-boot-bom</artifactId>
+                <version>${project.version}</version>
+                <type>pom</type>
+                <scope>import</scope>
+            </dependency>
+        </dependencies>
+    </dependencyManagement>
+    <profiles>
+        <profile>
+            <id>jpa</id>
+            <activation>
+                <activeByDefault>true</activeByDefault>
+            </activation>
+            <dependencies>
+                <dependency>
+                    <groupId>org.kie</groupId>
+                    
<artifactId>kogito-addons-springboot-embedded-jobs-jpa</artifactId>
+                    <scope>test</scope>
+                </dependency>
+                <dependency>
+                    <groupId>org.kie</groupId>
+                    <artifactId>kie-addons-springboot-flyway</artifactId>
+                    <scope>test</scope>
+                </dependency>
+            </dependencies>
+        </profile>
+    </profiles>
 </project>
diff --git 
a/jobs/kogito-addons-springboot-embedded-jobs/src/main/java/org/kie/kogito/app/jobs/springboot/SpringbootJobServiceConfiguration.java
 
b/jobs/kogito-addons-springboot-embedded-jobs/src/main/java/org/kie/kogito/app/jobs/springboot/SpringbootJobServiceConfiguration.java
index 3f66ce946..871e19161 100644
--- 
a/jobs/kogito-addons-springboot-embedded-jobs/src/main/java/org/kie/kogito/app/jobs/springboot/SpringbootJobServiceConfiguration.java
+++ 
b/jobs/kogito-addons-springboot-embedded-jobs/src/main/java/org/kie/kogito/app/jobs/springboot/SpringbootJobServiceConfiguration.java
@@ -88,4 +88,5 @@ public class SpringbootJobServiceConfiguration {
     public JobExecutor produceUserTaskInstanceJobExecutor() {
         return new UserTaskInstanceJobExecutor(userTasks, unitOfWorkManager);
     }
+
 }
diff --git 
a/jobs/kogito-addons-springboot-embedded-jobs/src/main/java/org/kie/kogito/app/jobs/springboot/resource/JobResourceV1.java
 
b/jobs/kogito-addons-springboot-embedded-jobs/src/main/java/org/kie/kogito/app/jobs/springboot/resource/JobResourceV1.java
index 03d080380..c53e74655 100644
--- 
a/jobs/kogito-addons-springboot-embedded-jobs/src/main/java/org/kie/kogito/app/jobs/springboot/resource/JobResourceV1.java
+++ 
b/jobs/kogito-addons-springboot-embedded-jobs/src/main/java/org/kie/kogito/app/jobs/springboot/resource/JobResourceV1.java
@@ -19,7 +19,6 @@
 package org.kie.kogito.app.jobs.springboot.resource;
 
 import org.eclipse.microprofile.openapi.annotations.Operation;
-import org.eclipse.microprofile.openapi.annotations.parameters.RequestBody;
 import org.eclipse.microprofile.openapi.annotations.tags.Tag;
 import org.kie.kogito.app.jobs.impl.InVMPayloadData;
 import org.kie.kogito.app.jobs.integrations.JobDescriptionHelper;
@@ -41,6 +40,7 @@ import org.springframework.web.bind.annotation.GetMapping;
 import org.springframework.web.bind.annotation.PatchMapping;
 import org.springframework.web.bind.annotation.PathVariable;
 import org.springframework.web.bind.annotation.PostMapping;
+import org.springframework.web.bind.annotation.RequestBody;
 import org.springframework.web.bind.annotation.RequestMapping;
 import org.springframework.web.bind.annotation.RestController;
 


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to