Skip to content

Commit

Permalink
[Fix apache#2165] Rearrange modules
Browse files Browse the repository at this point in the history
  • Loading branch information
fjtirado committed Dec 18, 2024
1 parent eb67b8e commit 7bd12ff
Show file tree
Hide file tree
Showing 10 changed files with 37 additions and 63 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@
public record ExecuteArgs(JsonNode input, String businessKey, String referenceId) {

public static ExecuteArgs of(JsonNode input) {
return new Builder().withInput(input).build();
return builder().withInput(input).build();
}

public static Builder builder(JsonNode modelInput) {
public static Builder builder() {
return new Builder();
}

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<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 https://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.kie.kogito</groupId>
<artifactId>data-index-mutations</artifactId>
<version>999-SNAPSHOT</version>
</parent>
<artifactId>data-index-shared-output-mutation</artifactId>
<dependencies>
<dependency>
<groupId>org.kie.kogito</groupId>
<artifactId>data-index-service-common</artifactId>
</dependency>
</dependencies>
<properties>
<java.module.name>org.kie.kogito.index.service.mutations</java.module.name>
</properties>
</project>
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public class OutputGraphQLMutationProvider implements GraphQLMutationsProvider {

@Override
public Map<String, DataFetcher<CompletableFuture<?>>> mutations(AbstractGraphQLSchemaManager schemaManager) {
return Map.of("sharedOutput", env -> sharedOutput(schemaManager, env));
return Map.of("executeAfter", env -> sharedOutput(schemaManager, env));
}

private CompletableFuture<String> sharedOutput(AbstractGraphQLSchemaManager schemaManager, DataFetchingEnvironment env) {
Expand Down
13 changes: 13 additions & 0 deletions data-index/data-index-mutations/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<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 https://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.kie.kogito</groupId>
<artifactId>data-index</artifactId>
<version>999-SNAPSHOT</version>
</parent>
<artifactId>data-index-mutations</artifactId>
<packaging>pom</packaging>
<modules>
<module>data-index-shared-output-mutation</module>
</modules>
</project>

This file was deleted.

This file was deleted.

1 change: 0 additions & 1 deletion data-index/data-index-service/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@
<module>data-index-service-postgresql</module>
<module>data-index-service-infinispan</module>
<module>data-index-service-mongodb</module>
<module>data-index-service-shared-output</module>
</modules>

<profiles>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -289,6 +289,6 @@ public CompletableFuture<String> executeProcessIntance(ProcessDefinition definit
org.kie.kogito.process.ProcessInstance<? extends Model> pi = process.createInstance(m);
pi.start();
return CompletableFuture.completedFuture(
String.format(SUCCESSFULLY_OPERATION_MESSAGE, "Started ProcessInstance with id: " + pi.id()));
String.format(SUCCESSFULLY_OPERATION_MESSAGE, "Started Process Instance with id: " + pi.id()));
}
}
1 change: 1 addition & 0 deletions data-index/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
<module>data-index-service</module>
<module>kogito-addons-quarkus-data-index-persistence</module>
<module>kogito-addons-quarkus-data-index</module>
<module>data-index-mutations</module>
</modules>

</project>
2 changes: 1 addition & 1 deletion kogito-apps-bom/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@
</dependency>
<dependency>
<groupId>org.kie.kogito</groupId>
<artifactId>data-index-service-shared-output</artifactId>
<artifactId>data-index-shared-output-mutation</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
Expand Down

0 comments on commit 7bd12ff

Please sign in to comment.