diff --git a/.github/ISSUE_TEMPLATE/bug-report.md b/.github/ISSUE_TEMPLATE/bug-report.md index 130ab04a1..26b80faf0 100644 --- a/.github/ISSUE_TEMPLATE/bug-report.md +++ b/.github/ISSUE_TEMPLATE/bug-report.md @@ -1,6 +1,6 @@ --- name: Bug Report -about: Report a bug encountered with the Serverless Workflow Java SDK +about: Report a bug encountered with the Open Workflow Java SDK labels: kind/bug --- diff --git a/.github/ISSUE_TEMPLATE/enhancement.md b/.github/ISSUE_TEMPLATE/enhancement.md index 56f6b033a..947ecb971 100644 --- a/.github/ISSUE_TEMPLATE/enhancement.md +++ b/.github/ISSUE_TEMPLATE/enhancement.md @@ -1,6 +1,6 @@ --- name: Enhancement Request -about: Suggest an enhancement to the Serverless Workflow Java SDK +about: Suggest an enhancement to the Open Workflow Java SDK labels: kind/feature --- diff --git a/.github/ISSUE_TEMPLATE/question.md b/.github/ISSUE_TEMPLATE/question.md index ec76e9001..34d2e0a18 100644 --- a/.github/ISSUE_TEMPLATE/question.md +++ b/.github/ISSUE_TEMPLATE/question.md @@ -1,6 +1,6 @@ --- name: Question -about: Ask a question about the Serverless Workflow Java SDK +about: Ask a question about the Open Workflow Java SDK labels: kind/question --- diff --git a/README.md b/README.md index 563195792..9f2300bdd 100644 --- a/README.md +++ b/README.md @@ -54,8 +54,8 @@ Add the following dependencies to your pom.xml `dependencies` section: ```xml - io.serverlessworkflow - serverlessworkflow-api + org.openworkflow.sdk + openworkflow-api RELEASE_VERSION ``` @@ -65,7 +65,7 @@ Add the following dependencies to your pom.xml `dependencies` section: Add the following dependencies to your build.gradle `dependencies` section: ```text -implementation("io.serverlessworkflow:serverlessworkflow-api:RELEASE_VERSION") +implementation("org.openworkflow.sdk:openworkflow-api:RELEASE_VERSION") ``` ## How to Use @@ -77,7 +77,7 @@ There are, roughly speaking, two kind of users of this SDK: ### Implementing your own runtime For those ones interested on implementing their own runtime, this SDK provides an easy way to load an in memory representation of a given workflow definition. -This in-memory representation consists of a hierarchy of POJOS directly generated from the Open Workflow specification [schema](api/src/main/resources/schema/workflow.yaml), which ensures the internal representation is aligned with the specification schema. The root of the hierarchy is `io.serverlessworkflow.api.types.Workflow` class +This in-memory representation consists of a hierarchy of POJOS directly generated from the Open Workflow specification [schema](api/src/main/resources/schema/workflow.yaml), which ensures the internal representation is aligned with the specification schema. The root of the hierarchy is `org.openworkflow.sdk.api.types.Workflow` class ### Reading workflow definition from JSON/YAML source @@ -121,7 +121,7 @@ try (InputStream in = new FileInputStream("simple.yaml")) { } ``` -For additional reading helper methods, including the one to read a workflow definition from classpath, check [WorkflowReader](api/src/main/java/io/serverlessworkflow/api/WorkflowReader.java) class. +For additional reading helper methods, including the one to read a workflow definition from classpath, check [WorkflowReader](api/src/main/java/org/openworkflow/sdk/api/WorkflowReader.java) class. ### Writing workflow definition to a JSON/YAML target @@ -134,7 +134,7 @@ try (OutputStream out = new FileOutputStream("simple.json")) { } ``` -For additional writing helper methods, check [WorkflowWriter](api/src/main/java/io/serverlessworkflow/api/WorkflowWriter.java) class. +For additional writing helper methods, check [WorkflowWriter](api/src/main/java/org/openworkflow/sdk/api/WorkflowWriter.java) class. ### Reference implementation diff --git a/annotations/pom.xml b/annotations/pom.xml index 6e583ab9e..abcac2081 100644 --- a/annotations/pom.xml +++ b/annotations/pom.xml @@ -1,10 +1,10 @@ 4.0.0 - io.serverlessworkflow - serverlessworkflow-parent + org.openworkflow.sdk + openworkflow-parent 8.0.0-SNAPSHOT - Serverless Workflow :: Annotations - serverlessworkflow-annotations + Open Workflow :: Annotations + openworkflow-annotations \ No newline at end of file diff --git a/annotations/src/main/java/io/serverlessworkflow/annotations/AdditionalProperties.java b/annotations/src/main/java/org/openworkflow/sdk/annotations/AdditionalProperties.java similarity index 87% rename from annotations/src/main/java/io/serverlessworkflow/annotations/AdditionalProperties.java rename to annotations/src/main/java/org/openworkflow/sdk/annotations/AdditionalProperties.java index 69a3b023e..4a185161b 100644 --- a/annotations/src/main/java/io/serverlessworkflow/annotations/AdditionalProperties.java +++ b/annotations/src/main/java/org/openworkflow/sdk/annotations/AdditionalProperties.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.annotations; +package org.openworkflow.sdk.annotations; import static java.lang.annotation.ElementType.TYPE; import static java.lang.annotation.RetentionPolicy.RUNTIME; diff --git a/annotations/src/main/java/io/serverlessworkflow/annotations/ExclusiveUnion.java b/annotations/src/main/java/org/openworkflow/sdk/annotations/ExclusiveUnion.java similarity index 88% rename from annotations/src/main/java/io/serverlessworkflow/annotations/ExclusiveUnion.java rename to annotations/src/main/java/org/openworkflow/sdk/annotations/ExclusiveUnion.java index 4e83437b2..d404647bb 100644 --- a/annotations/src/main/java/io/serverlessworkflow/annotations/ExclusiveUnion.java +++ b/annotations/src/main/java/org/openworkflow/sdk/annotations/ExclusiveUnion.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.annotations; +package org.openworkflow.sdk.annotations; import static java.lang.annotation.RetentionPolicy.RUNTIME; diff --git a/annotations/src/main/java/io/serverlessworkflow/annotations/InclusiveUnion.java b/annotations/src/main/java/org/openworkflow/sdk/annotations/InclusiveUnion.java similarity index 88% rename from annotations/src/main/java/io/serverlessworkflow/annotations/InclusiveUnion.java rename to annotations/src/main/java/org/openworkflow/sdk/annotations/InclusiveUnion.java index 9df8732a2..9bbb4793a 100644 --- a/annotations/src/main/java/io/serverlessworkflow/annotations/InclusiveUnion.java +++ b/annotations/src/main/java/org/openworkflow/sdk/annotations/InclusiveUnion.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.annotations; +package org.openworkflow.sdk.annotations; import static java.lang.annotation.RetentionPolicy.RUNTIME; diff --git a/annotations/src/main/java/io/serverlessworkflow/annotations/Item.java b/annotations/src/main/java/org/openworkflow/sdk/annotations/Item.java similarity index 87% rename from annotations/src/main/java/io/serverlessworkflow/annotations/Item.java rename to annotations/src/main/java/org/openworkflow/sdk/annotations/Item.java index f42a86d57..fd15f610f 100644 --- a/annotations/src/main/java/io/serverlessworkflow/annotations/Item.java +++ b/annotations/src/main/java/org/openworkflow/sdk/annotations/Item.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.annotations; +package org.openworkflow.sdk.annotations; import static java.lang.annotation.ElementType.TYPE; import static java.lang.annotation.RetentionPolicy.RUNTIME; diff --git a/annotations/src/main/java/io/serverlessworkflow/annotations/ItemKey.java b/annotations/src/main/java/org/openworkflow/sdk/annotations/ItemKey.java similarity index 87% rename from annotations/src/main/java/io/serverlessworkflow/annotations/ItemKey.java rename to annotations/src/main/java/org/openworkflow/sdk/annotations/ItemKey.java index ea75094db..5348cda86 100644 --- a/annotations/src/main/java/io/serverlessworkflow/annotations/ItemKey.java +++ b/annotations/src/main/java/org/openworkflow/sdk/annotations/ItemKey.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.annotations; +package org.openworkflow.sdk.annotations; import static java.lang.annotation.ElementType.METHOD; import static java.lang.annotation.RetentionPolicy.RUNTIME; diff --git a/annotations/src/main/java/io/serverlessworkflow/annotations/ItemValue.java b/annotations/src/main/java/org/openworkflow/sdk/annotations/ItemValue.java similarity index 87% rename from annotations/src/main/java/io/serverlessworkflow/annotations/ItemValue.java rename to annotations/src/main/java/org/openworkflow/sdk/annotations/ItemValue.java index 2aaf09e6d..e10be20e4 100644 --- a/annotations/src/main/java/io/serverlessworkflow/annotations/ItemValue.java +++ b/annotations/src/main/java/org/openworkflow/sdk/annotations/ItemValue.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.annotations; +package org.openworkflow.sdk.annotations; import static java.lang.annotation.ElementType.METHOD; import static java.lang.annotation.RetentionPolicy.RUNTIME; diff --git a/annotations/src/main/java/io/serverlessworkflow/annotations/OneOfSetter.java b/annotations/src/main/java/org/openworkflow/sdk/annotations/OneOfSetter.java similarity index 88% rename from annotations/src/main/java/io/serverlessworkflow/annotations/OneOfSetter.java rename to annotations/src/main/java/org/openworkflow/sdk/annotations/OneOfSetter.java index d67f0292e..f0bb21bba 100644 --- a/annotations/src/main/java/io/serverlessworkflow/annotations/OneOfSetter.java +++ b/annotations/src/main/java/org/openworkflow/sdk/annotations/OneOfSetter.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.annotations; +package org.openworkflow.sdk.annotations; import static java.lang.annotation.ElementType.METHOD; import static java.lang.annotation.RetentionPolicy.RUNTIME; diff --git a/annotations/src/main/java/io/serverlessworkflow/annotations/OneOfValueProvider.java b/annotations/src/main/java/org/openworkflow/sdk/annotations/OneOfValueProvider.java similarity index 84% rename from annotations/src/main/java/io/serverlessworkflow/annotations/OneOfValueProvider.java rename to annotations/src/main/java/org/openworkflow/sdk/annotations/OneOfValueProvider.java index d275ff9df..98dd80209 100644 --- a/annotations/src/main/java/io/serverlessworkflow/annotations/OneOfValueProvider.java +++ b/annotations/src/main/java/org/openworkflow/sdk/annotations/OneOfValueProvider.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.annotations; +package org.openworkflow.sdk.annotations; public interface OneOfValueProvider { T get(); diff --git a/api/pom.xml b/api/pom.xml index 818c35325..e13af0d08 100644 --- a/api/pom.xml +++ b/api/pom.xml @@ -2,27 +2,27 @@ 4.0.0 - io.serverlessworkflow - serverlessworkflow-parent + org.openworkflow.sdk + openworkflow-parent 8.0.0-SNAPSHOT - serverlessworkflow-api - Serverless Workflow :: API + openworkflow-api + Open Workflow :: API jar - Java SDK for Serverless Workflow Specification + Java SDK for Open Workflow Specification 3.6.2 - io.serverlessworkflow - serverlessworkflow-types + org.openworkflow.sdk + openworkflow-types - io.serverlessworkflow - serverlessworkflow-serialization + org.openworkflow.sdk + openworkflow-serialization org.slf4j @@ -81,13 +81,13 @@ - io.serverlessworkflow - serverless-workflow-jackson-generator + org.openworkflow.sdk + openworkflow-jackson-generator ${project.version} - io.serverlessworkflow.api.types - io.serverlessworkflow.api.types.jackson + org.openworkflow.sdk.api.types + org.openworkflow.sdk.api.types.jackson diff --git a/api/src/main/java/io/serverlessworkflow/api/DirectReader.java b/api/src/main/java/org/openworkflow/sdk/api/DirectReader.java similarity index 89% rename from api/src/main/java/io/serverlessworkflow/api/DirectReader.java rename to api/src/main/java/org/openworkflow/sdk/api/DirectReader.java index 83fe05508..54769009d 100644 --- a/api/src/main/java/io/serverlessworkflow/api/DirectReader.java +++ b/api/src/main/java/org/openworkflow/sdk/api/DirectReader.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,12 +13,12 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.api; +package org.openworkflow.sdk.api; -import io.serverlessworkflow.api.types.Workflow; import java.io.IOException; import java.io.InputStream; import java.io.Reader; +import org.openworkflow.sdk.api.types.Workflow; class DirectReader implements WorkflowReaderOperations { diff --git a/api/src/main/java/io/serverlessworkflow/api/ObjectMapperFactory.java b/api/src/main/java/org/openworkflow/sdk/api/ObjectMapperFactory.java similarity index 86% rename from api/src/main/java/io/serverlessworkflow/api/ObjectMapperFactory.java rename to api/src/main/java/org/openworkflow/sdk/api/ObjectMapperFactory.java index 5e820f819..d99803e66 100644 --- a/api/src/main/java/io/serverlessworkflow/api/ObjectMapperFactory.java +++ b/api/src/main/java/org/openworkflow/sdk/api/ObjectMapperFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.api; +package org.openworkflow.sdk.api; import com.fasterxml.jackson.annotation.JsonInclude.Include; import com.fasterxml.jackson.databind.ObjectMapper; @@ -21,11 +21,11 @@ import com.fasterxml.jackson.databind.module.SimpleModule; import com.fasterxml.jackson.dataformat.yaml.YAMLFactory; import com.fasterxml.jackson.dataformat.yaml.YAMLGenerator.Feature; -import io.serverlessworkflow.api.types.jackson.JacksonMixInModule; -import io.serverlessworkflow.serialization.BeanDeserializerModifierWithValidation; -import io.serverlessworkflow.serialization.URIDeserializer; -import io.serverlessworkflow.serialization.URISerializer; import java.net.URI; +import org.openworkflow.sdk.api.types.jackson.JacksonMixInModule; +import org.openworkflow.sdk.serialization.BeanDeserializerModifierWithValidation; +import org.openworkflow.sdk.serialization.URIDeserializer; +import org.openworkflow.sdk.serialization.URISerializer; class ObjectMapperFactory { diff --git a/api/src/main/java/io/serverlessworkflow/api/ValidationReader.java b/api/src/main/java/org/openworkflow/sdk/api/ValidationReader.java similarity index 94% rename from api/src/main/java/io/serverlessworkflow/api/ValidationReader.java rename to api/src/main/java/org/openworkflow/sdk/api/ValidationReader.java index db9f0179b..97950caec 100644 --- a/api/src/main/java/io/serverlessworkflow/api/ValidationReader.java +++ b/api/src/main/java/org/openworkflow/sdk/api/ValidationReader.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.api; +package org.openworkflow.sdk.api; import com.fasterxml.jackson.core.exc.StreamReadException; import com.fasterxml.jackson.databind.DatabindException; @@ -23,13 +23,13 @@ import com.networknt.schema.Schema; import com.networknt.schema.SchemaRegistry; import com.networknt.schema.SpecificationVersion; -import io.serverlessworkflow.api.types.Workflow; import java.io.IOException; import java.io.InputStream; import java.io.Reader; import java.io.UncheckedIOException; import java.util.Collection; import java.util.stream.Collectors; +import org.openworkflow.sdk.api.types.Workflow; class ValidationReader implements WorkflowReaderOperations { private final Schema schemaObject; diff --git a/api/src/main/java/io/serverlessworkflow/api/WorkflowFormat.java b/api/src/main/java/org/openworkflow/sdk/api/WorkflowFormat.java similarity index 92% rename from api/src/main/java/io/serverlessworkflow/api/WorkflowFormat.java rename to api/src/main/java/org/openworkflow/sdk/api/WorkflowFormat.java index 7ca2cc274..ba79286e4 100644 --- a/api/src/main/java/io/serverlessworkflow/api/WorkflowFormat.java +++ b/api/src/main/java/org/openworkflow/sdk/api/WorkflowFormat.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,13 +13,13 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.api; +package org.openworkflow.sdk.api; import com.fasterxml.jackson.databind.ObjectMapper; import java.nio.file.Path; /** - * Enum representing the supported formats for Serverless Workflow definitions. + * Enum representing the supported formats for Open Workflow definitions. * *

Provides utility methods to determine the format based on file name or path, and to access the * corresponding {@link ObjectMapper} for serialization and deserialization. diff --git a/api/src/main/java/io/serverlessworkflow/api/WorkflowReader.java b/api/src/main/java/org/openworkflow/sdk/api/WorkflowReader.java similarity index 96% rename from api/src/main/java/io/serverlessworkflow/api/WorkflowReader.java rename to api/src/main/java/org/openworkflow/sdk/api/WorkflowReader.java index 1bdb21839..49ca9143f 100644 --- a/api/src/main/java/io/serverlessworkflow/api/WorkflowReader.java +++ b/api/src/main/java/org/openworkflow/sdk/api/WorkflowReader.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,17 +13,17 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.api; +package org.openworkflow.sdk.api; -import io.serverlessworkflow.api.types.Workflow; import java.io.FileNotFoundException; import java.io.IOException; import java.io.InputStream; import java.io.Reader; import java.nio.file.Files; import java.nio.file.Path; +import org.openworkflow.sdk.api.types.Workflow; -/** Utility class for reading and parsing Serverless Workflow definitions from various sources. */ +/** Utility class for reading and parsing Open Workflow definitions from various sources. */ public class WorkflowReader { /** diff --git a/api/src/main/java/io/serverlessworkflow/api/WorkflowReaderOperations.java b/api/src/main/java/org/openworkflow/sdk/api/WorkflowReaderOperations.java similarity index 86% rename from api/src/main/java/io/serverlessworkflow/api/WorkflowReaderOperations.java rename to api/src/main/java/org/openworkflow/sdk/api/WorkflowReaderOperations.java index 7049aba0b..d0c2bfcc1 100644 --- a/api/src/main/java/io/serverlessworkflow/api/WorkflowReaderOperations.java +++ b/api/src/main/java/org/openworkflow/sdk/api/WorkflowReaderOperations.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,12 +13,12 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.api; +package org.openworkflow.sdk.api; -import io.serverlessworkflow.api.types.Workflow; import java.io.IOException; import java.io.InputStream; import java.io.Reader; +import org.openworkflow.sdk.api.types.Workflow; public interface WorkflowReaderOperations { Workflow read(InputStream input, WorkflowFormat format) throws IOException; diff --git a/api/src/main/java/io/serverlessworkflow/api/WorkflowWriter.java b/api/src/main/java/org/openworkflow/sdk/api/WorkflowWriter.java similarity index 94% rename from api/src/main/java/io/serverlessworkflow/api/WorkflowWriter.java rename to api/src/main/java/org/openworkflow/sdk/api/WorkflowWriter.java index 3285cff43..b808dfb8b 100644 --- a/api/src/main/java/io/serverlessworkflow/api/WorkflowWriter.java +++ b/api/src/main/java/org/openworkflow/sdk/api/WorkflowWriter.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,18 +13,18 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.api; +package org.openworkflow.sdk.api; -import io.serverlessworkflow.api.types.Workflow; import java.io.ByteArrayOutputStream; import java.io.IOException; import java.io.OutputStream; import java.io.Writer; import java.nio.file.Files; import java.nio.file.Path; +import org.openworkflow.sdk.api.types.Workflow; /** - * Utility class for writing Serverless Workflow definitions to various outputs and formats. + * Utility class for writing Open Workflow definitions to various outputs and formats. * *

This class provides static methods to serialize {@link Workflow} objects to files, streams, * writers, byte arrays, or strings in either JSON or YAML format. The format is determined by the diff --git a/api/src/main/java/io/serverlessworkflow/serialization/BeanDeserializerModifierWithValidation.java b/api/src/main/java/org/openworkflow/sdk/serialization/BeanDeserializerModifierWithValidation.java similarity index 91% rename from api/src/main/java/io/serverlessworkflow/serialization/BeanDeserializerModifierWithValidation.java rename to api/src/main/java/org/openworkflow/sdk/serialization/BeanDeserializerModifierWithValidation.java index e4e019aca..7353521ca 100644 --- a/api/src/main/java/io/serverlessworkflow/serialization/BeanDeserializerModifierWithValidation.java +++ b/api/src/main/java/org/openworkflow/sdk/serialization/BeanDeserializerModifierWithValidation.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.serialization; +package org.openworkflow.sdk.serialization; import com.fasterxml.jackson.databind.BeanDescription; import com.fasterxml.jackson.databind.DeserializationConfig; diff --git a/api/src/main/java/io/serverlessworkflow/serialization/BeanDeserializerWithValidation.java b/api/src/main/java/org/openworkflow/sdk/serialization/BeanDeserializerWithValidation.java similarity index 93% rename from api/src/main/java/io/serverlessworkflow/serialization/BeanDeserializerWithValidation.java rename to api/src/main/java/org/openworkflow/sdk/serialization/BeanDeserializerWithValidation.java index a77e117dc..b8c1728c6 100644 --- a/api/src/main/java/io/serverlessworkflow/serialization/BeanDeserializerWithValidation.java +++ b/api/src/main/java/org/openworkflow/sdk/serialization/BeanDeserializerWithValidation.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.serialization; +package org.openworkflow.sdk.serialization; import com.fasterxml.jackson.core.JsonParser; import com.fasterxml.jackson.databind.DeserializationContext; diff --git a/api/src/main/java/io/serverlessworkflow/serialization/URIDeserializer.java b/api/src/main/java/org/openworkflow/sdk/serialization/URIDeserializer.java similarity index 91% rename from api/src/main/java/io/serverlessworkflow/serialization/URIDeserializer.java rename to api/src/main/java/org/openworkflow/sdk/serialization/URIDeserializer.java index a3269ab65..702afff53 100644 --- a/api/src/main/java/io/serverlessworkflow/serialization/URIDeserializer.java +++ b/api/src/main/java/org/openworkflow/sdk/serialization/URIDeserializer.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.serialization; +package org.openworkflow.sdk.serialization; import com.fasterxml.jackson.core.JsonParser; import com.fasterxml.jackson.databind.DeserializationContext; diff --git a/api/src/main/java/io/serverlessworkflow/serialization/URISerializer.java b/api/src/main/java/org/openworkflow/sdk/serialization/URISerializer.java similarity index 89% rename from api/src/main/java/io/serverlessworkflow/serialization/URISerializer.java rename to api/src/main/java/org/openworkflow/sdk/serialization/URISerializer.java index a36561d29..f4b8360a9 100644 --- a/api/src/main/java/io/serverlessworkflow/serialization/URISerializer.java +++ b/api/src/main/java/org/openworkflow/sdk/serialization/URISerializer.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.serialization; +package org.openworkflow.sdk.serialization; import com.fasterxml.jackson.core.JsonGenerator; import com.fasterxml.jackson.databind.JsonSerializer; diff --git a/api/src/test/java/io/serverlessworkflow/api/ApiTest.java b/api/src/test/java/org/openworkflow/sdk/api/ApiTest.java similarity index 85% rename from api/src/test/java/io/serverlessworkflow/api/ApiTest.java rename to api/src/test/java/org/openworkflow/sdk/api/ApiTest.java index 7c05099a9..eb925658f 100644 --- a/api/src/test/java/io/serverlessworkflow/api/ApiTest.java +++ b/api/src/test/java/org/openworkflow/sdk/api/ApiTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,25 +13,25 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.api; +package org.openworkflow.sdk.api; -import static io.serverlessworkflow.api.WorkflowReader.readWorkflowFromClasspath; import static org.assertj.core.api.Assertions.assertThat; +import static org.openworkflow.sdk.api.WorkflowReader.readWorkflowFromClasspath; -import io.serverlessworkflow.api.types.BearerAuthenticationPolicy; -import io.serverlessworkflow.api.types.CallFunction; -import io.serverlessworkflow.api.types.CallHTTP; -import io.serverlessworkflow.api.types.CallTask; -import io.serverlessworkflow.api.types.HTTPArguments; -import io.serverlessworkflow.api.types.OAuth2AuthenticationData.OAuth2AuthenticationDataGrant; -import io.serverlessworkflow.api.types.OAuth2AuthenticationPolicy; -import io.serverlessworkflow.api.types.OAuth2AuthenticationPropertiesEndpoints; -import io.serverlessworkflow.api.types.OAuth2ConnectAuthenticationProperties; -import io.serverlessworkflow.api.types.Task; -import io.serverlessworkflow.api.types.Workflow; import java.io.IOException; import java.net.URI; import org.junit.jupiter.api.Test; +import org.openworkflow.sdk.api.types.BearerAuthenticationPolicy; +import org.openworkflow.sdk.api.types.CallFunction; +import org.openworkflow.sdk.api.types.CallHTTP; +import org.openworkflow.sdk.api.types.CallTask; +import org.openworkflow.sdk.api.types.HTTPArguments; +import org.openworkflow.sdk.api.types.OAuth2AuthenticationData.OAuth2AuthenticationDataGrant; +import org.openworkflow.sdk.api.types.OAuth2AuthenticationPolicy; +import org.openworkflow.sdk.api.types.OAuth2AuthenticationPropertiesEndpoints; +import org.openworkflow.sdk.api.types.OAuth2ConnectAuthenticationProperties; +import org.openworkflow.sdk.api.types.Task; +import org.openworkflow.sdk.api.types.Workflow; public class ApiTest { diff --git a/api/src/test/java/io/serverlessworkflow/api/FeaturesTest.java b/api/src/test/java/org/openworkflow/sdk/api/FeaturesTest.java similarity index 86% rename from api/src/test/java/io/serverlessworkflow/api/FeaturesTest.java rename to api/src/test/java/org/openworkflow/sdk/api/FeaturesTest.java index 983c7a542..544317946 100644 --- a/api/src/test/java/io/serverlessworkflow/api/FeaturesTest.java +++ b/api/src/test/java/org/openworkflow/sdk/api/FeaturesTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,22 +13,22 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.api; +package org.openworkflow.sdk.api; -import static io.serverlessworkflow.api.WorkflowReader.readWorkflowFromClasspath; -import static io.serverlessworkflow.api.WorkflowReader.validation; -import static io.serverlessworkflow.api.WorkflowWriter.workflowAsBytes; -import static io.serverlessworkflow.api.WorkflowWriter.workflowAsString; -import static io.serverlessworkflow.api.WorkflowWriter.writeWorkflow; import static org.assertj.core.api.Assertions.assertThat; import static org.junit.jupiter.api.Assertions.assertNotNull; +import static org.openworkflow.sdk.api.WorkflowReader.readWorkflowFromClasspath; +import static org.openworkflow.sdk.api.WorkflowReader.validation; +import static org.openworkflow.sdk.api.WorkflowWriter.workflowAsBytes; +import static org.openworkflow.sdk.api.WorkflowWriter.workflowAsString; +import static org.openworkflow.sdk.api.WorkflowWriter.writeWorkflow; -import io.serverlessworkflow.api.types.Workflow; import java.io.ByteArrayInputStream; import java.io.ByteArrayOutputStream; import java.io.IOException; import org.junit.jupiter.params.ParameterizedTest; import org.junit.jupiter.params.provider.ValueSource; +import org.openworkflow.sdk.api.types.Workflow; import org.slf4j.Logger; import org.slf4j.LoggerFactory; diff --git a/api/src/test/resources/features/raise.yaml b/api/src/test/resources/features/raise.yaml index 7745162cb..e6df87655 100644 --- a/api/src/test/resources/features/raise.yaml +++ b/api/src/test/resources/features/raise.yaml @@ -8,6 +8,6 @@ do: raise: error: status: 400 - type: https://serverlessworkflow.io/errors/types/compliance + type: https://open-workflow-specification.org/1.0.0/errors/types/compliance title: Compliance Error instance: raiseError \ No newline at end of file diff --git a/api/src/test/resources/features/try.yaml b/api/src/test/resources/features/try.yaml index ec19194d4..b3e0b810b 100644 --- a/api/src/test/resources/features/try.yaml +++ b/api/src/test/resources/features/try.yaml @@ -15,7 +15,7 @@ do: catch: errors: with: - type: https://serverlessworkflow.io/dsl/errors/types/communication + type: https://open-workflow-specification.org/1.0.0/errors/communication status: 404 as: err do: diff --git a/bom/pom.xml b/bom/pom.xml index 3c6a4e0d1..a5d8896d3 100644 --- a/bom/pom.xml +++ b/bom/pom.xml @@ -2,15 +2,15 @@ 4.0.0 - io.serverlessworkflow - serverlessworkflow-parent + org.openworkflow.sdk + openworkflow-parent 8.0.0-SNAPSHOT - serverlessworkflow-bom + openworkflow-bom pom - Serverless Workflow :: BOM - Bill of Materials for Serverless Workflow Java SDK + Open Workflow :: BOM + Bill of Materials for Open Workflow Java SDK diff --git a/examples/events/pom.xml b/examples/events/pom.xml index 0bf45d8dc..f7534e2ef 100644 --- a/examples/events/pom.xml +++ b/examples/events/pom.xml @@ -1,12 +1,12 @@ 4.0.0 - io.serverlessworkflow - serverlessworkflow-examples + org.openworkflow.sdk + openworkflow-examples 8.0.0-SNAPSHOT - Serverless Workflow :: Examples :: Events - serverlessworkflow-examples-events + Open Workflow :: Examples :: Events + openworkflow-examples-events events.EventExample @@ -15,8 +15,8 @@ - io.serverlessworkflow - serverlessworkflow-impl-jackson + org.openworkflow.sdk + openworkflow-impl-jackson org.slf4j diff --git a/examples/events/src/main/java/events/EventExample.java b/examples/events/src/main/java/events/EventExample.java index 57cbdd023..bbde3a624 100644 --- a/examples/events/src/main/java/events/EventExample.java +++ b/examples/events/src/main/java/events/EventExample.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -15,12 +15,12 @@ */ package events; -import io.serverlessworkflow.api.WorkflowReader; -import io.serverlessworkflow.impl.WorkflowApplication; -import io.serverlessworkflow.impl.WorkflowDefinition; -import io.serverlessworkflow.impl.WorkflowInstance; import java.io.IOException; import java.util.Map; +import org.openworkflow.sdk.api.WorkflowReader; +import org.openworkflow.sdk.impl.WorkflowApplication; +import org.openworkflow.sdk.impl.WorkflowDefinition; +import org.openworkflow.sdk.impl.WorkflowInstance; import org.slf4j.Logger; import org.slf4j.LoggerFactory; diff --git a/examples/pom.xml b/examples/pom.xml index 8da9c1a12..24d8f6722 100644 --- a/examples/pom.xml +++ b/examples/pom.xml @@ -1,13 +1,13 @@ 4.0.0 - io.serverlessworkflow - serverlessworkflow-parent + org.openworkflow.sdk + openworkflow-parent 8.0.0-SNAPSHOT ../pom.xml - Serverless Workflow :: Examples - serverlessworkflow-examples + Open Workflow :: Examples + openworkflow-examples 4.0.3 @@ -15,18 +15,18 @@ - io.serverlessworkflow - serverlessworkflow-impl-core + org.openworkflow.sdk + openworkflow-impl-core ${project.version} - io.serverlessworkflow - serverlessworkflow-impl-http + org.openworkflow.sdk + openworkflow-impl-http ${project.version} - io.serverlessworkflow - serverlessworkflow-impl-jackson + org.openworkflow.sdk + openworkflow-impl-jackson ${project.version} diff --git a/examples/simpleGet/pom.xml b/examples/simpleGet/pom.xml index 7790e276f..748d5908e 100644 --- a/examples/simpleGet/pom.xml +++ b/examples/simpleGet/pom.xml @@ -1,25 +1,25 @@ 4.0.0 - io.serverlessworkflow - serverlessworkflow-examples + org.openworkflow.sdk + openworkflow-examples 8.0.0-SNAPSHOT - serverlessworkflow-examples-simpleGet - Serverless Workflow :: Examples :: SimpleGet + openworkflow-examples-simpleGet + Open Workflow :: Examples :: SimpleGet - io.serverlessworkflow.impl.BlockingExample + org.openworkflow.sdk.impl.BlockingExample - io.serverlessworkflow - serverlessworkflow-impl-jackson + org.openworkflow.sdk + openworkflow-impl-jackson - io.serverlessworkflow - serverlessworkflow-impl-http + org.openworkflow.sdk + openworkflow-impl-http org.glassfish.jersey.media diff --git a/examples/simpleGet/src/main/java/io/serverlessworkflow/impl/BlockingExample.java b/examples/simpleGet/src/main/java/org/openworkflow/sdk/impl/BlockingExample.java similarity index 88% rename from examples/simpleGet/src/main/java/io/serverlessworkflow/impl/BlockingExample.java rename to examples/simpleGet/src/main/java/org/openworkflow/sdk/impl/BlockingExample.java index 233d121fd..abed8d0d1 100644 --- a/examples/simpleGet/src/main/java/io/serverlessworkflow/impl/BlockingExample.java +++ b/examples/simpleGet/src/main/java/org/openworkflow/sdk/impl/BlockingExample.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,11 +13,11 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl; +package org.openworkflow.sdk.impl; -import io.serverlessworkflow.api.WorkflowReader; import java.io.IOException; import java.util.Map; +import org.openworkflow.sdk.api.WorkflowReader; import org.slf4j.Logger; import org.slf4j.LoggerFactory; diff --git a/examples/simpleGet/src/main/java/io/serverlessworkflow/impl/NotBlockingExample.java b/examples/simpleGet/src/main/java/org/openworkflow/sdk/impl/NotBlockingExample.java similarity index 88% rename from examples/simpleGet/src/main/java/io/serverlessworkflow/impl/NotBlockingExample.java rename to examples/simpleGet/src/main/java/org/openworkflow/sdk/impl/NotBlockingExample.java index 39cfe6f57..926ee63ef 100644 --- a/examples/simpleGet/src/main/java/io/serverlessworkflow/impl/NotBlockingExample.java +++ b/examples/simpleGet/src/main/java/org/openworkflow/sdk/impl/NotBlockingExample.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,11 +13,11 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl; +package org.openworkflow.sdk.impl; -import io.serverlessworkflow.api.WorkflowReader; import java.io.IOException; import java.util.Map; +import org.openworkflow.sdk.api.WorkflowReader; import org.slf4j.Logger; import org.slf4j.LoggerFactory; diff --git a/fluent/README.md b/fluent/README.md index 0b50006e6..751456cf4 100644 --- a/fluent/README.md +++ b/fluent/README.md @@ -1,6 +1,6 @@ -# CNCF Serverless Workflow SDK Java — Fluent DSL +# CNCF Open Workflow SDK Java — Fluent DSL -> A programmatic, type‑safe Java API for building and running Serverless Workflows (and agentic workflows) without writing YAML. +> A programmatic, type‑safe Java API for building and running Open Workflows (and agentic workflows) without writing YAML. --- @@ -8,7 +8,7 @@ | Module | Purpose | | -------------- | --------------------------------------------------------------------------------------------- | -| **spec** | Core DSL implementing the [Serverless Workflow Specification](https://github.com/serverlessworkflow/specification). Purely compliant fluent API. | +| **spec** | Core DSL implementing the [Open Workflow Specification](https://github.com/open-workflow-specification/specification). Purely compliant fluent API. | | **func** | Java‑centric “functional” DSL on top of **spec**: adds `Function<>`/`Predicate<>` support, `callFn` for Java method calls, and richer flow controls. | | **agentic** | **Experimental** proof‑of‑concept DSL built on **func** for LangChain4j agentic workflows: `agent`, `sequence`, `loop`, `parallel`, etc. | @@ -20,23 +20,23 @@ Add the modules you need to your Maven `pom.xml` (replace versions as appropriat ```xml - io.serverlessworkflow - serverlessworkflow-fluent-spec - ${version.io.serverlessworkflow} + org.openworkflow.sdk + openworkflow-fluent-spec + ${version.org.openworkflow.sdk} - io.serverlessworkflow - serverlessworkflow-fluent-func - ${version.io.serverlessworkflow} + org.openworkflow.sdk + openworkflow-fluent-func + ${version.org.openworkflow.sdk} - io.serverlessworkflow - serverlessworkflow-fluent-agentic - ${version.io.serverlessworkflow} + org.openworkflow.sdk + openworkflow-fluent-agentic + ${version.org.openworkflow.sdk} ``` @@ -46,12 +46,12 @@ Add the modules you need to your Maven `pom.xml` (replace versions as appropriat ### 1. Spec Fluent -Fully compliant with the CNCF Serverless Workflow spec.\ +Fully compliant with the CNCF Open Workflow spec.\ Use it when you want a 1:1 mapping of the YAML DSL in Java. ```java -import io.serverlessworkflow.api.types.Workflow; -import io.serverlessworkflow.fluent.spec.WorkflowBuilder; +import org.openworkflow.sdk.api.types.Workflow; +import org.openworkflow.sdk.fluent.spec.WorkflowBuilder; Workflow wf = WorkflowBuilder .workflow("flowDo") @@ -82,7 +82,7 @@ The spec fluent DSL supports all three call task types defined by the specificat **HTTP call:** ```java -import static io.serverlessworkflow.fluent.spec.dsl.DSL.*; +import static org.openworkflow.sdk.fluent.spec.dsl.DSL.*; Workflow wf = WorkflowBuilder.workflow("myFlow", "myNs", "1.0") .tasks(call( @@ -182,8 +182,8 @@ A Java‑first DSL that builds on **spec**, adding: - Built‑in `Function`/`Predicate` support instead of JQ expressions ```java -import io.serverlessworkflow.api.types.Workflow; -import io.serverlessworkflow.fluent.func.FuncWorkflowBuilder; +import org.openworkflow.sdk.api.types.Workflow; +import org.openworkflow.sdk.fluent.func.FuncWorkflowBuilder; Workflow wf = FuncWorkflowBuilder .workflow("callJavaFlow") @@ -215,8 +215,8 @@ Built on **func** for LangChain4j agentic workflows. Adds: - `parallel(...)`: fork agent calls concurrently ```java -import io.serverlessworkflow.api.types.Workflow; -import io.serverlessworkflow.fluent.agentic.AgentWorkflowBuilder; +import org.openworkflow.sdk.api.types.Workflow; +import org.openworkflow.sdk.fluent.agentic.AgentWorkflowBuilder; var scorer = AgentsUtils.newMovieExpert(); var editor = AgentsUtils.newMovieExpert(); @@ -238,8 +238,8 @@ Workflow wf = AgentWorkflowBuilder ## 🚀 Real‑World Example: Order Fulfillment ```java -import io.serverlessworkflow.api.types.Workflow; -import io.serverlessworkflow.fluent.agentic.AgentWorkflowBuilder; +import org.openworkflow.sdk.api.types.Workflow; +import org.openworkflow.sdk.fluent.agentic.AgentWorkflowBuilder; import java.util.function.Predicate; public class OrderFulfillment { @@ -297,10 +297,10 @@ public class OrderFulfillment { - **Event tasks**: `onEvent`, `sendEvent` - **Human‑in‑the‑Loop**: approval/notification steps -Contributions welcome! Check out our [CONTRIBUTING.md](../CONTRIBUTING.md) and join the CNCF Slack channel for **Serverless Workflow**. +Contributions welcome! Check out our [CONTRIBUTING.md](../CONTRIBUTING.md) and join the CNCF Slack channel for **Open Workflow**. --- ## 📜 License -Apache 2.0 © Serverless Workflow Authors +Apache 2.0 © Open Workflow Authors diff --git a/fluent/pom.xml b/fluent/pom.xml index 13dcefbf4..2e6a8793b 100644 --- a/fluent/pom.xml +++ b/fluent/pom.xml @@ -2,12 +2,12 @@ 4.0.0 - io.serverlessworkflow - serverlessworkflow-parent + org.openworkflow.sdk + openworkflow-parent 8.0.0-SNAPSHOT - Serverless Workflow :: Fluent - serverlessworkflow-fluent + Open Workflow :: Fluent + openworkflow-fluent pom diff --git a/fluent/spec/pom.xml b/fluent/spec/pom.xml index b931c9317..50e09a326 100644 --- a/fluent/spec/pom.xml +++ b/fluent/spec/pom.xml @@ -2,12 +2,12 @@ 4.0.0 - io.serverlessworkflow - serverlessworkflow-fluent + org.openworkflow.sdk + openworkflow-fluent 8.0.0-SNAPSHOT - Serverless Workflow :: Fluent :: Spec - serverlessworkflow-fluent-spec + Open Workflow :: Fluent :: Spec + openworkflow-fluent-spec 17 @@ -17,8 +17,8 @@ - io.serverlessworkflow - serverlessworkflow-types + org.openworkflow.sdk + openworkflow-types org.junit.jupiter diff --git a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/AbstractEmitTaskBuilder.java b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/AbstractEmitTaskBuilder.java similarity index 83% rename from fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/AbstractEmitTaskBuilder.java rename to fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/AbstractEmitTaskBuilder.java index 3c66c286f..ec9e55b9d 100644 --- a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/AbstractEmitTaskBuilder.java +++ b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/AbstractEmitTaskBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,12 +13,12 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.fluent.spec; +package org.openworkflow.sdk.fluent.spec; -import io.serverlessworkflow.api.types.EmitEventDefinition; -import io.serverlessworkflow.api.types.EmitTask; -import io.serverlessworkflow.api.types.EmitTaskConfiguration; import java.util.function.Consumer; +import org.openworkflow.sdk.api.types.EmitEventDefinition; +import org.openworkflow.sdk.api.types.EmitTask; +import org.openworkflow.sdk.api.types.EmitTaskConfiguration; public abstract class AbstractEmitTaskBuilder< SELF extends AbstractEmitTaskBuilder, F extends AbstractEventPropertiesBuilder> diff --git a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/AbstractEventConsumptionStrategyBuilder.java b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/AbstractEventConsumptionStrategyBuilder.java similarity index 89% rename from fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/AbstractEventConsumptionStrategyBuilder.java rename to fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/AbstractEventConsumptionStrategyBuilder.java index 2b5394713..9b54d951b 100644 --- a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/AbstractEventConsumptionStrategyBuilder.java +++ b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/AbstractEventConsumptionStrategyBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,19 +13,19 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.fluent.spec; - -import io.serverlessworkflow.api.types.AllEventConsumptionStrategy; -import io.serverlessworkflow.api.types.AnyEventConsumptionStrategy; -import io.serverlessworkflow.api.types.EventFilter; -import io.serverlessworkflow.api.types.OneEventConsumptionStrategy; -import io.serverlessworkflow.api.types.Until; -import io.serverlessworkflow.fluent.spec.spi.EventConsumptionStrategyFluent; +package org.openworkflow.sdk.fluent.spec; + import java.io.Serializable; import java.util.ArrayList; import java.util.List; import java.util.Objects; import java.util.function.Consumer; +import org.openworkflow.sdk.api.types.AllEventConsumptionStrategy; +import org.openworkflow.sdk.api.types.AnyEventConsumptionStrategy; +import org.openworkflow.sdk.api.types.EventFilter; +import org.openworkflow.sdk.api.types.OneEventConsumptionStrategy; +import org.openworkflow.sdk.api.types.Until; +import org.openworkflow.sdk.fluent.spec.spi.EventConsumptionStrategyFluent; public abstract class AbstractEventConsumptionStrategyBuilder< SELF extends EventConsumptionStrategyFluent, diff --git a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/AbstractEventFilterBuilder.java b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/AbstractEventFilterBuilder.java similarity index 87% rename from fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/AbstractEventFilterBuilder.java rename to fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/AbstractEventFilterBuilder.java index 58ad07d45..e98decd58 100644 --- a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/AbstractEventFilterBuilder.java +++ b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/AbstractEventFilterBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,11 +13,11 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.fluent.spec; +package org.openworkflow.sdk.fluent.spec; -import io.serverlessworkflow.api.types.EventFilter; -import io.serverlessworkflow.api.types.EventFilterCorrelate; import java.util.function.Consumer; +import org.openworkflow.sdk.api.types.EventFilter; +import org.openworkflow.sdk.api.types.EventFilterCorrelate; public abstract class AbstractEventFilterBuilder< SELF extends AbstractEventFilterBuilder, P extends AbstractEventPropertiesBuilder> { diff --git a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/AbstractEventPropertiesBuilder.java b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/AbstractEventPropertiesBuilder.java similarity index 86% rename from fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/AbstractEventPropertiesBuilder.java rename to fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/AbstractEventPropertiesBuilder.java index 62f50e481..8a953db58 100644 --- a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/AbstractEventPropertiesBuilder.java +++ b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/AbstractEventPropertiesBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,16 +13,16 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.fluent.spec; +package org.openworkflow.sdk.fluent.spec; -import io.serverlessworkflow.api.types.EventData; -import io.serverlessworkflow.api.types.EventProperties; -import io.serverlessworkflow.api.types.EventSource; -import io.serverlessworkflow.api.types.EventTime; -import io.serverlessworkflow.api.types.UriTemplate; import java.net.URI; import java.net.URISyntaxException; import java.util.Date; +import org.openworkflow.sdk.api.types.EventData; +import org.openworkflow.sdk.api.types.EventProperties; +import org.openworkflow.sdk.api.types.EventSource; +import org.openworkflow.sdk.api.types.EventTime; +import org.openworkflow.sdk.api.types.UriTemplate; public abstract class AbstractEventPropertiesBuilder< SELF extends AbstractEventPropertiesBuilder> { diff --git a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/AbstractForkTaskBuilder.java b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/AbstractForkTaskBuilder.java similarity index 88% rename from fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/AbstractForkTaskBuilder.java rename to fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/AbstractForkTaskBuilder.java index bf3c1ce76..cff465df9 100644 --- a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/AbstractForkTaskBuilder.java +++ b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/AbstractForkTaskBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,18 +13,18 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.fluent.spec; - -import io.serverlessworkflow.api.types.DoTask; -import io.serverlessworkflow.api.types.ForkTask; -import io.serverlessworkflow.api.types.ForkTaskConfiguration; -import io.serverlessworkflow.api.types.Task; -import io.serverlessworkflow.api.types.TaskItem; -import io.serverlessworkflow.fluent.spec.spi.ForkTaskFluent; +package org.openworkflow.sdk.fluent.spec; + import java.util.ArrayList; import java.util.List; import java.util.Objects; import java.util.function.Consumer; +import org.openworkflow.sdk.api.types.DoTask; +import org.openworkflow.sdk.api.types.ForkTask; +import org.openworkflow.sdk.api.types.ForkTaskConfiguration; +import org.openworkflow.sdk.api.types.Task; +import org.openworkflow.sdk.api.types.TaskItem; +import org.openworkflow.sdk.fluent.spec.spi.ForkTaskFluent; public abstract class AbstractForkTaskBuilder< SELF extends AbstractForkTaskBuilder, L extends BaseTaskItemListBuilder> diff --git a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/AbstractListenTaskBuilder.java b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/AbstractListenTaskBuilder.java similarity index 86% rename from fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/AbstractListenTaskBuilder.java rename to fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/AbstractListenTaskBuilder.java index db3a6ba0a..ee1d1bf08 100644 --- a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/AbstractListenTaskBuilder.java +++ b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/AbstractListenTaskBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,16 +13,16 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.fluent.spec; - -import io.serverlessworkflow.api.types.CorrelateProperty; -import io.serverlessworkflow.api.types.ListenTask; -import io.serverlessworkflow.api.types.ListenTaskConfiguration; -import io.serverlessworkflow.api.types.ListenTo; -import io.serverlessworkflow.api.types.TaskTimeout; -import io.serverlessworkflow.api.types.Timeout; -import io.serverlessworkflow.api.types.TimeoutAfter; +package org.openworkflow.sdk.fluent.spec; + import java.util.function.Consumer; +import org.openworkflow.sdk.api.types.CorrelateProperty; +import org.openworkflow.sdk.api.types.ListenTask; +import org.openworkflow.sdk.api.types.ListenTaskConfiguration; +import org.openworkflow.sdk.api.types.ListenTo; +import org.openworkflow.sdk.api.types.TaskTimeout; +import org.openworkflow.sdk.api.types.Timeout; +import org.openworkflow.sdk.api.types.TimeoutAfter; public abstract class AbstractListenTaskBuilder< T extends BaseTaskItemListBuilder, diff --git a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/BaseDoTaskBuilder.java b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/BaseDoTaskBuilder.java similarity index 91% rename from fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/BaseDoTaskBuilder.java rename to fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/BaseDoTaskBuilder.java index 94e0c8734..f880deb52 100644 --- a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/BaseDoTaskBuilder.java +++ b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/BaseDoTaskBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,11 +13,11 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.fluent.spec; +package org.openworkflow.sdk.fluent.spec; -import io.serverlessworkflow.api.types.DoTask; import java.util.Objects; import java.util.function.Consumer; +import org.openworkflow.sdk.api.types.DoTask; public abstract class BaseDoTaskBuilder< SELF extends BaseDoTaskBuilder, LIST extends BaseTaskItemListBuilder> diff --git a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/BaseRaiseTaskBuilder.java b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/BaseRaiseTaskBuilder.java similarity index 82% rename from fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/BaseRaiseTaskBuilder.java rename to fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/BaseRaiseTaskBuilder.java index 7d4e128e2..9b9d21aa1 100644 --- a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/BaseRaiseTaskBuilder.java +++ b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/BaseRaiseTaskBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,18 +13,18 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.fluent.spec; - -import io.serverlessworkflow.api.types.ErrorDetails; -import io.serverlessworkflow.api.types.ErrorTitle; -import io.serverlessworkflow.api.types.ErrorType; -import io.serverlessworkflow.api.types.RaiseTask; -import io.serverlessworkflow.api.types.RaiseTaskConfiguration; -import io.serverlessworkflow.api.types.RaiseTaskError; -import io.serverlessworkflow.api.types.UriTemplate; +package org.openworkflow.sdk.fluent.spec; + import java.net.URI; import java.net.URISyntaxException; import java.util.function.Consumer; +import org.openworkflow.sdk.api.types.ErrorDetails; +import org.openworkflow.sdk.api.types.ErrorTitle; +import org.openworkflow.sdk.api.types.ErrorType; +import org.openworkflow.sdk.api.types.RaiseTask; +import org.openworkflow.sdk.api.types.RaiseTaskConfiguration; +import org.openworkflow.sdk.api.types.RaiseTaskError; +import org.openworkflow.sdk.api.types.UriTemplate; public abstract class BaseRaiseTaskBuilder> extends TaskBaseBuilder { @@ -57,10 +57,10 @@ public RaiseTask build() { } public static final class RaiseTaskErrorBuilder { - private final io.serverlessworkflow.api.types.Error error; + private final org.openworkflow.sdk.api.types.Error error; private RaiseTaskErrorBuilder() { - this.error = new io.serverlessworkflow.api.types.Error(); + this.error = new org.openworkflow.sdk.api.types.Error(); } public RaiseTaskErrorBuilder type(String expression) { diff --git a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/BaseTaskItemListBuilder.java b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/BaseTaskItemListBuilder.java similarity index 94% rename from fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/BaseTaskItemListBuilder.java rename to fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/BaseTaskItemListBuilder.java index 76a0dc57d..fea49c26e 100644 --- a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/BaseTaskItemListBuilder.java +++ b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/BaseTaskItemListBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,15 +13,15 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.fluent.spec; +package org.openworkflow.sdk.fluent.spec; -import io.serverlessworkflow.api.types.TaskBase; -import io.serverlessworkflow.api.types.TaskItem; import java.util.ArrayList; import java.util.Collections; import java.util.List; import java.util.Objects; import java.util.function.Consumer; +import org.openworkflow.sdk.api.types.TaskBase; +import org.openworkflow.sdk.api.types.TaskItem; /** * A builder for an ordered {@link TaskItem} list. diff --git a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/BaseTryTaskBuilder.java b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/BaseTryTaskBuilder.java similarity index 92% rename from fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/BaseTryTaskBuilder.java rename to fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/BaseTryTaskBuilder.java index aa2fc410a..42843ae01 100644 --- a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/BaseTryTaskBuilder.java +++ b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/BaseTryTaskBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,29 +13,29 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.fluent.spec; - -import io.serverlessworkflow.api.types.CatchErrors; -import io.serverlessworkflow.api.types.Constant; -import io.serverlessworkflow.api.types.ConstantBackoff; -import io.serverlessworkflow.api.types.ErrorFilter; -import io.serverlessworkflow.api.types.Exponential; -import io.serverlessworkflow.api.types.ExponentialBackOff; -import io.serverlessworkflow.api.types.Linear; -import io.serverlessworkflow.api.types.LinearBackoff; -import io.serverlessworkflow.api.types.Retry; -import io.serverlessworkflow.api.types.RetryBackoff; -import io.serverlessworkflow.api.types.RetryLimit; -import io.serverlessworkflow.api.types.RetryLimitAttempt; -import io.serverlessworkflow.api.types.RetryPolicy; -import io.serverlessworkflow.api.types.RetryPolicyJitter; -import io.serverlessworkflow.api.types.TaskItem; -import io.serverlessworkflow.api.types.TimeoutAfter; -import io.serverlessworkflow.api.types.TryTask; -import io.serverlessworkflow.api.types.TryTaskCatch; +package org.openworkflow.sdk.fluent.spec; + import java.util.ArrayList; import java.util.List; import java.util.function.Consumer; +import org.openworkflow.sdk.api.types.CatchErrors; +import org.openworkflow.sdk.api.types.Constant; +import org.openworkflow.sdk.api.types.ConstantBackoff; +import org.openworkflow.sdk.api.types.ErrorFilter; +import org.openworkflow.sdk.api.types.Exponential; +import org.openworkflow.sdk.api.types.ExponentialBackOff; +import org.openworkflow.sdk.api.types.Linear; +import org.openworkflow.sdk.api.types.LinearBackoff; +import org.openworkflow.sdk.api.types.Retry; +import org.openworkflow.sdk.api.types.RetryBackoff; +import org.openworkflow.sdk.api.types.RetryLimit; +import org.openworkflow.sdk.api.types.RetryLimitAttempt; +import org.openworkflow.sdk.api.types.RetryPolicy; +import org.openworkflow.sdk.api.types.RetryPolicyJitter; +import org.openworkflow.sdk.api.types.TaskItem; +import org.openworkflow.sdk.api.types.TimeoutAfter; +import org.openworkflow.sdk.api.types.TryTask; +import org.openworkflow.sdk.api.types.TryTaskCatch; public abstract class BaseTryTaskBuilder< B extends BaseTryTaskBuilder, T extends BaseTaskItemListBuilder> diff --git a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/BaseWorkflowBuilder.java b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/BaseWorkflowBuilder.java similarity index 90% rename from fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/BaseWorkflowBuilder.java rename to fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/BaseWorkflowBuilder.java index 365322618..cc55e4b3a 100644 --- a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/BaseWorkflowBuilder.java +++ b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/BaseWorkflowBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,23 +13,23 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.fluent.spec; - -import static io.serverlessworkflow.types.Defaults.DSL; - -import io.serverlessworkflow.api.types.DoTimeout; -import io.serverlessworkflow.api.types.Document; -import io.serverlessworkflow.api.types.Input; -import io.serverlessworkflow.api.types.Output; -import io.serverlessworkflow.api.types.TaskItem; -import io.serverlessworkflow.api.types.Timeout; -import io.serverlessworkflow.api.types.TimeoutAfter; -import io.serverlessworkflow.api.types.Workflow; -import io.serverlessworkflow.fluent.spec.spi.TransformationHandlers; +package org.openworkflow.sdk.fluent.spec; + +import static org.openworkflow.sdk.types.Defaults.DSL; + import java.util.ArrayList; import java.util.List; import java.util.UUID; import java.util.function.Consumer; +import org.openworkflow.sdk.api.types.DoTimeout; +import org.openworkflow.sdk.api.types.Document; +import org.openworkflow.sdk.api.types.Input; +import org.openworkflow.sdk.api.types.Output; +import org.openworkflow.sdk.api.types.TaskItem; +import org.openworkflow.sdk.api.types.Timeout; +import org.openworkflow.sdk.api.types.TimeoutAfter; +import org.openworkflow.sdk.api.types.Workflow; +import org.openworkflow.sdk.fluent.spec.spi.TransformationHandlers; public abstract class BaseWorkflowBuilder< SELF extends BaseWorkflowBuilder, diff --git a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/BasicAuthenticationPolicyBuilder.java b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/BasicAuthenticationPolicyBuilder.java similarity index 82% rename from fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/BasicAuthenticationPolicyBuilder.java rename to fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/BasicAuthenticationPolicyBuilder.java index 6b9813913..cb3a5a718 100644 --- a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/BasicAuthenticationPolicyBuilder.java +++ b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/BasicAuthenticationPolicyBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,12 +13,12 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.fluent.spec; +package org.openworkflow.sdk.fluent.spec; -import io.serverlessworkflow.api.types.BasicAuthenticationPolicy; -import io.serverlessworkflow.api.types.BasicAuthenticationPolicyConfiguration; -import io.serverlessworkflow.api.types.BasicAuthenticationProperties; -import io.serverlessworkflow.api.types.SecretBasedAuthenticationPolicy; +import org.openworkflow.sdk.api.types.BasicAuthenticationPolicy; +import org.openworkflow.sdk.api.types.BasicAuthenticationPolicyConfiguration; +import org.openworkflow.sdk.api.types.BasicAuthenticationProperties; +import org.openworkflow.sdk.api.types.SecretBasedAuthenticationPolicy; public final class BasicAuthenticationPolicyBuilder { diff --git a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/BearerAuthenticationPolicyBuilder.java b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/BearerAuthenticationPolicyBuilder.java similarity index 80% rename from fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/BearerAuthenticationPolicyBuilder.java rename to fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/BearerAuthenticationPolicyBuilder.java index f8847638d..27704246e 100644 --- a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/BearerAuthenticationPolicyBuilder.java +++ b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/BearerAuthenticationPolicyBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,12 +13,12 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.fluent.spec; +package org.openworkflow.sdk.fluent.spec; -import io.serverlessworkflow.api.types.BearerAuthenticationPolicy; -import io.serverlessworkflow.api.types.BearerAuthenticationPolicyConfiguration; -import io.serverlessworkflow.api.types.BearerAuthenticationProperties; -import io.serverlessworkflow.api.types.SecretBasedAuthenticationPolicy; +import org.openworkflow.sdk.api.types.BearerAuthenticationPolicy; +import org.openworkflow.sdk.api.types.BearerAuthenticationPolicyConfiguration; +import org.openworkflow.sdk.api.types.BearerAuthenticationProperties; +import org.openworkflow.sdk.api.types.SecretBasedAuthenticationPolicy; public final class BearerAuthenticationPolicyBuilder { private BearerAuthenticationProperties bearerAuthenticationProperties; diff --git a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/CallGrpcTaskBuilder.java b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/CallGrpcTaskBuilder.java similarity index 76% rename from fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/CallGrpcTaskBuilder.java rename to fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/CallGrpcTaskBuilder.java index cd83ae088..bda9eb062 100644 --- a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/CallGrpcTaskBuilder.java +++ b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/CallGrpcTaskBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,11 +13,11 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.fluent.spec; +package org.openworkflow.sdk.fluent.spec; -import io.serverlessworkflow.api.types.CallGRPC; -import io.serverlessworkflow.api.types.GRPCArguments; -import io.serverlessworkflow.fluent.spec.spi.CallGrpcTaskFluent; +import org.openworkflow.sdk.api.types.CallGRPC; +import org.openworkflow.sdk.api.types.GRPCArguments; +import org.openworkflow.sdk.fluent.spec.spi.CallGrpcTaskFluent; public class CallGrpcTaskBuilder extends TaskBaseBuilder implements CallGrpcTaskFluent { diff --git a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/CallHttpTaskBuilder.java b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/CallHttpTaskBuilder.java similarity index 82% rename from fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/CallHttpTaskBuilder.java rename to fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/CallHttpTaskBuilder.java index 0b097f996..ad0070f30 100644 --- a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/CallHttpTaskBuilder.java +++ b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/CallHttpTaskBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,11 +13,11 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.fluent.spec; +package org.openworkflow.sdk.fluent.spec; -import io.serverlessworkflow.api.types.CallHTTP; -import io.serverlessworkflow.api.types.HTTPArguments; -import io.serverlessworkflow.fluent.spec.spi.CallHttpTaskFluent; +import org.openworkflow.sdk.api.types.CallHTTP; +import org.openworkflow.sdk.api.types.HTTPArguments; +import org.openworkflow.sdk.fluent.spec.spi.CallHttpTaskFluent; public class CallHttpTaskBuilder extends TaskBaseBuilder implements CallHttpTaskFluent { diff --git a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/CallOpenAPITaskBuilder.java b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/CallOpenAPITaskBuilder.java similarity index 73% rename from fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/CallOpenAPITaskBuilder.java rename to fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/CallOpenAPITaskBuilder.java index cc7ebce99..1eb086777 100644 --- a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/CallOpenAPITaskBuilder.java +++ b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/CallOpenAPITaskBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,12 +13,12 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.fluent.spec; +package org.openworkflow.sdk.fluent.spec; -import io.serverlessworkflow.api.types.CallOpenAPI; -import io.serverlessworkflow.api.types.OpenAPIArguments; -import io.serverlessworkflow.api.types.WithOpenAPIParameters; -import io.serverlessworkflow.fluent.spec.spi.CallOpenAPITaskFluent; +import org.openworkflow.sdk.api.types.CallOpenAPI; +import org.openworkflow.sdk.api.types.OpenAPIArguments; +import org.openworkflow.sdk.api.types.WithOpenAPIParameters; +import org.openworkflow.sdk.fluent.spec.spi.CallOpenAPITaskFluent; public class CallOpenAPITaskBuilder extends TaskBaseBuilder implements CallOpenAPITaskFluent { diff --git a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/DigestAuthenticationPolicyBuilder.java b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/DigestAuthenticationPolicyBuilder.java similarity index 82% rename from fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/DigestAuthenticationPolicyBuilder.java rename to fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/DigestAuthenticationPolicyBuilder.java index 2fae66c74..8a1e25f3a 100644 --- a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/DigestAuthenticationPolicyBuilder.java +++ b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/DigestAuthenticationPolicyBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,12 +13,12 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.fluent.spec; +package org.openworkflow.sdk.fluent.spec; -import io.serverlessworkflow.api.types.DigestAuthenticationPolicy; -import io.serverlessworkflow.api.types.DigestAuthenticationPolicyConfiguration; -import io.serverlessworkflow.api.types.DigestAuthenticationProperties; -import io.serverlessworkflow.api.types.SecretBasedAuthenticationPolicy; +import org.openworkflow.sdk.api.types.DigestAuthenticationPolicy; +import org.openworkflow.sdk.api.types.DigestAuthenticationPolicyConfiguration; +import org.openworkflow.sdk.api.types.DigestAuthenticationProperties; +import org.openworkflow.sdk.api.types.SecretBasedAuthenticationPolicy; public final class DigestAuthenticationPolicyBuilder { private final DigestAuthenticationProperties digestAuthenticationProperties; diff --git a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/DoTaskBuilder.java b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/DoTaskBuilder.java similarity index 95% rename from fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/DoTaskBuilder.java rename to fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/DoTaskBuilder.java index 4199811e3..a78913c04 100644 --- a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/DoTaskBuilder.java +++ b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/DoTaskBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,10 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.fluent.spec; +package org.openworkflow.sdk.fluent.spec; -import io.serverlessworkflow.fluent.spec.spi.DoFluent; import java.util.function.Consumer; +import org.openworkflow.sdk.fluent.spec.spi.DoFluent; public class DoTaskBuilder extends BaseDoTaskBuilder implements DoFluent { diff --git a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/DocumentBuilder.java b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/DocumentBuilder.java similarity index 91% rename from fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/DocumentBuilder.java rename to fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/DocumentBuilder.java index afb139168..e8c5c5d8c 100644 --- a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/DocumentBuilder.java +++ b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/DocumentBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,12 +13,12 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.fluent.spec; +package org.openworkflow.sdk.fluent.spec; -import io.serverlessworkflow.api.types.Document; -import io.serverlessworkflow.api.types.WorkflowMetadata; -import io.serverlessworkflow.api.types.WorkflowTags; import java.util.function.Consumer; +import org.openworkflow.sdk.api.types.Document; +import org.openworkflow.sdk.api.types.WorkflowMetadata; +import org.openworkflow.sdk.api.types.WorkflowTags; public class DocumentBuilder { diff --git a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/DurationInlineBuilder.java b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/DurationInlineBuilder.java similarity index 88% rename from fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/DurationInlineBuilder.java rename to fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/DurationInlineBuilder.java index f4933bb45..42d50c378 100644 --- a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/DurationInlineBuilder.java +++ b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/DurationInlineBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,9 +13,9 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.fluent.spec; +package org.openworkflow.sdk.fluent.spec; -import io.serverlessworkflow.api.types.DurationInline; +import org.openworkflow.sdk.api.types.DurationInline; public class DurationInlineBuilder { diff --git a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/EmitTaskBuilder.java b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/EmitTaskBuilder.java similarity index 88% rename from fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/EmitTaskBuilder.java rename to fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/EmitTaskBuilder.java index 823a80c2a..f38b4e11d 100644 --- a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/EmitTaskBuilder.java +++ b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/EmitTaskBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.fluent.spec; +package org.openworkflow.sdk.fluent.spec; public class EmitTaskBuilder extends AbstractEmitTaskBuilder { diff --git a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/EventConsumptionStrategyBuilder.java b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/EventConsumptionStrategyBuilder.java similarity index 80% rename from fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/EventConsumptionStrategyBuilder.java rename to fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/EventConsumptionStrategyBuilder.java index c9bb98834..36e820887 100644 --- a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/EventConsumptionStrategyBuilder.java +++ b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/EventConsumptionStrategyBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,13 +13,13 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.fluent.spec; +package org.openworkflow.sdk.fluent.spec; -import io.serverlessworkflow.api.types.AllEventConsumptionStrategy; -import io.serverlessworkflow.api.types.AnyEventConsumptionStrategy; -import io.serverlessworkflow.api.types.EventConsumptionStrategy; -import io.serverlessworkflow.api.types.OneEventConsumptionStrategy; -import io.serverlessworkflow.api.types.Until; +import org.openworkflow.sdk.api.types.AllEventConsumptionStrategy; +import org.openworkflow.sdk.api.types.AnyEventConsumptionStrategy; +import org.openworkflow.sdk.api.types.EventConsumptionStrategy; +import org.openworkflow.sdk.api.types.OneEventConsumptionStrategy; +import org.openworkflow.sdk.api.types.Until; public class EventConsumptionStrategyBuilder extends AbstractEventConsumptionStrategyBuilder< diff --git a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/EventFilterBuilder.java b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/EventFilterBuilder.java similarity index 88% rename from fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/EventFilterBuilder.java rename to fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/EventFilterBuilder.java index 90706a5c9..174cfe57b 100644 --- a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/EventFilterBuilder.java +++ b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/EventFilterBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.fluent.spec; +package org.openworkflow.sdk.fluent.spec; public class EventFilterBuilder extends AbstractEventFilterBuilder { diff --git a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/EventPropertiesBuilder.java b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/EventPropertiesBuilder.java similarity index 86% rename from fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/EventPropertiesBuilder.java rename to fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/EventPropertiesBuilder.java index 27fb3b475..9343ae7d2 100644 --- a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/EventPropertiesBuilder.java +++ b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/EventPropertiesBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.fluent.spec; +package org.openworkflow.sdk.fluent.spec; public class EventPropertiesBuilder extends AbstractEventPropertiesBuilder { diff --git a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/ExportBuilder.java b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/ExportBuilder.java similarity index 76% rename from fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/ExportBuilder.java rename to fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/ExportBuilder.java index a5f600c72..081cc3ed6 100644 --- a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/ExportBuilder.java +++ b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/ExportBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,15 +13,15 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.fluent.spec; +package org.openworkflow.sdk.fluent.spec; -import io.serverlessworkflow.api.types.Endpoint; -import io.serverlessworkflow.api.types.Export; -import io.serverlessworkflow.api.types.ExportAs; -import io.serverlessworkflow.api.types.ExternalResource; -import io.serverlessworkflow.api.types.SchemaExternal; -import io.serverlessworkflow.api.types.SchemaInline; -import io.serverlessworkflow.api.types.SchemaUnion; +import org.openworkflow.sdk.api.types.Endpoint; +import org.openworkflow.sdk.api.types.Export; +import org.openworkflow.sdk.api.types.ExportAs; +import org.openworkflow.sdk.api.types.ExternalResource; +import org.openworkflow.sdk.api.types.SchemaExternal; +import org.openworkflow.sdk.api.types.SchemaInline; +import org.openworkflow.sdk.api.types.SchemaUnion; public final class ExportBuilder { private final Export export; diff --git a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/ForEachTaskBuilder.java b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/ForEachTaskBuilder.java similarity index 87% rename from fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/ForEachTaskBuilder.java rename to fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/ForEachTaskBuilder.java index b1d1462e6..d20fa1039 100644 --- a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/ForEachTaskBuilder.java +++ b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/ForEachTaskBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,16 +13,16 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.fluent.spec; +package org.openworkflow.sdk.fluent.spec; -import io.serverlessworkflow.api.types.ForIn; -import io.serverlessworkflow.api.types.ForTask; -import io.serverlessworkflow.api.types.ForTaskConfiguration; -import io.serverlessworkflow.api.types.TaskItem; -import io.serverlessworkflow.fluent.spec.spi.ForEachTaskFluent; import java.util.List; import java.util.Objects; import java.util.function.Consumer; +import org.openworkflow.sdk.api.types.ForIn; +import org.openworkflow.sdk.api.types.ForTask; +import org.openworkflow.sdk.api.types.ForTaskConfiguration; +import org.openworkflow.sdk.api.types.TaskItem; +import org.openworkflow.sdk.fluent.spec.spi.ForEachTaskFluent; public class ForEachTaskBuilder> extends TaskBaseBuilder> diff --git a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/ForkTaskBuilder.java b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/ForkTaskBuilder.java similarity index 84% rename from fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/ForkTaskBuilder.java rename to fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/ForkTaskBuilder.java index 40ca82246..7347a3a1a 100644 --- a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/ForkTaskBuilder.java +++ b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/ForkTaskBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,9 +13,9 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.fluent.spec; +package org.openworkflow.sdk.fluent.spec; -import io.serverlessworkflow.fluent.spec.spi.ForkTaskFluent; +import org.openworkflow.sdk.fluent.spec.spi.ForkTaskFluent; public class ForkTaskBuilder extends AbstractForkTaskBuilder implements ForkTaskFluent { diff --git a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/InputBuilder.java b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/InputBuilder.java similarity index 86% rename from fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/InputBuilder.java rename to fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/InputBuilder.java index 154291340..dd4d3b6af 100644 --- a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/InputBuilder.java +++ b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/InputBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,15 +13,15 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.fluent.spec; - -import io.serverlessworkflow.api.types.Endpoint; -import io.serverlessworkflow.api.types.ExternalResource; -import io.serverlessworkflow.api.types.Input; -import io.serverlessworkflow.api.types.InputFrom; -import io.serverlessworkflow.api.types.SchemaExternal; -import io.serverlessworkflow.api.types.SchemaInline; -import io.serverlessworkflow.api.types.SchemaUnion; +package org.openworkflow.sdk.fluent.spec; + +import org.openworkflow.sdk.api.types.Endpoint; +import org.openworkflow.sdk.api.types.ExternalResource; +import org.openworkflow.sdk.api.types.Input; +import org.openworkflow.sdk.api.types.InputFrom; +import org.openworkflow.sdk.api.types.SchemaExternal; +import org.openworkflow.sdk.api.types.SchemaInline; +import org.openworkflow.sdk.api.types.SchemaUnion; public class InputBuilder { diff --git a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/ListenTaskBuilder.java b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/ListenTaskBuilder.java similarity index 79% rename from fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/ListenTaskBuilder.java rename to fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/ListenTaskBuilder.java index a4583aab3..2443d6e90 100644 --- a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/ListenTaskBuilder.java +++ b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/ListenTaskBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,11 +13,11 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.fluent.spec; +package org.openworkflow.sdk.fluent.spec; /** - * Fluent builder for a "listen" task in a Serverless Workflow. Enforces exactly one consumption - * strategy: one, all, or any. + * Fluent builder for a "listen" task in a Open Workflow. Enforces exactly one consumption strategy: + * one, all, or any. */ public class ListenTaskBuilder extends AbstractListenTaskBuilder { diff --git a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/ListenToBuilder.java b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/ListenToBuilder.java similarity index 78% rename from fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/ListenToBuilder.java rename to fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/ListenToBuilder.java index 876be8164..adf0bb901 100644 --- a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/ListenToBuilder.java +++ b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/ListenToBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,13 +13,13 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.fluent.spec; +package org.openworkflow.sdk.fluent.spec; -import io.serverlessworkflow.api.types.AllEventConsumptionStrategy; -import io.serverlessworkflow.api.types.AnyEventConsumptionStrategy; -import io.serverlessworkflow.api.types.ListenTo; -import io.serverlessworkflow.api.types.OneEventConsumptionStrategy; -import io.serverlessworkflow.api.types.Until; +import org.openworkflow.sdk.api.types.AllEventConsumptionStrategy; +import org.openworkflow.sdk.api.types.AnyEventConsumptionStrategy; +import org.openworkflow.sdk.api.types.ListenTo; +import org.openworkflow.sdk.api.types.OneEventConsumptionStrategy; +import org.openworkflow.sdk.api.types.Until; public class ListenToBuilder extends AbstractEventConsumptionStrategyBuilder { diff --git a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/ListenToConfigurerBuilder.java b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/ListenToConfigurerBuilder.java similarity index 95% rename from fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/ListenToConfigurerBuilder.java rename to fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/ListenToConfigurerBuilder.java index 3b69603d3..cdadde82e 100644 --- a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/ListenToConfigurerBuilder.java +++ b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/ListenToConfigurerBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.fluent.spec; +package org.openworkflow.sdk.fluent.spec; import java.util.function.Consumer; diff --git a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/OAuth2AuthenticationPolicyBuilder.java b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/OAuth2AuthenticationPolicyBuilder.java similarity index 88% rename from fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/OAuth2AuthenticationPolicyBuilder.java rename to fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/OAuth2AuthenticationPolicyBuilder.java index 014ffc163..9fe01da3a 100644 --- a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/OAuth2AuthenticationPolicyBuilder.java +++ b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/OAuth2AuthenticationPolicyBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,12 +13,12 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.fluent.spec; +package org.openworkflow.sdk.fluent.spec; -import io.serverlessworkflow.api.types.OAuth2AuthenticationPolicy; -import io.serverlessworkflow.api.types.OAuth2AuthenticationPolicyConfiguration; -import io.serverlessworkflow.api.types.OAuth2AuthenticationPropertiesEndpoints; import java.util.function.Consumer; +import org.openworkflow.sdk.api.types.OAuth2AuthenticationPolicy; +import org.openworkflow.sdk.api.types.OAuth2AuthenticationPolicyConfiguration; +import org.openworkflow.sdk.api.types.OAuth2AuthenticationPropertiesEndpoints; public final class OAuth2AuthenticationPolicyBuilder extends OIDCBuilder { diff --git a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/OIDCBuilder.java b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/OIDCBuilder.java similarity index 89% rename from fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/OIDCBuilder.java rename to fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/OIDCBuilder.java index f4bd17fde..c10290475 100644 --- a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/OIDCBuilder.java +++ b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/OIDCBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,17 +13,17 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.fluent.spec; - -import io.serverlessworkflow.api.types.AuthenticationPolicy; -import io.serverlessworkflow.api.types.OAuth2AuthenticationData; -import io.serverlessworkflow.api.types.OAuth2AuthenticationDataClient; -import io.serverlessworkflow.api.types.OAuth2ConnectAuthenticationProperties; -import io.serverlessworkflow.api.types.OAuth2TokenDefinition; -import io.serverlessworkflow.api.types.OAuth2TokenRequest; -import io.serverlessworkflow.api.types.SecretBasedAuthenticationPolicy; +package org.openworkflow.sdk.fluent.spec; + import java.util.List; import java.util.function.Consumer; +import org.openworkflow.sdk.api.types.AuthenticationPolicy; +import org.openworkflow.sdk.api.types.OAuth2AuthenticationData; +import org.openworkflow.sdk.api.types.OAuth2AuthenticationDataClient; +import org.openworkflow.sdk.api.types.OAuth2ConnectAuthenticationProperties; +import org.openworkflow.sdk.api.types.OAuth2TokenDefinition; +import org.openworkflow.sdk.api.types.OAuth2TokenRequest; +import org.openworkflow.sdk.api.types.SecretBasedAuthenticationPolicy; public abstract class OIDCBuilder { protected final OAuth2ConnectAuthenticationProperties authenticationData; diff --git a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/OpenIdConnectAuthenticationPolicyBuilder.java b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/OpenIdConnectAuthenticationPolicyBuilder.java similarity index 81% rename from fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/OpenIdConnectAuthenticationPolicyBuilder.java rename to fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/OpenIdConnectAuthenticationPolicyBuilder.java index b52710064..5a531344c 100644 --- a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/OpenIdConnectAuthenticationPolicyBuilder.java +++ b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/OpenIdConnectAuthenticationPolicyBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,10 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.fluent.spec; +package org.openworkflow.sdk.fluent.spec; -import io.serverlessworkflow.api.types.OpenIdConnectAuthenticationPolicy; -import io.serverlessworkflow.api.types.OpenIdConnectAuthenticationPolicyConfiguration; +import org.openworkflow.sdk.api.types.OpenIdConnectAuthenticationPolicy; +import org.openworkflow.sdk.api.types.OpenIdConnectAuthenticationPolicyConfiguration; public final class OpenIdConnectAuthenticationPolicyBuilder extends OIDCBuilder { diff --git a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/OutputBuilder.java b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/OutputBuilder.java similarity index 77% rename from fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/OutputBuilder.java rename to fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/OutputBuilder.java index 587911725..cee274593 100644 --- a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/OutputBuilder.java +++ b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/OutputBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,15 +13,15 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.fluent.spec; +package org.openworkflow.sdk.fluent.spec; -import io.serverlessworkflow.api.types.Endpoint; -import io.serverlessworkflow.api.types.ExternalResource; -import io.serverlessworkflow.api.types.Output; -import io.serverlessworkflow.api.types.OutputAs; -import io.serverlessworkflow.api.types.SchemaExternal; -import io.serverlessworkflow.api.types.SchemaInline; -import io.serverlessworkflow.api.types.SchemaUnion; +import org.openworkflow.sdk.api.types.Endpoint; +import org.openworkflow.sdk.api.types.ExternalResource; +import org.openworkflow.sdk.api.types.Output; +import org.openworkflow.sdk.api.types.OutputAs; +import org.openworkflow.sdk.api.types.SchemaExternal; +import org.openworkflow.sdk.api.types.SchemaInline; +import org.openworkflow.sdk.api.types.SchemaUnion; public class OutputBuilder { diff --git a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/RaiseTaskBuilder.java b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/RaiseTaskBuilder.java similarity index 86% rename from fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/RaiseTaskBuilder.java rename to fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/RaiseTaskBuilder.java index 781a07e7d..4381318f4 100644 --- a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/RaiseTaskBuilder.java +++ b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/RaiseTaskBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.fluent.spec; +package org.openworkflow.sdk.fluent.spec; public class RaiseTaskBuilder extends BaseRaiseTaskBuilder { diff --git a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/ReferenceableAuthenticationPolicyBuilder.java b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/ReferenceableAuthenticationPolicyBuilder.java similarity index 91% rename from fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/ReferenceableAuthenticationPolicyBuilder.java rename to fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/ReferenceableAuthenticationPolicyBuilder.java index 20f573f24..246359306 100644 --- a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/ReferenceableAuthenticationPolicyBuilder.java +++ b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/ReferenceableAuthenticationPolicyBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,12 +13,12 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.fluent.spec; +package org.openworkflow.sdk.fluent.spec; -import io.serverlessworkflow.api.types.AuthenticationPolicyReference; -import io.serverlessworkflow.api.types.AuthenticationPolicyUnion; -import io.serverlessworkflow.api.types.ReferenceableAuthenticationPolicy; import java.util.function.Consumer; +import org.openworkflow.sdk.api.types.AuthenticationPolicyReference; +import org.openworkflow.sdk.api.types.AuthenticationPolicyUnion; +import org.openworkflow.sdk.api.types.ReferenceableAuthenticationPolicy; public class ReferenceableAuthenticationPolicyBuilder { private AuthenticationPolicyUnion authenticationPolicy; diff --git a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/ScheduleBuilder.java b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/ScheduleBuilder.java similarity index 95% rename from fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/ScheduleBuilder.java rename to fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/ScheduleBuilder.java index 8f922c380..64a25f3af 100644 --- a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/ScheduleBuilder.java +++ b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/ScheduleBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,11 +13,11 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.fluent.spec; +package org.openworkflow.sdk.fluent.spec; -import io.serverlessworkflow.api.types.Schedule; -import io.serverlessworkflow.api.types.TimeoutAfter; import java.util.function.Consumer; +import org.openworkflow.sdk.api.types.Schedule; +import org.openworkflow.sdk.api.types.TimeoutAfter; public class ScheduleBuilder { diff --git a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/SetTaskBuilder.java b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/SetTaskBuilder.java similarity index 83% rename from fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/SetTaskBuilder.java rename to fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/SetTaskBuilder.java index 0ce11ec4a..17c5f9c49 100644 --- a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/SetTaskBuilder.java +++ b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/SetTaskBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,11 +13,11 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.fluent.spec; +package org.openworkflow.sdk.fluent.spec; -import io.serverlessworkflow.api.types.Set; -import io.serverlessworkflow.api.types.SetTask; -import io.serverlessworkflow.api.types.SetTaskConfiguration; +import org.openworkflow.sdk.api.types.Set; +import org.openworkflow.sdk.api.types.SetTask; +import org.openworkflow.sdk.api.types.SetTaskConfiguration; public class SetTaskBuilder extends TaskBaseBuilder { diff --git a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/SubscriptionIteratorBuilder.java b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/SubscriptionIteratorBuilder.java similarity index 90% rename from fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/SubscriptionIteratorBuilder.java rename to fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/SubscriptionIteratorBuilder.java index b57ef3c0b..908a44753 100644 --- a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/SubscriptionIteratorBuilder.java +++ b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/SubscriptionIteratorBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,14 +13,14 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.fluent.spec; +package org.openworkflow.sdk.fluent.spec; -import io.serverlessworkflow.api.types.SubscriptionIterator; -import io.serverlessworkflow.api.types.TaskItem; -import io.serverlessworkflow.fluent.spec.spi.SubscriptionIteratorFluent; import java.util.ArrayList; import java.util.List; import java.util.function.Consumer; +import org.openworkflow.sdk.api.types.SubscriptionIterator; +import org.openworkflow.sdk.api.types.TaskItem; +import org.openworkflow.sdk.fluent.spec.spi.SubscriptionIteratorFluent; public class SubscriptionIteratorBuilder> implements SubscriptionIteratorFluent, T> { diff --git a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/SwitchTaskBuilder.java b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/SwitchTaskBuilder.java similarity index 85% rename from fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/SwitchTaskBuilder.java rename to fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/SwitchTaskBuilder.java index 3db8c7a4b..e267ee966 100644 --- a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/SwitchTaskBuilder.java +++ b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/SwitchTaskBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,14 +13,14 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.fluent.spec; +package org.openworkflow.sdk.fluent.spec; -import io.serverlessworkflow.api.types.SwitchItem; -import io.serverlessworkflow.api.types.SwitchTask; -import io.serverlessworkflow.fluent.spec.spi.SwitchTaskFluent; import java.util.ArrayList; import java.util.List; import java.util.function.Consumer; +import org.openworkflow.sdk.api.types.SwitchItem; +import org.openworkflow.sdk.api.types.SwitchTask; +import org.openworkflow.sdk.fluent.spec.spi.SwitchTaskFluent; public class SwitchTaskBuilder extends TaskBaseBuilder implements SwitchTaskFluent { diff --git a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/TaskBaseBuilder.java b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/TaskBaseBuilder.java similarity index 80% rename from fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/TaskBaseBuilder.java rename to fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/TaskBaseBuilder.java index d77a837c7..201677aa9 100644 --- a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/TaskBaseBuilder.java +++ b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/TaskBaseBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,20 +13,20 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.fluent.spec; - -import io.serverlessworkflow.api.types.Export; -import io.serverlessworkflow.api.types.FlowDirective; -import io.serverlessworkflow.api.types.FlowDirectiveEnum; -import io.serverlessworkflow.api.types.Input; -import io.serverlessworkflow.api.types.Output; -import io.serverlessworkflow.api.types.TaskBase; -import io.serverlessworkflow.api.types.TaskTimeout; -import io.serverlessworkflow.api.types.Timeout; -import io.serverlessworkflow.api.types.TimeoutAfter; -import io.serverlessworkflow.fluent.spec.spi.OutputFluent; -import io.serverlessworkflow.fluent.spec.spi.TaskTransformationHandlers; +package org.openworkflow.sdk.fluent.spec; + import java.util.function.Consumer; +import org.openworkflow.sdk.api.types.Export; +import org.openworkflow.sdk.api.types.FlowDirective; +import org.openworkflow.sdk.api.types.FlowDirectiveEnum; +import org.openworkflow.sdk.api.types.Input; +import org.openworkflow.sdk.api.types.Output; +import org.openworkflow.sdk.api.types.TaskBase; +import org.openworkflow.sdk.api.types.TaskTimeout; +import org.openworkflow.sdk.api.types.Timeout; +import org.openworkflow.sdk.api.types.TimeoutAfter; +import org.openworkflow.sdk.fluent.spec.spi.OutputFluent; +import org.openworkflow.sdk.fluent.spec.spi.TaskTransformationHandlers; public abstract class TaskBaseBuilder> implements TaskTransformationHandlers, OutputFluent { @@ -65,7 +65,7 @@ public void setOutput(Output output) { * * @param expression jq expression to evaluate * @see DSL + * href="https://github.com/open-workflow-specification/specification/blob/main/dsl-reference.md#task">DSL * Reference - Task */ public T when(String expression) { @@ -131,7 +131,7 @@ public T timeout(Consumer timeoutConsumer) { * * @param metadataConsumer consumer used to populate the task metadata * @see DSL + * href="https://github.com/open-workflow-specification/specification/blob/main/dsl-reference.md#task">DSL * Reference - Task */ public T metadata(Consumer metadataConsumer) { diff --git a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/TaskItemListBuilder.java b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/TaskItemListBuilder.java similarity index 94% rename from fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/TaskItemListBuilder.java rename to fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/TaskItemListBuilder.java index d227718f3..90d52ef43 100644 --- a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/TaskItemListBuilder.java +++ b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/TaskItemListBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,15 +13,15 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.fluent.spec; +package org.openworkflow.sdk.fluent.spec; -import io.serverlessworkflow.api.types.CallTask; -import io.serverlessworkflow.api.types.Task; -import io.serverlessworkflow.api.types.TaskItem; -import io.serverlessworkflow.fluent.spec.configurers.CallGrpcConfigurer; -import io.serverlessworkflow.fluent.spec.spi.DoFluent; import java.util.List; import java.util.function.Consumer; +import org.openworkflow.sdk.api.types.CallTask; +import org.openworkflow.sdk.api.types.Task; +import org.openworkflow.sdk.api.types.TaskItem; +import org.openworkflow.sdk.fluent.spec.configurers.CallGrpcConfigurer; +import org.openworkflow.sdk.fluent.spec.spi.DoFluent; public class TaskItemListBuilder extends BaseTaskItemListBuilder implements DoFluent { diff --git a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/TaskMetadataBuilder.java b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/TaskMetadataBuilder.java similarity index 90% rename from fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/TaskMetadataBuilder.java rename to fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/TaskMetadataBuilder.java index b55bde903..cbc0c2f11 100644 --- a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/TaskMetadataBuilder.java +++ b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/TaskMetadataBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,9 +13,9 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.fluent.spec; +package org.openworkflow.sdk.fluent.spec; -import io.serverlessworkflow.api.types.TaskMetadata; +import org.openworkflow.sdk.api.types.TaskMetadata; /** * Fluent builder for {@link TaskMetadata}, which holds additional information about a task (for diff --git a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/TimeoutBuilder.java b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/TimeoutBuilder.java similarity index 88% rename from fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/TimeoutBuilder.java rename to fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/TimeoutBuilder.java index 7af72ea9d..5499b082a 100644 --- a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/TimeoutBuilder.java +++ b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/TimeoutBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,11 +13,11 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.fluent.spec; +package org.openworkflow.sdk.fluent.spec; -import io.serverlessworkflow.api.types.Timeout; -import io.serverlessworkflow.api.types.TimeoutAfter; import java.util.function.Consumer; +import org.openworkflow.sdk.api.types.Timeout; +import org.openworkflow.sdk.api.types.TimeoutAfter; public class TimeoutBuilder { diff --git a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/TryTaskBuilder.java b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/TryTaskBuilder.java similarity index 87% rename from fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/TryTaskBuilder.java rename to fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/TryTaskBuilder.java index 3797d7c3b..2e3bba531 100644 --- a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/TryTaskBuilder.java +++ b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/TryTaskBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.fluent.spec; +package org.openworkflow.sdk.fluent.spec; public class TryTaskBuilder> extends BaseTryTaskBuilder, T> { diff --git a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/UriTemplateBuilder.java b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/UriTemplateBuilder.java similarity index 83% rename from fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/UriTemplateBuilder.java rename to fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/UriTemplateBuilder.java index 5fb74102c..74ce034c9 100644 --- a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/UriTemplateBuilder.java +++ b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/UriTemplateBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,11 +13,11 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.fluent.spec; +package org.openworkflow.sdk.fluent.spec; -import io.serverlessworkflow.api.types.UriTemplate; import java.net.URI; import java.net.URISyntaxException; +import org.openworkflow.sdk.api.types.UriTemplate; public final class UriTemplateBuilder { diff --git a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/UseAuthenticationsBuilder.java b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/UseAuthenticationsBuilder.java similarity index 88% rename from fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/UseAuthenticationsBuilder.java rename to fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/UseAuthenticationsBuilder.java index a0fe3613a..730af0d03 100644 --- a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/UseAuthenticationsBuilder.java +++ b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/UseAuthenticationsBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,13 +13,13 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.fluent.spec; +package org.openworkflow.sdk.fluent.spec; -import io.serverlessworkflow.api.types.OAuth2AuthenticationData; -import io.serverlessworkflow.api.types.UseAuthentications; -import io.serverlessworkflow.fluent.spec.OAuth2AuthenticationPolicyBuilder.OAuth2AuthenticationPropertiesEndpointsBuilder; -import io.serverlessworkflow.fluent.spec.dsl.DSL; import java.util.function.Consumer; +import org.openworkflow.sdk.api.types.OAuth2AuthenticationData; +import org.openworkflow.sdk.api.types.UseAuthentications; +import org.openworkflow.sdk.fluent.spec.OAuth2AuthenticationPolicyBuilder.OAuth2AuthenticationPropertiesEndpointsBuilder; +import org.openworkflow.sdk.fluent.spec.dsl.DSL; public class UseAuthenticationsBuilder { diff --git a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/UseBuilder.java b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/UseBuilder.java similarity index 87% rename from fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/UseBuilder.java rename to fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/UseBuilder.java index c6c1d9970..7a08c46bf 100644 --- a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/UseBuilder.java +++ b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/UseBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,25 +13,25 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.fluent.spec; - -import io.serverlessworkflow.api.types.Error; -import io.serverlessworkflow.api.types.ErrorDetails; -import io.serverlessworkflow.api.types.ErrorTitle; -import io.serverlessworkflow.api.types.ErrorType; -import io.serverlessworkflow.api.types.RetryPolicy; -import io.serverlessworkflow.api.types.UriTemplate; -import io.serverlessworkflow.api.types.Use; -import io.serverlessworkflow.api.types.UseAuthentications; -import io.serverlessworkflow.api.types.UseErrors; -import io.serverlessworkflow.api.types.UseRetries; -import io.serverlessworkflow.fluent.spec.BaseTryTaskBuilder.RetryPolicyBuilder; +package org.openworkflow.sdk.fluent.spec; + import java.net.URI; import java.net.URISyntaxException; import java.util.LinkedHashMap; import java.util.List; import java.util.Map; import java.util.function.Consumer; +import org.openworkflow.sdk.api.types.Error; +import org.openworkflow.sdk.api.types.ErrorDetails; +import org.openworkflow.sdk.api.types.ErrorTitle; +import org.openworkflow.sdk.api.types.ErrorType; +import org.openworkflow.sdk.api.types.RetryPolicy; +import org.openworkflow.sdk.api.types.UriTemplate; +import org.openworkflow.sdk.api.types.Use; +import org.openworkflow.sdk.api.types.UseAuthentications; +import org.openworkflow.sdk.api.types.UseErrors; +import org.openworkflow.sdk.api.types.UseRetries; +import org.openworkflow.sdk.fluent.spec.BaseTryTaskBuilder.RetryPolicyBuilder; public class UseBuilder { diff --git a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/WaitTaskBuilder.java b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/WaitTaskBuilder.java similarity index 89% rename from fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/WaitTaskBuilder.java rename to fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/WaitTaskBuilder.java index 6964085d3..865527cd6 100644 --- a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/WaitTaskBuilder.java +++ b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/WaitTaskBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,14 +13,14 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.fluent.spec; +package org.openworkflow.sdk.fluent.spec; -import io.serverlessworkflow.api.types.DurationInline; -import io.serverlessworkflow.api.types.TimeoutAfter; -import io.serverlessworkflow.api.types.WaitTask; import java.time.Duration; import java.util.Objects; import java.util.function.Consumer; +import org.openworkflow.sdk.api.types.DurationInline; +import org.openworkflow.sdk.api.types.TimeoutAfter; +import org.openworkflow.sdk.api.types.WaitTask; public class WaitTaskBuilder extends TaskBaseBuilder { diff --git a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/WorkflowBuilder.java b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/WorkflowBuilder.java similarity index 86% rename from fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/WorkflowBuilder.java rename to fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/WorkflowBuilder.java index e8151a093..9123bb7ee 100644 --- a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/WorkflowBuilder.java +++ b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/WorkflowBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,10 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.fluent.spec; +package org.openworkflow.sdk.fluent.spec; -import static io.serverlessworkflow.types.Defaults.DEFAULT_NAMESPACE; -import static io.serverlessworkflow.types.Defaults.DEFAULT_VERSION; +import static org.openworkflow.sdk.types.Defaults.DEFAULT_NAMESPACE; +import static org.openworkflow.sdk.types.Defaults.DEFAULT_VERSION; import java.util.UUID; diff --git a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/WorkflowTaskBuilder.java b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/WorkflowTaskBuilder.java similarity index 77% rename from fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/WorkflowTaskBuilder.java rename to fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/WorkflowTaskBuilder.java index adef4214f..346b36eab 100644 --- a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/WorkflowTaskBuilder.java +++ b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/WorkflowTaskBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,13 +13,13 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.fluent.spec; +package org.openworkflow.sdk.fluent.spec; -import io.serverlessworkflow.api.types.RunTask; -import io.serverlessworkflow.api.types.RunTaskConfigurationUnion; -import io.serverlessworkflow.api.types.RunWorkflow; -import io.serverlessworkflow.api.types.SubflowConfiguration; -import io.serverlessworkflow.fluent.spec.spi.WorkflowTaskFluent; +import org.openworkflow.sdk.api.types.RunTask; +import org.openworkflow.sdk.api.types.RunTaskConfigurationUnion; +import org.openworkflow.sdk.api.types.RunWorkflow; +import org.openworkflow.sdk.api.types.SubflowConfiguration; +import org.openworkflow.sdk.fluent.spec.spi.WorkflowTaskFluent; public class WorkflowTaskBuilder extends TaskBaseBuilder implements WorkflowTaskFluent { diff --git a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/configurers/AuthenticationConfigurer.java b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/configurers/AuthenticationConfigurer.java similarity index 77% rename from fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/configurers/AuthenticationConfigurer.java rename to fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/configurers/AuthenticationConfigurer.java index cdd481ceb..b9b375694 100644 --- a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/configurers/AuthenticationConfigurer.java +++ b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/configurers/AuthenticationConfigurer.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,10 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.fluent.spec.configurers; +package org.openworkflow.sdk.fluent.spec.configurers; -import io.serverlessworkflow.fluent.spec.ReferenceableAuthenticationPolicyBuilder; import java.util.function.Consumer; +import org.openworkflow.sdk.fluent.spec.ReferenceableAuthenticationPolicyBuilder; @FunctionalInterface public interface AuthenticationConfigurer diff --git a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/configurers/CallGrpcConfigurer.java b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/configurers/CallGrpcConfigurer.java similarity index 78% rename from fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/configurers/CallGrpcConfigurer.java rename to fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/configurers/CallGrpcConfigurer.java index 130c3d643..3a04c67f5 100644 --- a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/configurers/CallGrpcConfigurer.java +++ b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/configurers/CallGrpcConfigurer.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,10 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.fluent.spec.configurers; +package org.openworkflow.sdk.fluent.spec.configurers; -import io.serverlessworkflow.fluent.spec.CallGrpcTaskBuilder; import java.util.function.Consumer; +import org.openworkflow.sdk.fluent.spec.CallGrpcTaskBuilder; @FunctionalInterface public interface CallGrpcConfigurer extends Consumer {} diff --git a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/configurers/CallHttpConfigurer.java b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/configurers/CallHttpConfigurer.java similarity index 78% rename from fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/configurers/CallHttpConfigurer.java rename to fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/configurers/CallHttpConfigurer.java index d1397d053..8c569e790 100644 --- a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/configurers/CallHttpConfigurer.java +++ b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/configurers/CallHttpConfigurer.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,10 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.fluent.spec.configurers; +package org.openworkflow.sdk.fluent.spec.configurers; -import io.serverlessworkflow.fluent.spec.CallHttpTaskBuilder; import java.util.function.Consumer; +import org.openworkflow.sdk.fluent.spec.CallHttpTaskBuilder; @FunctionalInterface public interface CallHttpConfigurer extends Consumer {} diff --git a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/configurers/CallOpenAPIConfigurer.java b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/configurers/CallOpenAPIConfigurer.java similarity index 78% rename from fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/configurers/CallOpenAPIConfigurer.java rename to fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/configurers/CallOpenAPIConfigurer.java index 730b3ca1d..9556b0ad0 100644 --- a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/configurers/CallOpenAPIConfigurer.java +++ b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/configurers/CallOpenAPIConfigurer.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,10 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.fluent.spec.configurers; +package org.openworkflow.sdk.fluent.spec.configurers; -import io.serverlessworkflow.fluent.spec.CallOpenAPITaskBuilder; import java.util.function.Consumer; +import org.openworkflow.sdk.fluent.spec.CallOpenAPITaskBuilder; @FunctionalInterface public interface CallOpenAPIConfigurer extends Consumer {} diff --git a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/configurers/EmitConfigurer.java b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/configurers/EmitConfigurer.java similarity index 78% rename from fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/configurers/EmitConfigurer.java rename to fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/configurers/EmitConfigurer.java index 4a969387a..9d4348ea8 100644 --- a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/configurers/EmitConfigurer.java +++ b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/configurers/EmitConfigurer.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,10 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.fluent.spec.configurers; +package org.openworkflow.sdk.fluent.spec.configurers; -import io.serverlessworkflow.fluent.spec.EmitTaskBuilder; import java.util.function.Consumer; +import org.openworkflow.sdk.fluent.spec.EmitTaskBuilder; @FunctionalInterface public interface EmitConfigurer extends Consumer {} diff --git a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/configurers/EventPropertiesConfigurer.java b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/configurers/EventPropertiesConfigurer.java similarity index 78% rename from fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/configurers/EventPropertiesConfigurer.java rename to fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/configurers/EventPropertiesConfigurer.java index 4e24c0ea6..1a710b8b7 100644 --- a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/configurers/EventPropertiesConfigurer.java +++ b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/configurers/EventPropertiesConfigurer.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,10 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.fluent.spec.configurers; +package org.openworkflow.sdk.fluent.spec.configurers; -import io.serverlessworkflow.fluent.spec.EventPropertiesBuilder; import java.util.function.Consumer; +import org.openworkflow.sdk.fluent.spec.EventPropertiesBuilder; @FunctionalInterface public interface EventPropertiesConfigurer extends Consumer {} diff --git a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/configurers/ForEachConfigurer.java b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/configurers/ForEachConfigurer.java similarity index 74% rename from fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/configurers/ForEachConfigurer.java rename to fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/configurers/ForEachConfigurer.java index bec8ba3c3..30915c7c0 100644 --- a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/configurers/ForEachConfigurer.java +++ b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/configurers/ForEachConfigurer.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,11 +13,11 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.fluent.spec.configurers; +package org.openworkflow.sdk.fluent.spec.configurers; -import io.serverlessworkflow.fluent.spec.ForEachTaskBuilder; -import io.serverlessworkflow.fluent.spec.TaskItemListBuilder; import java.util.function.Consumer; +import org.openworkflow.sdk.fluent.spec.ForEachTaskBuilder; +import org.openworkflow.sdk.fluent.spec.TaskItemListBuilder; @FunctionalInterface public interface ForEachConfigurer extends Consumer> {} diff --git a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/configurers/ListenConfigurer.java b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/configurers/ListenConfigurer.java similarity index 78% rename from fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/configurers/ListenConfigurer.java rename to fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/configurers/ListenConfigurer.java index 8cefae7f4..46e6b82b4 100644 --- a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/configurers/ListenConfigurer.java +++ b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/configurers/ListenConfigurer.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,10 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.fluent.spec.configurers; +package org.openworkflow.sdk.fluent.spec.configurers; -import io.serverlessworkflow.fluent.spec.ListenTaskBuilder; import java.util.function.Consumer; +import org.openworkflow.sdk.fluent.spec.ListenTaskBuilder; @FunctionalInterface public interface ListenConfigurer extends Consumer {} diff --git a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/configurers/RaiseConfigurer.java b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/configurers/RaiseConfigurer.java similarity index 78% rename from fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/configurers/RaiseConfigurer.java rename to fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/configurers/RaiseConfigurer.java index 5c9897d7d..32af6fabb 100644 --- a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/configurers/RaiseConfigurer.java +++ b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/configurers/RaiseConfigurer.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,10 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.fluent.spec.configurers; +package org.openworkflow.sdk.fluent.spec.configurers; -import io.serverlessworkflow.fluent.spec.RaiseTaskBuilder; import java.util.function.Consumer; +import org.openworkflow.sdk.fluent.spec.RaiseTaskBuilder; @FunctionalInterface public interface RaiseConfigurer extends Consumer {} diff --git a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/configurers/RetryConfigurer.java b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/configurers/RetryConfigurer.java similarity index 78% rename from fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/configurers/RetryConfigurer.java rename to fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/configurers/RetryConfigurer.java index 2de6920e7..54f7d248c 100644 --- a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/configurers/RetryConfigurer.java +++ b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/configurers/RetryConfigurer.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,9 +13,9 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.fluent.spec.configurers; +package org.openworkflow.sdk.fluent.spec.configurers; -import io.serverlessworkflow.fluent.spec.TryTaskBuilder; import java.util.function.Consumer; +import org.openworkflow.sdk.fluent.spec.TryTaskBuilder; public interface RetryConfigurer extends Consumer {} diff --git a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/configurers/SetConfigurer.java b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/configurers/SetConfigurer.java similarity index 78% rename from fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/configurers/SetConfigurer.java rename to fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/configurers/SetConfigurer.java index e6a939f29..7c0d6feef 100644 --- a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/configurers/SetConfigurer.java +++ b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/configurers/SetConfigurer.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,10 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.fluent.spec.configurers; +package org.openworkflow.sdk.fluent.spec.configurers; -import io.serverlessworkflow.fluent.spec.SetTaskBuilder; import java.util.function.Consumer; +import org.openworkflow.sdk.fluent.spec.SetTaskBuilder; @FunctionalInterface public interface SetConfigurer extends Consumer {} diff --git a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/configurers/SwitchConfigurer.java b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/configurers/SwitchConfigurer.java similarity index 78% rename from fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/configurers/SwitchConfigurer.java rename to fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/configurers/SwitchConfigurer.java index 54778888b..a817c182f 100644 --- a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/configurers/SwitchConfigurer.java +++ b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/configurers/SwitchConfigurer.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,10 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.fluent.spec.configurers; +package org.openworkflow.sdk.fluent.spec.configurers; -import io.serverlessworkflow.fluent.spec.SwitchTaskBuilder; import java.util.function.Consumer; +import org.openworkflow.sdk.fluent.spec.SwitchTaskBuilder; @FunctionalInterface public interface SwitchConfigurer extends Consumer {} diff --git a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/configurers/TasksConfigurer.java b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/configurers/TasksConfigurer.java similarity index 78% rename from fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/configurers/TasksConfigurer.java rename to fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/configurers/TasksConfigurer.java index 276019fc5..84aa70446 100644 --- a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/configurers/TasksConfigurer.java +++ b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/configurers/TasksConfigurer.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,10 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.fluent.spec.configurers; +package org.openworkflow.sdk.fluent.spec.configurers; -import io.serverlessworkflow.fluent.spec.TaskItemListBuilder; import java.util.function.Consumer; +import org.openworkflow.sdk.fluent.spec.TaskItemListBuilder; @FunctionalInterface public interface TasksConfigurer extends Consumer {} diff --git a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/configurers/TryCatchConfigurer.java b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/configurers/TryCatchConfigurer.java similarity index 74% rename from fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/configurers/TryCatchConfigurer.java rename to fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/configurers/TryCatchConfigurer.java index e256cc30d..ef56d7574 100644 --- a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/configurers/TryCatchConfigurer.java +++ b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/configurers/TryCatchConfigurer.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,11 +13,11 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.fluent.spec.configurers; +package org.openworkflow.sdk.fluent.spec.configurers; -import io.serverlessworkflow.fluent.spec.TaskItemListBuilder; -import io.serverlessworkflow.fluent.spec.TryTaskBuilder; import java.util.function.Consumer; +import org.openworkflow.sdk.fluent.spec.TaskItemListBuilder; +import org.openworkflow.sdk.fluent.spec.TryTaskBuilder; public interface TryCatchConfigurer extends Consumer> {} diff --git a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/configurers/TryConfigurer.java b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/configurers/TryConfigurer.java similarity index 73% rename from fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/configurers/TryConfigurer.java rename to fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/configurers/TryConfigurer.java index 59b5f2899..dc3c56bcd 100644 --- a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/configurers/TryConfigurer.java +++ b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/configurers/TryConfigurer.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,10 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.fluent.spec.configurers; +package org.openworkflow.sdk.fluent.spec.configurers; -import io.serverlessworkflow.fluent.spec.TaskItemListBuilder; -import io.serverlessworkflow.fluent.spec.TryTaskBuilder; import java.util.function.Consumer; +import org.openworkflow.sdk.fluent.spec.TaskItemListBuilder; +import org.openworkflow.sdk.fluent.spec.TryTaskBuilder; public interface TryConfigurer extends Consumer> {} diff --git a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/configurers/UseConfigurer.java b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/configurers/UseConfigurer.java similarity index 79% rename from fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/configurers/UseConfigurer.java rename to fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/configurers/UseConfigurer.java index 5fe1781d3..7d1e1b6ad 100644 --- a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/configurers/UseConfigurer.java +++ b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/configurers/UseConfigurer.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,10 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.fluent.spec.configurers; +package org.openworkflow.sdk.fluent.spec.configurers; -import io.serverlessworkflow.fluent.spec.UseBuilder; import java.util.function.Consumer; +import org.openworkflow.sdk.fluent.spec.UseBuilder; @FunctionalInterface public interface UseConfigurer extends Consumer {} diff --git a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/configurers/WorkflowConfigurer.java b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/configurers/WorkflowConfigurer.java similarity index 78% rename from fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/configurers/WorkflowConfigurer.java rename to fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/configurers/WorkflowConfigurer.java index 087b78d73..2ba80b746 100644 --- a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/configurers/WorkflowConfigurer.java +++ b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/configurers/WorkflowConfigurer.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,10 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.fluent.spec.configurers; +package org.openworkflow.sdk.fluent.spec.configurers; -import io.serverlessworkflow.fluent.spec.WorkflowTaskBuilder; import java.util.function.Consumer; +import org.openworkflow.sdk.fluent.spec.WorkflowTaskBuilder; @FunctionalInterface public interface WorkflowConfigurer extends Consumer {} diff --git a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/dsl/AbstractEventFilterSpec.java b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/dsl/AbstractEventFilterSpec.java similarity index 84% rename from fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/dsl/AbstractEventFilterSpec.java rename to fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/dsl/AbstractEventFilterSpec.java index 48a82fe8f..df23b92d0 100644 --- a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/dsl/AbstractEventFilterSpec.java +++ b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/dsl/AbstractEventFilterSpec.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,14 +13,14 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.fluent.spec.dsl; +package org.openworkflow.sdk.fluent.spec.dsl; -import io.serverlessworkflow.fluent.spec.AbstractEventFilterBuilder; -import io.serverlessworkflow.fluent.spec.AbstractEventPropertiesBuilder; -import io.serverlessworkflow.fluent.spec.AbstractListenTaskBuilder; import java.util.ArrayList; import java.util.List; import java.util.function.Consumer; +import org.openworkflow.sdk.fluent.spec.AbstractEventFilterBuilder; +import org.openworkflow.sdk.fluent.spec.AbstractEventPropertiesBuilder; +import org.openworkflow.sdk.fluent.spec.AbstractListenTaskBuilder; public abstract class AbstractEventFilterSpec< SELF, diff --git a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/dsl/BaseCallHttpSpec.java b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/dsl/BaseCallHttpSpec.java similarity index 94% rename from fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/dsl/BaseCallHttpSpec.java rename to fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/dsl/BaseCallHttpSpec.java index 8ab237a1f..1b8758351 100644 --- a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/dsl/BaseCallHttpSpec.java +++ b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/dsl/BaseCallHttpSpec.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,14 +13,14 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.fluent.spec.dsl; +package org.openworkflow.sdk.fluent.spec.dsl; -import io.serverlessworkflow.fluent.spec.configurers.AuthenticationConfigurer; -import io.serverlessworkflow.fluent.spec.spi.CallHttpTaskFluent; import java.net.URI; import java.util.List; import java.util.Map; import java.util.function.Consumer; +import org.openworkflow.sdk.fluent.spec.configurers.AuthenticationConfigurer; +import org.openworkflow.sdk.fluent.spec.spi.CallHttpTaskFluent; public interface BaseCallHttpSpec> { diff --git a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/dsl/BaseListenSpec.java b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/dsl/BaseListenSpec.java similarity index 91% rename from fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/dsl/BaseListenSpec.java rename to fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/dsl/BaseListenSpec.java index f78cb58c1..31a4ec940 100644 --- a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/dsl/BaseListenSpec.java +++ b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/dsl/BaseListenSpec.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.fluent.spec.dsl; +package org.openworkflow.sdk.fluent.spec.dsl; import java.util.Objects; import java.util.function.Consumer; @@ -22,9 +22,9 @@ * Generic base for Listen specs. * *

Type params: SELF - fluent self type (the concrete spec) LISTEN_TASK - {@link - * io.serverlessworkflow.fluent.spec.ListenTaskBuilder} type LISTEN_TO - {@link - * io.serverlessworkflow.fluent.spec.ListenToBuilder} type EVENT_FILTER - {@link - * io.serverlessworkflow.fluent.spec.EventFilterBuilder} type + * org.openworkflow.sdk.fluent.spec.ListenTaskBuilder} type LISTEN_TO - {@link + * org.openworkflow.sdk.fluent.spec.ListenToBuilder} type EVENT_FILTER - {@link + * org.openworkflow.sdk.fluent.spec.EventFilterBuilder} type */ public abstract class BaseListenSpec { diff --git a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/dsl/CallGrpcSpec.java b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/dsl/CallGrpcSpec.java similarity index 83% rename from fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/dsl/CallGrpcSpec.java rename to fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/dsl/CallGrpcSpec.java index 836164683..ef6716c8b 100644 --- a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/dsl/CallGrpcSpec.java +++ b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/dsl/CallGrpcSpec.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,16 +13,16 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.fluent.spec.dsl; +package org.openworkflow.sdk.fluent.spec.dsl; -import io.serverlessworkflow.fluent.spec.CallGrpcTaskBuilder; -import io.serverlessworkflow.fluent.spec.configurers.AuthenticationConfigurer; -import io.serverlessworkflow.fluent.spec.configurers.CallGrpcConfigurer; -import io.serverlessworkflow.fluent.spec.spi.CallGrpcTaskFluent; import java.util.ArrayList; import java.util.List; import java.util.Map; import java.util.function.Consumer; +import org.openworkflow.sdk.fluent.spec.CallGrpcTaskBuilder; +import org.openworkflow.sdk.fluent.spec.configurers.AuthenticationConfigurer; +import org.openworkflow.sdk.fluent.spec.configurers.CallGrpcConfigurer; +import org.openworkflow.sdk.fluent.spec.spi.CallGrpcTaskFluent; public final class CallGrpcSpec implements CallGrpcConfigurer { diff --git a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/dsl/CallHttpSpec.java b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/dsl/CallHttpSpec.java similarity index 83% rename from fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/dsl/CallHttpSpec.java rename to fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/dsl/CallHttpSpec.java index b1fd5b59b..40fbd6ea8 100644 --- a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/dsl/CallHttpSpec.java +++ b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/dsl/CallHttpSpec.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,15 +13,15 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.fluent.spec.dsl; +package org.openworkflow.sdk.fluent.spec.dsl; -import io.serverlessworkflow.fluent.spec.CallHttpTaskBuilder; -import io.serverlessworkflow.fluent.spec.configurers.CallHttpConfigurer; -import io.serverlessworkflow.fluent.spec.spi.CallHttpTaskFluent; import java.util.ArrayList; import java.util.List; import java.util.Objects; import java.util.function.Consumer; +import org.openworkflow.sdk.fluent.spec.CallHttpTaskBuilder; +import org.openworkflow.sdk.fluent.spec.configurers.CallHttpConfigurer; +import org.openworkflow.sdk.fluent.spec.spi.CallHttpTaskFluent; public final class CallHttpSpec implements BaseCallHttpSpec, CallHttpConfigurer { diff --git a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/dsl/CallOpenAPISpec.java b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/dsl/CallOpenAPISpec.java similarity index 83% rename from fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/dsl/CallOpenAPISpec.java rename to fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/dsl/CallOpenAPISpec.java index 8da74f1c4..8def35416 100644 --- a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/dsl/CallOpenAPISpec.java +++ b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/dsl/CallOpenAPISpec.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,18 +13,18 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.fluent.spec.dsl; +package org.openworkflow.sdk.fluent.spec.dsl; -import io.serverlessworkflow.api.types.OpenAPIArguments; -import io.serverlessworkflow.fluent.spec.CallOpenAPITaskBuilder; -import io.serverlessworkflow.fluent.spec.configurers.AuthenticationConfigurer; -import io.serverlessworkflow.fluent.spec.configurers.CallOpenAPIConfigurer; -import io.serverlessworkflow.fluent.spec.spi.CallOpenAPITaskFluent; import java.net.URI; import java.util.ArrayList; import java.util.List; import java.util.Map; import java.util.function.Consumer; +import org.openworkflow.sdk.api.types.OpenAPIArguments; +import org.openworkflow.sdk.fluent.spec.CallOpenAPITaskBuilder; +import org.openworkflow.sdk.fluent.spec.configurers.AuthenticationConfigurer; +import org.openworkflow.sdk.fluent.spec.configurers.CallOpenAPIConfigurer; +import org.openworkflow.sdk.fluent.spec.spi.CallOpenAPITaskFluent; public final class CallOpenAPISpec implements CallOpenAPIConfigurer { diff --git a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/dsl/DSL.java b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/dsl/DSL.java similarity index 95% rename from fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/dsl/DSL.java rename to fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/dsl/DSL.java index c88f9a2d1..d0795dfb4 100644 --- a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/dsl/DSL.java +++ b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/dsl/DSL.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,40 +13,40 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.fluent.spec.dsl; - -import io.serverlessworkflow.api.types.OAuth2AuthenticationData; -import io.serverlessworkflow.fluent.spec.AbstractEventConsumptionStrategyBuilder; -import io.serverlessworkflow.fluent.spec.DoTaskBuilder; -import io.serverlessworkflow.fluent.spec.EmitTaskBuilder; -import io.serverlessworkflow.fluent.spec.EventFilterBuilder; -import io.serverlessworkflow.fluent.spec.ForkTaskBuilder; -import io.serverlessworkflow.fluent.spec.OAuth2AuthenticationPolicyBuilder; -import io.serverlessworkflow.fluent.spec.OAuth2AuthenticationPolicyBuilder.OAuth2AuthenticationPropertiesEndpointsBuilder; -import io.serverlessworkflow.fluent.spec.ScheduleBuilder; -import io.serverlessworkflow.fluent.spec.TaskItemListBuilder; -import io.serverlessworkflow.fluent.spec.TimeoutBuilder; -import io.serverlessworkflow.fluent.spec.TryTaskBuilder; -import io.serverlessworkflow.fluent.spec.configurers.AuthenticationConfigurer; -import io.serverlessworkflow.fluent.spec.configurers.CallGrpcConfigurer; -import io.serverlessworkflow.fluent.spec.configurers.CallHttpConfigurer; -import io.serverlessworkflow.fluent.spec.configurers.CallOpenAPIConfigurer; -import io.serverlessworkflow.fluent.spec.configurers.ForEachConfigurer; -import io.serverlessworkflow.fluent.spec.configurers.ListenConfigurer; -import io.serverlessworkflow.fluent.spec.configurers.RaiseConfigurer; -import io.serverlessworkflow.fluent.spec.configurers.RetryConfigurer; -import io.serverlessworkflow.fluent.spec.configurers.SetConfigurer; -import io.serverlessworkflow.fluent.spec.configurers.SwitchConfigurer; -import io.serverlessworkflow.fluent.spec.configurers.TasksConfigurer; -import io.serverlessworkflow.fluent.spec.configurers.TryCatchConfigurer; -import io.serverlessworkflow.fluent.spec.configurers.TryConfigurer; -import io.serverlessworkflow.fluent.spec.configurers.WorkflowConfigurer; -import io.serverlessworkflow.types.Errors; +package org.openworkflow.sdk.fluent.spec.dsl; + import java.net.URI; import java.time.Duration; import java.util.List; import java.util.Objects; import java.util.function.Consumer; +import org.openworkflow.sdk.api.types.OAuth2AuthenticationData; +import org.openworkflow.sdk.fluent.spec.AbstractEventConsumptionStrategyBuilder; +import org.openworkflow.sdk.fluent.spec.DoTaskBuilder; +import org.openworkflow.sdk.fluent.spec.EmitTaskBuilder; +import org.openworkflow.sdk.fluent.spec.EventFilterBuilder; +import org.openworkflow.sdk.fluent.spec.ForkTaskBuilder; +import org.openworkflow.sdk.fluent.spec.OAuth2AuthenticationPolicyBuilder; +import org.openworkflow.sdk.fluent.spec.OAuth2AuthenticationPolicyBuilder.OAuth2AuthenticationPropertiesEndpointsBuilder; +import org.openworkflow.sdk.fluent.spec.ScheduleBuilder; +import org.openworkflow.sdk.fluent.spec.TaskItemListBuilder; +import org.openworkflow.sdk.fluent.spec.TimeoutBuilder; +import org.openworkflow.sdk.fluent.spec.TryTaskBuilder; +import org.openworkflow.sdk.fluent.spec.configurers.AuthenticationConfigurer; +import org.openworkflow.sdk.fluent.spec.configurers.CallGrpcConfigurer; +import org.openworkflow.sdk.fluent.spec.configurers.CallHttpConfigurer; +import org.openworkflow.sdk.fluent.spec.configurers.CallOpenAPIConfigurer; +import org.openworkflow.sdk.fluent.spec.configurers.ForEachConfigurer; +import org.openworkflow.sdk.fluent.spec.configurers.ListenConfigurer; +import org.openworkflow.sdk.fluent.spec.configurers.RaiseConfigurer; +import org.openworkflow.sdk.fluent.spec.configurers.RetryConfigurer; +import org.openworkflow.sdk.fluent.spec.configurers.SetConfigurer; +import org.openworkflow.sdk.fluent.spec.configurers.SwitchConfigurer; +import org.openworkflow.sdk.fluent.spec.configurers.TasksConfigurer; +import org.openworkflow.sdk.fluent.spec.configurers.TryCatchConfigurer; +import org.openworkflow.sdk.fluent.spec.configurers.TryConfigurer; +import org.openworkflow.sdk.fluent.spec.configurers.WorkflowConfigurer; +import org.openworkflow.sdk.types.Errors; /** * High-level Java DSL shortcuts for building workflows. @@ -526,15 +526,15 @@ public static AuthenticationConfigurer oauth2( * *

This overload exposes the complete {@link OAuth2AuthenticationPolicyBuilder} so that every * field of the OAuth2 - * authentication section of the Serverless Workflow DSL can be configured: {@code authority}, + * href="https://github.com/open-workflow-specification/specification/blob/main/dsl-reference.md#oauth2-authentication">OAuth2 + * authentication section of the Open Workflow DSL can be configured: {@code authority}, * {@code grant}, {@code client}, {@code request} encoding, {@code issuers}, {@code scopes}, * {@code audiences}, {@code username}, {@code password}, {@code subject}, {@code actor} and * {@code endpoints} (token, revocation, introspection). * *

Because the OAuth2-only {@code endpoints(...)} method is declared on {@link * OAuth2AuthenticationPolicyBuilder} (not on the shared {@link - * io.serverlessworkflow.fluent.spec.OIDCBuilder}), call it first when chaining fluently: + * org.openworkflow.sdk.fluent.spec.OIDCBuilder}), call it first when chaining fluently: * *

{@code
    * oauth2(o -> o.endpoints(e -> e.token("/custom/token"))
@@ -1249,7 +1249,7 @@ public static ForEachConfigurer forEach(TasksConfigurer... steps) {
   }
 
   /**
-   * Recipe for {@link io.serverlessworkflow.api.types.ForkTask} where branches compete (first to
+   * Recipe for {@link org.openworkflow.sdk.api.types.ForkTask} where branches compete (first to
    * complete "wins").
    *
    * 

Configures {@code compete(true)} and sets the branches tasks list. @@ -1263,7 +1263,7 @@ public static Consumer branchesCompete(TasksConfigurer... steps } /** - * Recipe for {@link io.serverlessworkflow.api.types.ForkTask} where branches do not compete (all + * Recipe for {@link org.openworkflow.sdk.api.types.ForkTask} where branches do not compete (all * branches are executed). * *

Configures {@code compete(false)} and sets the branches tasks list. diff --git a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/dsl/EmitSpec.java b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/dsl/EmitSpec.java similarity index 74% rename from fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/dsl/EmitSpec.java rename to fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/dsl/EmitSpec.java index a4af29c5a..1303742c1 100644 --- a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/dsl/EmitSpec.java +++ b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/dsl/EmitSpec.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,11 +13,11 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.fluent.spec.dsl; +package org.openworkflow.sdk.fluent.spec.dsl; -import io.serverlessworkflow.fluent.spec.EmitTaskBuilder; -import io.serverlessworkflow.fluent.spec.EventPropertiesBuilder; -import io.serverlessworkflow.fluent.spec.configurers.EmitConfigurer; +import org.openworkflow.sdk.fluent.spec.EmitTaskBuilder; +import org.openworkflow.sdk.fluent.spec.EventPropertiesBuilder; +import org.openworkflow.sdk.fluent.spec.configurers.EmitConfigurer; public final class EmitSpec extends ExprEventEmitPropertiesSpec implements EmitConfigurer { diff --git a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/dsl/EventEmitPropertiesSpec.java b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/dsl/EventEmitPropertiesSpec.java similarity index 88% rename from fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/dsl/EventEmitPropertiesSpec.java rename to fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/dsl/EventEmitPropertiesSpec.java index 022a985b7..cc7f3a559 100644 --- a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/dsl/EventEmitPropertiesSpec.java +++ b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/dsl/EventEmitPropertiesSpec.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,12 +13,12 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.fluent.spec.dsl; +package org.openworkflow.sdk.fluent.spec.dsl; -import io.serverlessworkflow.fluent.spec.AbstractEventPropertiesBuilder; import java.time.Instant; import java.util.Date; import java.util.UUID; +import org.openworkflow.sdk.fluent.spec.AbstractEventPropertiesBuilder; /** Event properties handlers for emit tasks (setting attributes). */ public abstract class EventEmitPropertiesSpec< diff --git a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/dsl/EventFilterSpec.java b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/dsl/EventFilterSpec.java similarity index 75% rename from fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/dsl/EventFilterSpec.java rename to fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/dsl/EventFilterSpec.java index 2d61f830f..ee735b897 100644 --- a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/dsl/EventFilterSpec.java +++ b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/dsl/EventFilterSpec.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,10 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.fluent.spec.dsl; +package org.openworkflow.sdk.fluent.spec.dsl; -import io.serverlessworkflow.fluent.spec.EventFilterBuilder; -import io.serverlessworkflow.fluent.spec.EventPropertiesBuilder; +import org.openworkflow.sdk.fluent.spec.EventFilterBuilder; +import org.openworkflow.sdk.fluent.spec.EventPropertiesBuilder; public final class EventFilterSpec extends AbstractEventFilterSpec { diff --git a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/dsl/EventPropertiesSpec.java b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/dsl/EventPropertiesSpec.java similarity index 89% rename from fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/dsl/EventPropertiesSpec.java rename to fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/dsl/EventPropertiesSpec.java index ef80dc04c..e8e054368 100644 --- a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/dsl/EventPropertiesSpec.java +++ b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/dsl/EventPropertiesSpec.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,13 +13,13 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.fluent.spec.dsl; +package org.openworkflow.sdk.fluent.spec.dsl; -import io.serverlessworkflow.fluent.spec.AbstractEventPropertiesBuilder; import java.net.URI; import java.util.ArrayList; import java.util.List; import java.util.function.Consumer; +import org.openworkflow.sdk.fluent.spec.AbstractEventPropertiesBuilder; /** * Base class for defining events properties used either on filter (consume) use cases or emit diff --git a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/dsl/ExprEventEmitPropertiesSpec.java b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/dsl/ExprEventEmitPropertiesSpec.java similarity index 87% rename from fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/dsl/ExprEventEmitPropertiesSpec.java rename to fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/dsl/ExprEventEmitPropertiesSpec.java index 2fae54b39..7f330e352 100644 --- a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/dsl/ExprEventEmitPropertiesSpec.java +++ b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/dsl/ExprEventEmitPropertiesSpec.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,10 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.fluent.spec.dsl; +package org.openworkflow.sdk.fluent.spec.dsl; -import io.serverlessworkflow.fluent.spec.AbstractEventPropertiesBuilder; import java.util.Map; +import org.openworkflow.sdk.fluent.spec.AbstractEventPropertiesBuilder; public abstract class ExprEventEmitPropertiesSpec< SELF, EVENT_PROPS extends AbstractEventPropertiesBuilder> diff --git a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/dsl/ExprEventFilterSpec.java b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/dsl/ExprEventFilterSpec.java similarity index 85% rename from fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/dsl/ExprEventFilterSpec.java rename to fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/dsl/ExprEventFilterSpec.java index dbe0c4933..dd51feb52 100644 --- a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/dsl/ExprEventFilterSpec.java +++ b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/dsl/ExprEventFilterSpec.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,9 +13,9 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.fluent.spec.dsl; +package org.openworkflow.sdk.fluent.spec.dsl; -import io.serverlessworkflow.fluent.spec.AbstractEventPropertiesBuilder; +import org.openworkflow.sdk.fluent.spec.AbstractEventPropertiesBuilder; public abstract class ExprEventFilterSpec< SELF, EVENT_PROPS extends AbstractEventPropertiesBuilder> diff --git a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/dsl/ListenSpec.java b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/dsl/ListenSpec.java similarity index 75% rename from fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/dsl/ListenSpec.java rename to fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/dsl/ListenSpec.java index b26702b2f..255c590b7 100644 --- a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/dsl/ListenSpec.java +++ b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/dsl/ListenSpec.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,16 +13,16 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.fluent.spec.dsl; +package org.openworkflow.sdk.fluent.spec.dsl; -import io.serverlessworkflow.fluent.spec.AbstractEventConsumptionStrategyBuilder; -import io.serverlessworkflow.fluent.spec.AbstractListenTaskBuilder; -import io.serverlessworkflow.fluent.spec.EventFilterBuilder; -import io.serverlessworkflow.fluent.spec.ListenTaskBuilder; -import io.serverlessworkflow.fluent.spec.ListenToBuilder; -import io.serverlessworkflow.fluent.spec.configurers.ListenConfigurer; import java.util.Objects; import java.util.function.Consumer; +import org.openworkflow.sdk.fluent.spec.AbstractEventConsumptionStrategyBuilder; +import org.openworkflow.sdk.fluent.spec.AbstractListenTaskBuilder; +import org.openworkflow.sdk.fluent.spec.EventFilterBuilder; +import org.openworkflow.sdk.fluent.spec.ListenTaskBuilder; +import org.openworkflow.sdk.fluent.spec.ListenToBuilder; +import org.openworkflow.sdk.fluent.spec.configurers.ListenConfigurer; public final class ListenSpec extends BaseListenSpec diff --git a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/dsl/RaiseSpec.java b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/dsl/RaiseSpec.java similarity index 86% rename from fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/dsl/RaiseSpec.java rename to fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/dsl/RaiseSpec.java index da42bb30a..6bf81532a 100644 --- a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/dsl/RaiseSpec.java +++ b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/dsl/RaiseSpec.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,15 +13,15 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.fluent.spec.dsl; +package org.openworkflow.sdk.fluent.spec.dsl; -import io.serverlessworkflow.fluent.spec.RaiseTaskBuilder; -import io.serverlessworkflow.fluent.spec.configurers.RaiseConfigurer; import java.net.URI; import java.util.ArrayList; import java.util.List; import java.util.Objects; import java.util.function.Consumer; +import org.openworkflow.sdk.fluent.spec.RaiseTaskBuilder; +import org.openworkflow.sdk.fluent.spec.configurers.RaiseConfigurer; public final class RaiseSpec implements RaiseConfigurer { private final List> steps = new ArrayList<>(); diff --git a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/dsl/RetrySpec.java b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/dsl/RetrySpec.java similarity index 90% rename from fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/dsl/RetrySpec.java rename to fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/dsl/RetrySpec.java index 0c80159ed..c11bad7d7 100644 --- a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/dsl/RetrySpec.java +++ b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/dsl/RetrySpec.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,14 +13,14 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.fluent.spec.dsl; +package org.openworkflow.sdk.fluent.spec.dsl; -import io.serverlessworkflow.fluent.spec.DurationInlineBuilder; -import io.serverlessworkflow.fluent.spec.TryTaskBuilder; -import io.serverlessworkflow.fluent.spec.configurers.RetryConfigurer; import java.util.LinkedList; import java.util.List; import java.util.function.Consumer; +import org.openworkflow.sdk.fluent.spec.DurationInlineBuilder; +import org.openworkflow.sdk.fluent.spec.TryTaskBuilder; +import org.openworkflow.sdk.fluent.spec.configurers.RetryConfigurer; public final class RetrySpec implements RetryConfigurer { diff --git a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/dsl/SwitchSpec.java b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/dsl/SwitchSpec.java similarity index 86% rename from fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/dsl/SwitchSpec.java rename to fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/dsl/SwitchSpec.java index 2b68fd613..14baf7abc 100644 --- a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/dsl/SwitchSpec.java +++ b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/dsl/SwitchSpec.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,16 +13,16 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.fluent.spec.dsl; +package org.openworkflow.sdk.fluent.spec.dsl; -import io.serverlessworkflow.api.types.FlowDirectiveEnum; -import io.serverlessworkflow.fluent.spec.SwitchTaskBuilder; -import io.serverlessworkflow.fluent.spec.configurers.SwitchConfigurer; -import io.serverlessworkflow.fluent.spec.spi.SwitchTaskFluent; import java.util.LinkedHashMap; import java.util.Map; import java.util.Objects; import java.util.function.Consumer; +import org.openworkflow.sdk.api.types.FlowDirectiveEnum; +import org.openworkflow.sdk.fluent.spec.SwitchTaskBuilder; +import org.openworkflow.sdk.fluent.spec.configurers.SwitchConfigurer; +import org.openworkflow.sdk.fluent.spec.spi.SwitchTaskFluent; public final class SwitchSpec implements SwitchConfigurer { diff --git a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/dsl/TryCatchSpec.java b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/dsl/TryCatchSpec.java similarity index 84% rename from fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/dsl/TryCatchSpec.java rename to fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/dsl/TryCatchSpec.java index db9858949..a46392e67 100644 --- a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/dsl/TryCatchSpec.java +++ b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/dsl/TryCatchSpec.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,17 +13,17 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.fluent.spec.dsl; +package org.openworkflow.sdk.fluent.spec.dsl; -import io.serverlessworkflow.fluent.spec.TaskItemListBuilder; -import io.serverlessworkflow.fluent.spec.TryTaskBuilder; -import io.serverlessworkflow.fluent.spec.configurers.TasksConfigurer; -import io.serverlessworkflow.fluent.spec.configurers.TryCatchConfigurer; -import io.serverlessworkflow.types.Errors; import java.net.URI; import java.util.LinkedList; import java.util.List; import java.util.function.Consumer; +import org.openworkflow.sdk.fluent.spec.TaskItemListBuilder; +import org.openworkflow.sdk.fluent.spec.TryTaskBuilder; +import org.openworkflow.sdk.fluent.spec.configurers.TasksConfigurer; +import org.openworkflow.sdk.fluent.spec.configurers.TryCatchConfigurer; +import org.openworkflow.sdk.types.Errors; public final class TryCatchSpec implements TryCatchConfigurer { private final List steps = new LinkedList<>(); diff --git a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/dsl/TrySpec.java b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/dsl/TrySpec.java similarity index 75% rename from fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/dsl/TrySpec.java rename to fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/dsl/TrySpec.java index dc0329587..809a707bc 100644 --- a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/dsl/TrySpec.java +++ b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/dsl/TrySpec.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,12 +13,12 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.fluent.spec.dsl; +package org.openworkflow.sdk.fluent.spec.dsl; -import io.serverlessworkflow.fluent.spec.TaskItemListBuilder; -import io.serverlessworkflow.fluent.spec.TryTaskBuilder; -import io.serverlessworkflow.fluent.spec.configurers.TasksConfigurer; -import io.serverlessworkflow.fluent.spec.configurers.TryConfigurer; +import org.openworkflow.sdk.fluent.spec.TaskItemListBuilder; +import org.openworkflow.sdk.fluent.spec.TryTaskBuilder; +import org.openworkflow.sdk.fluent.spec.configurers.TasksConfigurer; +import org.openworkflow.sdk.fluent.spec.configurers.TryConfigurer; public final class TrySpec implements TryConfigurer { private TryConfigurer tryConfigurer; diff --git a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/dsl/UseSpec.java b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/dsl/UseSpec.java similarity index 82% rename from fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/dsl/UseSpec.java rename to fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/dsl/UseSpec.java index 547f189f9..0035f5bdb 100644 --- a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/dsl/UseSpec.java +++ b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/dsl/UseSpec.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,14 +13,14 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.fluent.spec.dsl; +package org.openworkflow.sdk.fluent.spec.dsl; -import io.serverlessworkflow.fluent.spec.UseBuilder; -import io.serverlessworkflow.fluent.spec.configurers.AuthenticationConfigurer; -import io.serverlessworkflow.fluent.spec.configurers.UseConfigurer; import java.util.LinkedList; import java.util.List; import java.util.function.Consumer; +import org.openworkflow.sdk.fluent.spec.UseBuilder; +import org.openworkflow.sdk.fluent.spec.configurers.AuthenticationConfigurer; +import org.openworkflow.sdk.fluent.spec.configurers.UseConfigurer; public class UseSpec implements UseConfigurer { diff --git a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/dsl/WorkflowSpec.java b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/dsl/WorkflowSpec.java similarity index 84% rename from fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/dsl/WorkflowSpec.java rename to fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/dsl/WorkflowSpec.java index 9c3d0539d..811518496 100644 --- a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/dsl/WorkflowSpec.java +++ b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/dsl/WorkflowSpec.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,15 +13,15 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.fluent.spec.dsl; +package org.openworkflow.sdk.fluent.spec.dsl; -import io.serverlessworkflow.api.types.RunTaskConfiguration; -import io.serverlessworkflow.fluent.spec.WorkflowTaskBuilder; -import io.serverlessworkflow.fluent.spec.configurers.WorkflowConfigurer; import java.util.ArrayList; import java.util.List; import java.util.Map; import java.util.function.Consumer; +import org.openworkflow.sdk.api.types.RunTaskConfiguration; +import org.openworkflow.sdk.fluent.spec.WorkflowTaskBuilder; +import org.openworkflow.sdk.fluent.spec.configurers.WorkflowConfigurer; public final class WorkflowSpec implements WorkflowConfigurer { diff --git a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/spi/CallGrpcFluent.java b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/spi/CallGrpcFluent.java similarity index 82% rename from fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/spi/CallGrpcFluent.java rename to fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/spi/CallGrpcFluent.java index 818837273..c89f7184c 100644 --- a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/spi/CallGrpcFluent.java +++ b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/spi/CallGrpcFluent.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,10 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.fluent.spec.spi; +package org.openworkflow.sdk.fluent.spec.spi; -import io.serverlessworkflow.fluent.spec.TaskBaseBuilder; import java.util.function.Consumer; +import org.openworkflow.sdk.fluent.spec.TaskBaseBuilder; public interface CallGrpcFluent, LIST> { diff --git a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/spi/CallGrpcTaskFluent.java b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/spi/CallGrpcTaskFluent.java similarity index 83% rename from fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/spi/CallGrpcTaskFluent.java rename to fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/spi/CallGrpcTaskFluent.java index fcc29e9cc..84fc99b98 100644 --- a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/spi/CallGrpcTaskFluent.java +++ b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/spi/CallGrpcTaskFluent.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,23 +13,23 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.fluent.spec.spi; +package org.openworkflow.sdk.fluent.spec.spi; -import io.serverlessworkflow.api.types.CallGRPC; -import io.serverlessworkflow.api.types.Endpoint; -import io.serverlessworkflow.api.types.EndpointConfiguration; -import io.serverlessworkflow.api.types.EndpointUri; -import io.serverlessworkflow.api.types.ExternalResource; -import io.serverlessworkflow.api.types.GRPCArguments; -import io.serverlessworkflow.api.types.ReferenceableAuthenticationPolicy; -import io.serverlessworkflow.api.types.UriTemplate; -import io.serverlessworkflow.api.types.WithGRPCArguments; -import io.serverlessworkflow.api.types.WithGRPCService; -import io.serverlessworkflow.fluent.spec.ReferenceableAuthenticationPolicyBuilder; -import io.serverlessworkflow.fluent.spec.TaskBaseBuilder; -import io.serverlessworkflow.fluent.spec.configurers.AuthenticationConfigurer; import java.net.URI; import java.util.Map; +import org.openworkflow.sdk.api.types.CallGRPC; +import org.openworkflow.sdk.api.types.Endpoint; +import org.openworkflow.sdk.api.types.EndpointConfiguration; +import org.openworkflow.sdk.api.types.EndpointUri; +import org.openworkflow.sdk.api.types.ExternalResource; +import org.openworkflow.sdk.api.types.GRPCArguments; +import org.openworkflow.sdk.api.types.ReferenceableAuthenticationPolicy; +import org.openworkflow.sdk.api.types.UriTemplate; +import org.openworkflow.sdk.api.types.WithGRPCArguments; +import org.openworkflow.sdk.api.types.WithGRPCService; +import org.openworkflow.sdk.fluent.spec.ReferenceableAuthenticationPolicyBuilder; +import org.openworkflow.sdk.fluent.spec.TaskBaseBuilder; +import org.openworkflow.sdk.fluent.spec.configurers.AuthenticationConfigurer; public interface CallGrpcTaskFluent> { diff --git a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/spi/CallHttpFluent.java b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/spi/CallHttpFluent.java similarity index 82% rename from fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/spi/CallHttpFluent.java rename to fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/spi/CallHttpFluent.java index 5c3617cb0..a0ce5b143 100644 --- a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/spi/CallHttpFluent.java +++ b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/spi/CallHttpFluent.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,10 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.fluent.spec.spi; +package org.openworkflow.sdk.fluent.spec.spi; -import io.serverlessworkflow.fluent.spec.TaskBaseBuilder; import java.util.function.Consumer; +import org.openworkflow.sdk.fluent.spec.TaskBaseBuilder; public interface CallHttpFluent, LIST> { diff --git a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/spi/CallHttpTaskFluent.java b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/spi/CallHttpTaskFluent.java similarity index 89% rename from fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/spi/CallHttpTaskFluent.java rename to fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/spi/CallHttpTaskFluent.java index fac512312..ec20b0581 100644 --- a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/spi/CallHttpTaskFluent.java +++ b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/spi/CallHttpTaskFluent.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,25 +13,25 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.fluent.spec.spi; - -import io.serverlessworkflow.api.types.AuthenticationPolicyReference; -import io.serverlessworkflow.api.types.CallHTTP; -import io.serverlessworkflow.api.types.Endpoint; -import io.serverlessworkflow.api.types.EndpointConfiguration; -import io.serverlessworkflow.api.types.EndpointUri; -import io.serverlessworkflow.api.types.HTTPArguments; -import io.serverlessworkflow.api.types.HTTPHeaders; -import io.serverlessworkflow.api.types.HTTPQuery; -import io.serverlessworkflow.api.types.Headers; -import io.serverlessworkflow.api.types.Query; -import io.serverlessworkflow.api.types.ReferenceableAuthenticationPolicy; -import io.serverlessworkflow.api.types.UriTemplate; -import io.serverlessworkflow.fluent.spec.ReferenceableAuthenticationPolicyBuilder; -import io.serverlessworkflow.fluent.spec.TaskBaseBuilder; +package org.openworkflow.sdk.fluent.spec.spi; + import java.net.URI; import java.util.Map; import java.util.function.Consumer; +import org.openworkflow.sdk.api.types.AuthenticationPolicyReference; +import org.openworkflow.sdk.api.types.CallHTTP; +import org.openworkflow.sdk.api.types.Endpoint; +import org.openworkflow.sdk.api.types.EndpointConfiguration; +import org.openworkflow.sdk.api.types.EndpointUri; +import org.openworkflow.sdk.api.types.HTTPArguments; +import org.openworkflow.sdk.api.types.HTTPHeaders; +import org.openworkflow.sdk.api.types.HTTPQuery; +import org.openworkflow.sdk.api.types.Headers; +import org.openworkflow.sdk.api.types.Query; +import org.openworkflow.sdk.api.types.ReferenceableAuthenticationPolicy; +import org.openworkflow.sdk.api.types.UriTemplate; +import org.openworkflow.sdk.fluent.spec.ReferenceableAuthenticationPolicyBuilder; +import org.openworkflow.sdk.fluent.spec.TaskBaseBuilder; public interface CallHttpTaskFluent> { diff --git a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/spi/CallOpenAPIFluent.java b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/spi/CallOpenAPIFluent.java similarity index 82% rename from fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/spi/CallOpenAPIFluent.java rename to fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/spi/CallOpenAPIFluent.java index 56dc46d6e..39cbe1781 100644 --- a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/spi/CallOpenAPIFluent.java +++ b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/spi/CallOpenAPIFluent.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,10 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.fluent.spec.spi; +package org.openworkflow.sdk.fluent.spec.spi; -import io.serverlessworkflow.fluent.spec.TaskBaseBuilder; import java.util.function.Consumer; +import org.openworkflow.sdk.fluent.spec.TaskBaseBuilder; public interface CallOpenAPIFluent, LIST> { diff --git a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/spi/CallOpenAPITaskFluent.java b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/spi/CallOpenAPITaskFluent.java similarity index 85% rename from fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/spi/CallOpenAPITaskFluent.java rename to fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/spi/CallOpenAPITaskFluent.java index 2149e4649..0452d403e 100644 --- a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/spi/CallOpenAPITaskFluent.java +++ b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/spi/CallOpenAPITaskFluent.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,21 +13,21 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.fluent.spec.spi; +package org.openworkflow.sdk.fluent.spec.spi; -import io.serverlessworkflow.api.types.CallOpenAPI; -import io.serverlessworkflow.api.types.Endpoint; -import io.serverlessworkflow.api.types.EndpointConfiguration; -import io.serverlessworkflow.api.types.EndpointUri; -import io.serverlessworkflow.api.types.ExternalResource; -import io.serverlessworkflow.api.types.OpenAPIArguments; -import io.serverlessworkflow.api.types.ReferenceableAuthenticationPolicy; -import io.serverlessworkflow.api.types.UriTemplate; -import io.serverlessworkflow.fluent.spec.ReferenceableAuthenticationPolicyBuilder; -import io.serverlessworkflow.fluent.spec.TaskBaseBuilder; -import io.serverlessworkflow.fluent.spec.configurers.AuthenticationConfigurer; import java.net.URI; import java.util.Map; +import org.openworkflow.sdk.api.types.CallOpenAPI; +import org.openworkflow.sdk.api.types.Endpoint; +import org.openworkflow.sdk.api.types.EndpointConfiguration; +import org.openworkflow.sdk.api.types.EndpointUri; +import org.openworkflow.sdk.api.types.ExternalResource; +import org.openworkflow.sdk.api.types.OpenAPIArguments; +import org.openworkflow.sdk.api.types.ReferenceableAuthenticationPolicy; +import org.openworkflow.sdk.api.types.UriTemplate; +import org.openworkflow.sdk.fluent.spec.ReferenceableAuthenticationPolicyBuilder; +import org.openworkflow.sdk.fluent.spec.TaskBaseBuilder; +import org.openworkflow.sdk.fluent.spec.configurers.AuthenticationConfigurer; public interface CallOpenAPITaskFluent> { diff --git a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/spi/DoFluent.java b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/spi/DoFluent.java similarity index 55% rename from fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/spi/DoFluent.java rename to fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/spi/DoFluent.java index 37c5f461b..2a3a9c934 100644 --- a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/spi/DoFluent.java +++ b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/spi/DoFluent.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,28 +13,28 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.fluent.spec.spi; +package org.openworkflow.sdk.fluent.spec.spi; -import io.serverlessworkflow.fluent.spec.CallGrpcTaskBuilder; -import io.serverlessworkflow.fluent.spec.CallHttpTaskBuilder; -import io.serverlessworkflow.fluent.spec.CallOpenAPITaskBuilder; -import io.serverlessworkflow.fluent.spec.EmitTaskBuilder; -import io.serverlessworkflow.fluent.spec.ForEachTaskBuilder; -import io.serverlessworkflow.fluent.spec.ForkTaskBuilder; -import io.serverlessworkflow.fluent.spec.ListenTaskBuilder; -import io.serverlessworkflow.fluent.spec.RaiseTaskBuilder; -import io.serverlessworkflow.fluent.spec.SetTaskBuilder; -import io.serverlessworkflow.fluent.spec.SwitchTaskBuilder; -import io.serverlessworkflow.fluent.spec.TaskItemListBuilder; -import io.serverlessworkflow.fluent.spec.TryTaskBuilder; -import io.serverlessworkflow.fluent.spec.WaitTaskBuilder; -import io.serverlessworkflow.fluent.spec.WorkflowTaskBuilder; +import org.openworkflow.sdk.fluent.spec.CallGrpcTaskBuilder; +import org.openworkflow.sdk.fluent.spec.CallHttpTaskBuilder; +import org.openworkflow.sdk.fluent.spec.CallOpenAPITaskBuilder; +import org.openworkflow.sdk.fluent.spec.EmitTaskBuilder; +import org.openworkflow.sdk.fluent.spec.ForEachTaskBuilder; +import org.openworkflow.sdk.fluent.spec.ForkTaskBuilder; +import org.openworkflow.sdk.fluent.spec.ListenTaskBuilder; +import org.openworkflow.sdk.fluent.spec.RaiseTaskBuilder; +import org.openworkflow.sdk.fluent.spec.SetTaskBuilder; +import org.openworkflow.sdk.fluent.spec.SwitchTaskBuilder; +import org.openworkflow.sdk.fluent.spec.TaskItemListBuilder; +import org.openworkflow.sdk.fluent.spec.TryTaskBuilder; +import org.openworkflow.sdk.fluent.spec.WaitTaskBuilder; +import org.openworkflow.sdk.fluent.spec.WorkflowTaskBuilder; /** * Documents the exposed fluent `do` DSL. * * @see CNCF + * href="https://github.com/open-workflow-specification/specification/blob/main/dsl-reference.md#do">CNCF * DSL Reference - Do */ public interface DoFluent diff --git a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/spi/EmitFluent.java b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/spi/EmitFluent.java similarity index 82% rename from fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/spi/EmitFluent.java rename to fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/spi/EmitFluent.java index 841bd4639..71cbb3693 100644 --- a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/spi/EmitFluent.java +++ b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/spi/EmitFluent.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,10 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.fluent.spec.spi; +package org.openworkflow.sdk.fluent.spec.spi; -import io.serverlessworkflow.fluent.spec.TaskBaseBuilder; import java.util.function.Consumer; +import org.openworkflow.sdk.fluent.spec.TaskBaseBuilder; public interface EmitFluent, LIST> { diff --git a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/spi/EndpointUtil.java b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/spi/EndpointUtil.java similarity index 86% rename from fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/spi/EndpointUtil.java rename to fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/spi/EndpointUtil.java index f13db07e7..eaf69cfb2 100644 --- a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/spi/EndpointUtil.java +++ b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/spi/EndpointUtil.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,15 +13,15 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.fluent.spec.spi; +package org.openworkflow.sdk.fluent.spec.spi; -import io.serverlessworkflow.api.types.Endpoint; -import io.serverlessworkflow.api.types.EndpointConfiguration; -import io.serverlessworkflow.api.types.EndpointUri; -import io.serverlessworkflow.api.types.ReferenceableAuthenticationPolicy; -import io.serverlessworkflow.api.types.UriTemplate; import java.net.URI; import java.util.Objects; +import org.openworkflow.sdk.api.types.Endpoint; +import org.openworkflow.sdk.api.types.EndpointConfiguration; +import org.openworkflow.sdk.api.types.EndpointUri; +import org.openworkflow.sdk.api.types.ReferenceableAuthenticationPolicy; +import org.openworkflow.sdk.api.types.UriTemplate; public final class EndpointUtil { diff --git a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/spi/EventConsumptionStrategyFluent.java b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/spi/EventConsumptionStrategyFluent.java similarity index 79% rename from fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/spi/EventConsumptionStrategyFluent.java rename to fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/spi/EventConsumptionStrategyFluent.java index 91ba41e0f..f3e212649 100644 --- a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/spi/EventConsumptionStrategyFluent.java +++ b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/spi/EventConsumptionStrategyFluent.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,12 +13,12 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.fluent.spec.spi; +package org.openworkflow.sdk.fluent.spec.spi; -import io.serverlessworkflow.fluent.spec.AbstractEventFilterBuilder; -import io.serverlessworkflow.fluent.spec.EventConsumptionStrategyBuilder; import java.io.Serializable; import java.util.function.Consumer; +import org.openworkflow.sdk.fluent.spec.AbstractEventFilterBuilder; +import org.openworkflow.sdk.fluent.spec.EventConsumptionStrategyBuilder; public interface EventConsumptionStrategyFluent< SELF extends EventConsumptionStrategyFluent, diff --git a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/spi/ForEachFluent.java b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/spi/ForEachFluent.java similarity index 82% rename from fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/spi/ForEachFluent.java rename to fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/spi/ForEachFluent.java index e0ae0562a..1c3eba205 100644 --- a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/spi/ForEachFluent.java +++ b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/spi/ForEachFluent.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,10 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.fluent.spec.spi; +package org.openworkflow.sdk.fluent.spec.spi; -import io.serverlessworkflow.fluent.spec.TaskBaseBuilder; import java.util.function.Consumer; +import org.openworkflow.sdk.fluent.spec.TaskBaseBuilder; public interface ForEachFluent, LIST> { diff --git a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/spi/ForEachTaskFluent.java b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/spi/ForEachTaskFluent.java similarity index 74% rename from fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/spi/ForEachTaskFluent.java rename to fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/spi/ForEachTaskFluent.java index 00d77036f..8eef6165e 100644 --- a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/spi/ForEachTaskFluent.java +++ b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/spi/ForEachTaskFluent.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,11 +13,11 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.fluent.spec.spi; +package org.openworkflow.sdk.fluent.spec.spi; -import io.serverlessworkflow.api.types.ForTask; -import io.serverlessworkflow.fluent.spec.BaseTaskItemListBuilder; -import io.serverlessworkflow.fluent.spec.TaskBaseBuilder; +import org.openworkflow.sdk.api.types.ForTask; +import org.openworkflow.sdk.fluent.spec.BaseTaskItemListBuilder; +import org.openworkflow.sdk.fluent.spec.TaskBaseBuilder; public interface ForEachTaskFluent< SELF extends TaskBaseBuilder, L extends BaseTaskItemListBuilder> diff --git a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/spi/ForkFluent.java b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/spi/ForkFluent.java similarity index 82% rename from fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/spi/ForkFluent.java rename to fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/spi/ForkFluent.java index 7c7c50703..d4fd01efb 100644 --- a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/spi/ForkFluent.java +++ b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/spi/ForkFluent.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,10 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.fluent.spec.spi; +package org.openworkflow.sdk.fluent.spec.spi; -import io.serverlessworkflow.fluent.spec.TaskBaseBuilder; import java.util.function.Consumer; +import org.openworkflow.sdk.fluent.spec.TaskBaseBuilder; public interface ForkFluent, LIST> { diff --git a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/spi/ForkTaskFluent.java b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/spi/ForkTaskFluent.java similarity index 77% rename from fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/spi/ForkTaskFluent.java rename to fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/spi/ForkTaskFluent.java index 39ff142d7..691a1c63d 100644 --- a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/spi/ForkTaskFluent.java +++ b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/spi/ForkTaskFluent.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,12 +13,12 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.fluent.spec.spi; +package org.openworkflow.sdk.fluent.spec.spi; -import io.serverlessworkflow.api.types.ForkTask; -import io.serverlessworkflow.fluent.spec.BaseTaskItemListBuilder; -import io.serverlessworkflow.fluent.spec.TaskBaseBuilder; import java.util.function.Consumer; +import org.openworkflow.sdk.api.types.ForkTask; +import org.openworkflow.sdk.fluent.spec.BaseTaskItemListBuilder; +import org.openworkflow.sdk.fluent.spec.TaskBaseBuilder; public interface ForkTaskFluent< SELF extends TaskBaseBuilder, L extends BaseTaskItemListBuilder> { diff --git a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/spi/IteratorFluent.java b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/spi/IteratorFluent.java similarity index 84% rename from fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/spi/IteratorFluent.java rename to fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/spi/IteratorFluent.java index 85c617775..886e07f4b 100644 --- a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/spi/IteratorFluent.java +++ b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/spi/IteratorFluent.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,10 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.fluent.spec.spi; +package org.openworkflow.sdk.fluent.spec.spi; -import io.serverlessworkflow.fluent.spec.BaseTaskItemListBuilder; import java.util.function.Consumer; +import org.openworkflow.sdk.fluent.spec.BaseTaskItemListBuilder; public interface IteratorFluent> { diff --git a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/spi/ListenFluent.java b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/spi/ListenFluent.java similarity index 82% rename from fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/spi/ListenFluent.java rename to fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/spi/ListenFluent.java index 9d2edf2fe..3b17b159f 100644 --- a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/spi/ListenFluent.java +++ b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/spi/ListenFluent.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,10 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.fluent.spec.spi; +package org.openworkflow.sdk.fluent.spec.spi; -import io.serverlessworkflow.fluent.spec.TaskBaseBuilder; import java.util.function.Consumer; +import org.openworkflow.sdk.fluent.spec.TaskBaseBuilder; public interface ListenFluent, LIST> { diff --git a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/spi/OutputFluent.java b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/spi/OutputFluent.java similarity index 77% rename from fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/spi/OutputFluent.java rename to fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/spi/OutputFluent.java index b66bbd754..e1d9116fd 100644 --- a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/spi/OutputFluent.java +++ b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/spi/OutputFluent.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,11 +13,11 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.fluent.spec.spi; +package org.openworkflow.sdk.fluent.spec.spi; -import io.serverlessworkflow.fluent.spec.ExportBuilder; -import io.serverlessworkflow.fluent.spec.OutputBuilder; import java.util.function.Consumer; +import org.openworkflow.sdk.fluent.spec.ExportBuilder; +import org.openworkflow.sdk.fluent.spec.OutputBuilder; public interface OutputFluent { diff --git a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/spi/RaiseFluent.java b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/spi/RaiseFluent.java similarity index 82% rename from fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/spi/RaiseFluent.java rename to fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/spi/RaiseFluent.java index b6b08deb5..c5eec55b2 100644 --- a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/spi/RaiseFluent.java +++ b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/spi/RaiseFluent.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,10 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.fluent.spec.spi; +package org.openworkflow.sdk.fluent.spec.spi; -import io.serverlessworkflow.fluent.spec.TaskBaseBuilder; import java.util.function.Consumer; +import org.openworkflow.sdk.fluent.spec.TaskBaseBuilder; public interface RaiseFluent, LIST> { diff --git a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/spi/SetFluent.java b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/spi/SetFluent.java similarity index 84% rename from fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/spi/SetFluent.java rename to fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/spi/SetFluent.java index 4debb8281..26463e118 100644 --- a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/spi/SetFluent.java +++ b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/spi/SetFluent.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,10 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.fluent.spec.spi; +package org.openworkflow.sdk.fluent.spec.spi; -import io.serverlessworkflow.fluent.spec.TaskBaseBuilder; import java.util.function.Consumer; +import org.openworkflow.sdk.fluent.spec.TaskBaseBuilder; public interface SetFluent, LIST> { diff --git a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/spi/SubscriptionIteratorFluent.java b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/spi/SubscriptionIteratorFluent.java similarity index 79% rename from fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/spi/SubscriptionIteratorFluent.java rename to fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/spi/SubscriptionIteratorFluent.java index 8323833a8..019ad10c5 100644 --- a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/spi/SubscriptionIteratorFluent.java +++ b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/spi/SubscriptionIteratorFluent.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,9 +13,9 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.fluent.spec.spi; +package org.openworkflow.sdk.fluent.spec.spi; -import io.serverlessworkflow.fluent.spec.BaseTaskItemListBuilder; +import org.openworkflow.sdk.fluent.spec.BaseTaskItemListBuilder; public interface SubscriptionIteratorFluent> extends IteratorFluent, OutputFluent { diff --git a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/spi/SwitchFluent.java b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/spi/SwitchFluent.java similarity index 82% rename from fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/spi/SwitchFluent.java rename to fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/spi/SwitchFluent.java index d88453c5e..b51fd5c61 100644 --- a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/spi/SwitchFluent.java +++ b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/spi/SwitchFluent.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,10 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.fluent.spec.spi; +package org.openworkflow.sdk.fluent.spec.spi; -import io.serverlessworkflow.fluent.spec.TaskBaseBuilder; import java.util.function.Consumer; +import org.openworkflow.sdk.fluent.spec.TaskBaseBuilder; public interface SwitchFluent, LIST> { diff --git a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/spi/SwitchTaskFluent.java b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/spi/SwitchTaskFluent.java similarity index 83% rename from fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/spi/SwitchTaskFluent.java rename to fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/spi/SwitchTaskFluent.java index 9c1be6b5e..9e47f79d0 100644 --- a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/spi/SwitchTaskFluent.java +++ b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/spi/SwitchTaskFluent.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,14 +13,14 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.fluent.spec.spi; +package org.openworkflow.sdk.fluent.spec.spi; -import io.serverlessworkflow.api.types.FlowDirective; -import io.serverlessworkflow.api.types.FlowDirectiveEnum; -import io.serverlessworkflow.api.types.SwitchCase; -import io.serverlessworkflow.api.types.SwitchTask; -import io.serverlessworkflow.fluent.spec.TaskBaseBuilder; import java.util.function.Consumer; +import org.openworkflow.sdk.api.types.FlowDirective; +import org.openworkflow.sdk.api.types.FlowDirectiveEnum; +import org.openworkflow.sdk.api.types.SwitchCase; +import org.openworkflow.sdk.api.types.SwitchTask; +import org.openworkflow.sdk.fluent.spec.TaskBaseBuilder; public interface SwitchTaskFluent> { String DEFAULT_CASE = "default"; diff --git a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/spi/TaskTransformationHandlers.java b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/spi/TaskTransformationHandlers.java similarity index 80% rename from fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/spi/TaskTransformationHandlers.java rename to fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/spi/TaskTransformationHandlers.java index 531e02b9a..9f6fb8ca2 100644 --- a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/spi/TaskTransformationHandlers.java +++ b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/spi/TaskTransformationHandlers.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,9 +13,9 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.fluent.spec.spi; +package org.openworkflow.sdk.fluent.spec.spi; -import io.serverlessworkflow.api.types.Export; +import org.openworkflow.sdk.api.types.Export; public interface TaskTransformationHandlers extends TransformationHandlers { diff --git a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/spi/TransformationHandlers.java b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/spi/TransformationHandlers.java similarity index 76% rename from fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/spi/TransformationHandlers.java rename to fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/spi/TransformationHandlers.java index c4183ef3a..65a64aee7 100644 --- a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/spi/TransformationHandlers.java +++ b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/spi/TransformationHandlers.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,10 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.fluent.spec.spi; +package org.openworkflow.sdk.fluent.spec.spi; -import io.serverlessworkflow.api.types.Input; -import io.serverlessworkflow.api.types.Output; +import org.openworkflow.sdk.api.types.Input; +import org.openworkflow.sdk.api.types.Output; public interface TransformationHandlers { void setOutput(final Output output); diff --git a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/spi/TryCatchFluent.java b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/spi/TryCatchFluent.java similarity index 82% rename from fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/spi/TryCatchFluent.java rename to fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/spi/TryCatchFluent.java index ca84558b8..25d6dd9a3 100644 --- a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/spi/TryCatchFluent.java +++ b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/spi/TryCatchFluent.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,10 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.fluent.spec.spi; +package org.openworkflow.sdk.fluent.spec.spi; -import io.serverlessworkflow.fluent.spec.TaskBaseBuilder; import java.util.function.Consumer; +import org.openworkflow.sdk.fluent.spec.TaskBaseBuilder; public interface TryCatchFluent, LIST> { LIST tryCatch(String name, Consumer itemsConfigurer); diff --git a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/spi/WaitFluent.java b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/spi/WaitFluent.java similarity index 82% rename from fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/spi/WaitFluent.java rename to fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/spi/WaitFluent.java index a9b1df4e1..58776efb7 100644 --- a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/spi/WaitFluent.java +++ b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/spi/WaitFluent.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,10 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.fluent.spec.spi; +package org.openworkflow.sdk.fluent.spec.spi; -import io.serverlessworkflow.fluent.spec.TaskBaseBuilder; import java.util.function.Consumer; +import org.openworkflow.sdk.fluent.spec.TaskBaseBuilder; public interface WaitFluent, LIST> { diff --git a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/spi/WorkflowFluent.java b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/spi/WorkflowFluent.java similarity index 83% rename from fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/spi/WorkflowFluent.java rename to fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/spi/WorkflowFluent.java index adecdf6aa..7c0b38c2b 100644 --- a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/spi/WorkflowFluent.java +++ b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/spi/WorkflowFluent.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,11 +13,11 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.fluent.spec.spi; +package org.openworkflow.sdk.fluent.spec.spi; -import io.serverlessworkflow.fluent.spec.TaskBaseBuilder; import java.util.UUID; import java.util.function.Consumer; +import org.openworkflow.sdk.fluent.spec.TaskBaseBuilder; public interface WorkflowFluent, LIST> { diff --git a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/spi/WorkflowTaskFluent.java b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/spi/WorkflowTaskFluent.java similarity index 84% rename from fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/spi/WorkflowTaskFluent.java rename to fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/spi/WorkflowTaskFluent.java index 06ee0927c..0d27f818c 100644 --- a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/spi/WorkflowTaskFluent.java +++ b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/spi/WorkflowTaskFluent.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,13 +13,13 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.fluent.spec.spi; +package org.openworkflow.sdk.fluent.spec.spi; -import io.serverlessworkflow.api.types.RunTaskConfiguration; -import io.serverlessworkflow.api.types.SubflowInput; -import io.serverlessworkflow.fluent.spec.TaskBaseBuilder; -import io.serverlessworkflow.fluent.spec.WorkflowTaskBuilder; import java.util.Map; +import org.openworkflow.sdk.api.types.RunTaskConfiguration; +import org.openworkflow.sdk.api.types.SubflowInput; +import org.openworkflow.sdk.fluent.spec.TaskBaseBuilder; +import org.openworkflow.sdk.fluent.spec.WorkflowTaskBuilder; public interface WorkflowTaskFluent> { diff --git a/fluent/spec/src/test/java/io/serverlessworkflow/fluent/spec/InputBuilderTest.java b/fluent/spec/src/test/java/org/openworkflow/sdk/fluent/spec/InputBuilderTest.java similarity index 98% rename from fluent/spec/src/test/java/io/serverlessworkflow/fluent/spec/InputBuilderTest.java rename to fluent/spec/src/test/java/org/openworkflow/sdk/fluent/spec/InputBuilderTest.java index 48378b642..1d8a3383d 100644 --- a/fluent/spec/src/test/java/io/serverlessworkflow/fluent/spec/InputBuilderTest.java +++ b/fluent/spec/src/test/java/org/openworkflow/sdk/fluent/spec/InputBuilderTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,15 +13,15 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.fluent.spec; +package org.openworkflow.sdk.fluent.spec; import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertNotNull; import static org.junit.jupiter.api.Assertions.assertNull; -import io.serverlessworkflow.api.types.Input; import java.util.Map; import org.junit.jupiter.api.Test; +import org.openworkflow.sdk.api.types.Input; /** Unit tests for InputBuilder to verify lazy initialization and proper field handling. */ public class InputBuilderTest { diff --git a/fluent/spec/src/test/java/io/serverlessworkflow/fluent/spec/ScheduleBuilderTest.java b/fluent/spec/src/test/java/org/openworkflow/sdk/fluent/spec/ScheduleBuilderTest.java similarity index 90% rename from fluent/spec/src/test/java/io/serverlessworkflow/fluent/spec/ScheduleBuilderTest.java rename to fluent/spec/src/test/java/org/openworkflow/sdk/fluent/spec/ScheduleBuilderTest.java index 1c84608d2..7e42141cf 100644 --- a/fluent/spec/src/test/java/io/serverlessworkflow/fluent/spec/ScheduleBuilderTest.java +++ b/fluent/spec/src/test/java/org/openworkflow/sdk/fluent/spec/ScheduleBuilderTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,15 +13,15 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.fluent.spec; +package org.openworkflow.sdk.fluent.spec; -import static io.serverlessworkflow.fluent.spec.dsl.DSL.timeoutMinutes; -import static io.serverlessworkflow.fluent.spec.dsl.DSL.timeoutSeconds; import static org.assertj.core.api.Assertions.assertThat; import static org.assertj.core.api.Assertions.assertThatThrownBy; +import static org.openworkflow.sdk.fluent.spec.dsl.DSL.timeoutMinutes; +import static org.openworkflow.sdk.fluent.spec.dsl.DSL.timeoutSeconds; -import io.serverlessworkflow.api.types.Schedule; import org.junit.jupiter.api.Test; +import org.openworkflow.sdk.api.types.Schedule; public class ScheduleBuilderTest { diff --git a/fluent/spec/src/test/java/io/serverlessworkflow/fluent/spec/TaskItemDefaultNamingTest.java b/fluent/spec/src/test/java/org/openworkflow/sdk/fluent/spec/TaskItemDefaultNamingTest.java similarity index 97% rename from fluent/spec/src/test/java/io/serverlessworkflow/fluent/spec/TaskItemDefaultNamingTest.java rename to fluent/spec/src/test/java/org/openworkflow/sdk/fluent/spec/TaskItemDefaultNamingTest.java index 03f98fc0d..6ba2f08d9 100644 --- a/fluent/spec/src/test/java/io/serverlessworkflow/fluent/spec/TaskItemDefaultNamingTest.java +++ b/fluent/spec/src/test/java/org/openworkflow/sdk/fluent/spec/TaskItemDefaultNamingTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,21 +13,21 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.fluent.spec; +package org.openworkflow.sdk.fluent.spec; -import static io.serverlessworkflow.fluent.spec.dsl.DSL.http; import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertNotNull; +import static org.openworkflow.sdk.fluent.spec.dsl.DSL.http; -import io.serverlessworkflow.api.types.ForkTaskConfiguration; -import io.serverlessworkflow.api.types.SubscriptionIterator; -import io.serverlessworkflow.api.types.TaskItem; -import io.serverlessworkflow.api.types.TryTask; -import io.serverlessworkflow.api.types.TryTaskCatch; -import io.serverlessworkflow.api.types.Workflow; import java.time.Duration; import java.util.List; import org.junit.jupiter.api.Test; +import org.openworkflow.sdk.api.types.ForkTaskConfiguration; +import org.openworkflow.sdk.api.types.SubscriptionIterator; +import org.openworkflow.sdk.api.types.TaskItem; +import org.openworkflow.sdk.api.types.TryTask; +import org.openworkflow.sdk.api.types.TryTaskCatch; +import org.openworkflow.sdk.api.types.Workflow; /** * Unit tests to verify that TaskItems without explicit names are automatically assigned a diff --git a/fluent/spec/src/test/java/io/serverlessworkflow/fluent/spec/UseAuthenticationsBuilderTest.java b/fluent/spec/src/test/java/org/openworkflow/sdk/fluent/spec/UseAuthenticationsBuilderTest.java similarity index 96% rename from fluent/spec/src/test/java/io/serverlessworkflow/fluent/spec/UseAuthenticationsBuilderTest.java rename to fluent/spec/src/test/java/org/openworkflow/sdk/fluent/spec/UseAuthenticationsBuilderTest.java index c3ecb181e..174a20bf3 100644 --- a/fluent/spec/src/test/java/io/serverlessworkflow/fluent/spec/UseAuthenticationsBuilderTest.java +++ b/fluent/spec/src/test/java/org/openworkflow/sdk/fluent/spec/UseAuthenticationsBuilderTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,16 +13,16 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.fluent.spec; +package org.openworkflow.sdk.fluent.spec; import static org.assertj.core.api.Assertions.assertThat; -import io.serverlessworkflow.api.types.AuthenticationPolicyUnion; -import io.serverlessworkflow.api.types.OAuth2AuthenticationData.OAuth2AuthenticationDataGrant; -import io.serverlessworkflow.api.types.UseAuthentications; -import io.serverlessworkflow.api.types.Workflow; import java.net.URI; import org.junit.jupiter.api.Test; +import org.openworkflow.sdk.api.types.AuthenticationPolicyUnion; +import org.openworkflow.sdk.api.types.OAuth2AuthenticationData.OAuth2AuthenticationDataGrant; +import org.openworkflow.sdk.api.types.UseAuthentications; +import org.openworkflow.sdk.api.types.Workflow; public class UseAuthenticationsBuilderTest { diff --git a/fluent/spec/src/test/java/io/serverlessworkflow/fluent/spec/WorkflowBuilderTest.java b/fluent/spec/src/test/java/org/openworkflow/sdk/fluent/spec/WorkflowBuilderTest.java similarity index 92% rename from fluent/spec/src/test/java/io/serverlessworkflow/fluent/spec/WorkflowBuilderTest.java rename to fluent/spec/src/test/java/org/openworkflow/sdk/fluent/spec/WorkflowBuilderTest.java index cdc17c765..983312b29 100644 --- a/fluent/spec/src/test/java/io/serverlessworkflow/fluent/spec/WorkflowBuilderTest.java +++ b/fluent/spec/src/test/java/org/openworkflow/sdk/fluent/spec/WorkflowBuilderTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,61 +13,61 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.fluent.spec; - -import static io.serverlessworkflow.fluent.spec.dsl.DSL.basic; -import static io.serverlessworkflow.fluent.spec.dsl.DSL.call; -import static io.serverlessworkflow.fluent.spec.dsl.DSL.cases; -import static io.serverlessworkflow.fluent.spec.dsl.DSL.doTasks; -import static io.serverlessworkflow.fluent.spec.dsl.DSL.emit; -import static io.serverlessworkflow.fluent.spec.dsl.DSL.event; -import static io.serverlessworkflow.fluent.spec.dsl.DSL.forEach; -import static io.serverlessworkflow.fluent.spec.dsl.DSL.fork; -import static io.serverlessworkflow.fluent.spec.dsl.DSL.http; -import static io.serverlessworkflow.fluent.spec.dsl.DSL.listen; -import static io.serverlessworkflow.fluent.spec.dsl.DSL.produced; -import static io.serverlessworkflow.fluent.spec.dsl.DSL.raise; -import static io.serverlessworkflow.fluent.spec.dsl.DSL.set; -import static io.serverlessworkflow.fluent.spec.dsl.DSL.switchCase; -import static io.serverlessworkflow.fluent.spec.dsl.DSL.tryCatch; +package org.openworkflow.sdk.fluent.spec; + import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertInstanceOf; import static org.junit.jupiter.api.Assertions.assertNotNull; import static org.junit.jupiter.api.Assertions.assertNull; import static org.junit.jupiter.api.Assertions.assertThrows; import static org.junit.jupiter.api.Assertions.assertTrue; +import static org.openworkflow.sdk.fluent.spec.dsl.DSL.basic; +import static org.openworkflow.sdk.fluent.spec.dsl.DSL.call; +import static org.openworkflow.sdk.fluent.spec.dsl.DSL.cases; +import static org.openworkflow.sdk.fluent.spec.dsl.DSL.doTasks; +import static org.openworkflow.sdk.fluent.spec.dsl.DSL.emit; +import static org.openworkflow.sdk.fluent.spec.dsl.DSL.event; +import static org.openworkflow.sdk.fluent.spec.dsl.DSL.forEach; +import static org.openworkflow.sdk.fluent.spec.dsl.DSL.fork; +import static org.openworkflow.sdk.fluent.spec.dsl.DSL.http; +import static org.openworkflow.sdk.fluent.spec.dsl.DSL.listen; +import static org.openworkflow.sdk.fluent.spec.dsl.DSL.produced; +import static org.openworkflow.sdk.fluent.spec.dsl.DSL.raise; +import static org.openworkflow.sdk.fluent.spec.dsl.DSL.set; +import static org.openworkflow.sdk.fluent.spec.dsl.DSL.switchCase; +import static org.openworkflow.sdk.fluent.spec.dsl.DSL.tryCatch; -import io.serverlessworkflow.api.types.AuthenticationPolicyUnion; -import io.serverlessworkflow.api.types.CallHTTP; -import io.serverlessworkflow.api.types.CatchErrors; -import io.serverlessworkflow.api.types.CorrelateProperty; -import io.serverlessworkflow.api.types.Document; -import io.serverlessworkflow.api.types.EmitEventDefinition; -import io.serverlessworkflow.api.types.EmitTask; -import io.serverlessworkflow.api.types.ErrorFilter; -import io.serverlessworkflow.api.types.EventFilter; -import io.serverlessworkflow.api.types.EventProperties; -import io.serverlessworkflow.api.types.FlowDirectiveEnum; -import io.serverlessworkflow.api.types.HTTPArguments; -import io.serverlessworkflow.api.types.HTTPHeaders; -import io.serverlessworkflow.api.types.HTTPQuery; -import io.serverlessworkflow.api.types.ListenTask; -import io.serverlessworkflow.api.types.OneEventConsumptionStrategy; -import io.serverlessworkflow.api.types.RetryLimitAttempt; -import io.serverlessworkflow.api.types.RetryPolicy; -import io.serverlessworkflow.api.types.RunTaskConfiguration; -import io.serverlessworkflow.api.types.SetTask; -import io.serverlessworkflow.api.types.TaskItem; -import io.serverlessworkflow.api.types.TaskMetadata; -import io.serverlessworkflow.api.types.TryTask; -import io.serverlessworkflow.api.types.TryTaskCatch; -import io.serverlessworkflow.api.types.Use; -import io.serverlessworkflow.api.types.UseAuthentications; -import io.serverlessworkflow.api.types.Workflow; import java.net.URI; import java.util.List; import java.util.Map; import org.junit.jupiter.api.Test; +import org.openworkflow.sdk.api.types.AuthenticationPolicyUnion; +import org.openworkflow.sdk.api.types.CallHTTP; +import org.openworkflow.sdk.api.types.CatchErrors; +import org.openworkflow.sdk.api.types.CorrelateProperty; +import org.openworkflow.sdk.api.types.Document; +import org.openworkflow.sdk.api.types.EmitEventDefinition; +import org.openworkflow.sdk.api.types.EmitTask; +import org.openworkflow.sdk.api.types.ErrorFilter; +import org.openworkflow.sdk.api.types.EventFilter; +import org.openworkflow.sdk.api.types.EventProperties; +import org.openworkflow.sdk.api.types.FlowDirectiveEnum; +import org.openworkflow.sdk.api.types.HTTPArguments; +import org.openworkflow.sdk.api.types.HTTPHeaders; +import org.openworkflow.sdk.api.types.HTTPQuery; +import org.openworkflow.sdk.api.types.ListenTask; +import org.openworkflow.sdk.api.types.OneEventConsumptionStrategy; +import org.openworkflow.sdk.api.types.RetryLimitAttempt; +import org.openworkflow.sdk.api.types.RetryPolicy; +import org.openworkflow.sdk.api.types.RunTaskConfiguration; +import org.openworkflow.sdk.api.types.SetTask; +import org.openworkflow.sdk.api.types.TaskItem; +import org.openworkflow.sdk.api.types.TaskMetadata; +import org.openworkflow.sdk.api.types.TryTask; +import org.openworkflow.sdk.api.types.TryTaskCatch; +import org.openworkflow.sdk.api.types.Use; +import org.openworkflow.sdk.api.types.UseAuthentications; +import org.openworkflow.sdk.api.types.Workflow; /** Unit tests for the fluent WorkflowBuilder API (using static consumers). */ public class WorkflowBuilderTest { diff --git a/fluent/spec/src/test/java/io/serverlessworkflow/fluent/spec/dsl/CallGrpcDslTest.java b/fluent/spec/src/test/java/org/openworkflow/sdk/fluent/spec/dsl/CallGrpcDslTest.java similarity index 94% rename from fluent/spec/src/test/java/io/serverlessworkflow/fluent/spec/dsl/CallGrpcDslTest.java rename to fluent/spec/src/test/java/org/openworkflow/sdk/fluent/spec/dsl/CallGrpcDslTest.java index e4e2f7c08..541629884 100644 --- a/fluent/spec/src/test/java/io/serverlessworkflow/fluent/spec/dsl/CallGrpcDslTest.java +++ b/fluent/spec/src/test/java/org/openworkflow/sdk/fluent/spec/dsl/CallGrpcDslTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,18 +13,18 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.fluent.spec.dsl; +package org.openworkflow.sdk.fluent.spec.dsl; -import static io.serverlessworkflow.fluent.spec.dsl.DSL.basic; -import static io.serverlessworkflow.fluent.spec.dsl.DSL.call; -import static io.serverlessworkflow.fluent.spec.dsl.DSL.grpc; import static org.assertj.core.api.Assertions.assertThat; +import static org.openworkflow.sdk.fluent.spec.dsl.DSL.basic; +import static org.openworkflow.sdk.fluent.spec.dsl.DSL.call; +import static org.openworkflow.sdk.fluent.spec.dsl.DSL.grpc; -import io.serverlessworkflow.api.types.Workflow; -import io.serverlessworkflow.fluent.spec.WorkflowBuilder; -import io.serverlessworkflow.fluent.spec.configurers.CallGrpcConfigurer; import java.util.Map; import org.junit.jupiter.api.Test; +import org.openworkflow.sdk.api.types.Workflow; +import org.openworkflow.sdk.fluent.spec.WorkflowBuilder; +import org.openworkflow.sdk.fluent.spec.configurers.CallGrpcConfigurer; public class CallGrpcDslTest { diff --git a/fluent/spec/src/test/java/io/serverlessworkflow/fluent/spec/dsl/CallHttpAuthDslTest.java b/fluent/spec/src/test/java/org/openworkflow/sdk/fluent/spec/dsl/CallHttpAuthDslTest.java similarity index 93% rename from fluent/spec/src/test/java/io/serverlessworkflow/fluent/spec/dsl/CallHttpAuthDslTest.java rename to fluent/spec/src/test/java/org/openworkflow/sdk/fluent/spec/dsl/CallHttpAuthDslTest.java index 85c449d3e..ab9492e76 100644 --- a/fluent/spec/src/test/java/io/serverlessworkflow/fluent/spec/dsl/CallHttpAuthDslTest.java +++ b/fluent/spec/src/test/java/org/openworkflow/sdk/fluent/spec/dsl/CallHttpAuthDslTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,22 +13,22 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.fluent.spec.dsl; - -import static io.serverlessworkflow.fluent.spec.dsl.DSL.basic; -import static io.serverlessworkflow.fluent.spec.dsl.DSL.bearer; -import static io.serverlessworkflow.fluent.spec.dsl.DSL.call; -import static io.serverlessworkflow.fluent.spec.dsl.DSL.digest; -import static io.serverlessworkflow.fluent.spec.dsl.DSL.http; -import static io.serverlessworkflow.fluent.spec.dsl.DSL.oauth2; -import static io.serverlessworkflow.fluent.spec.dsl.DSL.oidc; +package org.openworkflow.sdk.fluent.spec.dsl; + import static org.assertj.core.api.Assertions.assertThat; +import static org.openworkflow.sdk.fluent.spec.dsl.DSL.basic; +import static org.openworkflow.sdk.fluent.spec.dsl.DSL.bearer; +import static org.openworkflow.sdk.fluent.spec.dsl.DSL.call; +import static org.openworkflow.sdk.fluent.spec.dsl.DSL.digest; +import static org.openworkflow.sdk.fluent.spec.dsl.DSL.http; +import static org.openworkflow.sdk.fluent.spec.dsl.DSL.oauth2; +import static org.openworkflow.sdk.fluent.spec.dsl.DSL.oidc; -import io.serverlessworkflow.api.types.OAuth2AuthenticationData; -import io.serverlessworkflow.api.types.Workflow; -import io.serverlessworkflow.fluent.spec.WorkflowBuilder; import java.net.URI; import org.junit.jupiter.api.Test; +import org.openworkflow.sdk.api.types.OAuth2AuthenticationData; +import org.openworkflow.sdk.api.types.Workflow; +import org.openworkflow.sdk.fluent.spec.WorkflowBuilder; public class CallHttpAuthDslTest { diff --git a/fluent/spec/src/test/java/io/serverlessworkflow/fluent/spec/dsl/CallHttpDslExtensionsTest.java b/fluent/spec/src/test/java/org/openworkflow/sdk/fluent/spec/dsl/CallHttpDslExtensionsTest.java similarity index 96% rename from fluent/spec/src/test/java/io/serverlessworkflow/fluent/spec/dsl/CallHttpDslExtensionsTest.java rename to fluent/spec/src/test/java/org/openworkflow/sdk/fluent/spec/dsl/CallHttpDslExtensionsTest.java index 1feda539b..a553ac086 100644 --- a/fluent/spec/src/test/java/io/serverlessworkflow/fluent/spec/dsl/CallHttpDslExtensionsTest.java +++ b/fluent/spec/src/test/java/org/openworkflow/sdk/fluent/spec/dsl/CallHttpDslExtensionsTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,17 +13,17 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.fluent.spec.dsl; +package org.openworkflow.sdk.fluent.spec.dsl; -import static io.serverlessworkflow.fluent.spec.dsl.DSL.call; -import static io.serverlessworkflow.fluent.spec.dsl.DSL.http; import static org.assertj.core.api.Assertions.assertThat; +import static org.openworkflow.sdk.fluent.spec.dsl.DSL.call; +import static org.openworkflow.sdk.fluent.spec.dsl.DSL.http; -import io.serverlessworkflow.api.types.CallHTTP; -import io.serverlessworkflow.api.types.HTTPArguments; -import io.serverlessworkflow.fluent.spec.WorkflowBuilder; import java.util.Map; import org.junit.jupiter.api.Test; +import org.openworkflow.sdk.api.types.CallHTTP; +import org.openworkflow.sdk.api.types.HTTPArguments; +import org.openworkflow.sdk.fluent.spec.WorkflowBuilder; class CallHttpDslExtensionsTest { diff --git a/fluent/spec/src/test/java/io/serverlessworkflow/fluent/spec/dsl/CallOpenApiDslTest.java b/fluent/spec/src/test/java/org/openworkflow/sdk/fluent/spec/dsl/CallOpenApiDslTest.java similarity index 88% rename from fluent/spec/src/test/java/io/serverlessworkflow/fluent/spec/dsl/CallOpenApiDslTest.java rename to fluent/spec/src/test/java/org/openworkflow/sdk/fluent/spec/dsl/CallOpenApiDslTest.java index fc2cc4b6a..e0650e9ab 100644 --- a/fluent/spec/src/test/java/io/serverlessworkflow/fluent/spec/dsl/CallOpenApiDslTest.java +++ b/fluent/spec/src/test/java/org/openworkflow/sdk/fluent/spec/dsl/CallOpenApiDslTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,18 +13,18 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.fluent.spec.dsl; +package org.openworkflow.sdk.fluent.spec.dsl; -import static io.serverlessworkflow.fluent.spec.dsl.DSL.basic; -import static io.serverlessworkflow.fluent.spec.dsl.DSL.call; -import static io.serverlessworkflow.fluent.spec.dsl.DSL.openapi; import static org.assertj.core.api.Assertions.assertThat; +import static org.openworkflow.sdk.fluent.spec.dsl.DSL.basic; +import static org.openworkflow.sdk.fluent.spec.dsl.DSL.call; +import static org.openworkflow.sdk.fluent.spec.dsl.DSL.openapi; -import io.serverlessworkflow.api.types.OpenAPIArguments; -import io.serverlessworkflow.api.types.Workflow; -import io.serverlessworkflow.fluent.spec.WorkflowBuilder; import java.util.Map; import org.junit.jupiter.api.Test; +import org.openworkflow.sdk.api.types.OpenAPIArguments; +import org.openworkflow.sdk.api.types.Workflow; +import org.openworkflow.sdk.fluent.spec.WorkflowBuilder; public class CallOpenApiDslTest { diff --git a/fluent/spec/src/test/java/io/serverlessworkflow/fluent/spec/dsl/DSLScheduleTest.java b/fluent/spec/src/test/java/org/openworkflow/sdk/fluent/spec/dsl/DSLScheduleTest.java similarity index 82% rename from fluent/spec/src/test/java/io/serverlessworkflow/fluent/spec/dsl/DSLScheduleTest.java rename to fluent/spec/src/test/java/org/openworkflow/sdk/fluent/spec/dsl/DSLScheduleTest.java index 219dedb6c..110501aa9 100644 --- a/fluent/spec/src/test/java/io/serverlessworkflow/fluent/spec/dsl/DSLScheduleTest.java +++ b/fluent/spec/src/test/java/org/openworkflow/sdk/fluent/spec/dsl/DSLScheduleTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,21 +13,21 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.fluent.spec.dsl; +package org.openworkflow.sdk.fluent.spec.dsl; -import static io.serverlessworkflow.fluent.spec.dsl.DSL.after; -import static io.serverlessworkflow.fluent.spec.dsl.DSL.cron; -import static io.serverlessworkflow.fluent.spec.dsl.DSL.event; -import static io.serverlessworkflow.fluent.spec.dsl.DSL.every; -import static io.serverlessworkflow.fluent.spec.dsl.DSL.on; -import static io.serverlessworkflow.fluent.spec.dsl.DSL.one; -import static io.serverlessworkflow.fluent.spec.dsl.DSL.timeoutHours; -import static io.serverlessworkflow.fluent.spec.dsl.DSL.timeoutMinutes; import static org.assertj.core.api.Assertions.assertThat; +import static org.openworkflow.sdk.fluent.spec.dsl.DSL.after; +import static org.openworkflow.sdk.fluent.spec.dsl.DSL.cron; +import static org.openworkflow.sdk.fluent.spec.dsl.DSL.event; +import static org.openworkflow.sdk.fluent.spec.dsl.DSL.every; +import static org.openworkflow.sdk.fluent.spec.dsl.DSL.on; +import static org.openworkflow.sdk.fluent.spec.dsl.DSL.one; +import static org.openworkflow.sdk.fluent.spec.dsl.DSL.timeoutHours; +import static org.openworkflow.sdk.fluent.spec.dsl.DSL.timeoutMinutes; -import io.serverlessworkflow.api.types.Workflow; -import io.serverlessworkflow.fluent.spec.WorkflowBuilder; import org.junit.jupiter.api.Test; +import org.openworkflow.sdk.api.types.Workflow; +import org.openworkflow.sdk.fluent.spec.WorkflowBuilder; public class DSLScheduleTest { diff --git a/fluent/spec/src/test/java/io/serverlessworkflow/fluent/spec/dsl/DSLTest.java b/fluent/spec/src/test/java/org/openworkflow/sdk/fluent/spec/dsl/DSLTest.java similarity index 91% rename from fluent/spec/src/test/java/io/serverlessworkflow/fluent/spec/dsl/DSLTest.java rename to fluent/spec/src/test/java/org/openworkflow/sdk/fluent/spec/dsl/DSLTest.java index d564bd24a..88ca75e0c 100644 --- a/fluent/spec/src/test/java/io/serverlessworkflow/fluent/spec/dsl/DSLTest.java +++ b/fluent/spec/src/test/java/org/openworkflow/sdk/fluent/spec/dsl/DSLTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,33 +13,33 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.fluent.spec.dsl; - -import static io.serverlessworkflow.fluent.spec.dsl.DSL.auth; -import static io.serverlessworkflow.fluent.spec.dsl.DSL.basic; -import static io.serverlessworkflow.fluent.spec.dsl.DSL.bearer; -import static io.serverlessworkflow.fluent.spec.dsl.DSL.call; -import static io.serverlessworkflow.fluent.spec.dsl.DSL.error; -import static io.serverlessworkflow.fluent.spec.dsl.DSL.event; -import static io.serverlessworkflow.fluent.spec.dsl.DSL.http; -import static io.serverlessworkflow.fluent.spec.dsl.DSL.openapi; -import static io.serverlessworkflow.fluent.spec.dsl.DSL.produced; -import static io.serverlessworkflow.fluent.spec.dsl.DSL.secrets; -import static io.serverlessworkflow.fluent.spec.dsl.DSL.subflow; -import static io.serverlessworkflow.fluent.spec.dsl.DSL.to; -import static io.serverlessworkflow.fluent.spec.dsl.DSL.workflow; +package org.openworkflow.sdk.fluent.spec.dsl; + import static org.assertj.core.api.Assertions.assertThat; +import static org.openworkflow.sdk.fluent.spec.dsl.DSL.auth; +import static org.openworkflow.sdk.fluent.spec.dsl.DSL.basic; +import static org.openworkflow.sdk.fluent.spec.dsl.DSL.bearer; +import static org.openworkflow.sdk.fluent.spec.dsl.DSL.call; +import static org.openworkflow.sdk.fluent.spec.dsl.DSL.error; +import static org.openworkflow.sdk.fluent.spec.dsl.DSL.event; +import static org.openworkflow.sdk.fluent.spec.dsl.DSL.http; +import static org.openworkflow.sdk.fluent.spec.dsl.DSL.openapi; +import static org.openworkflow.sdk.fluent.spec.dsl.DSL.produced; +import static org.openworkflow.sdk.fluent.spec.dsl.DSL.secrets; +import static org.openworkflow.sdk.fluent.spec.dsl.DSL.subflow; +import static org.openworkflow.sdk.fluent.spec.dsl.DSL.to; +import static org.openworkflow.sdk.fluent.spec.dsl.DSL.workflow; -import io.serverlessworkflow.api.types.CorrelateProperty; -import io.serverlessworkflow.api.types.HTTPArguments; -import io.serverlessworkflow.api.types.ListenTaskConfiguration; -import io.serverlessworkflow.api.types.RunTaskConfiguration; -import io.serverlessworkflow.api.types.Workflow; -import io.serverlessworkflow.fluent.spec.WorkflowBuilder; -import io.serverlessworkflow.types.Errors; import java.net.URI; import java.util.Map; import org.junit.jupiter.api.Test; +import org.openworkflow.sdk.api.types.CorrelateProperty; +import org.openworkflow.sdk.api.types.HTTPArguments; +import org.openworkflow.sdk.api.types.ListenTaskConfiguration; +import org.openworkflow.sdk.api.types.RunTaskConfiguration; +import org.openworkflow.sdk.api.types.Workflow; +import org.openworkflow.sdk.fluent.spec.WorkflowBuilder; +import org.openworkflow.sdk.types.Errors; public class DSLTest { @@ -298,7 +298,7 @@ void serverError_uses_versioned_uri_and_default_code() { wf.getDo().get(0).getTask().getRaiseTask().getRaise().getError().getRaiseErrorDefinition(); assertThat(def.getType().getLiteralErrorType().getLiteralUri().toString()) - .isEqualTo("https://serverlessworkflow.io/spec/1.1.0/errors/runtime"); + .isEqualTo("https://open-workflow-specification.org/1.1.0/errors/runtime"); assertThat(def.getStatus()).isEqualTo(500); assertThat(def.getTitle().get()).isEqualTo("Boom"); assertThat(def.getDetail().get()).isEqualTo("x"); diff --git a/fluent/spec/src/test/java/io/serverlessworkflow/fluent/spec/dsl/DSLTimeoutTest.java b/fluent/spec/src/test/java/org/openworkflow/sdk/fluent/spec/dsl/DSLTimeoutTest.java similarity index 89% rename from fluent/spec/src/test/java/io/serverlessworkflow/fluent/spec/dsl/DSLTimeoutTest.java rename to fluent/spec/src/test/java/org/openworkflow/sdk/fluent/spec/dsl/DSLTimeoutTest.java index bc82a79d2..9439c7af3 100644 --- a/fluent/spec/src/test/java/io/serverlessworkflow/fluent/spec/dsl/DSLTimeoutTest.java +++ b/fluent/spec/src/test/java/org/openworkflow/sdk/fluent/spec/dsl/DSLTimeoutTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,19 +13,19 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.fluent.spec.dsl; +package org.openworkflow.sdk.fluent.spec.dsl; -import static io.serverlessworkflow.fluent.spec.dsl.DSL.call; -import static io.serverlessworkflow.fluent.spec.dsl.DSL.timeoutMinutes; -import static io.serverlessworkflow.fluent.spec.dsl.DSL.timeoutSeconds; import static org.assertj.core.api.Assertions.assertThat; import static org.assertj.core.api.Assertions.assertThatThrownBy; +import static org.openworkflow.sdk.fluent.spec.dsl.DSL.call; +import static org.openworkflow.sdk.fluent.spec.dsl.DSL.timeoutMinutes; +import static org.openworkflow.sdk.fluent.spec.dsl.DSL.timeoutSeconds; -import io.serverlessworkflow.api.types.DurationInline; -import io.serverlessworkflow.api.types.Workflow; -import io.serverlessworkflow.fluent.spec.WorkflowBuilder; -import io.serverlessworkflow.fluent.spec.configurers.CallHttpConfigurer; import org.junit.jupiter.api.Test; +import org.openworkflow.sdk.api.types.DurationInline; +import org.openworkflow.sdk.api.types.Workflow; +import org.openworkflow.sdk.fluent.spec.WorkflowBuilder; +import org.openworkflow.sdk.fluent.spec.configurers.CallHttpConfigurer; public class DSLTimeoutTest { diff --git a/fluent/spec/src/test/java/io/serverlessworkflow/fluent/spec/dsl/DSLWaitTest.java b/fluent/spec/src/test/java/org/openworkflow/sdk/fluent/spec/dsl/DSLWaitTest.java similarity index 93% rename from fluent/spec/src/test/java/io/serverlessworkflow/fluent/spec/dsl/DSLWaitTest.java rename to fluent/spec/src/test/java/org/openworkflow/sdk/fluent/spec/dsl/DSLWaitTest.java index d49b77cf6..a9960f602 100644 --- a/fluent/spec/src/test/java/io/serverlessworkflow/fluent/spec/dsl/DSLWaitTest.java +++ b/fluent/spec/src/test/java/org/openworkflow/sdk/fluent/spec/dsl/DSLWaitTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,17 +13,17 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.fluent.spec.dsl; +package org.openworkflow.sdk.fluent.spec.dsl; -import static io.serverlessworkflow.fluent.spec.dsl.DSL.waitMinutes; -import static io.serverlessworkflow.fluent.spec.dsl.DSL.waitSeconds; import static org.assertj.core.api.Assertions.assertThat; +import static org.openworkflow.sdk.fluent.spec.dsl.DSL.waitMinutes; +import static org.openworkflow.sdk.fluent.spec.dsl.DSL.waitSeconds; -import io.serverlessworkflow.api.types.DurationInline; -import io.serverlessworkflow.api.types.Workflow; -import io.serverlessworkflow.fluent.spec.WorkflowBuilder; import java.time.Duration; import org.junit.jupiter.api.Test; +import org.openworkflow.sdk.api.types.DurationInline; +import org.openworkflow.sdk.api.types.Workflow; +import org.openworkflow.sdk.fluent.spec.WorkflowBuilder; public class DSLWaitTest { diff --git a/fluent/spec/src/test/java/io/serverlessworkflow/fluent/spec/dsl/TryCatchDslTest.java b/fluent/spec/src/test/java/org/openworkflow/sdk/fluent/spec/dsl/TryCatchDslTest.java similarity index 97% rename from fluent/spec/src/test/java/io/serverlessworkflow/fluent/spec/dsl/TryCatchDslTest.java rename to fluent/spec/src/test/java/org/openworkflow/sdk/fluent/spec/dsl/TryCatchDslTest.java index 7cf084620..ec1daf75b 100644 --- a/fluent/spec/src/test/java/io/serverlessworkflow/fluent/spec/dsl/TryCatchDslTest.java +++ b/fluent/spec/src/test/java/org/openworkflow/sdk/fluent/spec/dsl/TryCatchDslTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,24 +13,24 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.fluent.spec.dsl; - -import static io.serverlessworkflow.fluent.spec.dsl.DSL.call; -import static io.serverlessworkflow.fluent.spec.dsl.DSL.emit; -import static io.serverlessworkflow.fluent.spec.dsl.DSL.error; -import static io.serverlessworkflow.fluent.spec.dsl.DSL.http; -import static io.serverlessworkflow.fluent.spec.dsl.DSL.raise; -import static io.serverlessworkflow.fluent.spec.dsl.DSL.set; -import static io.serverlessworkflow.fluent.spec.dsl.DSL.tryCatch; -import static io.serverlessworkflow.fluent.spec.dsl.DSL.use; +package org.openworkflow.sdk.fluent.spec.dsl; + import static org.assertj.core.api.Assertions.assertThat; import static org.assertj.core.api.Assertions.assertThatThrownBy; +import static org.openworkflow.sdk.fluent.spec.dsl.DSL.call; +import static org.openworkflow.sdk.fluent.spec.dsl.DSL.emit; +import static org.openworkflow.sdk.fluent.spec.dsl.DSL.error; +import static org.openworkflow.sdk.fluent.spec.dsl.DSL.http; +import static org.openworkflow.sdk.fluent.spec.dsl.DSL.raise; +import static org.openworkflow.sdk.fluent.spec.dsl.DSL.set; +import static org.openworkflow.sdk.fluent.spec.dsl.DSL.tryCatch; +import static org.openworkflow.sdk.fluent.spec.dsl.DSL.use; -import io.serverlessworkflow.api.types.Workflow; -import io.serverlessworkflow.fluent.spec.WorkflowBuilder; -import io.serverlessworkflow.types.Errors; import java.net.URI; import org.junit.jupiter.api.Test; +import org.openworkflow.sdk.api.types.Workflow; +import org.openworkflow.sdk.fluent.spec.WorkflowBuilder; +import org.openworkflow.sdk.types.Errors; public class TryCatchDslTest { diff --git a/generators/jackson/pom.xml b/generators/jackson/pom.xml index 453106774..3b36c95bb 100644 --- a/generators/jackson/pom.xml +++ b/generators/jackson/pom.xml @@ -2,12 +2,12 @@ 4.0.0 maven-plugin - io.serverlessworkflow - serverlessworkflow-generators + org.openworkflow.sdk + openworkflow-generators 8.0.0-SNAPSHOT - serverless-workflow-jackson-generator - Serverless Workflow :: Generator:: Jackson + openworkflow-jackson-generator + Open Workflow :: Generator:: Jackson 3.16.0 @@ -66,12 +66,12 @@ provided - io.serverlessworkflow - serverlessworkflow-types + org.openworkflow.sdk + openworkflow-types - io.serverlessworkflow - serverlessworkflow-serialization + org.openworkflow.sdk + openworkflow-serialization \ No newline at end of file diff --git a/generators/jackson/src/main/java/io/serverlessworkflow/generator/graalvm/ReflectNativeFileHandler.java b/generators/jackson/src/main/java/org/openworkflow/sdk/generator/graalvm/ReflectNativeFileHandler.java similarity index 96% rename from generators/jackson/src/main/java/io/serverlessworkflow/generator/graalvm/ReflectNativeFileHandler.java rename to generators/jackson/src/main/java/org/openworkflow/sdk/generator/graalvm/ReflectNativeFileHandler.java index 724065c7c..8bda80fd1 100644 --- a/generators/jackson/src/main/java/io/serverlessworkflow/generator/graalvm/ReflectNativeFileHandler.java +++ b/generators/jackson/src/main/java/org/openworkflow/sdk/generator/graalvm/ReflectNativeFileHandler.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.generator.graalvm; +package org.openworkflow.sdk.generator.graalvm; import com.fasterxml.jackson.databind.JsonNode; import com.fasterxml.jackson.databind.ObjectMapper; diff --git a/generators/jackson/src/main/java/io/serverlessworkflow/generator/jackson/GeneratorUtils.java b/generators/jackson/src/main/java/org/openworkflow/sdk/generator/jackson/GeneratorUtils.java similarity index 96% rename from generators/jackson/src/main/java/io/serverlessworkflow/generator/jackson/GeneratorUtils.java rename to generators/jackson/src/main/java/org/openworkflow/sdk/generator/jackson/GeneratorUtils.java index d33be6888..fba76199f 100644 --- a/generators/jackson/src/main/java/io/serverlessworkflow/generator/jackson/GeneratorUtils.java +++ b/generators/jackson/src/main/java/org/openworkflow/sdk/generator/jackson/GeneratorUtils.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.generator.jackson; +package org.openworkflow.sdk.generator.jackson; import com.fasterxml.jackson.core.JsonGenerator; import com.fasterxml.jackson.core.JsonParser; @@ -31,11 +31,11 @@ import com.sun.codemodel.JPackage; import com.sun.codemodel.JType; import com.sun.codemodel.JVar; -import io.serverlessworkflow.serialization.DeserializeHelper; -import io.serverlessworkflow.serialization.SerializeHelper; import java.io.IOException; import java.util.Collection; import java.util.List; +import org.openworkflow.sdk.serialization.DeserializeHelper; +import org.openworkflow.sdk.serialization.SerializeHelper; public class GeneratorUtils { diff --git a/generators/jackson/src/main/java/io/serverlessworkflow/generator/jackson/JacksonMixInPojo.java b/generators/jackson/src/main/java/org/openworkflow/sdk/generator/jackson/JacksonMixInPojo.java similarity index 95% rename from generators/jackson/src/main/java/io/serverlessworkflow/generator/jackson/JacksonMixInPojo.java rename to generators/jackson/src/main/java/org/openworkflow/sdk/generator/jackson/JacksonMixInPojo.java index aedea124a..4ede3fb98 100644 --- a/generators/jackson/src/main/java/io/serverlessworkflow/generator/jackson/JacksonMixInPojo.java +++ b/generators/jackson/src/main/java/org/openworkflow/sdk/generator/jackson/JacksonMixInPojo.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.generator.jackson; +package org.openworkflow.sdk.generator.jackson; import com.fasterxml.jackson.annotation.JsonAnyGetter; import com.fasterxml.jackson.annotation.JsonAnySetter; @@ -44,13 +44,6 @@ import io.github.classgraph.ScanResult; import io.github.classgraph.TypeArgument; import io.github.classgraph.TypeSignature; -import io.serverlessworkflow.annotations.AdditionalProperties; -import io.serverlessworkflow.annotations.ExclusiveUnion; -import io.serverlessworkflow.annotations.InclusiveUnion; -import io.serverlessworkflow.annotations.Item; -import io.serverlessworkflow.annotations.ItemKey; -import io.serverlessworkflow.annotations.ItemValue; -import io.serverlessworkflow.generator.graalvm.ReflectNativeFileHandler; import java.io.File; import java.io.IOException; import java.io.PrintStream; @@ -66,6 +59,13 @@ import org.apache.maven.plugins.annotations.Mojo; import org.apache.maven.plugins.annotations.Parameter; import org.apache.maven.plugins.annotations.ResolutionScope; +import org.openworkflow.sdk.annotations.AdditionalProperties; +import org.openworkflow.sdk.annotations.ExclusiveUnion; +import org.openworkflow.sdk.annotations.InclusiveUnion; +import org.openworkflow.sdk.annotations.Item; +import org.openworkflow.sdk.annotations.ItemKey; +import org.openworkflow.sdk.annotations.ItemValue; +import org.openworkflow.sdk.generator.graalvm.ReflectNativeFileHandler; @Mojo( name = "generate", diff --git a/generators/pom.xml b/generators/pom.xml index 9ad258c40..5303d1747 100644 --- a/generators/pom.xml +++ b/generators/pom.xml @@ -1,12 +1,12 @@ 4.0.0 - io.serverlessworkflow - serverlessworkflow-parent + org.openworkflow.sdk + openworkflow-parent 8.0.0-SNAPSHOT - serverlessworkflow-generators - Serverless Workflow :: Generators + openworkflow-generators + Open Workflow :: Generators pom jackson diff --git a/generators/types/pom.xml b/generators/types/pom.xml index 633c1185d..df636b2b7 100644 --- a/generators/types/pom.xml +++ b/generators/types/pom.xml @@ -1,20 +1,20 @@ 4.0.0 - io.serverlessworkflow - serverlessworkflow-generators + org.openworkflow.sdk + openworkflow-generators 8.0.0-SNAPSHOT - serverless-workflow-types-generator - Serverless Workflow :: Generator:: Types + openworkflow-types-generator + Open Workflow :: Generator:: Types org.jsonschema2pojo jsonschema2pojo-core - io.serverlessworkflow - serverlessworkflow-annotations + org.openworkflow.sdk + openworkflow-annotations \ No newline at end of file diff --git a/generators/types/src/main/java/io/serverlessworkflow/generator/AllAnyOneOfSchemaRule.java b/generators/types/src/main/java/org/openworkflow/sdk/generator/AllAnyOneOfSchemaRule.java similarity index 98% rename from generators/types/src/main/java/io/serverlessworkflow/generator/AllAnyOneOfSchemaRule.java rename to generators/types/src/main/java/org/openworkflow/sdk/generator/AllAnyOneOfSchemaRule.java index 494f8a26a..5eb85460f 100644 --- a/generators/types/src/main/java/io/serverlessworkflow/generator/AllAnyOneOfSchemaRule.java +++ b/generators/types/src/main/java/org/openworkflow/sdk/generator/AllAnyOneOfSchemaRule.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.generator; +package org.openworkflow.sdk.generator; import com.fasterxml.jackson.databind.JsonNode; import com.fasterxml.jackson.databind.node.ArrayNode; @@ -31,10 +31,6 @@ import com.sun.codemodel.JPackage; import com.sun.codemodel.JType; import com.sun.codemodel.JVar; -import io.serverlessworkflow.annotations.ExclusiveUnion; -import io.serverlessworkflow.annotations.InclusiveUnion; -import io.serverlessworkflow.annotations.OneOfSetter; -import io.serverlessworkflow.annotations.OneOfValueProvider; import jakarta.validation.ConstraintViolationException; import java.io.UnsupportedEncodingException; import java.net.URI; @@ -51,6 +47,10 @@ import org.jsonschema2pojo.exception.GenerationException; import org.jsonschema2pojo.rules.RuleFactory; import org.jsonschema2pojo.rules.SchemaRule; +import org.openworkflow.sdk.annotations.ExclusiveUnion; +import org.openworkflow.sdk.annotations.InclusiveUnion; +import org.openworkflow.sdk.annotations.OneOfSetter; +import org.openworkflow.sdk.annotations.OneOfValueProvider; class AllAnyOneOfSchemaRule extends SchemaRule { diff --git a/generators/types/src/main/java/io/serverlessworkflow/generator/CustomAnnotator.java b/generators/types/src/main/java/org/openworkflow/sdk/generator/CustomAnnotator.java similarity index 89% rename from generators/types/src/main/java/io/serverlessworkflow/generator/CustomAnnotator.java rename to generators/types/src/main/java/org/openworkflow/sdk/generator/CustomAnnotator.java index e195e2d0d..6b56cb732 100644 --- a/generators/types/src/main/java/io/serverlessworkflow/generator/CustomAnnotator.java +++ b/generators/types/src/main/java/org/openworkflow/sdk/generator/CustomAnnotator.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,16 +13,16 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.generator; +package org.openworkflow.sdk.generator; import com.fasterxml.jackson.databind.JsonNode; import com.sun.codemodel.JDefinedClass; import com.sun.codemodel.JExpr; import com.sun.codemodel.JFieldVar; -import io.serverlessworkflow.annotations.AdditionalProperties; import jakarta.validation.constraints.Pattern; import org.jsonschema2pojo.AbstractAnnotator; import org.jsonschema2pojo.GenerationConfig; +import org.openworkflow.sdk.annotations.AdditionalProperties; public class CustomAnnotator extends AbstractAnnotator { diff --git a/generators/types/src/main/java/io/serverlessworkflow/generator/EmptyObjectTypeRule.java b/generators/types/src/main/java/org/openworkflow/sdk/generator/EmptyObjectTypeRule.java similarity index 92% rename from generators/types/src/main/java/io/serverlessworkflow/generator/EmptyObjectTypeRule.java rename to generators/types/src/main/java/org/openworkflow/sdk/generator/EmptyObjectTypeRule.java index 45dd24f22..54e193afe 100644 --- a/generators/types/src/main/java/io/serverlessworkflow/generator/EmptyObjectTypeRule.java +++ b/generators/types/src/main/java/org/openworkflow/sdk/generator/EmptyObjectTypeRule.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.generator; +package org.openworkflow.sdk.generator; import com.fasterxml.jackson.databind.JsonNode; import com.sun.codemodel.JClassContainer; diff --git a/generators/types/src/main/java/io/serverlessworkflow/generator/GeneratorUtils.java b/generators/types/src/main/java/org/openworkflow/sdk/generator/GeneratorUtils.java similarity index 94% rename from generators/types/src/main/java/io/serverlessworkflow/generator/GeneratorUtils.java rename to generators/types/src/main/java/org/openworkflow/sdk/generator/GeneratorUtils.java index 5059dcf47..21c06a7e0 100644 --- a/generators/types/src/main/java/io/serverlessworkflow/generator/GeneratorUtils.java +++ b/generators/types/src/main/java/org/openworkflow/sdk/generator/GeneratorUtils.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.generator; +package org.openworkflow.sdk.generator; import com.sun.codemodel.JAnnotationArrayMember; import com.sun.codemodel.JDefinedClass; diff --git a/generators/types/src/main/java/io/serverlessworkflow/generator/JTypeWrapper.java b/generators/types/src/main/java/org/openworkflow/sdk/generator/JTypeWrapper.java similarity index 84% rename from generators/types/src/main/java/io/serverlessworkflow/generator/JTypeWrapper.java rename to generators/types/src/main/java/org/openworkflow/sdk/generator/JTypeWrapper.java index 811a5995c..ac379feb2 100644 --- a/generators/types/src/main/java/io/serverlessworkflow/generator/JTypeWrapper.java +++ b/generators/types/src/main/java/org/openworkflow/sdk/generator/JTypeWrapper.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,10 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.generator; +package org.openworkflow.sdk.generator; -import static io.serverlessworkflow.generator.AllAnyOneOfSchemaRule.PATTERN; -import static io.serverlessworkflow.generator.AllAnyOneOfSchemaRule.REF; +import static org.openworkflow.sdk.generator.AllAnyOneOfSchemaRule.PATTERN; +import static org.openworkflow.sdk.generator.AllAnyOneOfSchemaRule.REF; import com.fasterxml.jackson.databind.JsonNode; import com.sun.codemodel.JType; diff --git a/generators/types/src/main/java/io/serverlessworkflow/generator/RefNameHelper.java b/generators/types/src/main/java/org/openworkflow/sdk/generator/RefNameHelper.java similarity index 92% rename from generators/types/src/main/java/io/serverlessworkflow/generator/RefNameHelper.java rename to generators/types/src/main/java/org/openworkflow/sdk/generator/RefNameHelper.java index 6411e886d..85c9e5ce1 100644 --- a/generators/types/src/main/java/io/serverlessworkflow/generator/RefNameHelper.java +++ b/generators/types/src/main/java/org/openworkflow/sdk/generator/RefNameHelper.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.generator; +package org.openworkflow.sdk.generator; import com.fasterxml.jackson.databind.JsonNode; import com.sun.codemodel.JClassAlreadyExistsException; diff --git a/generators/types/src/main/java/io/serverlessworkflow/generator/UnevaluatedPropertiesRule.java b/generators/types/src/main/java/org/openworkflow/sdk/generator/UnevaluatedPropertiesRule.java similarity index 94% rename from generators/types/src/main/java/io/serverlessworkflow/generator/UnevaluatedPropertiesRule.java rename to generators/types/src/main/java/org/openworkflow/sdk/generator/UnevaluatedPropertiesRule.java index 5388a5039..f51f7b338 100644 --- a/generators/types/src/main/java/io/serverlessworkflow/generator/UnevaluatedPropertiesRule.java +++ b/generators/types/src/main/java/org/openworkflow/sdk/generator/UnevaluatedPropertiesRule.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.generator; +package org.openworkflow.sdk.generator; import com.fasterxml.jackson.databind.JsonNode; import com.sun.codemodel.JClassAlreadyExistsException; @@ -23,14 +23,14 @@ import com.sun.codemodel.JMethod; import com.sun.codemodel.JMod; import com.sun.codemodel.JType; -import io.serverlessworkflow.annotations.Item; -import io.serverlessworkflow.annotations.ItemKey; -import io.serverlessworkflow.annotations.ItemValue; import org.jsonschema2pojo.Schema; import org.jsonschema2pojo.rules.AdditionalPropertiesRule; import org.jsonschema2pojo.rules.Rule; import org.jsonschema2pojo.rules.RuleFactory; import org.jsonschema2pojo.util.NameHelper; +import org.openworkflow.sdk.annotations.Item; +import org.openworkflow.sdk.annotations.ItemKey; +import org.openworkflow.sdk.annotations.ItemValue; public class UnevaluatedPropertiesRule extends AdditionalPropertiesRule implements Rule { diff --git a/generators/types/src/main/java/io/serverlessworkflow/generator/UnreferencedFactory.java b/generators/types/src/main/java/org/openworkflow/sdk/generator/UnreferencedFactory.java similarity index 93% rename from generators/types/src/main/java/io/serverlessworkflow/generator/UnreferencedFactory.java rename to generators/types/src/main/java/org/openworkflow/sdk/generator/UnreferencedFactory.java index f101fb8dd..06ea03163 100644 --- a/generators/types/src/main/java/io/serverlessworkflow/generator/UnreferencedFactory.java +++ b/generators/types/src/main/java/org/openworkflow/sdk/generator/UnreferencedFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.generator; +package org.openworkflow.sdk.generator; import com.sun.codemodel.JClassContainer; import com.sun.codemodel.JDefinedClass; diff --git a/impl/README.md b/impl/README.md index 1c3d9dfc0..cb772fdc2 100644 --- a/impl/README.md +++ b/impl/README.md @@ -1,8 +1,8 @@ -[![Gitpod ready-to-code](https://img.shields.io/badge/Gitpod-ready--to--code-blue?logo=gitpod)](https://gitpod.io/#https://github.com/serverlessworkflow/sdk-java) +[![Gitpod ready-to-code](https://img.shields.io/badge/Gitpod-ready--to--code-blue?logo=gitpod)](https://gitpod.io/#https://github.com/open-workflow-specification/sdk-java) -# Serverless Workflow Specification — Java SDK (Reference Implementation) +# Open Workflow Specification — Java SDK (Reference Implementation) -A lightweight, non-blocking, reactive **runtime** for the [Serverless Workflow](https://serverlessworkflow.io/) specification. Use it to load, validate, and execute workflows written in YAML/JSON—or build them programmatically with our Fluent DSL. +A lightweight, non-blocking, reactive **runtime** for the [Open Workflow](https://openworkflow.io/) specification. Use it to load, validate, and execute workflows written in YAML/JSON—or build them programmatically with our Fluent DSL. --- @@ -78,47 +78,31 @@ This reference implementation can run workflows consisting of: This SDK is modular by design—pull in only what you need: -* **serverlessworkflow-impl-core** +* **openworkflow-impl-core** Workflow engine & core interfaces. Depends on generated types and CloudEvents SDK. -* **serverlessworkflow-impl-jackson** +* **openworkflow-impl-jackson** 👉 **Most users add this one.** Adds Jackson integration, JQ expressions, JSON Schema validation, and CloudEvents (de)serialization. Internally, this module is an aggregation of smaller modules to allow part replacement if needed: - * **serverlessworkflow-impl-jq** JQ expression implementation - * **serverlessworkflow-impl-model** Jackson model implementation - * **serverlessworkflow-impl-validation** Schema validation implementation - * **serverlessworkflow-impl-lifecycle-events** Enable publication of lifecycle events as Json cloud events. - * **serverlessworkflow-impl-function** Function support. - * **serverlessworkflow-impl-template-resolver** JaxRS URI template implementation. - * **serverlessworkflow-impl-json** Json common utilities shared by all modules in this list - * **serverlessworkflow-impl-cron** Cron parsing - -* **serverlessworkflow-impl-http** - HTTP `Call` task handler, based on Jax-RS client - -* **serverlessworkflow-impl-jackson-jwt** - Optimized entity converter for Jackson model and OAuth2/OIDC helpers for HTTP calls. - -* **serverlessworkflow-impl-openapi** - OpenAPI support using Jackson - - * **serverlessworkflow-impl-openapi-base** - Base OpenAPI support intended to be extended for a specific JSON library - -* **serverlessworkflow-impl-grpc** - gRPC support - -* **serverlessworkflow-impl-script-python** - Python support - -* **serverlessworkflow-impl-script-js** - Javascript support - -* **serverlessworkflow-impl-container** - Docker container support + * **openworkflow-impl-jq** JQ expression implementation + * **openworkflow-impl-model** Jackson model implementation + * **openworkflow-impl-validation** Schema validation implementation + * **openworkflow-impl-lifecycle-events** Enable publication of lifecycle events as Json cloud events. + * **openworkflow-impl-function** Function support. + * **openworkflow-impl-template-resolver** JaxRS URI template implementation. + * **openworkflow-impl-json** Json common utilities shared by all modules in this list + * **openworkflow-impl-cron** Cron parsing + * **openworkflow-impl-http** HTTP `Call` task handler, based on Jax-RS client + * **openworkflow-impl-jackson-jwt** Optimized entity converter for Jackson model and OAuth2/OIDC helpers for HTTP calls. + * **openworkflow-impl-openapi** OpenAPI support using Jackson + * **openworkflow-impl-openapi-base** Base OpenAPI support intended to be extended for a specific JSON library + * **openworkflow-impl-grpc** gRPC support + * **openworkflow-impl-script-python** Python support + * **openworkflow-impl-script-js** Javascript support + * **openworkflow-impl-container** Docker container support There are also companion modules/docs for: @@ -136,29 +120,29 @@ Links below. ```xml - io.serverlessworkflow - serverlessworkflow-impl-jackson + org.openworkflow.sdk + openworkflow-impl-jackson - io.serverlessworkflow - serverlessworkflow-impl-http + org.openworkflow.sdk + openworkflow-impl-http - io.serverlessworkflow - serverlessworkflow-impl-jackson-jwt + org.openworkflow.sdk + openworkflow-impl-jackson-jwt ``` ### Gradle (Kotlin/Groovy) ```gradle -implementation("io.serverlessworkflow:serverlessworkflow-impl-jackson") -implementation("io.serverlessworkflow:serverlessworkflow-impl-http") // if using HTTP -implementation("io.serverlessworkflow:serverlessworkflow-impl-jackson-jwt") // if using OAuth2/OIDC +implementation("org.openworkflow.sdk:openworkflow-impl-jackson") +implementation("org.openworkflow.sdk:openworkflow-impl-http") // if using HTTP +implementation("org.openworkflow.sdk:openworkflow-impl-jackson-jwt") // if using OAuth2/OIDC ``` > Requires **Java 17+**. @@ -202,8 +186,8 @@ Workflow output is {"id":10,"category":{"id":10,"name":"string"},"name":"doggie" Full examples: -* Blocking: [examples/simpleGet/src/main/java/io/serverlessworkflow/impl/BlockingExample.java]() -* Non-blocking: [examples/simpleGet/src/main/java/io/serverlessworkflow/impl/NotBlockingExample.java]() +* Blocking: [examples/simpleGet/src/main/java/org/openworkflow/sdk/impl/BlockingExample.java]() +* Non-blocking: [examples/simpleGet/src/main/java/org/openworkflow/sdk/impl/NotBlockingExample.java]() --- @@ -246,7 +230,7 @@ Source: `examples/events/src/main/java/events/EventExample.java` ## Workflow execution control -As shown in previous examples, to start a new workflow instance, first a [WorkflowInstance](https://github.com/serverlessworkflow/sdk-java/blob/main/impl/core/src/main/java/io/serverlessworkflow/impl/WorkflowInstance.java) is created from a [WorkflowDefinition](https://github.com/serverlessworkflow/sdk-java/blob/main/impl/core/src/main/java/io/serverlessworkflow/impl/WorkflowDefinition.java#L74), specifying the desired input, and then start method is invoked over it. Start method returns a CompletableFuture, which might be used to obtain the output, either synchronously or asynchronously. +As shown in previous examples, to start a new workflow instance, first a [WorkflowInstance](https://github.com/open-workflow-specification/sdk-java/blob/main/impl/core/src/main/java/org/openworkflow/sdk/impl/WorkflowInstance.java) is created from a [WorkflowDefinition](https://github.com/open-workflow-specification/sdk-java/blob/main/impl/core/src/main/java/org/openworkflow/sdk/impl/WorkflowDefinition.java#L74), specifying the desired input, and then start method is invoked over it. Start method returns a CompletableFuture, which might be used to obtain the output, either synchronously or asynchronously. Once started, and before it completes, a workflow instance execution can be suspended or cancelled. Once cancelled, a workflow instance is done, while a suspended one might be resumed. @@ -257,7 +241,7 @@ Workflow progress might be recorded into DB. See [details](persistence/README.md ## Fluent Java DSL Prefer building workflows programmatically with type-safe builders and recipes? -👉 **Docs:** [https://github.com/serverlessworkflow/sdk-java/blob/main/fluent/README.md](https://github.com/serverlessworkflow/sdk-java/blob/main/fluent/README.md) +👉 **Docs:** [https://github.com/open-workflow-specification/sdk-java/blob/main/fluent/README.md](https://github.com/open-workflow-specification/sdk-java/blob/main/fluent/README.md) Highlights: @@ -270,7 +254,7 @@ Highlights: ## Mermaid Diagrams Generate Mermaid diagrams for your workflows right from the SDK. -👉 **Docs:** [https://github.com/serverlessworkflow/sdk-java/blob/main/mermaid/README.md](https://github.com/serverlessworkflow/sdk-java/blob/main/mermaid/README.md) +👉 **Docs:** [https://github.com/open-workflow-specification/sdk-java/blob/main/mermaid/README.md](https://github.com/open-workflow-specification/sdk-java/blob/main/mermaid/README.md) Great for docs, PRs, and visual reviews. @@ -280,8 +264,8 @@ Great for docs, PRs, and visual reviews. Every workflow publishes CloudEvents you can subscribe to (in-memory or your own broker): -* `io.serverlessworkflow.workflow.*` → `pending`, `started`, `suspended`, `faulted`, `resumed`, `cancelled`, `completed` -* `io.serverlessworkflow.task.*` → `started`, `suspended`, `resumed`, `cancelled`, `completed` +* `org.openworkflow.workflow.*` → `pending`, `started`, `suspended`, `faulted`, `resumed`, `cancelled`, `completed` +* `org.openworkflow.task.*` → `started`, `suspended`, `resumed`, `cancelled`, `completed` See `impl` tests/examples for consuming and asserting on these events. diff --git a/impl/a2a/pom.xml b/impl/a2a/pom.xml index 91a8fac99..6cd8fde76 100644 --- a/impl/a2a/pom.xml +++ b/impl/a2a/pom.xml @@ -1,16 +1,16 @@ 4.0.0 - io.serverlessworkflow - serverlessworkflow-impl + org.openworkflow.sdk + openworkflow-impl 8.0.0-SNAPSHOT - serverlessworkflow-impl-a2a - Serverless Workflow :: Impl :: A2A + openworkflow-impl-a2a + Open Workflow :: Impl :: A2A - io.serverlessworkflow - serverlessworkflow-impl-core + org.openworkflow.sdk + openworkflow-impl-core org.a2aproject.sdk diff --git a/impl/a2a/src/main/java/io/serverlessworkflow/impl/executors/a2a/A2AExceptionHandler.java b/impl/a2a/src/main/java/org/openworkflow/sdk/impl/executors/a2a/A2AExceptionHandler.java similarity index 83% rename from impl/a2a/src/main/java/io/serverlessworkflow/impl/executors/a2a/A2AExceptionHandler.java rename to impl/a2a/src/main/java/org/openworkflow/sdk/impl/executors/a2a/A2AExceptionHandler.java index 2ccdcdda2..cf8a1e723 100644 --- a/impl/a2a/src/main/java/io/serverlessworkflow/impl/executors/a2a/A2AExceptionHandler.java +++ b/impl/a2a/src/main/java/org/openworkflow/sdk/impl/executors/a2a/A2AExceptionHandler.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,12 +13,12 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.executors.a2a; +package org.openworkflow.sdk.impl.executors.a2a; -import io.serverlessworkflow.impl.WorkflowModel; -import io.serverlessworkflow.impl.WorkflowPosition; import java.util.concurrent.CompletableFuture; import java.util.function.Consumer; +import org.openworkflow.sdk.impl.WorkflowModel; +import org.openworkflow.sdk.impl.WorkflowPosition; class A2AExceptionHandler implements Consumer { diff --git a/impl/a2a/src/main/java/io/serverlessworkflow/impl/executors/a2a/A2AExecutor.java b/impl/a2a/src/main/java/org/openworkflow/sdk/impl/executors/a2a/A2AExecutor.java similarity index 89% rename from impl/a2a/src/main/java/io/serverlessworkflow/impl/executors/a2a/A2AExecutor.java rename to impl/a2a/src/main/java/org/openworkflow/sdk/impl/executors/a2a/A2AExecutor.java index 1727cb059..ba92ab502 100644 --- a/impl/a2a/src/main/java/io/serverlessworkflow/impl/executors/a2a/A2AExecutor.java +++ b/impl/a2a/src/main/java/org/openworkflow/sdk/impl/executors/a2a/A2AExecutor.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,13 +13,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.executors.a2a; +package org.openworkflow.sdk.impl.executors.a2a; -import io.serverlessworkflow.impl.TaskContext; -import io.serverlessworkflow.impl.WorkflowContext; -import io.serverlessworkflow.impl.WorkflowModel; -import io.serverlessworkflow.impl.WorkflowValueResolver; -import io.serverlessworkflow.impl.executors.CallableTask; import java.net.URI; import java.util.Map; import java.util.Optional; @@ -30,6 +25,11 @@ import org.a2aproject.sdk.client.transport.jsonrpc.JSONRPCTransport; import org.a2aproject.sdk.client.transport.jsonrpc.JSONRPCTransportConfig; import org.a2aproject.sdk.spec.A2AClientException; +import org.openworkflow.sdk.impl.TaskContext; +import org.openworkflow.sdk.impl.WorkflowContext; +import org.openworkflow.sdk.impl.WorkflowModel; +import org.openworkflow.sdk.impl.WorkflowValueResolver; +import org.openworkflow.sdk.impl.executors.CallableTask; import org.slf4j.Logger; import org.slf4j.LoggerFactory; diff --git a/impl/a2a/src/main/java/io/serverlessworkflow/impl/executors/a2a/A2AExecutorBuilder.java b/impl/a2a/src/main/java/org/openworkflow/sdk/impl/executors/a2a/A2AExecutorBuilder.java similarity index 81% rename from impl/a2a/src/main/java/io/serverlessworkflow/impl/executors/a2a/A2AExecutorBuilder.java rename to impl/a2a/src/main/java/org/openworkflow/sdk/impl/executors/a2a/A2AExecutorBuilder.java index b49e37e88..d01923882 100644 --- a/impl/a2a/src/main/java/io/serverlessworkflow/impl/executors/a2a/A2AExecutorBuilder.java +++ b/impl/a2a/src/main/java/org/openworkflow/sdk/impl/executors/a2a/A2AExecutorBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,22 +13,22 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.executors.a2a; +package org.openworkflow.sdk.impl.executors.a2a; -import io.serverlessworkflow.api.types.A2AArguments; -import io.serverlessworkflow.api.types.CallA2A; -import io.serverlessworkflow.api.types.Parameters; -import io.serverlessworkflow.api.types.TaskBase; -import io.serverlessworkflow.api.types.WithA2AParameters; -import io.serverlessworkflow.impl.WorkflowDefinition; -import io.serverlessworkflow.impl.WorkflowMutablePosition; -import io.serverlessworkflow.impl.WorkflowUtils; -import io.serverlessworkflow.impl.WorkflowValueResolver; -import io.serverlessworkflow.impl.executors.CallableTaskBuilder; -import io.serverlessworkflow.impl.executors.CallableTaskFactory; import java.net.URI; import java.util.Map; import java.util.Optional; +import org.openworkflow.sdk.api.types.A2AArguments; +import org.openworkflow.sdk.api.types.CallA2A; +import org.openworkflow.sdk.api.types.Parameters; +import org.openworkflow.sdk.api.types.TaskBase; +import org.openworkflow.sdk.api.types.WithA2AParameters; +import org.openworkflow.sdk.impl.WorkflowDefinition; +import org.openworkflow.sdk.impl.WorkflowMutablePosition; +import org.openworkflow.sdk.impl.WorkflowUtils; +import org.openworkflow.sdk.impl.WorkflowValueResolver; +import org.openworkflow.sdk.impl.executors.CallableTaskBuilder; +import org.openworkflow.sdk.impl.executors.CallableTaskFactory; public class A2AExecutorBuilder implements CallableTaskBuilder { diff --git a/impl/a2a/src/main/java/io/serverlessworkflow/impl/executors/a2a/A2ARequestDispatcher.java b/impl/a2a/src/main/java/org/openworkflow/sdk/impl/executors/a2a/A2ARequestDispatcher.java similarity index 78% rename from impl/a2a/src/main/java/io/serverlessworkflow/impl/executors/a2a/A2ARequestDispatcher.java rename to impl/a2a/src/main/java/org/openworkflow/sdk/impl/executors/a2a/A2ARequestDispatcher.java index 6e8c91b17..ca78c5f42 100644 --- a/impl/a2a/src/main/java/io/serverlessworkflow/impl/executors/a2a/A2ARequestDispatcher.java +++ b/impl/a2a/src/main/java/org/openworkflow/sdk/impl/executors/a2a/A2ARequestDispatcher.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,15 +13,15 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.executors.a2a; +package org.openworkflow.sdk.impl.executors.a2a; -import io.serverlessworkflow.impl.TaskContext; -import io.serverlessworkflow.impl.WorkflowContext; -import io.serverlessworkflow.impl.WorkflowModel; import java.util.Map; import java.util.concurrent.CompletableFuture; import org.a2aproject.sdk.client.Client; import org.a2aproject.sdk.spec.AgentCard; +import org.openworkflow.sdk.impl.TaskContext; +import org.openworkflow.sdk.impl.WorkflowContext; +import org.openworkflow.sdk.impl.WorkflowModel; @FunctionalInterface interface A2ARequestDispatcher { diff --git a/impl/a2a/src/main/java/io/serverlessworkflow/impl/executors/a2a/A2AUtils.java b/impl/a2a/src/main/java/org/openworkflow/sdk/impl/executors/a2a/A2AUtils.java similarity index 90% rename from impl/a2a/src/main/java/io/serverlessworkflow/impl/executors/a2a/A2AUtils.java rename to impl/a2a/src/main/java/org/openworkflow/sdk/impl/executors/a2a/A2AUtils.java index 75c844350..96fdcfa32 100644 --- a/impl/a2a/src/main/java/io/serverlessworkflow/impl/executors/a2a/A2AUtils.java +++ b/impl/a2a/src/main/java/org/openworkflow/sdk/impl/executors/a2a/A2AUtils.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,15 +13,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.executors.a2a; - -import io.serverlessworkflow.impl.WorkflowContext; -import io.serverlessworkflow.impl.WorkflowError; -import io.serverlessworkflow.impl.WorkflowException; -import io.serverlessworkflow.impl.WorkflowModel; -import io.serverlessworkflow.impl.WorkflowModelFactory; -import io.serverlessworkflow.impl.WorkflowPosition; -import io.serverlessworkflow.types.Errors; +package org.openworkflow.sdk.impl.executors.a2a; + import java.time.Instant; import java.util.Map; import java.util.Optional; @@ -29,6 +22,13 @@ import java.util.function.Supplier; import org.a2aproject.sdk.spec.Message; import org.a2aproject.sdk.spec.Task; +import org.openworkflow.sdk.impl.WorkflowContext; +import org.openworkflow.sdk.impl.WorkflowError; +import org.openworkflow.sdk.impl.WorkflowException; +import org.openworkflow.sdk.impl.WorkflowModel; +import org.openworkflow.sdk.impl.WorkflowModelFactory; +import org.openworkflow.sdk.impl.WorkflowPosition; +import org.openworkflow.sdk.types.Errors; import org.slf4j.Logger; import org.slf4j.LoggerFactory; diff --git a/impl/a2a/src/main/java/io/serverlessworkflow/impl/executors/a2a/CancelTaskDispatcher.java b/impl/a2a/src/main/java/org/openworkflow/sdk/impl/executors/a2a/CancelTaskDispatcher.java similarity index 81% rename from impl/a2a/src/main/java/io/serverlessworkflow/impl/executors/a2a/CancelTaskDispatcher.java rename to impl/a2a/src/main/java/org/openworkflow/sdk/impl/executors/a2a/CancelTaskDispatcher.java index eb27c43b8..38e7a7f8e 100644 --- a/impl/a2a/src/main/java/io/serverlessworkflow/impl/executors/a2a/CancelTaskDispatcher.java +++ b/impl/a2a/src/main/java/org/openworkflow/sdk/impl/executors/a2a/CancelTaskDispatcher.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,18 +13,18 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.executors.a2a; +package org.openworkflow.sdk.impl.executors.a2a; -import static io.serverlessworkflow.impl.executors.a2a.A2AUtils.param; +import static org.openworkflow.sdk.impl.executors.a2a.A2AUtils.param; -import io.serverlessworkflow.impl.TaskContext; -import io.serverlessworkflow.impl.WorkflowContext; -import io.serverlessworkflow.impl.WorkflowModel; import java.util.Map; import java.util.concurrent.CompletableFuture; import org.a2aproject.sdk.client.Client; import org.a2aproject.sdk.spec.AgentCard; import org.a2aproject.sdk.spec.CancelTaskParams; +import org.openworkflow.sdk.impl.TaskContext; +import org.openworkflow.sdk.impl.WorkflowContext; +import org.openworkflow.sdk.impl.WorkflowModel; import org.slf4j.Logger; import org.slf4j.LoggerFactory; diff --git a/impl/a2a/src/main/java/io/serverlessworkflow/impl/executors/a2a/GetTaskDispatcher.java b/impl/a2a/src/main/java/org/openworkflow/sdk/impl/executors/a2a/GetTaskDispatcher.java similarity index 81% rename from impl/a2a/src/main/java/io/serverlessworkflow/impl/executors/a2a/GetTaskDispatcher.java rename to impl/a2a/src/main/java/org/openworkflow/sdk/impl/executors/a2a/GetTaskDispatcher.java index 0b0526678..4401ff04b 100644 --- a/impl/a2a/src/main/java/io/serverlessworkflow/impl/executors/a2a/GetTaskDispatcher.java +++ b/impl/a2a/src/main/java/org/openworkflow/sdk/impl/executors/a2a/GetTaskDispatcher.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,18 +13,18 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.executors.a2a; +package org.openworkflow.sdk.impl.executors.a2a; -import static io.serverlessworkflow.impl.executors.a2a.A2AUtils.param; +import static org.openworkflow.sdk.impl.executors.a2a.A2AUtils.param; -import io.serverlessworkflow.impl.TaskContext; -import io.serverlessworkflow.impl.WorkflowContext; -import io.serverlessworkflow.impl.WorkflowModel; import java.util.Map; import java.util.concurrent.CompletableFuture; import org.a2aproject.sdk.client.Client; import org.a2aproject.sdk.spec.AgentCard; import org.a2aproject.sdk.spec.TaskQueryParams; +import org.openworkflow.sdk.impl.TaskContext; +import org.openworkflow.sdk.impl.WorkflowContext; +import org.openworkflow.sdk.impl.WorkflowModel; import org.slf4j.Logger; import org.slf4j.LoggerFactory; diff --git a/impl/a2a/src/main/java/io/serverlessworkflow/impl/executors/a2a/ListTaskDispatcher.java b/impl/a2a/src/main/java/org/openworkflow/sdk/impl/executors/a2a/ListTaskDispatcher.java similarity index 81% rename from impl/a2a/src/main/java/io/serverlessworkflow/impl/executors/a2a/ListTaskDispatcher.java rename to impl/a2a/src/main/java/org/openworkflow/sdk/impl/executors/a2a/ListTaskDispatcher.java index 8294b42c2..5bcbd3993 100644 --- a/impl/a2a/src/main/java/io/serverlessworkflow/impl/executors/a2a/ListTaskDispatcher.java +++ b/impl/a2a/src/main/java/org/openworkflow/sdk/impl/executors/a2a/ListTaskDispatcher.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,16 +13,11 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.executors.a2a; +package org.openworkflow.sdk.impl.executors.a2a; -import static io.serverlessworkflow.impl.executors.a2a.A2AUtils.enumParam; -import static io.serverlessworkflow.impl.executors.a2a.A2AUtils.optionalParam; +import static org.openworkflow.sdk.impl.executors.a2a.A2AUtils.enumParam; +import static org.openworkflow.sdk.impl.executors.a2a.A2AUtils.optionalParam; -import io.serverlessworkflow.impl.TaskContext; -import io.serverlessworkflow.impl.WorkflowContext; -import io.serverlessworkflow.impl.WorkflowModel; -import io.serverlessworkflow.impl.WorkflowModelCollection; -import io.serverlessworkflow.impl.WorkflowModelFactory; import java.time.Instant; import java.util.Map; import java.util.Optional; @@ -32,6 +27,11 @@ import org.a2aproject.sdk.spec.AgentCard; import org.a2aproject.sdk.spec.ListTasksParams; import org.a2aproject.sdk.spec.TaskState; +import org.openworkflow.sdk.impl.TaskContext; +import org.openworkflow.sdk.impl.WorkflowContext; +import org.openworkflow.sdk.impl.WorkflowModel; +import org.openworkflow.sdk.impl.WorkflowModelCollection; +import org.openworkflow.sdk.impl.WorkflowModelFactory; class ListTaskDispatcher implements A2ARequestDispatcher { diff --git a/impl/a2a/src/main/java/io/serverlessworkflow/impl/executors/a2a/MessageConsumer.java b/impl/a2a/src/main/java/org/openworkflow/sdk/impl/executors/a2a/MessageConsumer.java similarity index 80% rename from impl/a2a/src/main/java/io/serverlessworkflow/impl/executors/a2a/MessageConsumer.java rename to impl/a2a/src/main/java/org/openworkflow/sdk/impl/executors/a2a/MessageConsumer.java index 2bc06aa0f..b3f69d2a3 100644 --- a/impl/a2a/src/main/java/io/serverlessworkflow/impl/executors/a2a/MessageConsumer.java +++ b/impl/a2a/src/main/java/org/openworkflow/sdk/impl/executors/a2a/MessageConsumer.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,15 +13,15 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.executors.a2a; +package org.openworkflow.sdk.impl.executors.a2a; -import io.serverlessworkflow.impl.WorkflowDefinition; -import io.serverlessworkflow.impl.WorkflowModel; -import io.serverlessworkflow.impl.WorkflowModelFactory; import java.util.concurrent.CompletableFuture; import java.util.function.BiConsumer; import org.a2aproject.sdk.client.ClientEvent; import org.a2aproject.sdk.spec.AgentCard; +import org.openworkflow.sdk.impl.WorkflowDefinition; +import org.openworkflow.sdk.impl.WorkflowModel; +import org.openworkflow.sdk.impl.WorkflowModelFactory; abstract class MessageConsumer implements BiConsumer { diff --git a/impl/a2a/src/main/java/io/serverlessworkflow/impl/executors/a2a/MessageConsumerFactory.java b/impl/a2a/src/main/java/org/openworkflow/sdk/impl/executors/a2a/MessageConsumerFactory.java similarity index 80% rename from impl/a2a/src/main/java/io/serverlessworkflow/impl/executors/a2a/MessageConsumerFactory.java rename to impl/a2a/src/main/java/org/openworkflow/sdk/impl/executors/a2a/MessageConsumerFactory.java index 88b58e9df..14afb1a86 100644 --- a/impl/a2a/src/main/java/io/serverlessworkflow/impl/executors/a2a/MessageConsumerFactory.java +++ b/impl/a2a/src/main/java/org/openworkflow/sdk/impl/executors/a2a/MessageConsumerFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,13 +13,13 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.executors.a2a; +package org.openworkflow.sdk.impl.executors.a2a; -import io.serverlessworkflow.impl.TaskContext; -import io.serverlessworkflow.impl.WorkflowContext; -import io.serverlessworkflow.impl.WorkflowModel; import java.util.concurrent.CompletableFuture; import java.util.function.Consumer; +import org.openworkflow.sdk.impl.TaskContext; +import org.openworkflow.sdk.impl.WorkflowContext; +import org.openworkflow.sdk.impl.WorkflowModel; @FunctionalInterface interface MessageConsumerFactory { diff --git a/impl/a2a/src/main/java/io/serverlessworkflow/impl/executors/a2a/MessageDispatcher.java b/impl/a2a/src/main/java/org/openworkflow/sdk/impl/executors/a2a/MessageDispatcher.java similarity index 86% rename from impl/a2a/src/main/java/io/serverlessworkflow/impl/executors/a2a/MessageDispatcher.java rename to impl/a2a/src/main/java/org/openworkflow/sdk/impl/executors/a2a/MessageDispatcher.java index 385b9932c..0d23b9e8f 100644 --- a/impl/a2a/src/main/java/io/serverlessworkflow/impl/executors/a2a/MessageDispatcher.java +++ b/impl/a2a/src/main/java/org/openworkflow/sdk/impl/executors/a2a/MessageDispatcher.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,15 +13,12 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.executors.a2a; +package org.openworkflow.sdk.impl.executors.a2a; -import static io.serverlessworkflow.impl.executors.a2a.A2AUtils.isInstanceOrThrow; -import static io.serverlessworkflow.impl.executors.a2a.A2AUtils.optionalParam; -import static io.serverlessworkflow.impl.executors.a2a.A2AUtils.param; +import static org.openworkflow.sdk.impl.executors.a2a.A2AUtils.isInstanceOrThrow; +import static org.openworkflow.sdk.impl.executors.a2a.A2AUtils.optionalParam; +import static org.openworkflow.sdk.impl.executors.a2a.A2AUtils.param; -import io.serverlessworkflow.impl.TaskContext; -import io.serverlessworkflow.impl.WorkflowContext; -import io.serverlessworkflow.impl.WorkflowModel; import java.util.ArrayList; import java.util.Collection; import java.util.List; @@ -34,6 +31,9 @@ import org.a2aproject.sdk.spec.Message.Role; import org.a2aproject.sdk.spec.Part; import org.a2aproject.sdk.spec.TextPart; +import org.openworkflow.sdk.impl.TaskContext; +import org.openworkflow.sdk.impl.WorkflowContext; +import org.openworkflow.sdk.impl.WorkflowModel; import org.slf4j.Logger; import org.slf4j.LoggerFactory; diff --git a/impl/a2a/src/main/java/io/serverlessworkflow/impl/executors/a2a/MessageSendConsumer.java b/impl/a2a/src/main/java/org/openworkflow/sdk/impl/executors/a2a/MessageSendConsumer.java similarity index 85% rename from impl/a2a/src/main/java/io/serverlessworkflow/impl/executors/a2a/MessageSendConsumer.java rename to impl/a2a/src/main/java/org/openworkflow/sdk/impl/executors/a2a/MessageSendConsumer.java index 5ac792bd2..4a7d0fd60 100644 --- a/impl/a2a/src/main/java/io/serverlessworkflow/impl/executors/a2a/MessageSendConsumer.java +++ b/impl/a2a/src/main/java/org/openworkflow/sdk/impl/executors/a2a/MessageSendConsumer.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,15 +13,15 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.executors.a2a; +package org.openworkflow.sdk.impl.executors.a2a; -import io.serverlessworkflow.impl.WorkflowDefinition; -import io.serverlessworkflow.impl.WorkflowModel; import java.util.concurrent.CompletableFuture; import org.a2aproject.sdk.client.ClientEvent; import org.a2aproject.sdk.client.MessageEvent; import org.a2aproject.sdk.client.TaskEvent; import org.a2aproject.sdk.spec.AgentCard; +import org.openworkflow.sdk.impl.WorkflowDefinition; +import org.openworkflow.sdk.impl.WorkflowModel; class MessageSendConsumer extends MessageConsumer { diff --git a/impl/a2a/src/main/java/io/serverlessworkflow/impl/executors/a2a/MessageStreamConsumer.java b/impl/a2a/src/main/java/org/openworkflow/sdk/impl/executors/a2a/MessageStreamConsumer.java similarity index 87% rename from impl/a2a/src/main/java/io/serverlessworkflow/impl/executors/a2a/MessageStreamConsumer.java rename to impl/a2a/src/main/java/org/openworkflow/sdk/impl/executors/a2a/MessageStreamConsumer.java index bd5e386e6..0011c11ab 100644 --- a/impl/a2a/src/main/java/io/serverlessworkflow/impl/executors/a2a/MessageStreamConsumer.java +++ b/impl/a2a/src/main/java/org/openworkflow/sdk/impl/executors/a2a/MessageStreamConsumer.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,12 +13,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.executors.a2a; +package org.openworkflow.sdk.impl.executors.a2a; -import io.serverlessworkflow.impl.WorkflowDefinition; -import io.serverlessworkflow.impl.WorkflowException; -import io.serverlessworkflow.impl.WorkflowModel; -import io.serverlessworkflow.impl.WorkflowPosition; import java.util.concurrent.CompletableFuture; import org.a2aproject.sdk.client.ClientEvent; import org.a2aproject.sdk.client.MessageEvent; @@ -26,6 +22,10 @@ import org.a2aproject.sdk.client.TaskUpdateEvent; import org.a2aproject.sdk.spec.AgentCard; import org.a2aproject.sdk.spec.Task; +import org.openworkflow.sdk.impl.WorkflowDefinition; +import org.openworkflow.sdk.impl.WorkflowException; +import org.openworkflow.sdk.impl.WorkflowModel; +import org.openworkflow.sdk.impl.WorkflowPosition; class MessageStreamConsumer extends MessageConsumer { diff --git a/impl/a2a/src/main/resources/META-INF/services/io.serverlessworkflow.impl.executors.CallableTaskBuilder b/impl/a2a/src/main/resources/META-INF/services/io.serverlessworkflow.impl.executors.CallableTaskBuilder deleted file mode 100644 index bc458e2b9..000000000 --- a/impl/a2a/src/main/resources/META-INF/services/io.serverlessworkflow.impl.executors.CallableTaskBuilder +++ /dev/null @@ -1 +0,0 @@ -io.serverlessworkflow.impl.executors.a2a.A2AExecutorBuilder diff --git a/impl/a2a/src/main/resources/META-INF/services/org.openworkflow.sdk.impl.executors.CallableTaskBuilder b/impl/a2a/src/main/resources/META-INF/services/org.openworkflow.sdk.impl.executors.CallableTaskBuilder new file mode 100644 index 000000000..cc0f032dc --- /dev/null +++ b/impl/a2a/src/main/resources/META-INF/services/org.openworkflow.sdk.impl.executors.CallableTaskBuilder @@ -0,0 +1 @@ +org.openworkflow.sdk.impl.executors.a2a.A2AExecutorBuilder diff --git a/impl/container/pom.xml b/impl/container/pom.xml index b5736f24f..b2b4bf384 100644 --- a/impl/container/pom.xml +++ b/impl/container/pom.xml @@ -2,21 +2,21 @@ 4.0.0 - io.serverlessworkflow - serverlessworkflow-impl + org.openworkflow.sdk + openworkflow-impl 8.0.0-SNAPSHOT - serverlessworkflow-impl-container - Serverless Workflow :: Impl :: Container + openworkflow-impl-container + Open Workflow :: Impl :: Container - io.serverlessworkflow - serverlessworkflow-impl-core + org.openworkflow.sdk + openworkflow-impl-core - io.serverlessworkflow - serverlessworkflow-types + org.openworkflow.sdk + openworkflow-types com.github.docker-java diff --git a/impl/container/src/main/java/io/serverlessworkflow/impl/container/executors/CommandPropertySetter.java b/impl/container/src/main/java/org/openworkflow/sdk/impl/container/executors/CommandPropertySetter.java similarity index 71% rename from impl/container/src/main/java/io/serverlessworkflow/impl/container/executors/CommandPropertySetter.java rename to impl/container/src/main/java/org/openworkflow/sdk/impl/container/executors/CommandPropertySetter.java index b0af31912..88eec28db 100644 --- a/impl/container/src/main/java/io/serverlessworkflow/impl/container/executors/CommandPropertySetter.java +++ b/impl/container/src/main/java/org/openworkflow/sdk/impl/container/executors/CommandPropertySetter.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,19 +13,19 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.container.executors; +package org.openworkflow.sdk.impl.container.executors; -import static io.serverlessworkflow.impl.WorkflowUtils.isValid; +import static org.openworkflow.sdk.impl.WorkflowUtils.isValid; import com.github.dockerjava.api.command.CreateContainerCmd; -import io.serverlessworkflow.api.types.Container; -import io.serverlessworkflow.impl.TaskContext; -import io.serverlessworkflow.impl.WorkflowContext; -import io.serverlessworkflow.impl.WorkflowDefinition; -import io.serverlessworkflow.impl.WorkflowModel; -import io.serverlessworkflow.impl.WorkflowUtils; -import io.serverlessworkflow.impl.WorkflowValueResolver; import java.util.Optional; +import org.openworkflow.sdk.api.types.Container; +import org.openworkflow.sdk.impl.TaskContext; +import org.openworkflow.sdk.impl.WorkflowContext; +import org.openworkflow.sdk.impl.WorkflowDefinition; +import org.openworkflow.sdk.impl.WorkflowModel; +import org.openworkflow.sdk.impl.WorkflowUtils; +import org.openworkflow.sdk.impl.WorkflowValueResolver; class CommandPropertySetter implements ContainerPropertySetter { diff --git a/impl/container/src/main/java/io/serverlessworkflow/impl/container/executors/ContainerEnvironmentPropertySetter.java b/impl/container/src/main/java/org/openworkflow/sdk/impl/container/executors/ContainerEnvironmentPropertySetter.java similarity index 78% rename from impl/container/src/main/java/io/serverlessworkflow/impl/container/executors/ContainerEnvironmentPropertySetter.java rename to impl/container/src/main/java/org/openworkflow/sdk/impl/container/executors/ContainerEnvironmentPropertySetter.java index c4f143a3f..eb360e084 100644 --- a/impl/container/src/main/java/io/serverlessworkflow/impl/container/executors/ContainerEnvironmentPropertySetter.java +++ b/impl/container/src/main/java/org/openworkflow/sdk/impl/container/executors/ContainerEnvironmentPropertySetter.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,18 +13,18 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.container.executors; +package org.openworkflow.sdk.impl.container.executors; import com.github.dockerjava.api.command.CreateContainerCmd; -import io.serverlessworkflow.api.types.Container; -import io.serverlessworkflow.impl.TaskContext; -import io.serverlessworkflow.impl.WorkflowContext; -import io.serverlessworkflow.impl.WorkflowDefinition; -import io.serverlessworkflow.impl.WorkflowModel; -import io.serverlessworkflow.impl.WorkflowUtils; -import io.serverlessworkflow.impl.WorkflowValueResolver; import java.util.Map; import java.util.Optional; +import org.openworkflow.sdk.api.types.Container; +import org.openworkflow.sdk.impl.TaskContext; +import org.openworkflow.sdk.impl.WorkflowContext; +import org.openworkflow.sdk.impl.WorkflowDefinition; +import org.openworkflow.sdk.impl.WorkflowModel; +import org.openworkflow.sdk.impl.WorkflowUtils; +import org.openworkflow.sdk.impl.WorkflowValueResolver; class ContainerEnvironmentPropertySetter implements ContainerPropertySetter { diff --git a/impl/container/src/main/java/io/serverlessworkflow/impl/container/executors/ContainerPropertySetter.java b/impl/container/src/main/java/org/openworkflow/sdk/impl/container/executors/ContainerPropertySetter.java similarity index 74% rename from impl/container/src/main/java/io/serverlessworkflow/impl/container/executors/ContainerPropertySetter.java rename to impl/container/src/main/java/org/openworkflow/sdk/impl/container/executors/ContainerPropertySetter.java index 9524a92a5..c03d4299c 100644 --- a/impl/container/src/main/java/io/serverlessworkflow/impl/container/executors/ContainerPropertySetter.java +++ b/impl/container/src/main/java/org/openworkflow/sdk/impl/container/executors/ContainerPropertySetter.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,12 +13,12 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.container.executors; +package org.openworkflow.sdk.impl.container.executors; import com.github.dockerjava.api.command.CreateContainerCmd; -import io.serverlessworkflow.impl.TaskContext; -import io.serverlessworkflow.impl.WorkflowContext; -import io.serverlessworkflow.impl.WorkflowModel; +import org.openworkflow.sdk.impl.TaskContext; +import org.openworkflow.sdk.impl.WorkflowContext; +import org.openworkflow.sdk.impl.WorkflowModel; interface ContainerPropertySetter { abstract void accept( diff --git a/impl/container/src/main/java/io/serverlessworkflow/impl/container/executors/ContainerRunner.java b/impl/container/src/main/java/org/openworkflow/sdk/impl/container/executors/ContainerRunner.java similarity index 92% rename from impl/container/src/main/java/io/serverlessworkflow/impl/container/executors/ContainerRunner.java rename to impl/container/src/main/java/org/openworkflow/sdk/impl/container/executors/ContainerRunner.java index 5fc8f9c82..c4d706c9e 100644 --- a/impl/container/src/main/java/io/serverlessworkflow/impl/container/executors/ContainerRunner.java +++ b/impl/container/src/main/java/org/openworkflow/sdk/impl/container/executors/ContainerRunner.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,10 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.container.executors; +package org.openworkflow.sdk.impl.container.executors; -import static io.serverlessworkflow.api.types.ContainerLifetime.*; -import static io.serverlessworkflow.impl.WorkflowUtils.isValid; +import static org.openworkflow.sdk.api.types.ContainerLifetime.*; +import static org.openworkflow.sdk.impl.WorkflowUtils.isValid; import com.github.dockerjava.api.DockerClient; import com.github.dockerjava.api.command.CreateContainerCmd; @@ -28,13 +28,6 @@ import com.github.dockerjava.core.DockerClientImpl; import com.github.dockerjava.core.NameParser; import com.github.dockerjava.httpclient5.ApacheDockerHttpClient; -import io.serverlessworkflow.api.types.ContainerLifetime.ContainerCleanupPolicy; -import io.serverlessworkflow.impl.TaskContext; -import io.serverlessworkflow.impl.WorkflowContext; -import io.serverlessworkflow.impl.WorkflowModel; -import io.serverlessworkflow.impl.WorkflowUtils; -import io.serverlessworkflow.impl.WorkflowValueResolver; -import io.serverlessworkflow.impl.executors.CallableTask; import java.io.IOException; import java.time.Duration; import java.util.Collection; @@ -43,6 +36,13 @@ import java.util.concurrent.TimeUnit; import java.util.concurrent.locks.Lock; import java.util.concurrent.locks.ReentrantLock; +import org.openworkflow.sdk.api.types.ContainerLifetime.ContainerCleanupPolicy; +import org.openworkflow.sdk.impl.TaskContext; +import org.openworkflow.sdk.impl.WorkflowContext; +import org.openworkflow.sdk.impl.WorkflowModel; +import org.openworkflow.sdk.impl.WorkflowUtils; +import org.openworkflow.sdk.impl.WorkflowValueResolver; +import org.openworkflow.sdk.impl.executors.CallableTask; class ContainerRunner implements CallableTask { diff --git a/impl/container/src/main/java/io/serverlessworkflow/impl/container/executors/LifetimePropertySetter.java b/impl/container/src/main/java/org/openworkflow/sdk/impl/container/executors/LifetimePropertySetter.java similarity index 77% rename from impl/container/src/main/java/io/serverlessworkflow/impl/container/executors/LifetimePropertySetter.java rename to impl/container/src/main/java/org/openworkflow/sdk/impl/container/executors/LifetimePropertySetter.java index 3606ae93d..a2ec55699 100644 --- a/impl/container/src/main/java/io/serverlessworkflow/impl/container/executors/LifetimePropertySetter.java +++ b/impl/container/src/main/java/org/openworkflow/sdk/impl/container/executors/LifetimePropertySetter.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,15 +13,15 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.container.executors; +package org.openworkflow.sdk.impl.container.executors; -import static io.serverlessworkflow.api.types.ContainerLifetime.*; +import static org.openworkflow.sdk.api.types.ContainerLifetime.*; import com.github.dockerjava.api.command.CreateContainerCmd; -import io.serverlessworkflow.api.types.Container; -import io.serverlessworkflow.impl.TaskContext; -import io.serverlessworkflow.impl.WorkflowContext; -import io.serverlessworkflow.impl.WorkflowModel; +import org.openworkflow.sdk.api.types.Container; +import org.openworkflow.sdk.impl.TaskContext; +import org.openworkflow.sdk.impl.WorkflowContext; +import org.openworkflow.sdk.impl.WorkflowModel; class LifetimePropertySetter implements ContainerPropertySetter { diff --git a/impl/container/src/main/java/io/serverlessworkflow/impl/container/executors/NamePropertySetter.java b/impl/container/src/main/java/org/openworkflow/sdk/impl/container/executors/NamePropertySetter.java similarity index 72% rename from impl/container/src/main/java/io/serverlessworkflow/impl/container/executors/NamePropertySetter.java rename to impl/container/src/main/java/org/openworkflow/sdk/impl/container/executors/NamePropertySetter.java index 70bc8d83f..dc3ae2de9 100644 --- a/impl/container/src/main/java/io/serverlessworkflow/impl/container/executors/NamePropertySetter.java +++ b/impl/container/src/main/java/org/openworkflow/sdk/impl/container/executors/NamePropertySetter.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,19 +13,19 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.container.executors; +package org.openworkflow.sdk.impl.container.executors; -import static io.serverlessworkflow.impl.WorkflowUtils.isValid; +import static org.openworkflow.sdk.impl.WorkflowUtils.isValid; import com.github.dockerjava.api.command.CreateContainerCmd; -import io.serverlessworkflow.api.types.Container; -import io.serverlessworkflow.impl.TaskContext; -import io.serverlessworkflow.impl.WorkflowContext; -import io.serverlessworkflow.impl.WorkflowDefinition; -import io.serverlessworkflow.impl.WorkflowModel; -import io.serverlessworkflow.impl.WorkflowUtils; -import io.serverlessworkflow.impl.WorkflowValueResolver; import java.util.Optional; +import org.openworkflow.sdk.api.types.Container; +import org.openworkflow.sdk.impl.TaskContext; +import org.openworkflow.sdk.impl.WorkflowContext; +import org.openworkflow.sdk.impl.WorkflowDefinition; +import org.openworkflow.sdk.impl.WorkflowModel; +import org.openworkflow.sdk.impl.WorkflowUtils; +import org.openworkflow.sdk.impl.WorkflowValueResolver; class NamePropertySetter implements ContainerPropertySetter { diff --git a/impl/container/src/main/java/io/serverlessworkflow/impl/container/executors/PortsPropertySetter.java b/impl/container/src/main/java/org/openworkflow/sdk/impl/container/executors/PortsPropertySetter.java similarity index 87% rename from impl/container/src/main/java/io/serverlessworkflow/impl/container/executors/PortsPropertySetter.java rename to impl/container/src/main/java/org/openworkflow/sdk/impl/container/executors/PortsPropertySetter.java index b176b110a..302b2b287 100644 --- a/impl/container/src/main/java/io/serverlessworkflow/impl/container/executors/PortsPropertySetter.java +++ b/impl/container/src/main/java/org/openworkflow/sdk/impl/container/executors/PortsPropertySetter.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,18 +13,18 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.container.executors; +package org.openworkflow.sdk.impl.container.executors; import com.github.dockerjava.api.command.CreateContainerCmd; import com.github.dockerjava.api.model.ExposedPort; import com.github.dockerjava.api.model.Ports; -import io.serverlessworkflow.api.types.Container; -import io.serverlessworkflow.impl.TaskContext; -import io.serverlessworkflow.impl.WorkflowContext; -import io.serverlessworkflow.impl.WorkflowModel; import java.util.ArrayList; import java.util.List; import java.util.Map; +import org.openworkflow.sdk.api.types.Container; +import org.openworkflow.sdk.impl.TaskContext; +import org.openworkflow.sdk.impl.WorkflowContext; +import org.openworkflow.sdk.impl.WorkflowModel; class PortsPropertySetter implements ContainerPropertySetter { diff --git a/impl/container/src/main/java/io/serverlessworkflow/impl/container/executors/RunContainerExecutorBuilder.java b/impl/container/src/main/java/org/openworkflow/sdk/impl/container/executors/RunContainerExecutorBuilder.java similarity index 73% rename from impl/container/src/main/java/io/serverlessworkflow/impl/container/executors/RunContainerExecutorBuilder.java rename to impl/container/src/main/java/org/openworkflow/sdk/impl/container/executors/RunContainerExecutorBuilder.java index d58d56479..f1b4b5cad 100644 --- a/impl/container/src/main/java/io/serverlessworkflow/impl/container/executors/RunContainerExecutorBuilder.java +++ b/impl/container/src/main/java/org/openworkflow/sdk/impl/container/executors/RunContainerExecutorBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,23 +13,23 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.container.executors; +package org.openworkflow.sdk.impl.container.executors; -import io.serverlessworkflow.api.types.Container; -import io.serverlessworkflow.api.types.ContainerLifetime; -import io.serverlessworkflow.api.types.ContainerLifetime.ContainerCleanupPolicy; -import io.serverlessworkflow.api.types.RunContainer; -import io.serverlessworkflow.api.types.RunTaskConfiguration; -import io.serverlessworkflow.api.types.TimeoutAfter; -import io.serverlessworkflow.impl.WorkflowDefinition; -import io.serverlessworkflow.impl.WorkflowUtils; -import io.serverlessworkflow.impl.WorkflowValueResolver; -import io.serverlessworkflow.impl.executors.CallableTask; -import io.serverlessworkflow.impl.executors.RunnableTaskBuilder; import java.time.Duration; import java.util.ArrayList; import java.util.Collection; import java.util.Optional; +import org.openworkflow.sdk.api.types.Container; +import org.openworkflow.sdk.api.types.ContainerLifetime; +import org.openworkflow.sdk.api.types.ContainerLifetime.ContainerCleanupPolicy; +import org.openworkflow.sdk.api.types.RunContainer; +import org.openworkflow.sdk.api.types.RunTaskConfiguration; +import org.openworkflow.sdk.api.types.TimeoutAfter; +import org.openworkflow.sdk.impl.WorkflowDefinition; +import org.openworkflow.sdk.impl.WorkflowUtils; +import org.openworkflow.sdk.impl.WorkflowValueResolver; +import org.openworkflow.sdk.impl.executors.CallableTask; +import org.openworkflow.sdk.impl.executors.RunnableTaskBuilder; public class RunContainerExecutorBuilder implements RunnableTaskBuilder { diff --git a/impl/container/src/main/java/io/serverlessworkflow/impl/container/executors/VolumesPropertySetter.java b/impl/container/src/main/java/org/openworkflow/sdk/impl/container/executors/VolumesPropertySetter.java similarity index 83% rename from impl/container/src/main/java/io/serverlessworkflow/impl/container/executors/VolumesPropertySetter.java rename to impl/container/src/main/java/org/openworkflow/sdk/impl/container/executors/VolumesPropertySetter.java index 63830f34f..dedae00c4 100644 --- a/impl/container/src/main/java/io/serverlessworkflow/impl/container/executors/VolumesPropertySetter.java +++ b/impl/container/src/main/java/org/openworkflow/sdk/impl/container/executors/VolumesPropertySetter.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,22 +13,22 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.container.executors; +package org.openworkflow.sdk.impl.container.executors; import com.github.dockerjava.api.command.CreateContainerCmd; import com.github.dockerjava.api.model.Bind; import com.github.dockerjava.api.model.Volume; -import io.serverlessworkflow.api.types.Container; -import io.serverlessworkflow.impl.TaskContext; -import io.serverlessworkflow.impl.WorkflowContext; -import io.serverlessworkflow.impl.WorkflowDefinition; -import io.serverlessworkflow.impl.WorkflowModel; -import io.serverlessworkflow.impl.WorkflowUtils; -import io.serverlessworkflow.impl.WorkflowValueResolver; import java.util.ArrayList; import java.util.Collection; import java.util.Map; import java.util.Objects; +import org.openworkflow.sdk.api.types.Container; +import org.openworkflow.sdk.impl.TaskContext; +import org.openworkflow.sdk.impl.WorkflowContext; +import org.openworkflow.sdk.impl.WorkflowDefinition; +import org.openworkflow.sdk.impl.WorkflowModel; +import org.openworkflow.sdk.impl.WorkflowUtils; +import org.openworkflow.sdk.impl.WorkflowValueResolver; class VolumesPropertySetter implements ContainerPropertySetter { diff --git a/impl/container/src/main/resources/META-INF/services/io.serverlessworkflow.impl.executors.RunnableTaskBuilder b/impl/container/src/main/resources/META-INF/services/io.serverlessworkflow.impl.executors.RunnableTaskBuilder deleted file mode 100644 index 606ecc83c..000000000 --- a/impl/container/src/main/resources/META-INF/services/io.serverlessworkflow.impl.executors.RunnableTaskBuilder +++ /dev/null @@ -1 +0,0 @@ -io.serverlessworkflow.impl.container.executors.RunContainerExecutorBuilder \ No newline at end of file diff --git a/impl/container/src/main/resources/META-INF/services/org.openworkflow.sdk.impl.executors.RunnableTaskBuilder b/impl/container/src/main/resources/META-INF/services/org.openworkflow.sdk.impl.executors.RunnableTaskBuilder new file mode 100644 index 000000000..6417befee --- /dev/null +++ b/impl/container/src/main/resources/META-INF/services/org.openworkflow.sdk.impl.executors.RunnableTaskBuilder @@ -0,0 +1 @@ +org.openworkflow.sdk.impl.container.executors.RunContainerExecutorBuilder \ No newline at end of file diff --git a/impl/core/pom.xml b/impl/core/pom.xml index 3ff80e8b8..1001d74f7 100644 --- a/impl/core/pom.xml +++ b/impl/core/pom.xml @@ -1,16 +1,16 @@ 4.0.0 - io.serverlessworkflow - serverlessworkflow-impl + org.openworkflow.sdk + openworkflow-impl 8.0.0-SNAPSHOT - serverlessworkflow-impl-core - Serverless Workflow :: Impl :: Core + openworkflow-impl-core + Open Workflow :: Impl :: Core - io.serverlessworkflow - serverlessworkflow-types + org.openworkflow.sdk + openworkflow-types io.cloudevents diff --git a/impl/core/src/main/java/io/serverlessworkflow/impl/AbstractWorkflowModel.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/AbstractWorkflowModel.java similarity index 96% rename from impl/core/src/main/java/io/serverlessworkflow/impl/AbstractWorkflowModel.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/AbstractWorkflowModel.java index 834f8526e..9b414c7e7 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/AbstractWorkflowModel.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/AbstractWorkflowModel.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl; +package org.openworkflow.sdk.impl; import java.math.BigDecimal; import java.math.BigInteger; diff --git a/impl/core/src/main/java/io/serverlessworkflow/impl/AuthorizationDescriptor.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/AuthorizationDescriptor.java similarity index 85% rename from impl/core/src/main/java/io/serverlessworkflow/impl/AuthorizationDescriptor.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/AuthorizationDescriptor.java index 9c31da1be..661eba818 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/AuthorizationDescriptor.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/AuthorizationDescriptor.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,6 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl; +package org.openworkflow.sdk.impl; public record AuthorizationDescriptor(String scheme, String parameter) {} diff --git a/impl/core/src/main/java/io/serverlessworkflow/impl/CollectionConversionUtils.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/CollectionConversionUtils.java similarity index 96% rename from impl/core/src/main/java/io/serverlessworkflow/impl/CollectionConversionUtils.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/CollectionConversionUtils.java index 5d3544ac6..643b7ee63 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/CollectionConversionUtils.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/CollectionConversionUtils.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl; +package org.openworkflow.sdk.impl; import java.lang.reflect.Array; import java.util.ArrayList; diff --git a/impl/core/src/main/java/io/serverlessworkflow/impl/CompositeExpressionFactory.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/CompositeExpressionFactory.java similarity index 91% rename from impl/core/src/main/java/io/serverlessworkflow/impl/CompositeExpressionFactory.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/CompositeExpressionFactory.java index a1e39e42f..d0f41112f 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/CompositeExpressionFactory.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/CompositeExpressionFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,17 +13,17 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl; +package org.openworkflow.sdk.impl; import io.cloudevents.CloudEventData; -import io.serverlessworkflow.api.types.TaskBase; -import io.serverlessworkflow.impl.expressions.ExpressionDescriptor; -import io.serverlessworkflow.impl.expressions.ExpressionFactory; import java.time.OffsetDateTime; import java.util.Collection; import java.util.Map; import java.util.Optional; import java.util.function.Function; +import org.openworkflow.sdk.api.types.TaskBase; +import org.openworkflow.sdk.impl.expressions.ExpressionDescriptor; +import org.openworkflow.sdk.impl.expressions.ExpressionFactory; class CompositeExpressionFactory implements ExpressionFactory { diff --git a/impl/core/src/main/java/io/serverlessworkflow/impl/DefaultExecutorServiceFactory.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/DefaultExecutorServiceFactory.java similarity index 89% rename from impl/core/src/main/java/io/serverlessworkflow/impl/DefaultExecutorServiceFactory.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/DefaultExecutorServiceFactory.java index 8b882c143..958803503 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/DefaultExecutorServiceFactory.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/DefaultExecutorServiceFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl; +package org.openworkflow.sdk.impl; import java.util.concurrent.ExecutorService; import java.util.concurrent.Executors; diff --git a/impl/core/src/main/java/io/serverlessworkflow/impl/ExecutorServiceFactory.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/ExecutorServiceFactory.java similarity index 87% rename from impl/core/src/main/java/io/serverlessworkflow/impl/ExecutorServiceFactory.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/ExecutorServiceFactory.java index 3d35a2dd1..79707fc18 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/ExecutorServiceFactory.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/ExecutorServiceFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl; +package org.openworkflow.sdk.impl; import java.util.concurrent.ExecutorService; import java.util.function.Supplier; diff --git a/impl/core/src/main/java/io/serverlessworkflow/impl/FunctionReader.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/FunctionReader.java similarity index 75% rename from impl/core/src/main/java/io/serverlessworkflow/impl/FunctionReader.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/FunctionReader.java index 0b7066359..64f2ea601 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/FunctionReader.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/FunctionReader.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,10 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl; +package org.openworkflow.sdk.impl; -import io.serverlessworkflow.api.types.Task; -import io.serverlessworkflow.impl.resources.ExternalResourceHandler; import java.util.function.Function; +import org.openworkflow.sdk.api.types.Task; +import org.openworkflow.sdk.impl.resources.ExternalResourceHandler; public interface FunctionReader extends Function, ServicePriority {} diff --git a/impl/core/src/main/java/io/serverlessworkflow/impl/LifecycleEvents.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/LifecycleEvents.java similarity index 55% rename from impl/core/src/main/java/io/serverlessworkflow/impl/LifecycleEvents.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/LifecycleEvents.java index 2e6f3e0e2..3a05a69e9 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/LifecycleEvents.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/LifecycleEvents.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,11 +13,11 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl; +package org.openworkflow.sdk.impl; /** * @see Serverless + * href="https://github.com/open-workflow-specification/specification/blob/main/dsl.md#lifecycle-events">Open * Workflow Specification :: DSL :: LifecycleEvents */ public final class LifecycleEvents { @@ -25,47 +25,47 @@ public final class LifecycleEvents { private LifecycleEvents() {} /** Notifies about the start of a task. */ - public static final String TASK_STARTED = "io.serverlessworkflow.task.started.v1"; + public static final String TASK_STARTED = "org.openworkflow.task.started.v1"; /** Notifies about the completion of a task's execution. */ - public static final String TASK_COMPLETED = "io.serverlessworkflow.task.completed.v1"; + public static final String TASK_COMPLETED = "org.openworkflow.task.completed.v1"; /** Notifies about suspending a task's execution. */ - public static final String TASK_SUSPENDED = "io.serverlessworkflow.task.suspended.v1"; + public static final String TASK_SUSPENDED = "org.openworkflow.task.suspended.v1"; /** Notifies about resuming a task's execution. */ - public static final String TASK_RESUMED = "io.serverlessworkflow.task.resumed.v1"; + public static final String TASK_RESUMED = "org.openworkflow.task.resumed.v1"; /** Notifies about a task being faulted. */ - public static final String TASK_FAULTED = "io.serverlessworkflow.task.faulted.v1"; + public static final String TASK_FAULTED = "org.openworkflow.task.faulted.v1"; /** Notifies about the cancellation of a task's execution. */ - public static final String TASK_CANCELLED = "io.serverlessworkflow.task.cancelled.v1"; + public static final String TASK_CANCELLED = "org.openworkflow.task.cancelled.v1"; /** Notifies about retrying a task's execution. */ - public static final String TASK_RETRIED = "io.serverlessworkflow.task.retried.v1"; + public static final String TASK_RETRIED = "org.openworkflow.task.retried.v1"; /** Notifies about the start of a workflow. */ - public static final String WORKFLOW_STARTED = "io.serverlessworkflow.workflow.started.v1"; + public static final String WORKFLOW_STARTED = "org.openworkflow.workflow.started.v1"; /** Notifies about the completion of a workflow execution. */ - public static final String WORKFLOW_COMPLETED = "io.serverlessworkflow.workflow.completed.v1"; + public static final String WORKFLOW_COMPLETED = "org.openworkflow.workflow.completed.v1"; /** Notifies about suspending a workflow execution. */ - public static final String WORKFLOW_SUSPENDED = "io.serverlessworkflow.workflow.suspended.v1"; + public static final String WORKFLOW_SUSPENDED = "org.openworkflow.workflow.suspended.v1"; /** Notifies about resuming a workflow execution. */ - public static final String WORKFLOW_RESUMED = "io.serverlessworkflow.workflow.resumed.v1"; + public static final String WORKFLOW_RESUMED = "org.openworkflow.workflow.resumed.v1"; /** Notifies about a workflow being faulted. */ - public static final String WORKFLOW_FAULTED = "io.serverlessworkflow.workflow.faulted.v1"; + public static final String WORKFLOW_FAULTED = "org.openworkflow.workflow.faulted.v1"; /** Notifies about the cancellation of a workflow execution. */ - public static final String WORKFLOW_CANCELLED = "io.serverlessworkflow.workflow.cancelled.v1"; + public static final String WORKFLOW_CANCELLED = "org.openworkflow.workflow.cancelled.v1"; /** Notifies about the change of a workflow's status phase. */ public static final String WORKFLOW_STATUS_CHANGED = - "io.serverlessworkflow.workflow.status-changed.v1"; + "org.openworkflow.workflow.status-changed.v1"; /** * CloudEvent extension attribute carried by every lifecycle event, holding the {@link diff --git a/impl/core/src/main/java/io/serverlessworkflow/impl/LifecycleEventsUtils.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/LifecycleEventsUtils.java similarity index 92% rename from impl/core/src/main/java/io/serverlessworkflow/impl/LifecycleEventsUtils.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/LifecycleEventsUtils.java index b20509585..c3a130b17 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/LifecycleEventsUtils.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/LifecycleEventsUtils.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,12 +13,12 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl; +package org.openworkflow.sdk.impl; -import io.serverlessworkflow.impl.lifecycle.WorkflowExecutionCompletableListener; import java.util.Collection; import java.util.concurrent.CompletableFuture; import java.util.function.Function; +import org.openworkflow.sdk.impl.lifecycle.WorkflowExecutionCompletableListener; import org.slf4j.Logger; import org.slf4j.LoggerFactory; diff --git a/impl/core/src/main/java/io/serverlessworkflow/impl/MonotonicUlidWorkflowInstanceIdFactory.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/MonotonicUlidWorkflowInstanceIdFactory.java similarity index 91% rename from impl/core/src/main/java/io/serverlessworkflow/impl/MonotonicUlidWorkflowInstanceIdFactory.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/MonotonicUlidWorkflowInstanceIdFactory.java index 673be14a8..34d0c7ea5 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/MonotonicUlidWorkflowInstanceIdFactory.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/MonotonicUlidWorkflowInstanceIdFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl; +package org.openworkflow.sdk.impl; import com.github.f4b6a3.ulid.UlidFactory; import java.util.concurrent.ThreadLocalRandom; diff --git a/impl/core/src/main/java/io/serverlessworkflow/impl/NamedObject.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/NamedObject.java similarity index 85% rename from impl/core/src/main/java/io/serverlessworkflow/impl/NamedObject.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/NamedObject.java index 5ac5f80e0..f46d80745 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/NamedObject.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/NamedObject.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl; +package org.openworkflow.sdk.impl; public interface NamedObject { String name(); diff --git a/impl/core/src/main/java/io/serverlessworkflow/impl/QueueWorkflowPosition.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/QueueWorkflowPosition.java similarity index 93% rename from impl/core/src/main/java/io/serverlessworkflow/impl/QueueWorkflowPosition.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/QueueWorkflowPosition.java index 8f5a685ab..88e28b26c 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/QueueWorkflowPosition.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/QueueWorkflowPosition.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl; +package org.openworkflow.sdk.impl; import java.util.ArrayDeque; import java.util.Deque; diff --git a/impl/core/src/main/java/io/serverlessworkflow/impl/RuntimeDescriptorFactory.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/RuntimeDescriptorFactory.java similarity index 80% rename from impl/core/src/main/java/io/serverlessworkflow/impl/RuntimeDescriptorFactory.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/RuntimeDescriptorFactory.java index 2d0601fb0..f5ff9e47f 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/RuntimeDescriptorFactory.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/RuntimeDescriptorFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,10 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl; +package org.openworkflow.sdk.impl; -import io.serverlessworkflow.impl.expressions.RuntimeDescriptor; import java.util.function.Supplier; +import org.openworkflow.sdk.impl.expressions.RuntimeDescriptor; @FunctionalInterface public interface RuntimeDescriptorFactory extends Supplier {} diff --git a/impl/core/src/main/java/io/serverlessworkflow/impl/SchedulerListener.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/SchedulerListener.java similarity index 85% rename from impl/core/src/main/java/io/serverlessworkflow/impl/SchedulerListener.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/SchedulerListener.java index a9ee6e78f..d50402954 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/SchedulerListener.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/SchedulerListener.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,16 +13,16 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl; +package org.openworkflow.sdk.impl; -import io.serverlessworkflow.impl.lifecycle.WorkflowCompletedEvent; -import io.serverlessworkflow.impl.lifecycle.WorkflowExecutionCompletableListener; -import io.serverlessworkflow.impl.scheduler.Cancellable; -import io.serverlessworkflow.impl.scheduler.WorkflowScheduler; import java.time.Duration; import java.util.Map; import java.util.concurrent.CompletableFuture; import java.util.concurrent.ConcurrentHashMap; +import org.openworkflow.sdk.impl.lifecycle.WorkflowCompletedEvent; +import org.openworkflow.sdk.impl.lifecycle.WorkflowExecutionCompletableListener; +import org.openworkflow.sdk.impl.scheduler.Cancellable; +import org.openworkflow.sdk.impl.scheduler.WorkflowScheduler; class SchedulerListener implements WorkflowExecutionCompletableListener { diff --git a/impl/core/src/main/java/io/serverlessworkflow/impl/ServicePriority.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/ServicePriority.java similarity index 88% rename from impl/core/src/main/java/io/serverlessworkflow/impl/ServicePriority.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/ServicePriority.java index 74b5bdf1b..4bbfcd8a6 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/ServicePriority.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/ServicePriority.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl; +package org.openworkflow.sdk.impl; public interface ServicePriority extends Comparable { diff --git a/impl/core/src/main/java/io/serverlessworkflow/impl/StringBufferWorkflowPosition.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/StringBufferWorkflowPosition.java similarity index 94% rename from impl/core/src/main/java/io/serverlessworkflow/impl/StringBufferWorkflowPosition.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/StringBufferWorkflowPosition.java index d5ba53a8f..3be0fe2b8 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/StringBufferWorkflowPosition.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/StringBufferWorkflowPosition.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl; +package org.openworkflow.sdk.impl; public class StringBufferWorkflowPosition implements WorkflowMutablePosition { diff --git a/impl/core/src/main/java/io/serverlessworkflow/impl/TaskContext.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/TaskContext.java similarity index 96% rename from impl/core/src/main/java/io/serverlessworkflow/impl/TaskContext.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/TaskContext.java index 428bc3ab0..39778b649 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/TaskContext.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/TaskContext.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,14 +13,14 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl; +package org.openworkflow.sdk.impl; -import io.serverlessworkflow.api.types.TaskBase; -import io.serverlessworkflow.impl.executors.TransitionInfo; import java.time.Instant; import java.util.HashMap; import java.util.Map; import java.util.Optional; +import org.openworkflow.sdk.api.types.TaskBase; +import org.openworkflow.sdk.impl.executors.TransitionInfo; public class TaskContext implements TaskContextData { diff --git a/impl/core/src/main/java/io/serverlessworkflow/impl/TaskContextData.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/TaskContextData.java similarity index 85% rename from impl/core/src/main/java/io/serverlessworkflow/impl/TaskContextData.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/TaskContextData.java index fa01ae560..a142fd551 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/TaskContextData.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/TaskContextData.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,10 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl; +package org.openworkflow.sdk.impl; -import io.serverlessworkflow.api.types.TaskBase; import java.time.Instant; +import org.openworkflow.sdk.api.types.TaskBase; public interface TaskContextData { diff --git a/impl/core/src/main/java/io/serverlessworkflow/impl/WorkflowApplication.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/WorkflowApplication.java similarity index 89% rename from impl/core/src/main/java/io/serverlessworkflow/impl/WorkflowApplication.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/WorkflowApplication.java index 73367d438..4a1152875 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/WorkflowApplication.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/WorkflowApplication.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,50 +13,12 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl; - -import static io.serverlessworkflow.impl.WorkflowUtils.loadFirst; -import static io.serverlessworkflow.impl.WorkflowUtils.safeClose; -import static io.serverlessworkflow.impl.WorkflowUtils.safeShutdown; - -import io.serverlessworkflow.api.types.SchemaInline; -import io.serverlessworkflow.api.types.Workflow; -import io.serverlessworkflow.impl.additional.NamedWorkflowAdditionalObject; -import io.serverlessworkflow.impl.additional.WorkflowAdditionalObject; -import io.serverlessworkflow.impl.auth.AuthProviderFactory; -import io.serverlessworkflow.impl.auth.DefaultAuthProviderFactory; -import io.serverlessworkflow.impl.config.ConfigManager; -import io.serverlessworkflow.impl.config.ConfigSecretManager; -import io.serverlessworkflow.impl.config.SecretManager; -import io.serverlessworkflow.impl.config.SystemPropertyConfigManager; -import io.serverlessworkflow.impl.events.CloudEventPredicateFactory; -import io.serverlessworkflow.impl.events.DefaultCloudEventPredicateFactory; -import io.serverlessworkflow.impl.events.EmitSourceResolver; -import io.serverlessworkflow.impl.events.EventConsumer; -import io.serverlessworkflow.impl.events.EventPublisher; -import io.serverlessworkflow.impl.events.InMemoryEvents; -import io.serverlessworkflow.impl.executors.CallableTaskProxyBuilder; -import io.serverlessworkflow.impl.executors.DefaultTaskExecutorFactory; -import io.serverlessworkflow.impl.executors.TaskExecutorFactory; -import io.serverlessworkflow.impl.expressions.ExpressionFactory; -import io.serverlessworkflow.impl.expressions.RuntimeDescriptor; -import io.serverlessworkflow.impl.lifecycle.WorkflowExecutionCompletableListener; -import io.serverlessworkflow.impl.lifecycle.WorkflowExecutionListener; -import io.serverlessworkflow.impl.lifecycle.WorkflowExecutionListenerAdapter; -import io.serverlessworkflow.impl.lifecycle.ce.DefaultLifeCycleCloudEventFactory; -import io.serverlessworkflow.impl.lifecycle.ce.WorkflowLifeCycleCloudEventFactory; -import io.serverlessworkflow.impl.resources.DefaultResourceLoaderFactory; -import io.serverlessworkflow.impl.resources.ExternalResourceHandler; -import io.serverlessworkflow.impl.resources.ResourceLoaderFactory; -import io.serverlessworkflow.impl.resources.URITemplateResolver; -import io.serverlessworkflow.impl.scheduler.AllStrategyCorrelationInfoFactory; -import io.serverlessworkflow.impl.scheduler.CronResolver; -import io.serverlessworkflow.impl.scheduler.CronResolverFactory; -import io.serverlessworkflow.impl.scheduler.DefaultWorkflowScheduler; -import io.serverlessworkflow.impl.scheduler.InMemoryAllStrategyCorrelationInfo; -import io.serverlessworkflow.impl.scheduler.WorkflowScheduler; -import io.serverlessworkflow.impl.schema.SchemaValidator; -import io.serverlessworkflow.impl.schema.SchemaValidatorFactory; +package org.openworkflow.sdk.impl; + +import static org.openworkflow.sdk.impl.WorkflowUtils.loadFirst; +import static org.openworkflow.sdk.impl.WorkflowUtils.safeClose; +import static org.openworkflow.sdk.impl.WorkflowUtils.safeShutdown; + import java.net.URI; import java.time.Duration; import java.util.ArrayList; @@ -78,6 +40,44 @@ import java.util.concurrent.ScheduledExecutorService; import java.util.function.Supplier; import java.util.stream.Collectors; +import org.openworkflow.sdk.api.types.SchemaInline; +import org.openworkflow.sdk.api.types.Workflow; +import org.openworkflow.sdk.impl.additional.NamedWorkflowAdditionalObject; +import org.openworkflow.sdk.impl.additional.WorkflowAdditionalObject; +import org.openworkflow.sdk.impl.auth.AuthProviderFactory; +import org.openworkflow.sdk.impl.auth.DefaultAuthProviderFactory; +import org.openworkflow.sdk.impl.config.ConfigManager; +import org.openworkflow.sdk.impl.config.ConfigSecretManager; +import org.openworkflow.sdk.impl.config.SecretManager; +import org.openworkflow.sdk.impl.config.SystemPropertyConfigManager; +import org.openworkflow.sdk.impl.events.CloudEventPredicateFactory; +import org.openworkflow.sdk.impl.events.DefaultCloudEventPredicateFactory; +import org.openworkflow.sdk.impl.events.EmitSourceResolver; +import org.openworkflow.sdk.impl.events.EventConsumer; +import org.openworkflow.sdk.impl.events.EventPublisher; +import org.openworkflow.sdk.impl.events.InMemoryEvents; +import org.openworkflow.sdk.impl.executors.CallableTaskProxyBuilder; +import org.openworkflow.sdk.impl.executors.DefaultTaskExecutorFactory; +import org.openworkflow.sdk.impl.executors.TaskExecutorFactory; +import org.openworkflow.sdk.impl.expressions.ExpressionFactory; +import org.openworkflow.sdk.impl.expressions.RuntimeDescriptor; +import org.openworkflow.sdk.impl.lifecycle.WorkflowExecutionCompletableListener; +import org.openworkflow.sdk.impl.lifecycle.WorkflowExecutionListener; +import org.openworkflow.sdk.impl.lifecycle.WorkflowExecutionListenerAdapter; +import org.openworkflow.sdk.impl.lifecycle.ce.DefaultLifeCycleCloudEventFactory; +import org.openworkflow.sdk.impl.lifecycle.ce.WorkflowLifeCycleCloudEventFactory; +import org.openworkflow.sdk.impl.resources.DefaultResourceLoaderFactory; +import org.openworkflow.sdk.impl.resources.ExternalResourceHandler; +import org.openworkflow.sdk.impl.resources.ResourceLoaderFactory; +import org.openworkflow.sdk.impl.resources.URITemplateResolver; +import org.openworkflow.sdk.impl.scheduler.AllStrategyCorrelationInfoFactory; +import org.openworkflow.sdk.impl.scheduler.CronResolver; +import org.openworkflow.sdk.impl.scheduler.CronResolverFactory; +import org.openworkflow.sdk.impl.scheduler.DefaultWorkflowScheduler; +import org.openworkflow.sdk.impl.scheduler.InMemoryAllStrategyCorrelationInfo; +import org.openworkflow.sdk.impl.scheduler.WorkflowScheduler; +import org.openworkflow.sdk.impl.schema.SchemaValidator; +import org.openworkflow.sdk.impl.schema.SchemaValidatorFactory; public class WorkflowApplication implements AutoCloseable { @@ -512,7 +512,7 @@ public WorkflowApplication build() { @Override public Optional nextExecution() { throw new UnsupportedOperationException( - "Missing CronResolverFactory, please add serverlessworkflow-impl-cron dependency to your classpath"); + "Missing CronResolverFactory, please add openworkflow-impl-cron dependency to your classpath"); } }; @@ -552,7 +552,7 @@ public CronResolver parseCron(String cron) { } if (defaultCatalogURI == null) { - defaultCatalogURI = URI.create("https://github.com/serverlessworkflow/catalog"); + defaultCatalogURI = URI.create("https://github.com/open-workflow-specification/catalog"); } if (defaultEventSource == null) { defaultEventSource = new EmitSourceResolver(); diff --git a/impl/core/src/main/java/io/serverlessworkflow/impl/WorkflowContext.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/WorkflowContext.java similarity index 93% rename from impl/core/src/main/java/io/serverlessworkflow/impl/WorkflowContext.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/WorkflowContext.java index ebc79fedf..d2cf5dfee 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/WorkflowContext.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/WorkflowContext.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl; +package org.openworkflow.sdk.impl; public class WorkflowContext implements WorkflowContextData { private final WorkflowDefinition definition; diff --git a/impl/core/src/main/java/io/serverlessworkflow/impl/WorkflowContextData.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/WorkflowContextData.java similarity index 86% rename from impl/core/src/main/java/io/serverlessworkflow/impl/WorkflowContextData.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/WorkflowContextData.java index dea7c9e3f..df404a6be 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/WorkflowContextData.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/WorkflowContextData.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl; +package org.openworkflow.sdk.impl; public interface WorkflowContextData { diff --git a/impl/core/src/main/java/io/serverlessworkflow/impl/WorkflowDecorator.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/WorkflowDecorator.java similarity index 92% rename from impl/core/src/main/java/io/serverlessworkflow/impl/WorkflowDecorator.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/WorkflowDecorator.java index 66daf4749..03907573f 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/WorkflowDecorator.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/WorkflowDecorator.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl; +package org.openworkflow.sdk.impl; /** * Parent interface for decorating object requests with additional modifications.
diff --git a/impl/core/src/main/java/io/serverlessworkflow/impl/WorkflowDefinition.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/WorkflowDefinition.java similarity index 86% rename from impl/core/src/main/java/io/serverlessworkflow/impl/WorkflowDefinition.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/WorkflowDefinition.java index 72431977a..d4fecfe3c 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/WorkflowDefinition.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/WorkflowDefinition.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,25 +13,13 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl; - -import static io.serverlessworkflow.impl.WorkflowUtils.buildWorkflowFilter; -import static io.serverlessworkflow.impl.WorkflowUtils.getSchemaValidator; -import static io.serverlessworkflow.impl.WorkflowUtils.safeClose; -import static io.serverlessworkflow.impl.WorkflowUtils.validationError; - -import io.serverlessworkflow.api.types.Input; -import io.serverlessworkflow.api.types.Output; -import io.serverlessworkflow.api.types.Schedule; -import io.serverlessworkflow.api.types.Workflow; -import io.serverlessworkflow.impl.events.EventRegistrationBuilderInfo; -import io.serverlessworkflow.impl.executors.TaskExecutor; -import io.serverlessworkflow.impl.executors.TaskExecutorHelper; -import io.serverlessworkflow.impl.resources.ResourceLoader; -import io.serverlessworkflow.impl.scheduler.Cancellable; -import io.serverlessworkflow.impl.scheduler.ScheduledEventConsumer; -import io.serverlessworkflow.impl.scheduler.WorkflowScheduler; -import io.serverlessworkflow.impl.schema.SchemaValidator; +package org.openworkflow.sdk.impl; + +import static org.openworkflow.sdk.impl.WorkflowUtils.buildWorkflowFilter; +import static org.openworkflow.sdk.impl.WorkflowUtils.getSchemaValidator; +import static org.openworkflow.sdk.impl.WorkflowUtils.safeClose; +import static org.openworkflow.sdk.impl.WorkflowUtils.validationError; + import java.nio.file.Path; import java.util.ArrayList; import java.util.Collection; @@ -41,6 +29,18 @@ import java.util.Objects; import java.util.Optional; import java.util.concurrent.ConcurrentHashMap; +import org.openworkflow.sdk.api.types.Input; +import org.openworkflow.sdk.api.types.Output; +import org.openworkflow.sdk.api.types.Schedule; +import org.openworkflow.sdk.api.types.Workflow; +import org.openworkflow.sdk.impl.events.EventRegistrationBuilderInfo; +import org.openworkflow.sdk.impl.executors.TaskExecutor; +import org.openworkflow.sdk.impl.executors.TaskExecutorHelper; +import org.openworkflow.sdk.impl.resources.ResourceLoader; +import org.openworkflow.sdk.impl.scheduler.Cancellable; +import org.openworkflow.sdk.impl.scheduler.ScheduledEventConsumer; +import org.openworkflow.sdk.impl.scheduler.WorkflowScheduler; +import org.openworkflow.sdk.impl.schema.SchemaValidator; public class WorkflowDefinition implements AutoCloseable, WorkflowDefinitionData { diff --git a/impl/core/src/main/java/io/serverlessworkflow/impl/WorkflowDefinitionData.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/WorkflowDefinitionData.java similarity index 81% rename from impl/core/src/main/java/io/serverlessworkflow/impl/WorkflowDefinitionData.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/WorkflowDefinitionData.java index 9466c497f..56a4d2c2c 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/WorkflowDefinitionData.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/WorkflowDefinitionData.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,9 +13,9 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl; +package org.openworkflow.sdk.impl; -import io.serverlessworkflow.api.types.Workflow; +import org.openworkflow.sdk.api.types.Workflow; public interface WorkflowDefinitionData { diff --git a/impl/core/src/main/java/io/serverlessworkflow/impl/WorkflowDefinitionId.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/WorkflowDefinitionId.java similarity index 85% rename from impl/core/src/main/java/io/serverlessworkflow/impl/WorkflowDefinitionId.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/WorkflowDefinitionId.java index 023cefe9b..bcbc99beb 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/WorkflowDefinitionId.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/WorkflowDefinitionId.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,11 +13,11 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl; +package org.openworkflow.sdk.impl; -import io.serverlessworkflow.api.types.Document; -import io.serverlessworkflow.api.types.Workflow; -import io.serverlessworkflow.types.Defaults; +import org.openworkflow.sdk.api.types.Document; +import org.openworkflow.sdk.api.types.Workflow; +import org.openworkflow.sdk.types.Defaults; public record WorkflowDefinitionId(String namespace, String name, String version) { diff --git a/impl/core/src/main/java/io/serverlessworkflow/impl/WorkflowError.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/WorkflowError.java similarity index 91% rename from impl/core/src/main/java/io/serverlessworkflow/impl/WorkflowError.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/WorkflowError.java index 4afd744ac..1acbef092 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/WorkflowError.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/WorkflowError.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,13 +13,13 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl; +package org.openworkflow.sdk.impl; -import io.serverlessworkflow.impl.lifecycle.TaskFailedEvent; -import io.serverlessworkflow.impl.lifecycle.WorkflowFailedEvent; -import io.serverlessworkflow.types.Errors; import java.io.PrintWriter; import java.io.StringWriter; +import org.openworkflow.sdk.impl.lifecycle.TaskFailedEvent; +import org.openworkflow.sdk.impl.lifecycle.WorkflowFailedEvent; +import org.openworkflow.sdk.types.Errors; public record WorkflowError(String type, int status, String instance, String title, String detail) { @@ -32,7 +32,7 @@ public static Builder authorization() { } public static Builder expression() { - return error("https://serverlessworkflow.io/spec/1.0.0/errors/expression", 400); + return error(Errors.EXPRESSION.toString(), Errors.EXPRESSION.status()); } public static Builder communication(int status, TaskContext context, Throwable ex) { diff --git a/impl/core/src/main/java/io/serverlessworkflow/impl/WorkflowException.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/WorkflowException.java similarity index 90% rename from impl/core/src/main/java/io/serverlessworkflow/impl/WorkflowException.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/WorkflowException.java index 59b16d518..caffdbb95 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/WorkflowException.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/WorkflowException.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl; +package org.openworkflow.sdk.impl; public class WorkflowException extends RuntimeException { diff --git a/impl/core/src/main/java/io/serverlessworkflow/impl/WorkflowFilter.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/WorkflowFilter.java similarity index 86% rename from impl/core/src/main/java/io/serverlessworkflow/impl/WorkflowFilter.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/WorkflowFilter.java index 71f5351f1..b5f6d08ba 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/WorkflowFilter.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/WorkflowFilter.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl; +package org.openworkflow.sdk.impl; @FunctionalInterface public interface WorkflowFilter { diff --git a/impl/core/src/main/java/io/serverlessworkflow/impl/WorkflowInstance.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/WorkflowInstance.java similarity index 95% rename from impl/core/src/main/java/io/serverlessworkflow/impl/WorkflowInstance.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/WorkflowInstance.java index 04317c8d3..d9a9fc857 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/WorkflowInstance.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/WorkflowInstance.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl; +package org.openworkflow.sdk.impl; import java.util.Optional; import java.util.concurrent.CompletableFuture; diff --git a/impl/core/src/main/java/io/serverlessworkflow/impl/WorkflowInstanceData.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/WorkflowInstanceData.java similarity index 90% rename from impl/core/src/main/java/io/serverlessworkflow/impl/WorkflowInstanceData.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/WorkflowInstanceData.java index 5bd779d0e..8e6c152e6 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/WorkflowInstanceData.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/WorkflowInstanceData.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl; +package org.openworkflow.sdk.impl; import java.time.Instant; import java.util.Map; diff --git a/impl/core/src/main/java/io/serverlessworkflow/impl/WorkflowInstanceIdFactory.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/WorkflowInstanceIdFactory.java similarity index 86% rename from impl/core/src/main/java/io/serverlessworkflow/impl/WorkflowInstanceIdFactory.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/WorkflowInstanceIdFactory.java index 22a27559d..1d8976b07 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/WorkflowInstanceIdFactory.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/WorkflowInstanceIdFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl; +package org.openworkflow.sdk.impl; import java.util.function.Supplier; diff --git a/impl/core/src/main/java/io/serverlessworkflow/impl/WorkflowModel.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/WorkflowModel.java similarity index 90% rename from impl/core/src/main/java/io/serverlessworkflow/impl/WorkflowModel.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/WorkflowModel.java index 91b2faf3b..efb817a0d 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/WorkflowModel.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/WorkflowModel.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl; +package org.openworkflow.sdk.impl; import java.time.OffsetDateTime; import java.util.Collection; diff --git a/impl/core/src/main/java/io/serverlessworkflow/impl/WorkflowModelCollection.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/WorkflowModelCollection.java similarity index 92% rename from impl/core/src/main/java/io/serverlessworkflow/impl/WorkflowModelCollection.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/WorkflowModelCollection.java index 61833f8d0..58aeb0bcd 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/WorkflowModelCollection.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/WorkflowModelCollection.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl; +package org.openworkflow.sdk.impl; import io.cloudevents.CloudEventData; import java.time.OffsetDateTime; diff --git a/impl/core/src/main/java/io/serverlessworkflow/impl/WorkflowModelFactory.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/WorkflowModelFactory.java similarity index 95% rename from impl/core/src/main/java/io/serverlessworkflow/impl/WorkflowModelFactory.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/WorkflowModelFactory.java index b1c6caf6b..546f20af8 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/WorkflowModelFactory.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/WorkflowModelFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl; +package org.openworkflow.sdk.impl; import io.cloudevents.CloudEvent; import io.cloudevents.CloudEventData; diff --git a/impl/core/src/main/java/io/serverlessworkflow/impl/WorkflowMutableInstance.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/WorkflowMutableInstance.java similarity index 95% rename from impl/core/src/main/java/io/serverlessworkflow/impl/WorkflowMutableInstance.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/WorkflowMutableInstance.java index 08780a89e..c14f12d67 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/WorkflowMutableInstance.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/WorkflowMutableInstance.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,19 +13,11 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl; - -import static io.serverlessworkflow.impl.LifecycleEventsUtils.publishEvent; -import static io.serverlessworkflow.impl.WorkflowUtils.validationError; - -import io.serverlessworkflow.impl.executors.TaskExecutorHelper; -import io.serverlessworkflow.impl.lifecycle.WorkflowCancelledEvent; -import io.serverlessworkflow.impl.lifecycle.WorkflowCompletedEvent; -import io.serverlessworkflow.impl.lifecycle.WorkflowFailedEvent; -import io.serverlessworkflow.impl.lifecycle.WorkflowResumedEvent; -import io.serverlessworkflow.impl.lifecycle.WorkflowStartedEvent; -import io.serverlessworkflow.impl.lifecycle.WorkflowStatusEvent; -import io.serverlessworkflow.impl.lifecycle.WorkflowSuspendedEvent; +package org.openworkflow.sdk.impl; + +import static org.openworkflow.sdk.impl.LifecycleEventsUtils.publishEvent; +import static org.openworkflow.sdk.impl.WorkflowUtils.validationError; + import java.time.Instant; import java.util.ArrayList; import java.util.Collection; @@ -41,6 +33,14 @@ import java.util.concurrent.locks.ReentrantLock; import java.util.function.Function; import java.util.function.Supplier; +import org.openworkflow.sdk.impl.executors.TaskExecutorHelper; +import org.openworkflow.sdk.impl.lifecycle.WorkflowCancelledEvent; +import org.openworkflow.sdk.impl.lifecycle.WorkflowCompletedEvent; +import org.openworkflow.sdk.impl.lifecycle.WorkflowFailedEvent; +import org.openworkflow.sdk.impl.lifecycle.WorkflowResumedEvent; +import org.openworkflow.sdk.impl.lifecycle.WorkflowStartedEvent; +import org.openworkflow.sdk.impl.lifecycle.WorkflowStatusEvent; +import org.openworkflow.sdk.impl.lifecycle.WorkflowSuspendedEvent; public class WorkflowMutableInstance implements WorkflowInstance { diff --git a/impl/core/src/main/java/io/serverlessworkflow/impl/WorkflowMutablePosition.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/WorkflowMutablePosition.java similarity index 88% rename from impl/core/src/main/java/io/serverlessworkflow/impl/WorkflowMutablePosition.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/WorkflowMutablePosition.java index 20d484d1a..28cc3393e 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/WorkflowMutablePosition.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/WorkflowMutablePosition.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl; +package org.openworkflow.sdk.impl; public interface WorkflowMutablePosition extends WorkflowPosition { WorkflowMutablePosition addProperty(String prop); diff --git a/impl/core/src/main/java/io/serverlessworkflow/impl/WorkflowPosition.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/WorkflowPosition.java similarity index 85% rename from impl/core/src/main/java/io/serverlessworkflow/impl/WorkflowPosition.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/WorkflowPosition.java index 610815cd3..4c5f9f5a1 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/WorkflowPosition.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/WorkflowPosition.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl; +package org.openworkflow.sdk.impl; public interface WorkflowPosition { diff --git a/impl/core/src/main/java/io/serverlessworkflow/impl/WorkflowPositionFactory.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/WorkflowPositionFactory.java similarity index 86% rename from impl/core/src/main/java/io/serverlessworkflow/impl/WorkflowPositionFactory.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/WorkflowPositionFactory.java index 00fe9c011..315a54c0d 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/WorkflowPositionFactory.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/WorkflowPositionFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl; +package org.openworkflow.sdk.impl; import java.util.function.Supplier; diff --git a/impl/core/src/main/java/io/serverlessworkflow/impl/WorkflowPredicate.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/WorkflowPredicate.java similarity index 86% rename from impl/core/src/main/java/io/serverlessworkflow/impl/WorkflowPredicate.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/WorkflowPredicate.java index cb4ff3f0f..a3b1bb041 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/WorkflowPredicate.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/WorkflowPredicate.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl; +package org.openworkflow.sdk.impl; public interface WorkflowPredicate { boolean test(WorkflowContext workflow, TaskContext task, WorkflowModel model); diff --git a/impl/core/src/main/java/io/serverlessworkflow/impl/WorkflowStatus.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/WorkflowStatus.java similarity index 86% rename from impl/core/src/main/java/io/serverlessworkflow/impl/WorkflowStatus.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/WorkflowStatus.java index c61306c37..be2c47032 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/WorkflowStatus.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/WorkflowStatus.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl; +package org.openworkflow.sdk.impl; public enum WorkflowStatus { PENDING, diff --git a/impl/core/src/main/java/io/serverlessworkflow/impl/WorkflowUtils.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/WorkflowUtils.java similarity index 92% rename from impl/core/src/main/java/io/serverlessworkflow/impl/WorkflowUtils.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/WorkflowUtils.java index b035c52c2..b76a1a85a 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/WorkflowUtils.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/WorkflowUtils.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,26 +13,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl; - -import io.serverlessworkflow.api.types.DurationInline; -import io.serverlessworkflow.api.types.ExportAs; -import io.serverlessworkflow.api.types.InputFrom; -import io.serverlessworkflow.api.types.OutputAs; -import io.serverlessworkflow.api.types.SchemaUnion; -import io.serverlessworkflow.api.types.SecretBasedAuthenticationPolicy; -import io.serverlessworkflow.api.types.TaskBase; -import io.serverlessworkflow.api.types.TaskTimeout; -import io.serverlessworkflow.api.types.Timeout; -import io.serverlessworkflow.api.types.TimeoutAfter; -import io.serverlessworkflow.api.types.UriTemplate; -import io.serverlessworkflow.api.types.Workflow; -import io.serverlessworkflow.impl.expressions.ExpressionDescriptor; -import io.serverlessworkflow.impl.expressions.ExpressionFactory; -import io.serverlessworkflow.impl.expressions.ExpressionUtils; -import io.serverlessworkflow.impl.resources.ResourceLoader; -import io.serverlessworkflow.impl.schema.SchemaValidator; -import io.serverlessworkflow.impl.schema.SchemaValidatorFactory; +package org.openworkflow.sdk.impl; + import java.net.URI; import java.net.URISyntaxException; import java.time.Duration; @@ -42,6 +24,24 @@ import java.util.ServiceLoader; import java.util.concurrent.ExecutorService; import java.util.concurrent.TimeUnit; +import org.openworkflow.sdk.api.types.DurationInline; +import org.openworkflow.sdk.api.types.ExportAs; +import org.openworkflow.sdk.api.types.InputFrom; +import org.openworkflow.sdk.api.types.OutputAs; +import org.openworkflow.sdk.api.types.SchemaUnion; +import org.openworkflow.sdk.api.types.SecretBasedAuthenticationPolicy; +import org.openworkflow.sdk.api.types.TaskBase; +import org.openworkflow.sdk.api.types.TaskTimeout; +import org.openworkflow.sdk.api.types.Timeout; +import org.openworkflow.sdk.api.types.TimeoutAfter; +import org.openworkflow.sdk.api.types.UriTemplate; +import org.openworkflow.sdk.api.types.Workflow; +import org.openworkflow.sdk.impl.expressions.ExpressionDescriptor; +import org.openworkflow.sdk.impl.expressions.ExpressionFactory; +import org.openworkflow.sdk.impl.expressions.ExpressionUtils; +import org.openworkflow.sdk.impl.resources.ResourceLoader; +import org.openworkflow.sdk.impl.schema.SchemaValidator; +import org.openworkflow.sdk.impl.schema.SchemaValidatorFactory; import org.slf4j.Logger; import org.slf4j.LoggerFactory; diff --git a/impl/core/src/main/java/io/serverlessworkflow/impl/WorkflowValueResolver.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/WorkflowValueResolver.java similarity index 86% rename from impl/core/src/main/java/io/serverlessworkflow/impl/WorkflowValueResolver.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/WorkflowValueResolver.java index 5b08f39b4..a3c0a9363 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/WorkflowValueResolver.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/WorkflowValueResolver.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl; +package org.openworkflow.sdk.impl; public interface WorkflowValueResolver { T apply(WorkflowContext workflow, TaskContext task, WorkflowModel model); diff --git a/impl/core/src/main/java/io/serverlessworkflow/impl/additional/ConstantAdditionalObject.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/additional/ConstantAdditionalObject.java similarity index 79% rename from impl/core/src/main/java/io/serverlessworkflow/impl/additional/ConstantAdditionalObject.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/additional/ConstantAdditionalObject.java index eba50c466..9297e9fbd 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/additional/ConstantAdditionalObject.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/additional/ConstantAdditionalObject.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,10 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.additional; +package org.openworkflow.sdk.impl.additional; -import io.serverlessworkflow.impl.TaskContextData; -import io.serverlessworkflow.impl.WorkflowContextData; +import org.openworkflow.sdk.impl.TaskContextData; +import org.openworkflow.sdk.impl.WorkflowContextData; public class ConstantAdditionalObject implements WorkflowAdditionalObject { diff --git a/impl/core/src/main/java/io/serverlessworkflow/impl/additional/NamedWorkflowAdditionalObject.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/additional/NamedWorkflowAdditionalObject.java similarity index 80% rename from impl/core/src/main/java/io/serverlessworkflow/impl/additional/NamedWorkflowAdditionalObject.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/additional/NamedWorkflowAdditionalObject.java index af8c36a01..756e84cb7 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/additional/NamedWorkflowAdditionalObject.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/additional/NamedWorkflowAdditionalObject.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,9 +13,9 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.additional; +package org.openworkflow.sdk.impl.additional; -import io.serverlessworkflow.impl.NamedObject; +import org.openworkflow.sdk.impl.NamedObject; public interface NamedWorkflowAdditionalObject extends WorkflowAdditionalObject, NamedObject {} diff --git a/impl/core/src/main/java/io/serverlessworkflow/impl/additional/SuppliedAdditionalObject.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/additional/SuppliedAdditionalObject.java similarity index 80% rename from impl/core/src/main/java/io/serverlessworkflow/impl/additional/SuppliedAdditionalObject.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/additional/SuppliedAdditionalObject.java index d0ed415f3..6546f0661 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/additional/SuppliedAdditionalObject.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/additional/SuppliedAdditionalObject.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,11 +13,11 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.additional; +package org.openworkflow.sdk.impl.additional; -import io.serverlessworkflow.impl.TaskContextData; -import io.serverlessworkflow.impl.WorkflowContextData; import java.util.function.Supplier; +import org.openworkflow.sdk.impl.TaskContextData; +import org.openworkflow.sdk.impl.WorkflowContextData; public class SuppliedAdditionalObject implements WorkflowAdditionalObject { diff --git a/impl/core/src/main/java/io/serverlessworkflow/impl/additional/WorkflowAdditionalObject.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/additional/WorkflowAdditionalObject.java similarity index 76% rename from impl/core/src/main/java/io/serverlessworkflow/impl/additional/WorkflowAdditionalObject.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/additional/WorkflowAdditionalObject.java index 93cfa2dfc..a2bb83a2a 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/additional/WorkflowAdditionalObject.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/additional/WorkflowAdditionalObject.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,11 +13,11 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.additional; +package org.openworkflow.sdk.impl.additional; -import io.serverlessworkflow.impl.TaskContextData; -import io.serverlessworkflow.impl.WorkflowContextData; import java.util.function.BiFunction; +import org.openworkflow.sdk.impl.TaskContextData; +import org.openworkflow.sdk.impl.WorkflowContextData; public interface WorkflowAdditionalObject extends BiFunction {} diff --git a/impl/core/src/main/java/io/serverlessworkflow/impl/auth/AbstractAuthRequestBuilder.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/auth/AbstractAuthRequestBuilder.java similarity index 80% rename from impl/core/src/main/java/io/serverlessworkflow/impl/auth/AbstractAuthRequestBuilder.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/auth/AbstractAuthRequestBuilder.java index 15ba3046b..a8b853fda 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/auth/AbstractAuthRequestBuilder.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/auth/AbstractAuthRequestBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,35 +13,35 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.auth; - -import static io.serverlessworkflow.api.types.OAuth2AuthenticationDataClient.ClientAuthentication.CLIENT_SECRET_POST; -import static io.serverlessworkflow.impl.WorkflowUtils.isValid; -import static io.serverlessworkflow.impl.auth.AuthUtils.ACTOR; -import static io.serverlessworkflow.impl.auth.AuthUtils.ACTOR_TOKEN; -import static io.serverlessworkflow.impl.auth.AuthUtils.ACTOR_TOKEN_TYPE; -import static io.serverlessworkflow.impl.auth.AuthUtils.AUDIENCES; -import static io.serverlessworkflow.impl.auth.AuthUtils.AUTHENTICATION; -import static io.serverlessworkflow.impl.auth.AuthUtils.CLIENT; -import static io.serverlessworkflow.impl.auth.AuthUtils.ENCODING; -import static io.serverlessworkflow.impl.auth.AuthUtils.REQUEST; -import static io.serverlessworkflow.impl.auth.AuthUtils.SCOPES; -import static io.serverlessworkflow.impl.auth.AuthUtils.SUBJECT; -import static io.serverlessworkflow.impl.auth.AuthUtils.SUBJECT_TOKEN; -import static io.serverlessworkflow.impl.auth.AuthUtils.SUBJECT_TOKEN_TYPE; -import static io.serverlessworkflow.impl.auth.AuthUtils.TOKEN; -import static io.serverlessworkflow.impl.auth.AuthUtils.TYPE; - -import io.serverlessworkflow.api.types.OAuth2AuthenticationData; -import io.serverlessworkflow.api.types.OAuth2AuthenticationDataClient; -import io.serverlessworkflow.api.types.OAuth2TokenDefinition; -import io.serverlessworkflow.impl.WorkflowApplication; -import io.serverlessworkflow.impl.WorkflowUtils; +package org.openworkflow.sdk.impl.auth; + +import static org.openworkflow.sdk.api.types.OAuth2AuthenticationDataClient.ClientAuthentication.CLIENT_SECRET_POST; +import static org.openworkflow.sdk.impl.WorkflowUtils.isValid; +import static org.openworkflow.sdk.impl.auth.AuthUtils.ACTOR; +import static org.openworkflow.sdk.impl.auth.AuthUtils.ACTOR_TOKEN; +import static org.openworkflow.sdk.impl.auth.AuthUtils.ACTOR_TOKEN_TYPE; +import static org.openworkflow.sdk.impl.auth.AuthUtils.AUDIENCES; +import static org.openworkflow.sdk.impl.auth.AuthUtils.AUTHENTICATION; +import static org.openworkflow.sdk.impl.auth.AuthUtils.CLIENT; +import static org.openworkflow.sdk.impl.auth.AuthUtils.ENCODING; +import static org.openworkflow.sdk.impl.auth.AuthUtils.REQUEST; +import static org.openworkflow.sdk.impl.auth.AuthUtils.SCOPES; +import static org.openworkflow.sdk.impl.auth.AuthUtils.SUBJECT; +import static org.openworkflow.sdk.impl.auth.AuthUtils.SUBJECT_TOKEN; +import static org.openworkflow.sdk.impl.auth.AuthUtils.SUBJECT_TOKEN_TYPE; +import static org.openworkflow.sdk.impl.auth.AuthUtils.TOKEN; +import static org.openworkflow.sdk.impl.auth.AuthUtils.TYPE; + import java.util.Arrays; import java.util.List; import java.util.Map; import java.util.Objects; import java.util.stream.Collectors; +import org.openworkflow.sdk.api.types.OAuth2AuthenticationData; +import org.openworkflow.sdk.api.types.OAuth2AuthenticationDataClient; +import org.openworkflow.sdk.api.types.OAuth2TokenDefinition; +import org.openworkflow.sdk.impl.WorkflowApplication; +import org.openworkflow.sdk.impl.WorkflowUtils; abstract class AbstractAuthRequestBuilder implements AuthRequestBuilder { diff --git a/impl/core/src/main/java/io/serverlessworkflow/impl/auth/AccessTokenProvider.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/auth/AccessTokenProvider.java similarity index 74% rename from impl/core/src/main/java/io/serverlessworkflow/impl/auth/AccessTokenProvider.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/auth/AccessTokenProvider.java index 55f928da4..c1ef5f730 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/auth/AccessTokenProvider.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/auth/AccessTokenProvider.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,12 +13,12 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.auth; +package org.openworkflow.sdk.impl.auth; -import io.serverlessworkflow.impl.TaskContext; -import io.serverlessworkflow.impl.WorkflowContext; -import io.serverlessworkflow.impl.WorkflowModel; import java.util.concurrent.CompletableFuture; +import org.openworkflow.sdk.impl.TaskContext; +import org.openworkflow.sdk.impl.WorkflowContext; +import org.openworkflow.sdk.impl.WorkflowModel; public interface AccessTokenProvider { CompletableFuture validateAndGet( diff --git a/impl/core/src/main/java/io/serverlessworkflow/impl/auth/AccessTokenProviderFactory.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/auth/AccessTokenProviderFactory.java similarity index 82% rename from impl/core/src/main/java/io/serverlessworkflow/impl/auth/AccessTokenProviderFactory.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/auth/AccessTokenProviderFactory.java index c18f69f4c..7eddaaf5c 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/auth/AccessTokenProviderFactory.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/auth/AccessTokenProviderFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,10 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.auth; +package org.openworkflow.sdk.impl.auth; -import io.serverlessworkflow.impl.ServicePriority; import java.util.List; +import org.openworkflow.sdk.impl.ServicePriority; public interface AccessTokenProviderFactory extends ServicePriority { diff --git a/impl/core/src/main/java/io/serverlessworkflow/impl/auth/AuthProvider.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/auth/AuthProvider.java similarity index 75% rename from impl/core/src/main/java/io/serverlessworkflow/impl/auth/AuthProvider.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/auth/AuthProvider.java index 2ff043471..ab36fa45d 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/auth/AuthProvider.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/auth/AuthProvider.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,13 +13,13 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.auth; +package org.openworkflow.sdk.impl.auth; -import io.serverlessworkflow.impl.TaskContext; -import io.serverlessworkflow.impl.WorkflowContext; -import io.serverlessworkflow.impl.WorkflowModel; import java.net.URI; import java.util.concurrent.CompletableFuture; +import org.openworkflow.sdk.impl.TaskContext; +import org.openworkflow.sdk.impl.WorkflowContext; +import org.openworkflow.sdk.impl.WorkflowModel; public interface AuthProvider { diff --git a/impl/core/src/main/java/io/serverlessworkflow/impl/auth/AuthProviderFactory.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/auth/AuthProviderFactory.java similarity index 75% rename from impl/core/src/main/java/io/serverlessworkflow/impl/auth/AuthProviderFactory.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/auth/AuthProviderFactory.java index 2630250f2..00c0f93a9 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/auth/AuthProviderFactory.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/auth/AuthProviderFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,12 +13,12 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.auth; +package org.openworkflow.sdk.impl.auth; -import io.serverlessworkflow.api.types.EndpointConfiguration; -import io.serverlessworkflow.api.types.ReferenceableAuthenticationPolicy; -import io.serverlessworkflow.impl.WorkflowDefinition; import java.util.Optional; +import org.openworkflow.sdk.api.types.EndpointConfiguration; +import org.openworkflow.sdk.api.types.ReferenceableAuthenticationPolicy; +import org.openworkflow.sdk.impl.WorkflowDefinition; /** Resolves the {@link AuthProvider} to use for a given authentication policy. */ public interface AuthProviderFactory { diff --git a/impl/core/src/main/java/io/serverlessworkflow/impl/auth/AuthRequestBuilder.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/auth/AuthRequestBuilder.java similarity index 81% rename from impl/core/src/main/java/io/serverlessworkflow/impl/auth/AuthRequestBuilder.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/auth/AuthRequestBuilder.java index 03940ba21..22e7fedce 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/auth/AuthRequestBuilder.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/auth/AuthRequestBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,10 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.auth; +package org.openworkflow.sdk.impl.auth; -import io.serverlessworkflow.api.types.OAuth2AuthenticationData; import java.util.Map; +import org.openworkflow.sdk.api.types.OAuth2AuthenticationData; public interface AuthRequestBuilder { diff --git a/impl/core/src/main/java/io/serverlessworkflow/impl/auth/AuthUtils.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/auth/AuthUtils.java similarity index 95% rename from impl/core/src/main/java/io/serverlessworkflow/impl/auth/AuthUtils.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/auth/AuthUtils.java index 28daba2a4..7193aed39 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/auth/AuthUtils.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/auth/AuthUtils.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.auth; +package org.openworkflow.sdk.impl.auth; public class AuthUtils { diff --git a/impl/core/src/main/java/io/serverlessworkflow/impl/auth/BasicAuthProvider.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/auth/BasicAuthProvider.java similarity index 75% rename from impl/core/src/main/java/io/serverlessworkflow/impl/auth/BasicAuthProvider.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/auth/BasicAuthProvider.java index fc63ce9a7..780bbfb24 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/auth/BasicAuthProvider.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/auth/BasicAuthProvider.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,24 +13,24 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.auth; +package org.openworkflow.sdk.impl.auth; -import static io.serverlessworkflow.impl.WorkflowUtils.checkSecret; -import static io.serverlessworkflow.impl.WorkflowUtils.secretProp; -import static io.serverlessworkflow.impl.auth.AuthUtils.PASSWORD; -import static io.serverlessworkflow.impl.auth.AuthUtils.USER; +import static org.openworkflow.sdk.impl.WorkflowUtils.checkSecret; +import static org.openworkflow.sdk.impl.WorkflowUtils.secretProp; +import static org.openworkflow.sdk.impl.auth.AuthUtils.PASSWORD; +import static org.openworkflow.sdk.impl.auth.AuthUtils.USER; -import io.serverlessworkflow.api.types.BasicAuthenticationPolicy; -import io.serverlessworkflow.api.types.Workflow; -import io.serverlessworkflow.impl.TaskContext; -import io.serverlessworkflow.impl.WorkflowApplication; -import io.serverlessworkflow.impl.WorkflowContext; -import io.serverlessworkflow.impl.WorkflowModel; -import io.serverlessworkflow.impl.WorkflowUtils; -import io.serverlessworkflow.impl.WorkflowValueResolver; import java.net.URI; import java.util.Base64; import java.util.concurrent.CompletableFuture; +import org.openworkflow.sdk.api.types.BasicAuthenticationPolicy; +import org.openworkflow.sdk.api.types.Workflow; +import org.openworkflow.sdk.impl.TaskContext; +import org.openworkflow.sdk.impl.WorkflowApplication; +import org.openworkflow.sdk.impl.WorkflowContext; +import org.openworkflow.sdk.impl.WorkflowModel; +import org.openworkflow.sdk.impl.WorkflowUtils; +import org.openworkflow.sdk.impl.WorkflowValueResolver; class BasicAuthProvider implements AuthProvider { diff --git a/impl/core/src/main/java/io/serverlessworkflow/impl/auth/BearerAuthProvider.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/auth/BearerAuthProvider.java similarity index 67% rename from impl/core/src/main/java/io/serverlessworkflow/impl/auth/BearerAuthProvider.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/auth/BearerAuthProvider.java index a0521dfc4..0f02d5568 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/auth/BearerAuthProvider.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/auth/BearerAuthProvider.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,23 +13,23 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.auth; +package org.openworkflow.sdk.impl.auth; -import static io.serverlessworkflow.impl.WorkflowUtils.checkSecret; -import static io.serverlessworkflow.impl.WorkflowUtils.secretProp; -import static io.serverlessworkflow.impl.auth.AuthUtils.TOKEN; +import static org.openworkflow.sdk.impl.WorkflowUtils.checkSecret; +import static org.openworkflow.sdk.impl.WorkflowUtils.secretProp; +import static org.openworkflow.sdk.impl.auth.AuthUtils.TOKEN; -import io.serverlessworkflow.api.types.BearerAuthenticationPolicy; -import io.serverlessworkflow.api.types.BearerAuthenticationPolicyConfiguration; -import io.serverlessworkflow.api.types.Workflow; -import io.serverlessworkflow.impl.TaskContext; -import io.serverlessworkflow.impl.WorkflowApplication; -import io.serverlessworkflow.impl.WorkflowContext; -import io.serverlessworkflow.impl.WorkflowModel; -import io.serverlessworkflow.impl.WorkflowUtils; -import io.serverlessworkflow.impl.WorkflowValueResolver; import java.net.URI; import java.util.concurrent.CompletableFuture; +import org.openworkflow.sdk.api.types.BearerAuthenticationPolicy; +import org.openworkflow.sdk.api.types.BearerAuthenticationPolicyConfiguration; +import org.openworkflow.sdk.api.types.Workflow; +import org.openworkflow.sdk.impl.TaskContext; +import org.openworkflow.sdk.impl.WorkflowApplication; +import org.openworkflow.sdk.impl.WorkflowContext; +import org.openworkflow.sdk.impl.WorkflowModel; +import org.openworkflow.sdk.impl.WorkflowUtils; +import org.openworkflow.sdk.impl.WorkflowValueResolver; class BearerAuthProvider implements AuthProvider { diff --git a/impl/core/src/main/java/io/serverlessworkflow/impl/auth/ClientSecretBasic.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/auth/ClientSecretBasic.java similarity index 79% rename from impl/core/src/main/java/io/serverlessworkflow/impl/auth/ClientSecretBasic.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/auth/ClientSecretBasic.java index 9d8aca036..3053b5afc 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/auth/ClientSecretBasic.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/auth/ClientSecretBasic.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,20 +13,20 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.auth; +package org.openworkflow.sdk.impl.auth; -import static io.serverlessworkflow.impl.auth.AuthUtils.CLIENT; -import static io.serverlessworkflow.impl.auth.AuthUtils.GRANT; -import static io.serverlessworkflow.impl.auth.AuthUtils.ID; -import static io.serverlessworkflow.impl.auth.AuthUtils.PASSWORD; -import static io.serverlessworkflow.impl.auth.AuthUtils.SECRET; -import static io.serverlessworkflow.impl.auth.AuthUtils.USER; +import static org.openworkflow.sdk.impl.auth.AuthUtils.CLIENT; +import static org.openworkflow.sdk.impl.auth.AuthUtils.GRANT; +import static org.openworkflow.sdk.impl.auth.AuthUtils.ID; +import static org.openworkflow.sdk.impl.auth.AuthUtils.PASSWORD; +import static org.openworkflow.sdk.impl.auth.AuthUtils.SECRET; +import static org.openworkflow.sdk.impl.auth.AuthUtils.USER; -import io.serverlessworkflow.api.types.OAuth2AuthenticationData; -import io.serverlessworkflow.impl.WorkflowApplication; -import io.serverlessworkflow.impl.WorkflowUtils; import java.util.Base64; import java.util.Map; +import org.openworkflow.sdk.api.types.OAuth2AuthenticationData; +import org.openworkflow.sdk.impl.WorkflowApplication; +import org.openworkflow.sdk.impl.WorkflowUtils; class ClientSecretBasic extends ClientSecretHandler { diff --git a/impl/core/src/main/java/io/serverlessworkflow/impl/auth/ClientSecretHandler.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/auth/ClientSecretHandler.java similarity index 83% rename from impl/core/src/main/java/io/serverlessworkflow/impl/auth/ClientSecretHandler.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/auth/ClientSecretHandler.java index 13ac19e4d..c80df8021 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/auth/ClientSecretHandler.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/auth/ClientSecretHandler.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,17 +13,17 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.auth; +package org.openworkflow.sdk.impl.auth; -import static io.serverlessworkflow.api.types.OAuth2AuthenticationData.OAuth2AuthenticationDataGrant.CLIENT_CREDENTIALS; -import static io.serverlessworkflow.api.types.OAuth2AuthenticationData.OAuth2AuthenticationDataGrant.PASSWORD; -import static io.serverlessworkflow.api.types.OAuth2AuthenticationData.OAuth2AuthenticationDataGrant.URN_IETF_PARAMS_OAUTH_GRANT_TYPE_TOKEN_EXCHANGE; -import static io.serverlessworkflow.impl.auth.AuthUtils.USER; +import static org.openworkflow.sdk.api.types.OAuth2AuthenticationData.OAuth2AuthenticationDataGrant.CLIENT_CREDENTIALS; +import static org.openworkflow.sdk.api.types.OAuth2AuthenticationData.OAuth2AuthenticationDataGrant.PASSWORD; +import static org.openworkflow.sdk.api.types.OAuth2AuthenticationData.OAuth2AuthenticationDataGrant.URN_IETF_PARAMS_OAUTH_GRANT_TYPE_TOKEN_EXCHANGE; +import static org.openworkflow.sdk.impl.auth.AuthUtils.USER; -import io.serverlessworkflow.api.types.OAuth2AuthenticationData; -import io.serverlessworkflow.impl.WorkflowApplication; import java.util.Map; import java.util.Objects; +import org.openworkflow.sdk.api.types.OAuth2AuthenticationData; +import org.openworkflow.sdk.impl.WorkflowApplication; abstract class ClientSecretHandler { diff --git a/impl/core/src/main/java/io/serverlessworkflow/impl/auth/ClientSecretPost.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/auth/ClientSecretPost.java similarity index 78% rename from impl/core/src/main/java/io/serverlessworkflow/impl/auth/ClientSecretPost.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/auth/ClientSecretPost.java index ad07343a3..8e05722df 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/auth/ClientSecretPost.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/auth/ClientSecretPost.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,19 +13,19 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.auth; +package org.openworkflow.sdk.impl.auth; -import static io.serverlessworkflow.impl.auth.AuthUtils.CLIENT; -import static io.serverlessworkflow.impl.auth.AuthUtils.GRANT; -import static io.serverlessworkflow.impl.auth.AuthUtils.ID; -import static io.serverlessworkflow.impl.auth.AuthUtils.PASSWORD; -import static io.serverlessworkflow.impl.auth.AuthUtils.SECRET; -import static io.serverlessworkflow.impl.auth.AuthUtils.USER; +import static org.openworkflow.sdk.impl.auth.AuthUtils.CLIENT; +import static org.openworkflow.sdk.impl.auth.AuthUtils.GRANT; +import static org.openworkflow.sdk.impl.auth.AuthUtils.ID; +import static org.openworkflow.sdk.impl.auth.AuthUtils.PASSWORD; +import static org.openworkflow.sdk.impl.auth.AuthUtils.SECRET; +import static org.openworkflow.sdk.impl.auth.AuthUtils.USER; -import io.serverlessworkflow.api.types.OAuth2AuthenticationData; -import io.serverlessworkflow.impl.WorkflowApplication; -import io.serverlessworkflow.impl.WorkflowUtils; import java.util.Map; +import org.openworkflow.sdk.api.types.OAuth2AuthenticationData; +import org.openworkflow.sdk.impl.WorkflowApplication; +import org.openworkflow.sdk.impl.WorkflowUtils; class ClientSecretPost extends ClientSecretHandler { diff --git a/impl/core/src/main/java/io/serverlessworkflow/impl/auth/CommonOAuthProvider.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/auth/CommonOAuthProvider.java similarity index 81% rename from impl/core/src/main/java/io/serverlessworkflow/impl/auth/CommonOAuthProvider.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/auth/CommonOAuthProvider.java index 3404ac1d2..4fcf48ddc 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/auth/CommonOAuthProvider.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/auth/CommonOAuthProvider.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,23 +13,23 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.auth; +package org.openworkflow.sdk.impl.auth; -import static io.serverlessworkflow.impl.WorkflowUtils.checkSecret; -import static io.serverlessworkflow.impl.WorkflowUtils.secret; +import static org.openworkflow.sdk.impl.WorkflowUtils.checkSecret; +import static org.openworkflow.sdk.impl.WorkflowUtils.secret; -import io.serverlessworkflow.api.types.OAuth2AuthenticationData; -import io.serverlessworkflow.api.types.SecretBasedAuthenticationPolicy; -import io.serverlessworkflow.api.types.Workflow; -import io.serverlessworkflow.impl.TaskContext; -import io.serverlessworkflow.impl.WorkflowApplication; -import io.serverlessworkflow.impl.WorkflowContext; -import io.serverlessworkflow.impl.WorkflowModel; -import io.serverlessworkflow.impl.WorkflowValueResolver; import java.net.URI; import java.util.Arrays; import java.util.Map; import java.util.concurrent.CompletableFuture; +import org.openworkflow.sdk.api.types.OAuth2AuthenticationData; +import org.openworkflow.sdk.api.types.SecretBasedAuthenticationPolicy; +import org.openworkflow.sdk.api.types.Workflow; +import org.openworkflow.sdk.impl.TaskContext; +import org.openworkflow.sdk.impl.WorkflowApplication; +import org.openworkflow.sdk.impl.WorkflowContext; +import org.openworkflow.sdk.impl.WorkflowModel; +import org.openworkflow.sdk.impl.WorkflowValueResolver; public abstract class CommonOAuthProvider implements AuthProvider { diff --git a/impl/core/src/main/java/io/serverlessworkflow/impl/auth/DefaultAuthProviderFactory.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/auth/DefaultAuthProviderFactory.java similarity index 85% rename from impl/core/src/main/java/io/serverlessworkflow/impl/auth/DefaultAuthProviderFactory.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/auth/DefaultAuthProviderFactory.java index 9fb8e7962..07b977147 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/auth/DefaultAuthProviderFactory.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/auth/DefaultAuthProviderFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,18 +13,18 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.auth; +package org.openworkflow.sdk.impl.auth; -import io.serverlessworkflow.api.types.AuthenticationPolicyUnion; -import io.serverlessworkflow.api.types.BasicAuthenticationPolicy; -import io.serverlessworkflow.api.types.BearerAuthenticationPolicy; -import io.serverlessworkflow.api.types.DigestAuthenticationPolicy; -import io.serverlessworkflow.api.types.EndpointConfiguration; -import io.serverlessworkflow.api.types.ReferenceableAuthenticationPolicy; -import io.serverlessworkflow.api.types.Workflow; -import io.serverlessworkflow.impl.WorkflowApplication; -import io.serverlessworkflow.impl.WorkflowDefinition; import java.util.Optional; +import org.openworkflow.sdk.api.types.AuthenticationPolicyUnion; +import org.openworkflow.sdk.api.types.BasicAuthenticationPolicy; +import org.openworkflow.sdk.api.types.BearerAuthenticationPolicy; +import org.openworkflow.sdk.api.types.DigestAuthenticationPolicy; +import org.openworkflow.sdk.api.types.EndpointConfiguration; +import org.openworkflow.sdk.api.types.ReferenceableAuthenticationPolicy; +import org.openworkflow.sdk.api.types.Workflow; +import org.openworkflow.sdk.impl.WorkflowApplication; +import org.openworkflow.sdk.impl.WorkflowDefinition; public class DefaultAuthProviderFactory implements AuthProviderFactory { diff --git a/impl/core/src/main/java/io/serverlessworkflow/impl/auth/DigestAuthProvider.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/auth/DigestAuthProvider.java similarity index 90% rename from impl/core/src/main/java/io/serverlessworkflow/impl/auth/DigestAuthProvider.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/auth/DigestAuthProvider.java index 614008c9b..26d87ccd2 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/auth/DigestAuthProvider.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/auth/DigestAuthProvider.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,23 +13,13 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.auth; +package org.openworkflow.sdk.impl.auth; -import static io.serverlessworkflow.impl.WorkflowUtils.checkSecret; -import static io.serverlessworkflow.impl.WorkflowUtils.secretProp; -import static io.serverlessworkflow.impl.auth.AuthUtils.PASSWORD; -import static io.serverlessworkflow.impl.auth.AuthUtils.USER; +import static org.openworkflow.sdk.impl.WorkflowUtils.checkSecret; +import static org.openworkflow.sdk.impl.WorkflowUtils.secretProp; +import static org.openworkflow.sdk.impl.auth.AuthUtils.PASSWORD; +import static org.openworkflow.sdk.impl.auth.AuthUtils.USER; -import io.serverlessworkflow.api.types.DigestAuthenticationPolicy; -import io.serverlessworkflow.api.types.DigestAuthenticationProperties; -import io.serverlessworkflow.api.types.Workflow; -import io.serverlessworkflow.impl.TaskContext; -import io.serverlessworkflow.impl.WorkflowApplication; -import io.serverlessworkflow.impl.WorkflowContext; -import io.serverlessworkflow.impl.WorkflowModel; -import io.serverlessworkflow.impl.WorkflowUtils; -import io.serverlessworkflow.impl.WorkflowValueResolver; -import io.serverlessworkflow.impl.utils.RandomFactory; import java.io.IOException; import java.net.HttpURLConnection; import java.net.URI; @@ -42,6 +32,16 @@ import java.util.concurrent.atomic.AtomicInteger; import java.util.regex.Matcher; import java.util.regex.Pattern; +import org.openworkflow.sdk.api.types.DigestAuthenticationPolicy; +import org.openworkflow.sdk.api.types.DigestAuthenticationProperties; +import org.openworkflow.sdk.api.types.Workflow; +import org.openworkflow.sdk.impl.TaskContext; +import org.openworkflow.sdk.impl.WorkflowApplication; +import org.openworkflow.sdk.impl.WorkflowContext; +import org.openworkflow.sdk.impl.WorkflowModel; +import org.openworkflow.sdk.impl.WorkflowUtils; +import org.openworkflow.sdk.impl.WorkflowValueResolver; +import org.openworkflow.sdk.impl.utils.RandomFactory; class DigestAuthProvider implements AuthProvider { diff --git a/impl/core/src/main/java/io/serverlessworkflow/impl/auth/HttpRequestInfo.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/auth/HttpRequestInfo.java similarity index 86% rename from impl/core/src/main/java/io/serverlessworkflow/impl/auth/HttpRequestInfo.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/auth/HttpRequestInfo.java index d3850e8e6..5bf459ee9 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/auth/HttpRequestInfo.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/auth/HttpRequestInfo.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,12 +13,12 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.auth; +package org.openworkflow.sdk.impl.auth; -import io.serverlessworkflow.impl.WorkflowValueResolver; import java.net.URI; import java.util.Map; import java.util.Optional; +import org.openworkflow.sdk.impl.WorkflowValueResolver; public record HttpRequestInfo( Map> headers, diff --git a/impl/core/src/main/java/io/serverlessworkflow/impl/auth/HttpRequestInfoBuilder.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/auth/HttpRequestInfoBuilder.java similarity index 91% rename from impl/core/src/main/java/io/serverlessworkflow/impl/auth/HttpRequestInfoBuilder.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/auth/HttpRequestInfoBuilder.java index fb021d222..f016d0b56 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/auth/HttpRequestInfoBuilder.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/auth/HttpRequestInfoBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,17 +13,17 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.auth; +package org.openworkflow.sdk.impl.auth; -import static io.serverlessworkflow.api.types.OAuth2TokenRequest.Oauth2TokenRequestEncoding.APPLICATION_X_WWW_FORM_URLENCODED; +import static org.openworkflow.sdk.api.types.OAuth2TokenRequest.Oauth2TokenRequestEncoding.APPLICATION_X_WWW_FORM_URLENCODED; -import io.serverlessworkflow.api.types.OAuth2TokenRequest; -import io.serverlessworkflow.impl.WorkflowValueResolver; import java.net.URI; import java.util.HashMap; import java.util.Map; import java.util.Objects; import java.util.Optional; +import org.openworkflow.sdk.api.types.OAuth2TokenRequest; +import org.openworkflow.sdk.impl.WorkflowValueResolver; class HttpRequestInfoBuilder { diff --git a/impl/core/src/main/java/io/serverlessworkflow/impl/auth/JWT.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/auth/JWT.java similarity index 95% rename from impl/core/src/main/java/io/serverlessworkflow/impl/auth/JWT.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/auth/JWT.java index cff3ee3ca..0726bc3a9 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/auth/JWT.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/auth/JWT.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.auth; +package org.openworkflow.sdk.impl.auth; import java.time.Instant; import java.time.format.DateTimeParseException; diff --git a/impl/core/src/main/java/io/serverlessworkflow/impl/auth/JWTConverter.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/auth/JWTConverter.java similarity index 83% rename from impl/core/src/main/java/io/serverlessworkflow/impl/auth/JWTConverter.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/auth/JWTConverter.java index 90580d214..e948ff3de 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/auth/JWTConverter.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/auth/JWTConverter.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,9 +13,9 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.auth; +package org.openworkflow.sdk.impl.auth; -import io.serverlessworkflow.impl.ServicePriority; +import org.openworkflow.sdk.impl.ServicePriority; public interface JWTConverter extends ServicePriority { diff --git a/impl/core/src/main/java/io/serverlessworkflow/impl/auth/JwtClientAssertion.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/auth/JwtClientAssertion.java similarity index 80% rename from impl/core/src/main/java/io/serverlessworkflow/impl/auth/JwtClientAssertion.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/auth/JwtClientAssertion.java index 3a601595d..2000f6de5 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/auth/JwtClientAssertion.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/auth/JwtClientAssertion.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,28 +13,28 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.auth; +package org.openworkflow.sdk.impl.auth; -import static io.serverlessworkflow.api.types.OAuth2AuthenticationData.OAuth2AuthenticationDataGrant.PASSWORD; -import static io.serverlessworkflow.impl.auth.AuthUtils.ASSERTION; -import static io.serverlessworkflow.impl.auth.AuthUtils.CLIENT; -import static io.serverlessworkflow.impl.auth.AuthUtils.CLIENT_ASSERTION; -import static io.serverlessworkflow.impl.auth.AuthUtils.CLIENT_ASSERTION_TYPE; -import static io.serverlessworkflow.impl.auth.AuthUtils.CLIENT_ID; -import static io.serverlessworkflow.impl.auth.AuthUtils.GRANT; -import static io.serverlessworkflow.impl.auth.AuthUtils.ID; -import static io.serverlessworkflow.impl.auth.AuthUtils.JWT_BEARER_ASSERTION_TYPE; -import static io.serverlessworkflow.impl.auth.AuthUtils.USER; +import static org.openworkflow.sdk.api.types.OAuth2AuthenticationData.OAuth2AuthenticationDataGrant.PASSWORD; +import static org.openworkflow.sdk.impl.auth.AuthUtils.ASSERTION; +import static org.openworkflow.sdk.impl.auth.AuthUtils.CLIENT; +import static org.openworkflow.sdk.impl.auth.AuthUtils.CLIENT_ASSERTION; +import static org.openworkflow.sdk.impl.auth.AuthUtils.CLIENT_ASSERTION_TYPE; +import static org.openworkflow.sdk.impl.auth.AuthUtils.CLIENT_ID; +import static org.openworkflow.sdk.impl.auth.AuthUtils.GRANT; +import static org.openworkflow.sdk.impl.auth.AuthUtils.ID; +import static org.openworkflow.sdk.impl.auth.AuthUtils.JWT_BEARER_ASSERTION_TYPE; +import static org.openworkflow.sdk.impl.auth.AuthUtils.USER; -import io.serverlessworkflow.api.types.OAuth2AuthenticationData; -import io.serverlessworkflow.impl.WorkflowApplication; -import io.serverlessworkflow.impl.WorkflowUtils; import java.util.Map; +import org.openworkflow.sdk.api.types.OAuth2AuthenticationData; +import org.openworkflow.sdk.impl.WorkflowApplication; +import org.openworkflow.sdk.impl.WorkflowUtils; /** * Handles the {@code client_secret_jwt} and {@code private_key_jwt} client authentication methods. * - *

Per the Serverless Workflow specification, the caller supplies a pre-signed JWT through {@code + *

Per the Open Workflow specification, the caller supplies a pre-signed JWT through {@code * client.assertion}. Both methods are forwarded identically: the assertion is sent as {@code * client_assertion} together with the standard {@code client_assertion_type} defined by RFC 7523. * The signing algorithm (HMAC for {@code client_secret_jwt}, an asymmetric key for {@code diff --git a/impl/core/src/main/java/io/serverlessworkflow/impl/auth/OAuth2AuthProvider.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/auth/OAuth2AuthProvider.java similarity index 81% rename from impl/core/src/main/java/io/serverlessworkflow/impl/auth/OAuth2AuthProvider.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/auth/OAuth2AuthProvider.java index 16e0e1ea7..48a01737c 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/auth/OAuth2AuthProvider.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/auth/OAuth2AuthProvider.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,10 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.auth; +package org.openworkflow.sdk.impl.auth; -import io.serverlessworkflow.api.types.Workflow; -import io.serverlessworkflow.impl.WorkflowApplication; +import org.openworkflow.sdk.api.types.Workflow; +import org.openworkflow.sdk.impl.WorkflowApplication; public class OAuth2AuthProvider extends CommonOAuthProvider { diff --git a/impl/core/src/main/java/io/serverlessworkflow/impl/auth/OAuthPolicyData.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/auth/OAuthPolicyData.java similarity index 72% rename from impl/core/src/main/java/io/serverlessworkflow/impl/auth/OAuthPolicyData.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/auth/OAuthPolicyData.java index 2ea2080fb..bd36e2ac2 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/auth/OAuthPolicyData.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/auth/OAuthPolicyData.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,12 +13,12 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.auth; +package org.openworkflow.sdk.impl.auth; -import io.serverlessworkflow.api.types.AuthenticationPolicyUnion; -import io.serverlessworkflow.api.types.OAuth2AuthenticationData; -import io.serverlessworkflow.api.types.SecretBasedAuthenticationPolicy; import java.util.Optional; +import org.openworkflow.sdk.api.types.AuthenticationPolicyUnion; +import org.openworkflow.sdk.api.types.OAuth2AuthenticationData; +import org.openworkflow.sdk.api.types.SecretBasedAuthenticationPolicy; public record OAuthPolicyData( OAuth2AuthenticationData data, SecretBasedAuthenticationPolicy secret, OAuthScheme scheme) { diff --git a/impl/core/src/main/java/io/serverlessworkflow/impl/auth/OAuthRequestBuilder.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/auth/OAuthRequestBuilder.java similarity index 85% rename from impl/core/src/main/java/io/serverlessworkflow/impl/auth/OAuthRequestBuilder.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/auth/OAuthRequestBuilder.java index 788e2898d..6e5e43d6e 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/auth/OAuthRequestBuilder.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/auth/OAuthRequestBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,19 +13,19 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.auth; +package org.openworkflow.sdk.impl.auth; -import static io.serverlessworkflow.impl.WorkflowUtils.concatURI; -import static io.serverlessworkflow.impl.auth.AuthUtils.AUTHORITY; +import static org.openworkflow.sdk.impl.WorkflowUtils.concatURI; +import static org.openworkflow.sdk.impl.auth.AuthUtils.AUTHORITY; -import io.serverlessworkflow.api.types.OAuth2AuthenticationPropertiesEndpoints; -import io.serverlessworkflow.api.types.OAuth2ConnectAuthenticationProperties; -import io.serverlessworkflow.impl.WorkflowApplication; -import io.serverlessworkflow.impl.WorkflowUtils; -import io.serverlessworkflow.impl.WorkflowValueResolver; import java.net.URI; import java.util.Map; import java.util.Optional; +import org.openworkflow.sdk.api.types.OAuth2AuthenticationPropertiesEndpoints; +import org.openworkflow.sdk.api.types.OAuth2ConnectAuthenticationProperties; +import org.openworkflow.sdk.impl.WorkflowApplication; +import org.openworkflow.sdk.impl.WorkflowUtils; +import org.openworkflow.sdk.impl.WorkflowValueResolver; class OAuthRequestBuilder extends AbstractAuthRequestBuilder { diff --git a/impl/core/src/main/java/io/serverlessworkflow/impl/auth/OAuthScheme.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/auth/OAuthScheme.java similarity index 84% rename from impl/core/src/main/java/io/serverlessworkflow/impl/auth/OAuthScheme.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/auth/OAuthScheme.java index eaa353f2f..f4d046029 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/auth/OAuthScheme.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/auth/OAuthScheme.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.auth; +package org.openworkflow.sdk.impl.auth; public enum OAuthScheme { OAUTH2, diff --git a/impl/core/src/main/java/io/serverlessworkflow/impl/auth/OAuthUtils.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/auth/OAuthUtils.java similarity index 77% rename from impl/core/src/main/java/io/serverlessworkflow/impl/auth/OAuthUtils.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/auth/OAuthUtils.java index c73ce4b23..26cdfefc7 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/auth/OAuthUtils.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/auth/OAuthUtils.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,17 +13,17 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.auth; +package org.openworkflow.sdk.impl.auth; -import io.serverlessworkflow.api.types.AuthenticationPolicyUnion; -import io.serverlessworkflow.api.types.OAuth2AuthenticationPolicy; -import io.serverlessworkflow.api.types.OAuth2AuthenticationPolicyConfiguration; -import io.serverlessworkflow.api.types.OpenIdConnectAuthenticationPolicy; -import io.serverlessworkflow.api.types.OpenIdConnectAuthenticationPolicyConfiguration; -import io.serverlessworkflow.api.types.ReferenceableAuthenticationPolicy; -import io.serverlessworkflow.api.types.Use; -import io.serverlessworkflow.api.types.Workflow; import java.util.Optional; +import org.openworkflow.sdk.api.types.AuthenticationPolicyUnion; +import org.openworkflow.sdk.api.types.OAuth2AuthenticationPolicy; +import org.openworkflow.sdk.api.types.OAuth2AuthenticationPolicyConfiguration; +import org.openworkflow.sdk.api.types.OpenIdConnectAuthenticationPolicy; +import org.openworkflow.sdk.api.types.OpenIdConnectAuthenticationPolicyConfiguration; +import org.openworkflow.sdk.api.types.ReferenceableAuthenticationPolicy; +import org.openworkflow.sdk.api.types.Use; +import org.openworkflow.sdk.api.types.Workflow; public class OAuthUtils { diff --git a/impl/core/src/main/java/io/serverlessworkflow/impl/auth/OpenIdAuthProvider.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/auth/OpenIdAuthProvider.java similarity index 81% rename from impl/core/src/main/java/io/serverlessworkflow/impl/auth/OpenIdAuthProvider.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/auth/OpenIdAuthProvider.java index 425e3c082..979b79346 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/auth/OpenIdAuthProvider.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/auth/OpenIdAuthProvider.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,10 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.auth; +package org.openworkflow.sdk.impl.auth; -import io.serverlessworkflow.api.types.Workflow; -import io.serverlessworkflow.impl.WorkflowApplication; +import org.openworkflow.sdk.api.types.Workflow; +import org.openworkflow.sdk.impl.WorkflowApplication; public class OpenIdAuthProvider extends CommonOAuthProvider { diff --git a/impl/core/src/main/java/io/serverlessworkflow/impl/auth/OpenIdRequestBuilder.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/auth/OpenIdRequestBuilder.java similarity index 80% rename from impl/core/src/main/java/io/serverlessworkflow/impl/auth/OpenIdRequestBuilder.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/auth/OpenIdRequestBuilder.java index 4194df1c8..cb44532f6 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/auth/OpenIdRequestBuilder.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/auth/OpenIdRequestBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,17 +13,17 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.auth; +package org.openworkflow.sdk.impl.auth; -import static io.serverlessworkflow.impl.auth.AuthUtils.AUTHORITY; +import static org.openworkflow.sdk.impl.auth.AuthUtils.AUTHORITY; -import io.serverlessworkflow.api.types.OAuth2AuthenticationData; -import io.serverlessworkflow.impl.WorkflowApplication; -import io.serverlessworkflow.impl.WorkflowUtils; import java.net.URI; import java.util.ArrayList; import java.util.List; import java.util.Map; +import org.openworkflow.sdk.api.types.OAuth2AuthenticationData; +import org.openworkflow.sdk.impl.WorkflowApplication; +import org.openworkflow.sdk.impl.WorkflowUtils; class OpenIdRequestBuilder extends AbstractAuthRequestBuilder { diff --git a/impl/core/src/main/java/io/serverlessworkflow/impl/auth/TokenIntrospection.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/auth/TokenIntrospection.java similarity index 89% rename from impl/core/src/main/java/io/serverlessworkflow/impl/auth/TokenIntrospection.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/auth/TokenIntrospection.java index 3f1e9be3e..74a9b713e 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/auth/TokenIntrospection.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/auth/TokenIntrospection.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.auth; +package org.openworkflow.sdk.impl.auth; import java.util.Map; diff --git a/impl/core/src/main/java/io/serverlessworkflow/impl/config/AbstractConfigManager.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/config/AbstractConfigManager.java similarity index 95% rename from impl/core/src/main/java/io/serverlessworkflow/impl/config/AbstractConfigManager.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/config/AbstractConfigManager.java index ddb7b5dde..d80401486 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/config/AbstractConfigManager.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/config/AbstractConfigManager.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.config; +package org.openworkflow.sdk.impl.config; import java.time.Instant; import java.time.OffsetDateTime; diff --git a/impl/core/src/main/java/io/serverlessworkflow/impl/config/ConfigManager.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/config/ConfigManager.java similarity index 84% rename from impl/core/src/main/java/io/serverlessworkflow/impl/config/ConfigManager.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/config/ConfigManager.java index 344ea961c..eb500caf7 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/config/ConfigManager.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/config/ConfigManager.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,12 +13,12 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.config; +package org.openworkflow.sdk.impl.config; -import io.serverlessworkflow.impl.ServicePriority; import java.util.Collection; import java.util.List; import java.util.Optional; +import org.openworkflow.sdk.impl.ServicePriority; public interface ConfigManager extends ServicePriority { diff --git a/impl/core/src/main/java/io/serverlessworkflow/impl/config/ConfigSecretManager.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/config/ConfigSecretManager.java similarity index 94% rename from impl/core/src/main/java/io/serverlessworkflow/impl/config/ConfigSecretManager.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/config/ConfigSecretManager.java index dff3f63a2..b97e27b8e 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/config/ConfigSecretManager.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/config/ConfigSecretManager.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.config; +package org.openworkflow.sdk.impl.config; import java.util.HashMap; import java.util.Map; diff --git a/impl/core/src/main/java/io/serverlessworkflow/impl/config/SecretManager.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/config/SecretManager.java similarity index 81% rename from impl/core/src/main/java/io/serverlessworkflow/impl/config/SecretManager.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/config/SecretManager.java index 4f639eac7..a2cb8d42f 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/config/SecretManager.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/config/SecretManager.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,10 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.config; +package org.openworkflow.sdk.impl.config; -import io.serverlessworkflow.impl.ServicePriority; import java.util.Map; +import org.openworkflow.sdk.impl.ServicePriority; @FunctionalInterface public interface SecretManager extends ServicePriority { diff --git a/impl/core/src/main/java/io/serverlessworkflow/impl/config/SystemPropertyConfigManager.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/config/SystemPropertyConfigManager.java similarity index 90% rename from impl/core/src/main/java/io/serverlessworkflow/impl/config/SystemPropertyConfigManager.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/config/SystemPropertyConfigManager.java index e66d80f7a..12e6a33de 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/config/SystemPropertyConfigManager.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/config/SystemPropertyConfigManager.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.config; +package org.openworkflow.sdk.impl.config; public class SystemPropertyConfigManager extends AbstractConfigManager { diff --git a/impl/core/src/main/java/io/serverlessworkflow/impl/events/AbstractTypeConsumer.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/events/AbstractTypeConsumer.java similarity index 92% rename from impl/core/src/main/java/io/serverlessworkflow/impl/events/AbstractTypeConsumer.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/events/AbstractTypeConsumer.java index 6ad5a499b..7e98f2480 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/events/AbstractTypeConsumer.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/events/AbstractTypeConsumer.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,17 +13,9 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.events; +package org.openworkflow.sdk.impl.events; import io.cloudevents.CloudEvent; -import io.serverlessworkflow.api.types.CorrelateProperty; -import io.serverlessworkflow.api.types.EventFilter; -import io.serverlessworkflow.api.types.EventFilterCorrelate; -import io.serverlessworkflow.api.types.EventProperties; -import io.serverlessworkflow.impl.TaskContext; -import io.serverlessworkflow.impl.WorkflowApplication; -import io.serverlessworkflow.impl.WorkflowContext; -import io.serverlessworkflow.impl.WorkflowModel; import java.util.AbstractCollection; import java.util.ArrayList; import java.util.Collection; @@ -33,6 +25,14 @@ import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.CopyOnWriteArrayList; import java.util.function.Consumer; +import org.openworkflow.sdk.api.types.CorrelateProperty; +import org.openworkflow.sdk.api.types.EventFilter; +import org.openworkflow.sdk.api.types.EventFilterCorrelate; +import org.openworkflow.sdk.api.types.EventProperties; +import org.openworkflow.sdk.impl.TaskContext; +import org.openworkflow.sdk.impl.WorkflowApplication; +import org.openworkflow.sdk.impl.WorkflowContext; +import org.openworkflow.sdk.impl.WorkflowModel; import org.slf4j.Logger; import org.slf4j.LoggerFactory; diff --git a/impl/core/src/main/java/io/serverlessworkflow/impl/events/CloudEventAttrPredicate.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/events/CloudEventAttrPredicate.java similarity index 76% rename from impl/core/src/main/java/io/serverlessworkflow/impl/events/CloudEventAttrPredicate.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/events/CloudEventAttrPredicate.java index f5c03397a..ec83fce20 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/events/CloudEventAttrPredicate.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/events/CloudEventAttrPredicate.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,10 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.events; +package org.openworkflow.sdk.impl.events; -import io.serverlessworkflow.impl.TaskContext; -import io.serverlessworkflow.impl.WorkflowContext; +import org.openworkflow.sdk.impl.TaskContext; +import org.openworkflow.sdk.impl.WorkflowContext; @FunctionalInterface public interface CloudEventAttrPredicate { diff --git a/impl/core/src/main/java/io/serverlessworkflow/impl/events/CloudEventPredicate.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/events/CloudEventPredicate.java similarity index 77% rename from impl/core/src/main/java/io/serverlessworkflow/impl/events/CloudEventPredicate.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/events/CloudEventPredicate.java index 4f7b15f09..fa05d5562 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/events/CloudEventPredicate.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/events/CloudEventPredicate.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,11 +13,11 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.events; +package org.openworkflow.sdk.impl.events; import io.cloudevents.CloudEvent; -import io.serverlessworkflow.impl.TaskContext; -import io.serverlessworkflow.impl.WorkflowContext; +import org.openworkflow.sdk.impl.TaskContext; +import org.openworkflow.sdk.impl.WorkflowContext; public interface CloudEventPredicate { boolean test(CloudEvent event, WorkflowContext workflow, TaskContext task); diff --git a/impl/core/src/main/java/io/serverlessworkflow/impl/events/CloudEventPredicateFactory.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/events/CloudEventPredicateFactory.java similarity index 72% rename from impl/core/src/main/java/io/serverlessworkflow/impl/events/CloudEventPredicateFactory.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/events/CloudEventPredicateFactory.java index d1e8a2a53..8779fa359 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/events/CloudEventPredicateFactory.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/events/CloudEventPredicateFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,11 +13,11 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.events; +package org.openworkflow.sdk.impl.events; -import io.serverlessworkflow.api.types.EventProperties; -import io.serverlessworkflow.impl.ServicePriority; -import io.serverlessworkflow.impl.WorkflowApplication; +import org.openworkflow.sdk.api.types.EventProperties; +import org.openworkflow.sdk.impl.ServicePriority; +import org.openworkflow.sdk.impl.WorkflowApplication; public interface CloudEventPredicateFactory extends ServicePriority { CloudEventPredicate build(WorkflowApplication appl, EventProperties props); diff --git a/impl/core/src/main/java/io/serverlessworkflow/impl/events/CloudEventUtils.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/events/CloudEventUtils.java similarity index 88% rename from impl/core/src/main/java/io/serverlessworkflow/impl/events/CloudEventUtils.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/events/CloudEventUtils.java index 34641513b..f78d1831d 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/events/CloudEventUtils.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/events/CloudEventUtils.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.events; +package org.openworkflow.sdk.impl.events; import io.cloudevents.CloudEvent; import java.net.URI; @@ -45,6 +45,6 @@ public static Map extensions(CloudEvent event) { } public static URI source() { - return URI.create("io.serverlessworkflow.sdk-java"); + return URI.create("org.openworkflow.sdk-java"); } } diff --git a/impl/core/src/main/java/io/serverlessworkflow/impl/events/CorrelationPredicate.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/events/CorrelationPredicate.java similarity index 87% rename from impl/core/src/main/java/io/serverlessworkflow/impl/events/CorrelationPredicate.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/events/CorrelationPredicate.java index 9da98f929..62b69718a 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/events/CorrelationPredicate.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/events/CorrelationPredicate.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,18 +13,18 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.events; +package org.openworkflow.sdk.impl.events; import io.cloudevents.CloudEvent; -import io.serverlessworkflow.api.types.CorrelateProperty; -import io.serverlessworkflow.impl.TaskContext; -import io.serverlessworkflow.impl.WorkflowApplication; -import io.serverlessworkflow.impl.WorkflowContext; -import io.serverlessworkflow.impl.WorkflowModel; -import io.serverlessworkflow.impl.WorkflowValueResolver; -import io.serverlessworkflow.impl.expressions.ExpressionDescriptor; import java.util.Objects; import java.util.Optional; +import org.openworkflow.sdk.api.types.CorrelateProperty; +import org.openworkflow.sdk.impl.TaskContext; +import org.openworkflow.sdk.impl.WorkflowApplication; +import org.openworkflow.sdk.impl.WorkflowContext; +import org.openworkflow.sdk.impl.WorkflowModel; +import org.openworkflow.sdk.impl.WorkflowValueResolver; +import org.openworkflow.sdk.impl.expressions.ExpressionDescriptor; import org.slf4j.Logger; import org.slf4j.LoggerFactory; diff --git a/impl/core/src/main/java/io/serverlessworkflow/impl/events/DefaultCloudEventPredicate.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/events/DefaultCloudEventPredicate.java similarity index 90% rename from impl/core/src/main/java/io/serverlessworkflow/impl/events/DefaultCloudEventPredicate.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/events/DefaultCloudEventPredicate.java index 94adfff45..1995faa9a 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/events/DefaultCloudEventPredicate.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/events/DefaultCloudEventPredicate.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,26 +13,26 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.events; +package org.openworkflow.sdk.impl.events; import io.cloudevents.CloudEvent; import io.cloudevents.CloudEventData; -import io.serverlessworkflow.api.types.EventData; -import io.serverlessworkflow.api.types.EventDataschema; -import io.serverlessworkflow.api.types.EventProperties; -import io.serverlessworkflow.api.types.EventSource; -import io.serverlessworkflow.api.types.EventTime; -import io.serverlessworkflow.api.types.UriTemplate; -import io.serverlessworkflow.impl.TaskContext; -import io.serverlessworkflow.impl.WorkflowApplication; -import io.serverlessworkflow.impl.WorkflowContext; -import io.serverlessworkflow.impl.WorkflowModelFactory; -import io.serverlessworkflow.impl.WorkflowPredicate; -import io.serverlessworkflow.impl.expressions.ExpressionDescriptor; import java.net.URI; import java.time.OffsetDateTime; import java.util.Map; import java.util.Objects; +import org.openworkflow.sdk.api.types.EventData; +import org.openworkflow.sdk.api.types.EventDataschema; +import org.openworkflow.sdk.api.types.EventProperties; +import org.openworkflow.sdk.api.types.EventSource; +import org.openworkflow.sdk.api.types.EventTime; +import org.openworkflow.sdk.api.types.UriTemplate; +import org.openworkflow.sdk.impl.TaskContext; +import org.openworkflow.sdk.impl.WorkflowApplication; +import org.openworkflow.sdk.impl.WorkflowContext; +import org.openworkflow.sdk.impl.WorkflowModelFactory; +import org.openworkflow.sdk.impl.WorkflowPredicate; +import org.openworkflow.sdk.impl.expressions.ExpressionDescriptor; public class DefaultCloudEventPredicate implements CloudEventPredicate { diff --git a/impl/core/src/main/java/io/serverlessworkflow/impl/events/DefaultCloudEventPredicateFactory.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/events/DefaultCloudEventPredicateFactory.java similarity index 78% rename from impl/core/src/main/java/io/serverlessworkflow/impl/events/DefaultCloudEventPredicateFactory.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/events/DefaultCloudEventPredicateFactory.java index 82a9ceedb..8bd044e91 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/events/DefaultCloudEventPredicateFactory.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/events/DefaultCloudEventPredicateFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,10 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.events; +package org.openworkflow.sdk.impl.events; -import io.serverlessworkflow.api.types.EventProperties; -import io.serverlessworkflow.impl.WorkflowApplication; +import org.openworkflow.sdk.api.types.EventProperties; +import org.openworkflow.sdk.impl.WorkflowApplication; public class DefaultCloudEventPredicateFactory implements CloudEventPredicateFactory { diff --git a/impl/core/src/main/java/io/serverlessworkflow/impl/events/EmitSourceResolver.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/events/EmitSourceResolver.java similarity index 75% rename from impl/core/src/main/java/io/serverlessworkflow/impl/events/EmitSourceResolver.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/events/EmitSourceResolver.java index 4955183be..005761ce7 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/events/EmitSourceResolver.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/events/EmitSourceResolver.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,13 +13,13 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.events; +package org.openworkflow.sdk.impl.events; -import io.serverlessworkflow.impl.TaskContext; -import io.serverlessworkflow.impl.WorkflowContext; -import io.serverlessworkflow.impl.WorkflowModel; -import io.serverlessworkflow.impl.WorkflowValueResolver; import java.net.URI; +import org.openworkflow.sdk.impl.TaskContext; +import org.openworkflow.sdk.impl.WorkflowContext; +import org.openworkflow.sdk.impl.WorkflowModel; +import org.openworkflow.sdk.impl.WorkflowValueResolver; public class EmitSourceResolver implements WorkflowValueResolver { diff --git a/impl/core/src/main/java/io/serverlessworkflow/impl/events/EmittedEventDecorator.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/events/EmittedEventDecorator.java similarity index 82% rename from impl/core/src/main/java/io/serverlessworkflow/impl/events/EmittedEventDecorator.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/events/EmittedEventDecorator.java index 840cf0088..102f0cbde 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/events/EmittedEventDecorator.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/events/EmittedEventDecorator.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,10 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.events; +package org.openworkflow.sdk.impl.events; import io.cloudevents.core.builder.CloudEventBuilder; -import io.serverlessworkflow.impl.WorkflowDecorator; +import org.openworkflow.sdk.impl.WorkflowDecorator; /** Interface for decorating {@link CloudEventBuilder} objects. */ public interface EmittedEventDecorator extends WorkflowDecorator {} diff --git a/impl/core/src/main/java/io/serverlessworkflow/impl/events/EventConsumer.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/events/EventConsumer.java similarity index 76% rename from impl/core/src/main/java/io/serverlessworkflow/impl/events/EventConsumer.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/events/EventConsumer.java index 3461bae85..d8c9f3271 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/events/EventConsumer.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/events/EventConsumer.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,16 +13,16 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.events; +package org.openworkflow.sdk.impl.events; import io.cloudevents.CloudEvent; -import io.serverlessworkflow.api.types.EventFilter; -import io.serverlessworkflow.impl.ServicePriority; -import io.serverlessworkflow.impl.TaskContext; -import io.serverlessworkflow.impl.WorkflowApplication; -import io.serverlessworkflow.impl.WorkflowContext; import java.util.Collection; import java.util.function.Consumer; +import org.openworkflow.sdk.api.types.EventFilter; +import org.openworkflow.sdk.impl.ServicePriority; +import org.openworkflow.sdk.impl.TaskContext; +import org.openworkflow.sdk.impl.WorkflowApplication; +import org.openworkflow.sdk.impl.WorkflowContext; public interface EventConsumer extends AutoCloseable, ServicePriority { diff --git a/impl/core/src/main/java/io/serverlessworkflow/impl/events/EventPublisher.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/events/EventPublisher.java similarity index 88% rename from impl/core/src/main/java/io/serverlessworkflow/impl/events/EventPublisher.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/events/EventPublisher.java index 7f1e70130..008874197 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/events/EventPublisher.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/events/EventPublisher.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.events; +package org.openworkflow.sdk.impl.events; import io.cloudevents.CloudEvent; import java.util.concurrent.CompletableFuture; diff --git a/impl/core/src/main/java/io/serverlessworkflow/impl/events/EventRegistration.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/events/EventRegistration.java similarity index 83% rename from impl/core/src/main/java/io/serverlessworkflow/impl/events/EventRegistration.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/events/EventRegistration.java index 923647d5c..10c142e32 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/events/EventRegistration.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/events/EventRegistration.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,6 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.events; +package org.openworkflow.sdk.impl.events; public interface EventRegistration {} diff --git a/impl/core/src/main/java/io/serverlessworkflow/impl/events/EventRegistrationBuilder.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/events/EventRegistrationBuilder.java similarity index 84% rename from impl/core/src/main/java/io/serverlessworkflow/impl/events/EventRegistrationBuilder.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/events/EventRegistrationBuilder.java index e81723ffd..182b257c0 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/events/EventRegistrationBuilder.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/events/EventRegistrationBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,6 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.events; +package org.openworkflow.sdk.impl.events; public interface EventRegistrationBuilder {} diff --git a/impl/core/src/main/java/io/serverlessworkflow/impl/events/EventRegistrationBuilderCollection.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/events/EventRegistrationBuilderCollection.java similarity index 86% rename from impl/core/src/main/java/io/serverlessworkflow/impl/events/EventRegistrationBuilderCollection.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/events/EventRegistrationBuilderCollection.java index 501fa7dfa..920dd0e81 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/events/EventRegistrationBuilderCollection.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/events/EventRegistrationBuilderCollection.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.events; +package org.openworkflow.sdk.impl.events; import java.util.Collection; diff --git a/impl/core/src/main/java/io/serverlessworkflow/impl/events/EventRegistrationBuilderInfo.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/events/EventRegistrationBuilderInfo.java similarity index 86% rename from impl/core/src/main/java/io/serverlessworkflow/impl/events/EventRegistrationBuilderInfo.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/events/EventRegistrationBuilderInfo.java index 550af4313..541e88fed 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/events/EventRegistrationBuilderInfo.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/events/EventRegistrationBuilderInfo.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,21 +13,21 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.events; +package org.openworkflow.sdk.impl.events; -import io.serverlessworkflow.api.types.AllEventConsumptionStrategy; -import io.serverlessworkflow.api.types.AnyEventConsumptionStrategy; -import io.serverlessworkflow.api.types.EventConsumptionStrategy; -import io.serverlessworkflow.api.types.EventFilter; -import io.serverlessworkflow.api.types.ListenTo; -import io.serverlessworkflow.api.types.OneEventConsumptionStrategy; -import io.serverlessworkflow.api.types.Until; -import io.serverlessworkflow.impl.WorkflowApplication; -import io.serverlessworkflow.impl.WorkflowPredicate; import java.util.Collection; import java.util.List; import java.util.function.Function; import java.util.stream.Collectors; +import org.openworkflow.sdk.api.types.AllEventConsumptionStrategy; +import org.openworkflow.sdk.api.types.AnyEventConsumptionStrategy; +import org.openworkflow.sdk.api.types.EventConsumptionStrategy; +import org.openworkflow.sdk.api.types.EventFilter; +import org.openworkflow.sdk.api.types.ListenTo; +import org.openworkflow.sdk.api.types.OneEventConsumptionStrategy; +import org.openworkflow.sdk.api.types.Until; +import org.openworkflow.sdk.impl.WorkflowApplication; +import org.openworkflow.sdk.impl.WorkflowPredicate; public record EventRegistrationBuilderInfo( EventRegistrationBuilderCollection registrations, diff --git a/impl/core/src/main/java/io/serverlessworkflow/impl/events/EventRegistrationInfo.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/events/EventRegistrationInfo.java similarity index 91% rename from impl/core/src/main/java/io/serverlessworkflow/impl/events/EventRegistrationInfo.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/events/EventRegistrationInfo.java index 3d4e75ca8..4ded3daf5 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/events/EventRegistrationInfo.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/events/EventRegistrationInfo.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,15 +13,15 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.events; +package org.openworkflow.sdk.impl.events; import io.cloudevents.CloudEvent; -import io.serverlessworkflow.impl.TaskContext; -import io.serverlessworkflow.impl.WorkflowContext; import java.util.ArrayList; import java.util.Collection; import java.util.concurrent.CompletableFuture; import java.util.function.BiConsumer; +import org.openworkflow.sdk.impl.TaskContext; +import org.openworkflow.sdk.impl.WorkflowContext; public record EventRegistrationInfo( CompletableFuture completableFuture, Collection registrations) { diff --git a/impl/core/src/main/java/io/serverlessworkflow/impl/events/InMemoryEvents.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/events/InMemoryEvents.java similarity index 91% rename from impl/core/src/main/java/io/serverlessworkflow/impl/events/InMemoryEvents.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/events/InMemoryEvents.java index f94e5511d..274e2052c 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/events/InMemoryEvents.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/events/InMemoryEvents.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,16 +13,16 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.events; +package org.openworkflow.sdk.impl.events; import io.cloudevents.CloudEvent; -import io.serverlessworkflow.impl.DefaultExecutorServiceFactory; -import io.serverlessworkflow.impl.ExecutorServiceFactory; import java.util.Map; import java.util.concurrent.CompletableFuture; import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.atomic.AtomicReference; import java.util.function.Consumer; +import org.openworkflow.sdk.impl.DefaultExecutorServiceFactory; +import org.openworkflow.sdk.impl.ExecutorServiceFactory; /* * Straightforward implementation of in memory event broker. diff --git a/impl/core/src/main/java/io/serverlessworkflow/impl/events/ModelAwareCloudEventPredicate.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/events/ModelAwareCloudEventPredicate.java similarity index 73% rename from impl/core/src/main/java/io/serverlessworkflow/impl/events/ModelAwareCloudEventPredicate.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/events/ModelAwareCloudEventPredicate.java index 319e8a6ec..236dd216c 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/events/ModelAwareCloudEventPredicate.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/events/ModelAwareCloudEventPredicate.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,11 +13,11 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.events; +package org.openworkflow.sdk.impl.events; -import io.serverlessworkflow.impl.TaskContext; -import io.serverlessworkflow.impl.WorkflowContext; -import io.serverlessworkflow.impl.WorkflowModel; +import org.openworkflow.sdk.impl.TaskContext; +import org.openworkflow.sdk.impl.WorkflowContext; +import org.openworkflow.sdk.impl.WorkflowModel; public interface ModelAwareCloudEventPredicate extends CloudEventPredicate { diff --git a/impl/core/src/main/java/io/serverlessworkflow/impl/events/TypeEventRegistration.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/events/TypeEventRegistration.java similarity index 89% rename from impl/core/src/main/java/io/serverlessworkflow/impl/events/TypeEventRegistration.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/events/TypeEventRegistration.java index 069e3bfa8..afed91d21 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/events/TypeEventRegistration.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/events/TypeEventRegistration.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,14 +13,14 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.events; +package org.openworkflow.sdk.impl.events; import io.cloudevents.CloudEvent; -import io.serverlessworkflow.impl.TaskContext; -import io.serverlessworkflow.impl.WorkflowContext; import java.util.Collection; import java.util.Collections; import java.util.function.Consumer; +import org.openworkflow.sdk.impl.TaskContext; +import org.openworkflow.sdk.impl.WorkflowContext; public record TypeEventRegistration( String type, diff --git a/impl/core/src/main/java/io/serverlessworkflow/impl/events/TypeEventRegistrationBuilder.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/events/TypeEventRegistrationBuilder.java similarity index 89% rename from impl/core/src/main/java/io/serverlessworkflow/impl/events/TypeEventRegistrationBuilder.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/events/TypeEventRegistrationBuilder.java index 8e700cbe9..b469bac25 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/events/TypeEventRegistrationBuilder.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/events/TypeEventRegistrationBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.events; +package org.openworkflow.sdk.impl.events; import java.util.Collection; import java.util.Collections; diff --git a/impl/core/src/main/java/io/serverlessworkflow/impl/executors/AbstractTaskExecutor.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/executors/AbstractTaskExecutor.java similarity index 86% rename from impl/core/src/main/java/io/serverlessworkflow/impl/executors/AbstractTaskExecutor.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/executors/AbstractTaskExecutor.java index 58d1eb5f2..26978e529 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/executors/AbstractTaskExecutor.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/executors/AbstractTaskExecutor.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,40 +13,13 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.executors; +package org.openworkflow.sdk.impl.executors; -import static io.serverlessworkflow.impl.LifecycleEventsUtils.publishEvent; -import static io.serverlessworkflow.impl.WorkflowUtils.buildWorkflowFilter; -import static io.serverlessworkflow.impl.WorkflowUtils.getSchemaValidator; -import static io.serverlessworkflow.impl.WorkflowUtils.validationError; +import static org.openworkflow.sdk.impl.LifecycleEventsUtils.publishEvent; +import static org.openworkflow.sdk.impl.WorkflowUtils.buildWorkflowFilter; +import static org.openworkflow.sdk.impl.WorkflowUtils.getSchemaValidator; +import static org.openworkflow.sdk.impl.WorkflowUtils.validationError; -import io.serverlessworkflow.api.types.Export; -import io.serverlessworkflow.api.types.FlowDirective; -import io.serverlessworkflow.api.types.Input; -import io.serverlessworkflow.api.types.Output; -import io.serverlessworkflow.api.types.TaskBase; -import io.serverlessworkflow.api.types.Workflow; -import io.serverlessworkflow.impl.TaskContext; -import io.serverlessworkflow.impl.WorkflowApplication; -import io.serverlessworkflow.impl.WorkflowContext; -import io.serverlessworkflow.impl.WorkflowDefinition; -import io.serverlessworkflow.impl.WorkflowError; -import io.serverlessworkflow.impl.WorkflowException; -import io.serverlessworkflow.impl.WorkflowFilter; -import io.serverlessworkflow.impl.WorkflowModel; -import io.serverlessworkflow.impl.WorkflowMutablePosition; -import io.serverlessworkflow.impl.WorkflowPosition; -import io.serverlessworkflow.impl.WorkflowPredicate; -import io.serverlessworkflow.impl.WorkflowStatus; -import io.serverlessworkflow.impl.WorkflowUtils; -import io.serverlessworkflow.impl.WorkflowValueResolver; -import io.serverlessworkflow.impl.lifecycle.TaskCancelledEvent; -import io.serverlessworkflow.impl.lifecycle.TaskCompletedEvent; -import io.serverlessworkflow.impl.lifecycle.TaskFailedEvent; -import io.serverlessworkflow.impl.lifecycle.TaskRetriedEvent; -import io.serverlessworkflow.impl.lifecycle.TaskStartedEvent; -import io.serverlessworkflow.impl.resources.ResourceLoader; -import io.serverlessworkflow.impl.schema.SchemaValidator; import java.time.Duration; import java.time.Instant; import java.util.Iterator; @@ -56,6 +29,33 @@ import java.util.concurrent.CompletableFuture; import java.util.concurrent.CompletionException; import java.util.concurrent.TimeUnit; +import org.openworkflow.sdk.api.types.Export; +import org.openworkflow.sdk.api.types.FlowDirective; +import org.openworkflow.sdk.api.types.Input; +import org.openworkflow.sdk.api.types.Output; +import org.openworkflow.sdk.api.types.TaskBase; +import org.openworkflow.sdk.api.types.Workflow; +import org.openworkflow.sdk.impl.TaskContext; +import org.openworkflow.sdk.impl.WorkflowApplication; +import org.openworkflow.sdk.impl.WorkflowContext; +import org.openworkflow.sdk.impl.WorkflowDefinition; +import org.openworkflow.sdk.impl.WorkflowError; +import org.openworkflow.sdk.impl.WorkflowException; +import org.openworkflow.sdk.impl.WorkflowFilter; +import org.openworkflow.sdk.impl.WorkflowModel; +import org.openworkflow.sdk.impl.WorkflowMutablePosition; +import org.openworkflow.sdk.impl.WorkflowPosition; +import org.openworkflow.sdk.impl.WorkflowPredicate; +import org.openworkflow.sdk.impl.WorkflowStatus; +import org.openworkflow.sdk.impl.WorkflowUtils; +import org.openworkflow.sdk.impl.WorkflowValueResolver; +import org.openworkflow.sdk.impl.lifecycle.TaskCancelledEvent; +import org.openworkflow.sdk.impl.lifecycle.TaskCompletedEvent; +import org.openworkflow.sdk.impl.lifecycle.TaskFailedEvent; +import org.openworkflow.sdk.impl.lifecycle.TaskRetriedEvent; +import org.openworkflow.sdk.impl.lifecycle.TaskStartedEvent; +import org.openworkflow.sdk.impl.resources.ResourceLoader; +import org.openworkflow.sdk.impl.schema.SchemaValidator; public abstract class AbstractTaskExecutor implements TaskExecutor { diff --git a/impl/core/src/main/java/io/serverlessworkflow/impl/executors/CallFunctionExecutorBuilder.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/executors/CallFunctionExecutorBuilder.java similarity index 85% rename from impl/core/src/main/java/io/serverlessworkflow/impl/executors/CallFunctionExecutorBuilder.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/executors/CallFunctionExecutorBuilder.java index 1d53ad799..23a916e20 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/executors/CallFunctionExecutorBuilder.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/executors/CallFunctionExecutorBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,23 +13,23 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.executors; +package org.openworkflow.sdk.impl.executors; -import io.serverlessworkflow.api.types.CallFunction; -import io.serverlessworkflow.api.types.Catalog; -import io.serverlessworkflow.api.types.FunctionArguments; -import io.serverlessworkflow.api.types.Task; -import io.serverlessworkflow.api.types.TaskBase; -import io.serverlessworkflow.api.types.Use; -import io.serverlessworkflow.impl.WorkflowDefinition; -import io.serverlessworkflow.impl.WorkflowMutablePosition; -import io.serverlessworkflow.impl.WorkflowUtils; -import io.serverlessworkflow.impl.WorkflowValueResolver; -import io.serverlessworkflow.impl.resources.ExternalResourceHandler; -import io.serverlessworkflow.impl.resources.ResourceLoader; import java.net.URI; import java.util.Map; import java.util.Optional; +import org.openworkflow.sdk.api.types.CallFunction; +import org.openworkflow.sdk.api.types.Catalog; +import org.openworkflow.sdk.api.types.FunctionArguments; +import org.openworkflow.sdk.api.types.Task; +import org.openworkflow.sdk.api.types.TaskBase; +import org.openworkflow.sdk.api.types.Use; +import org.openworkflow.sdk.impl.WorkflowDefinition; +import org.openworkflow.sdk.impl.WorkflowMutablePosition; +import org.openworkflow.sdk.impl.WorkflowUtils; +import org.openworkflow.sdk.impl.WorkflowValueResolver; +import org.openworkflow.sdk.impl.resources.ExternalResourceHandler; +import org.openworkflow.sdk.impl.resources.ResourceLoader; public class CallFunctionExecutorBuilder implements CallableTaskBuilder { diff --git a/impl/core/src/main/java/io/serverlessworkflow/impl/executors/CallTaskExecutor.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/executors/CallTaskExecutor.java similarity index 83% rename from impl/core/src/main/java/io/serverlessworkflow/impl/executors/CallTaskExecutor.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/executors/CallTaskExecutor.java index 556f12253..986a2ce05 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/executors/CallTaskExecutor.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/executors/CallTaskExecutor.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,16 +13,16 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.executors; +package org.openworkflow.sdk.impl.executors; -import io.serverlessworkflow.api.types.TaskBase; -import io.serverlessworkflow.impl.TaskContext; -import io.serverlessworkflow.impl.WorkflowContext; -import io.serverlessworkflow.impl.WorkflowDefinition; -import io.serverlessworkflow.impl.WorkflowModel; -import io.serverlessworkflow.impl.WorkflowMutablePosition; import java.util.List; import java.util.concurrent.CompletableFuture; +import org.openworkflow.sdk.api.types.TaskBase; +import org.openworkflow.sdk.impl.TaskContext; +import org.openworkflow.sdk.impl.WorkflowContext; +import org.openworkflow.sdk.impl.WorkflowDefinition; +import org.openworkflow.sdk.impl.WorkflowModel; +import org.openworkflow.sdk.impl.WorkflowMutablePosition; public class CallTaskExecutor extends RegularTaskExecutor { diff --git a/impl/core/src/main/java/io/serverlessworkflow/impl/executors/CallableTask.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/executors/CallableTask.java similarity index 74% rename from impl/core/src/main/java/io/serverlessworkflow/impl/executors/CallableTask.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/executors/CallableTask.java index de5d2c091..c34e47533 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/executors/CallableTask.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/executors/CallableTask.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,12 +13,12 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.executors; +package org.openworkflow.sdk.impl.executors; -import io.serverlessworkflow.impl.TaskContext; -import io.serverlessworkflow.impl.WorkflowContext; -import io.serverlessworkflow.impl.WorkflowModel; import java.util.concurrent.CompletableFuture; +import org.openworkflow.sdk.impl.TaskContext; +import org.openworkflow.sdk.impl.WorkflowContext; +import org.openworkflow.sdk.impl.WorkflowModel; @FunctionalInterface public interface CallableTask { diff --git a/impl/core/src/main/java/io/serverlessworkflow/impl/executors/CallableTaskBuilder.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/executors/CallableTaskBuilder.java similarity index 70% rename from impl/core/src/main/java/io/serverlessworkflow/impl/executors/CallableTaskBuilder.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/executors/CallableTaskBuilder.java index ae8ed60f8..22dedf37b 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/executors/CallableTaskBuilder.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/executors/CallableTaskBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,12 +13,12 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.executors; +package org.openworkflow.sdk.impl.executors; -import io.serverlessworkflow.api.types.TaskBase; -import io.serverlessworkflow.impl.ServicePriority; -import io.serverlessworkflow.impl.WorkflowDefinition; -import io.serverlessworkflow.impl.WorkflowMutablePosition; +import org.openworkflow.sdk.api.types.TaskBase; +import org.openworkflow.sdk.impl.ServicePriority; +import org.openworkflow.sdk.impl.WorkflowDefinition; +import org.openworkflow.sdk.impl.WorkflowMutablePosition; public interface CallableTaskBuilder extends ServicePriority { diff --git a/impl/core/src/main/java/io/serverlessworkflow/impl/executors/CallableTaskFactory.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/executors/CallableTaskFactory.java similarity index 85% rename from impl/core/src/main/java/io/serverlessworkflow/impl/executors/CallableTaskFactory.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/executors/CallableTaskFactory.java index baac373fc..c79b6dcfb 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/executors/CallableTaskFactory.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/executors/CallableTaskFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.executors; +package org.openworkflow.sdk.impl.executors; import java.util.function.Supplier; diff --git a/impl/core/src/main/java/io/serverlessworkflow/impl/executors/CallableTaskProxyBuilder.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/executors/CallableTaskProxyBuilder.java similarity index 77% rename from impl/core/src/main/java/io/serverlessworkflow/impl/executors/CallableTaskProxyBuilder.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/executors/CallableTaskProxyBuilder.java index 8cf5bd3a3..9caa86851 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/executors/CallableTaskProxyBuilder.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/executors/CallableTaskProxyBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,10 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.executors; +package org.openworkflow.sdk.impl.executors; -import io.serverlessworkflow.api.types.TaskBase; -import io.serverlessworkflow.impl.ServicePriority; +import org.openworkflow.sdk.api.types.TaskBase; +import org.openworkflow.sdk.impl.ServicePriority; public interface CallableTaskProxyBuilder extends ServicePriority { diff --git a/impl/core/src/main/java/io/serverlessworkflow/impl/executors/DefaultTaskExecutorFactory.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/executors/DefaultTaskExecutorFactory.java similarity index 71% rename from impl/core/src/main/java/io/serverlessworkflow/impl/executors/DefaultTaskExecutorFactory.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/executors/DefaultTaskExecutorFactory.java index 85a198d9b..664c5b4d6 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/executors/DefaultTaskExecutorFactory.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/executors/DefaultTaskExecutorFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,27 +13,27 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.executors; +package org.openworkflow.sdk.impl.executors; -import io.serverlessworkflow.api.types.CallTask; -import io.serverlessworkflow.api.types.Task; -import io.serverlessworkflow.api.types.TaskBase; -import io.serverlessworkflow.impl.WorkflowApplication; -import io.serverlessworkflow.impl.WorkflowDefinition; -import io.serverlessworkflow.impl.WorkflowMutablePosition; -import io.serverlessworkflow.impl.executors.CallTaskExecutor.CallTaskExecutorBuilder; -import io.serverlessworkflow.impl.executors.DoExecutor.DoExecutorBuilder; -import io.serverlessworkflow.impl.executors.EmitExecutor.EmitExecutorBuilder; -import io.serverlessworkflow.impl.executors.ForExecutor.ForExecutorBuilder; -import io.serverlessworkflow.impl.executors.ForkExecutor.ForkExecutorBuilder; -import io.serverlessworkflow.impl.executors.ListenExecutor.ListenExecutorBuilder; -import io.serverlessworkflow.impl.executors.RaiseExecutor.RaiseExecutorBuilder; -import io.serverlessworkflow.impl.executors.RunTaskExecutor.RunTaskExecutorBuilder; -import io.serverlessworkflow.impl.executors.SetExecutor.SetExecutorBuilder; -import io.serverlessworkflow.impl.executors.SwitchExecutor.SwitchExecutorBuilder; -import io.serverlessworkflow.impl.executors.TryExecutor.TryExecutorBuilder; -import io.serverlessworkflow.impl.executors.WaitExecutor.WaitExecutorBuilder; import java.util.List; +import org.openworkflow.sdk.api.types.CallTask; +import org.openworkflow.sdk.api.types.Task; +import org.openworkflow.sdk.api.types.TaskBase; +import org.openworkflow.sdk.impl.WorkflowApplication; +import org.openworkflow.sdk.impl.WorkflowDefinition; +import org.openworkflow.sdk.impl.WorkflowMutablePosition; +import org.openworkflow.sdk.impl.executors.CallTaskExecutor.CallTaskExecutorBuilder; +import org.openworkflow.sdk.impl.executors.DoExecutor.DoExecutorBuilder; +import org.openworkflow.sdk.impl.executors.EmitExecutor.EmitExecutorBuilder; +import org.openworkflow.sdk.impl.executors.ForExecutor.ForExecutorBuilder; +import org.openworkflow.sdk.impl.executors.ForkExecutor.ForkExecutorBuilder; +import org.openworkflow.sdk.impl.executors.ListenExecutor.ListenExecutorBuilder; +import org.openworkflow.sdk.impl.executors.RaiseExecutor.RaiseExecutorBuilder; +import org.openworkflow.sdk.impl.executors.RunTaskExecutor.RunTaskExecutorBuilder; +import org.openworkflow.sdk.impl.executors.SetExecutor.SetExecutorBuilder; +import org.openworkflow.sdk.impl.executors.SwitchExecutor.SwitchExecutorBuilder; +import org.openworkflow.sdk.impl.executors.TryExecutor.TryExecutorBuilder; +import org.openworkflow.sdk.impl.executors.WaitExecutor.WaitExecutorBuilder; public class DefaultTaskExecutorFactory implements TaskExecutorFactory { diff --git a/impl/core/src/main/java/io/serverlessworkflow/impl/executors/DoExecutor.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/executors/DoExecutor.java similarity index 79% rename from impl/core/src/main/java/io/serverlessworkflow/impl/executors/DoExecutor.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/executors/DoExecutor.java index 4b351b101..34ec5138a 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/executors/DoExecutor.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/executors/DoExecutor.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,16 +13,16 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.executors; - -import io.serverlessworkflow.api.types.DoTask; -import io.serverlessworkflow.impl.TaskContext; -import io.serverlessworkflow.impl.WorkflowContext; -import io.serverlessworkflow.impl.WorkflowDefinition; -import io.serverlessworkflow.impl.WorkflowModel; -import io.serverlessworkflow.impl.WorkflowMutablePosition; +package org.openworkflow.sdk.impl.executors; + import java.util.Optional; import java.util.concurrent.CompletableFuture; +import org.openworkflow.sdk.api.types.DoTask; +import org.openworkflow.sdk.impl.TaskContext; +import org.openworkflow.sdk.impl.WorkflowContext; +import org.openworkflow.sdk.impl.WorkflowDefinition; +import org.openworkflow.sdk.impl.WorkflowModel; +import org.openworkflow.sdk.impl.WorkflowMutablePosition; public class DoExecutor extends RegularTaskExecutor { diff --git a/impl/core/src/main/java/io/serverlessworkflow/impl/executors/EmitExecutor.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/executors/EmitExecutor.java similarity index 88% rename from impl/core/src/main/java/io/serverlessworkflow/impl/executors/EmitExecutor.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/executors/EmitExecutor.java index 1d42b9b5d..f58b0766c 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/executors/EmitExecutor.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/executors/EmitExecutor.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,35 +13,35 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.executors; +package org.openworkflow.sdk.impl.executors; import io.cloudevents.CloudEvent; import io.cloudevents.CloudEventData; import io.cloudevents.core.builder.CloudEventBuilder; -import io.serverlessworkflow.api.types.EmitTask; -import io.serverlessworkflow.api.types.EventData; -import io.serverlessworkflow.api.types.EventDataschema; -import io.serverlessworkflow.api.types.EventProperties; -import io.serverlessworkflow.api.types.EventSource; -import io.serverlessworkflow.api.types.EventTime; -import io.serverlessworkflow.impl.TaskContext; -import io.serverlessworkflow.impl.WorkflowApplication; -import io.serverlessworkflow.impl.WorkflowContext; -import io.serverlessworkflow.impl.WorkflowDefinition; -import io.serverlessworkflow.impl.WorkflowModel; -import io.serverlessworkflow.impl.WorkflowMutablePosition; -import io.serverlessworkflow.impl.WorkflowUtils; -import io.serverlessworkflow.impl.WorkflowValueResolver; -import io.serverlessworkflow.impl.events.CloudEventUtils; -import io.serverlessworkflow.impl.events.EmittedEventDecorator; -import io.serverlessworkflow.impl.events.EventPublisher; -import io.serverlessworkflow.impl.expressions.ExpressionDescriptor; import java.net.URI; import java.time.OffsetDateTime; import java.util.Collection; import java.util.Map; import java.util.Optional; import java.util.concurrent.CompletableFuture; +import org.openworkflow.sdk.api.types.EmitTask; +import org.openworkflow.sdk.api.types.EventData; +import org.openworkflow.sdk.api.types.EventDataschema; +import org.openworkflow.sdk.api.types.EventProperties; +import org.openworkflow.sdk.api.types.EventSource; +import org.openworkflow.sdk.api.types.EventTime; +import org.openworkflow.sdk.impl.TaskContext; +import org.openworkflow.sdk.impl.WorkflowApplication; +import org.openworkflow.sdk.impl.WorkflowContext; +import org.openworkflow.sdk.impl.WorkflowDefinition; +import org.openworkflow.sdk.impl.WorkflowModel; +import org.openworkflow.sdk.impl.WorkflowMutablePosition; +import org.openworkflow.sdk.impl.WorkflowUtils; +import org.openworkflow.sdk.impl.WorkflowValueResolver; +import org.openworkflow.sdk.impl.events.CloudEventUtils; +import org.openworkflow.sdk.impl.events.EmittedEventDecorator; +import org.openworkflow.sdk.impl.events.EventPublisher; +import org.openworkflow.sdk.impl.expressions.ExpressionDescriptor; public class EmitExecutor extends RegularTaskExecutor { diff --git a/impl/core/src/main/java/io/serverlessworkflow/impl/executors/ForExecutor.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/executors/ForExecutor.java similarity index 82% rename from impl/core/src/main/java/io/serverlessworkflow/impl/executors/ForExecutor.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/executors/ForExecutor.java index 531d2e30a..82f9cc3b5 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/executors/ForExecutor.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/executors/ForExecutor.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,23 +13,23 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.executors; +package org.openworkflow.sdk.impl.executors; -import io.serverlessworkflow.api.types.ForIn; -import io.serverlessworkflow.api.types.ForTask; -import io.serverlessworkflow.impl.TaskContext; -import io.serverlessworkflow.impl.WorkflowContext; -import io.serverlessworkflow.impl.WorkflowDefinition; -import io.serverlessworkflow.impl.WorkflowModel; -import io.serverlessworkflow.impl.WorkflowMutablePosition; -import io.serverlessworkflow.impl.WorkflowPredicate; -import io.serverlessworkflow.impl.WorkflowUtils; -import io.serverlessworkflow.impl.WorkflowValueResolver; -import io.serverlessworkflow.impl.expressions.ExpressionDescriptor; import java.util.Collection; import java.util.Iterator; import java.util.Optional; import java.util.concurrent.CompletableFuture; +import org.openworkflow.sdk.api.types.ForIn; +import org.openworkflow.sdk.api.types.ForTask; +import org.openworkflow.sdk.impl.TaskContext; +import org.openworkflow.sdk.impl.WorkflowContext; +import org.openworkflow.sdk.impl.WorkflowDefinition; +import org.openworkflow.sdk.impl.WorkflowModel; +import org.openworkflow.sdk.impl.WorkflowMutablePosition; +import org.openworkflow.sdk.impl.WorkflowPredicate; +import org.openworkflow.sdk.impl.WorkflowUtils; +import org.openworkflow.sdk.impl.WorkflowValueResolver; +import org.openworkflow.sdk.impl.expressions.ExpressionDescriptor; public class ForExecutor extends RegularTaskExecutor { diff --git a/impl/core/src/main/java/io/serverlessworkflow/impl/executors/ForkExecutor.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/executors/ForkExecutor.java similarity index 88% rename from impl/core/src/main/java/io/serverlessworkflow/impl/executors/ForkExecutor.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/executors/ForkExecutor.java index 638a53c02..b51ad4b1b 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/executors/ForkExecutor.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/executors/ForkExecutor.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,15 +13,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.executors; +package org.openworkflow.sdk.impl.executors; -import io.serverlessworkflow.api.types.ForkTask; -import io.serverlessworkflow.api.types.ForkTaskConfiguration; -import io.serverlessworkflow.impl.TaskContext; -import io.serverlessworkflow.impl.WorkflowContext; -import io.serverlessworkflow.impl.WorkflowDefinition; -import io.serverlessworkflow.impl.WorkflowModel; -import io.serverlessworkflow.impl.WorkflowMutablePosition; import java.util.HashMap; import java.util.LinkedHashMap; import java.util.Map; @@ -31,6 +24,13 @@ import java.util.concurrent.ExecutorService; import java.util.stream.Collectors; import java.util.stream.Stream; +import org.openworkflow.sdk.api.types.ForkTask; +import org.openworkflow.sdk.api.types.ForkTaskConfiguration; +import org.openworkflow.sdk.impl.TaskContext; +import org.openworkflow.sdk.impl.WorkflowContext; +import org.openworkflow.sdk.impl.WorkflowDefinition; +import org.openworkflow.sdk.impl.WorkflowModel; +import org.openworkflow.sdk.impl.WorkflowMutablePosition; public class ForkExecutor extends RegularTaskExecutor { diff --git a/impl/core/src/main/java/io/serverlessworkflow/impl/executors/ListenExecutor.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/executors/ListenExecutor.java similarity index 87% rename from impl/core/src/main/java/io/serverlessworkflow/impl/executors/ListenExecutor.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/executors/ListenExecutor.java index 82e54b1d0..f9f0a0ccd 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/executors/ListenExecutor.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/executors/ListenExecutor.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,34 +13,34 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.executors; +package org.openworkflow.sdk.impl.executors; import io.cloudevents.CloudEvent; -import io.serverlessworkflow.api.types.ListenTask; -import io.serverlessworkflow.api.types.ListenTaskConfiguration; -import io.serverlessworkflow.api.types.ListenTaskConfiguration.ListenAndReadAs; -import io.serverlessworkflow.api.types.SubscriptionIterator; -import io.serverlessworkflow.api.types.Until; -import io.serverlessworkflow.impl.TaskContext; -import io.serverlessworkflow.impl.WorkflowContext; -import io.serverlessworkflow.impl.WorkflowDefinition; -import io.serverlessworkflow.impl.WorkflowModel; -import io.serverlessworkflow.impl.WorkflowModelCollection; -import io.serverlessworkflow.impl.WorkflowMutableInstance; -import io.serverlessworkflow.impl.WorkflowMutablePosition; -import io.serverlessworkflow.impl.WorkflowPredicate; -import io.serverlessworkflow.impl.WorkflowStatus; -import io.serverlessworkflow.impl.WorkflowUtils; -import io.serverlessworkflow.impl.events.EventConsumer; -import io.serverlessworkflow.impl.events.EventRegistrationBuilderCollection; -import io.serverlessworkflow.impl.events.EventRegistrationBuilderInfo; -import io.serverlessworkflow.impl.events.EventRegistrationInfo; import java.util.ArrayList; import java.util.Collection; import java.util.Optional; import java.util.concurrent.CompletableFuture; import java.util.function.BiConsumer; import java.util.function.Function; +import org.openworkflow.sdk.api.types.ListenTask; +import org.openworkflow.sdk.api.types.ListenTaskConfiguration; +import org.openworkflow.sdk.api.types.ListenTaskConfiguration.ListenAndReadAs; +import org.openworkflow.sdk.api.types.SubscriptionIterator; +import org.openworkflow.sdk.api.types.Until; +import org.openworkflow.sdk.impl.TaskContext; +import org.openworkflow.sdk.impl.WorkflowContext; +import org.openworkflow.sdk.impl.WorkflowDefinition; +import org.openworkflow.sdk.impl.WorkflowModel; +import org.openworkflow.sdk.impl.WorkflowModelCollection; +import org.openworkflow.sdk.impl.WorkflowMutableInstance; +import org.openworkflow.sdk.impl.WorkflowMutablePosition; +import org.openworkflow.sdk.impl.WorkflowPredicate; +import org.openworkflow.sdk.impl.WorkflowStatus; +import org.openworkflow.sdk.impl.WorkflowUtils; +import org.openworkflow.sdk.impl.events.EventConsumer; +import org.openworkflow.sdk.impl.events.EventRegistrationBuilderCollection; +import org.openworkflow.sdk.impl.events.EventRegistrationBuilderInfo; +import org.openworkflow.sdk.impl.events.EventRegistrationInfo; public abstract class ListenExecutor extends RegularTaskExecutor { diff --git a/impl/core/src/main/java/io/serverlessworkflow/impl/executors/ProcessResult.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/executors/ProcessResult.java similarity index 84% rename from impl/core/src/main/java/io/serverlessworkflow/impl/executors/ProcessResult.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/executors/ProcessResult.java index f04ded8c4..b9716cbff 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/executors/ProcessResult.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/executors/ProcessResult.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,6 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.executors; +package org.openworkflow.sdk.impl.executors; public record ProcessResult(int code, String stdout, String stderr) {} diff --git a/impl/core/src/main/java/io/serverlessworkflow/impl/executors/RaiseExecutor.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/executors/RaiseExecutor.java similarity index 82% rename from impl/core/src/main/java/io/serverlessworkflow/impl/executors/RaiseExecutor.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/executors/RaiseExecutor.java index 4c179750c..c39aa10d4 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/executors/RaiseExecutor.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/executors/RaiseExecutor.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,30 +13,30 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.executors; +package org.openworkflow.sdk.impl.executors; -import io.serverlessworkflow.api.types.Error; -import io.serverlessworkflow.api.types.ErrorDetails; -import io.serverlessworkflow.api.types.ErrorInstance; -import io.serverlessworkflow.api.types.ErrorTitle; -import io.serverlessworkflow.api.types.ErrorType; -import io.serverlessworkflow.api.types.RaiseTask; -import io.serverlessworkflow.api.types.RaiseTaskError; -import io.serverlessworkflow.impl.TaskContext; -import io.serverlessworkflow.impl.WorkflowApplication; -import io.serverlessworkflow.impl.WorkflowContext; -import io.serverlessworkflow.impl.WorkflowDefinition; -import io.serverlessworkflow.impl.WorkflowError; -import io.serverlessworkflow.impl.WorkflowError.Builder; -import io.serverlessworkflow.impl.WorkflowException; -import io.serverlessworkflow.impl.WorkflowModel; -import io.serverlessworkflow.impl.WorkflowMutablePosition; -import io.serverlessworkflow.impl.WorkflowUtils; -import io.serverlessworkflow.impl.WorkflowValueResolver; import java.util.Map; import java.util.Optional; import java.util.concurrent.CompletableFuture; import java.util.function.BiFunction; +import org.openworkflow.sdk.api.types.Error; +import org.openworkflow.sdk.api.types.ErrorDetails; +import org.openworkflow.sdk.api.types.ErrorInstance; +import org.openworkflow.sdk.api.types.ErrorTitle; +import org.openworkflow.sdk.api.types.ErrorType; +import org.openworkflow.sdk.api.types.RaiseTask; +import org.openworkflow.sdk.api.types.RaiseTaskError; +import org.openworkflow.sdk.impl.TaskContext; +import org.openworkflow.sdk.impl.WorkflowApplication; +import org.openworkflow.sdk.impl.WorkflowContext; +import org.openworkflow.sdk.impl.WorkflowDefinition; +import org.openworkflow.sdk.impl.WorkflowError; +import org.openworkflow.sdk.impl.WorkflowError.Builder; +import org.openworkflow.sdk.impl.WorkflowException; +import org.openworkflow.sdk.impl.WorkflowModel; +import org.openworkflow.sdk.impl.WorkflowMutablePosition; +import org.openworkflow.sdk.impl.WorkflowUtils; +import org.openworkflow.sdk.impl.WorkflowValueResolver; public class RaiseExecutor extends RegularTaskExecutor { diff --git a/impl/core/src/main/java/io/serverlessworkflow/impl/executors/RegularTaskExecutor.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/executors/RegularTaskExecutor.java similarity index 82% rename from impl/core/src/main/java/io/serverlessworkflow/impl/executors/RegularTaskExecutor.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/executors/RegularTaskExecutor.java index 691783040..f218ca50a 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/executors/RegularTaskExecutor.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/executors/RegularTaskExecutor.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,16 +13,16 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.executors; +package org.openworkflow.sdk.impl.executors; -import io.serverlessworkflow.api.types.TaskBase; -import io.serverlessworkflow.impl.TaskContext; -import io.serverlessworkflow.impl.WorkflowContext; -import io.serverlessworkflow.impl.WorkflowDefinition; -import io.serverlessworkflow.impl.WorkflowModel; -import io.serverlessworkflow.impl.WorkflowMutablePosition; import java.util.Map; import java.util.concurrent.CompletableFuture; +import org.openworkflow.sdk.api.types.TaskBase; +import org.openworkflow.sdk.impl.TaskContext; +import org.openworkflow.sdk.impl.WorkflowContext; +import org.openworkflow.sdk.impl.WorkflowDefinition; +import org.openworkflow.sdk.impl.WorkflowModel; +import org.openworkflow.sdk.impl.WorkflowMutablePosition; public abstract class RegularTaskExecutor extends AbstractTaskExecutor { diff --git a/impl/core/src/main/java/io/serverlessworkflow/impl/executors/RunScriptExecutor.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/executors/RunScriptExecutor.java similarity index 81% rename from impl/core/src/main/java/io/serverlessworkflow/impl/executors/RunScriptExecutor.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/executors/RunScriptExecutor.java index b7bb1432b..6c9a551ca 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/executors/RunScriptExecutor.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/executors/RunScriptExecutor.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,21 +13,21 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.executors; +package org.openworkflow.sdk.impl.executors; -import io.serverlessworkflow.api.types.RunTaskConfiguration; -import io.serverlessworkflow.api.types.RunTaskConfiguration.ProcessReturnType; -import io.serverlessworkflow.impl.TaskContext; -import io.serverlessworkflow.impl.WorkflowContext; -import io.serverlessworkflow.impl.WorkflowError; -import io.serverlessworkflow.impl.WorkflowException; -import io.serverlessworkflow.impl.WorkflowModel; -import io.serverlessworkflow.impl.WorkflowValueResolver; -import io.serverlessworkflow.impl.scripts.ScriptContext; -import io.serverlessworkflow.impl.scripts.ScriptRunner; import java.util.Map; import java.util.Optional; import java.util.concurrent.CompletableFuture; +import org.openworkflow.sdk.api.types.RunTaskConfiguration; +import org.openworkflow.sdk.api.types.RunTaskConfiguration.ProcessReturnType; +import org.openworkflow.sdk.impl.TaskContext; +import org.openworkflow.sdk.impl.WorkflowContext; +import org.openworkflow.sdk.impl.WorkflowError; +import org.openworkflow.sdk.impl.WorkflowException; +import org.openworkflow.sdk.impl.WorkflowModel; +import org.openworkflow.sdk.impl.WorkflowValueResolver; +import org.openworkflow.sdk.impl.scripts.ScriptContext; +import org.openworkflow.sdk.impl.scripts.ScriptRunner; public class RunScriptExecutor implements CallableTask { diff --git a/impl/core/src/main/java/io/serverlessworkflow/impl/executors/RunScriptExecutorBuilder.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/executors/RunScriptExecutorBuilder.java similarity index 81% rename from impl/core/src/main/java/io/serverlessworkflow/impl/executors/RunScriptExecutorBuilder.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/executors/RunScriptExecutorBuilder.java index 02d2b813b..2f4d3de2d 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/executors/RunScriptExecutorBuilder.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/executors/RunScriptExecutorBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,20 +13,20 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.executors; +package org.openworkflow.sdk.impl.executors; -import io.serverlessworkflow.api.types.RunScript; -import io.serverlessworkflow.api.types.RunTaskConfiguration; -import io.serverlessworkflow.api.types.Script; -import io.serverlessworkflow.api.types.ScriptUnion; -import io.serverlessworkflow.impl.WorkflowApplication; -import io.serverlessworkflow.impl.WorkflowDefinition; -import io.serverlessworkflow.impl.WorkflowUtils; -import io.serverlessworkflow.impl.resources.ResourceLoaderUtils; -import io.serverlessworkflow.impl.scripts.ScriptLanguageId; -import io.serverlessworkflow.impl.scripts.ScriptRunner; import java.util.Objects; import java.util.Optional; +import org.openworkflow.sdk.api.types.RunScript; +import org.openworkflow.sdk.api.types.RunTaskConfiguration; +import org.openworkflow.sdk.api.types.Script; +import org.openworkflow.sdk.api.types.ScriptUnion; +import org.openworkflow.sdk.impl.WorkflowApplication; +import org.openworkflow.sdk.impl.WorkflowDefinition; +import org.openworkflow.sdk.impl.WorkflowUtils; +import org.openworkflow.sdk.impl.resources.ResourceLoaderUtils; +import org.openworkflow.sdk.impl.scripts.ScriptLanguageId; +import org.openworkflow.sdk.impl.scripts.ScriptRunner; public class RunScriptExecutorBuilder implements RunnableTaskBuilder { diff --git a/impl/core/src/main/java/io/serverlessworkflow/impl/executors/RunShellExecutor.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/executors/RunShellExecutor.java similarity index 87% rename from impl/core/src/main/java/io/serverlessworkflow/impl/executors/RunShellExecutor.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/executors/RunShellExecutor.java index c54b5ba60..ee6ed1d74 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/executors/RunShellExecutor.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/executors/RunShellExecutor.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,22 +13,22 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.executors; +package org.openworkflow.sdk.impl.executors; -import static io.serverlessworkflow.impl.scripts.ScriptUtils.uncheckedStart; +import static org.openworkflow.sdk.impl.scripts.ScriptUtils.uncheckedStart; -import io.serverlessworkflow.api.types.RunTaskConfiguration.ProcessReturnType; -import io.serverlessworkflow.impl.TaskContext; -import io.serverlessworkflow.impl.WorkflowContext; -import io.serverlessworkflow.impl.WorkflowModel; -import io.serverlessworkflow.impl.WorkflowValueResolver; -import io.serverlessworkflow.impl.scripts.ScriptUtils; import java.io.File; import java.util.ArrayList; import java.util.List; import java.util.Map; import java.util.Optional; import java.util.concurrent.CompletableFuture; +import org.openworkflow.sdk.api.types.RunTaskConfiguration.ProcessReturnType; +import org.openworkflow.sdk.impl.TaskContext; +import org.openworkflow.sdk.impl.WorkflowContext; +import org.openworkflow.sdk.impl.WorkflowModel; +import org.openworkflow.sdk.impl.WorkflowValueResolver; +import org.openworkflow.sdk.impl.scripts.ScriptUtils; public class RunShellExecutor implements CallableTask { private final WorkflowValueResolver shellCommand; diff --git a/impl/core/src/main/java/io/serverlessworkflow/impl/executors/RunShellExecutorBuilder.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/executors/RunShellExecutorBuilder.java similarity index 84% rename from impl/core/src/main/java/io/serverlessworkflow/impl/executors/RunShellExecutorBuilder.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/executors/RunShellExecutorBuilder.java index 177384079..ac18d7672 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/executors/RunShellExecutorBuilder.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/executors/RunShellExecutorBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,15 +13,15 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.executors; +package org.openworkflow.sdk.impl.executors; -import io.serverlessworkflow.api.types.RunShell; -import io.serverlessworkflow.api.types.RunTaskConfiguration; -import io.serverlessworkflow.api.types.Shell; -import io.serverlessworkflow.impl.WorkflowDefinition; -import io.serverlessworkflow.impl.WorkflowUtils; import java.util.List; import java.util.Optional; +import org.openworkflow.sdk.api.types.RunShell; +import org.openworkflow.sdk.api.types.RunTaskConfiguration; +import org.openworkflow.sdk.api.types.Shell; +import org.openworkflow.sdk.impl.WorkflowDefinition; +import org.openworkflow.sdk.impl.WorkflowUtils; public class RunShellExecutorBuilder implements RunnableTaskBuilder { diff --git a/impl/core/src/main/java/io/serverlessworkflow/impl/executors/RunTaskExecutor.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/executors/RunTaskExecutor.java similarity index 80% rename from impl/core/src/main/java/io/serverlessworkflow/impl/executors/RunTaskExecutor.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/executors/RunTaskExecutor.java index f1fe7861e..bf831a2eb 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/executors/RunTaskExecutor.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/executors/RunTaskExecutor.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,16 +13,16 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.executors; +package org.openworkflow.sdk.impl.executors; -import io.serverlessworkflow.api.types.RunTask; -import io.serverlessworkflow.api.types.RunTaskConfiguration; -import io.serverlessworkflow.impl.TaskContext; -import io.serverlessworkflow.impl.WorkflowContext; -import io.serverlessworkflow.impl.WorkflowDefinition; -import io.serverlessworkflow.impl.WorkflowModel; -import io.serverlessworkflow.impl.WorkflowMutablePosition; import java.util.concurrent.CompletableFuture; +import org.openworkflow.sdk.api.types.RunTask; +import org.openworkflow.sdk.api.types.RunTaskConfiguration; +import org.openworkflow.sdk.impl.TaskContext; +import org.openworkflow.sdk.impl.WorkflowContext; +import org.openworkflow.sdk.impl.WorkflowDefinition; +import org.openworkflow.sdk.impl.WorkflowModel; +import org.openworkflow.sdk.impl.WorkflowMutablePosition; public class RunTaskExecutor extends RegularTaskExecutor { diff --git a/impl/core/src/main/java/io/serverlessworkflow/impl/executors/RunWorkflowExecutor.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/executors/RunWorkflowExecutor.java similarity index 81% rename from impl/core/src/main/java/io/serverlessworkflow/impl/executors/RunWorkflowExecutor.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/executors/RunWorkflowExecutor.java index cf0a8faac..96dbae6a6 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/executors/RunWorkflowExecutor.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/executors/RunWorkflowExecutor.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,16 +13,16 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.executors; +package org.openworkflow.sdk.impl.executors; -import io.serverlessworkflow.impl.TaskContext; -import io.serverlessworkflow.impl.WorkflowContext; -import io.serverlessworkflow.impl.WorkflowDefinition; -import io.serverlessworkflow.impl.WorkflowDefinitionId; -import io.serverlessworkflow.impl.WorkflowModel; -import io.serverlessworkflow.impl.WorkflowValueResolver; import java.util.Map; import java.util.concurrent.CompletableFuture; +import org.openworkflow.sdk.impl.TaskContext; +import org.openworkflow.sdk.impl.WorkflowContext; +import org.openworkflow.sdk.impl.WorkflowDefinition; +import org.openworkflow.sdk.impl.WorkflowDefinitionId; +import org.openworkflow.sdk.impl.WorkflowModel; +import org.openworkflow.sdk.impl.WorkflowValueResolver; public class RunWorkflowExecutor implements CallableTask { private final WorkflowDefinitionId workflowDefinitionId; diff --git a/impl/core/src/main/java/io/serverlessworkflow/impl/executors/RunWorkflowExecutorBuilder.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/executors/RunWorkflowExecutorBuilder.java similarity index 72% rename from impl/core/src/main/java/io/serverlessworkflow/impl/executors/RunWorkflowExecutorBuilder.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/executors/RunWorkflowExecutorBuilder.java index e716f1e4b..3dd4ce138 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/executors/RunWorkflowExecutorBuilder.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/executors/RunWorkflowExecutorBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,16 +13,16 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.executors; +package org.openworkflow.sdk.impl.executors; -import io.serverlessworkflow.api.types.RunTaskConfiguration; -import io.serverlessworkflow.api.types.RunWorkflow; -import io.serverlessworkflow.api.types.SubflowConfiguration; -import io.serverlessworkflow.api.types.SubflowInput; -import io.serverlessworkflow.impl.WorkflowDefinition; -import io.serverlessworkflow.impl.WorkflowDefinitionId; -import io.serverlessworkflow.impl.WorkflowUtils; import java.util.Map; +import org.openworkflow.sdk.api.types.RunTaskConfiguration; +import org.openworkflow.sdk.api.types.RunWorkflow; +import org.openworkflow.sdk.api.types.SubflowConfiguration; +import org.openworkflow.sdk.api.types.SubflowInput; +import org.openworkflow.sdk.impl.WorkflowDefinition; +import org.openworkflow.sdk.impl.WorkflowDefinitionId; +import org.openworkflow.sdk.impl.WorkflowUtils; public class RunWorkflowExecutorBuilder implements RunnableTaskBuilder { diff --git a/impl/core/src/main/java/io/serverlessworkflow/impl/executors/RunnableTaskBuilder.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/executors/RunnableTaskBuilder.java similarity index 73% rename from impl/core/src/main/java/io/serverlessworkflow/impl/executors/RunnableTaskBuilder.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/executors/RunnableTaskBuilder.java index e0bc9b0b4..d06d67b6f 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/executors/RunnableTaskBuilder.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/executors/RunnableTaskBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,11 +13,11 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.executors; +package org.openworkflow.sdk.impl.executors; -import io.serverlessworkflow.api.types.RunTaskConfiguration; -import io.serverlessworkflow.impl.ServicePriority; -import io.serverlessworkflow.impl.WorkflowDefinition; +import org.openworkflow.sdk.api.types.RunTaskConfiguration; +import org.openworkflow.sdk.impl.ServicePriority; +import org.openworkflow.sdk.impl.WorkflowDefinition; public interface RunnableTaskBuilder extends ServicePriority { boolean accept(Class clazz); diff --git a/impl/core/src/main/java/io/serverlessworkflow/impl/executors/SetExecutor.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/executors/SetExecutor.java similarity index 74% rename from impl/core/src/main/java/io/serverlessworkflow/impl/executors/SetExecutor.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/executors/SetExecutor.java index c37d5f2ca..134351f57 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/executors/SetExecutor.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/executors/SetExecutor.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,19 +13,19 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.executors; +package org.openworkflow.sdk.impl.executors; -import io.serverlessworkflow.api.types.Set; -import io.serverlessworkflow.api.types.SetTask; -import io.serverlessworkflow.api.types.SetTaskConfiguration; -import io.serverlessworkflow.impl.TaskContext; -import io.serverlessworkflow.impl.WorkflowContext; -import io.serverlessworkflow.impl.WorkflowDefinition; -import io.serverlessworkflow.impl.WorkflowFilter; -import io.serverlessworkflow.impl.WorkflowModel; -import io.serverlessworkflow.impl.WorkflowMutablePosition; -import io.serverlessworkflow.impl.WorkflowUtils; import java.util.concurrent.CompletableFuture; +import org.openworkflow.sdk.api.types.Set; +import org.openworkflow.sdk.api.types.SetTask; +import org.openworkflow.sdk.api.types.SetTaskConfiguration; +import org.openworkflow.sdk.impl.TaskContext; +import org.openworkflow.sdk.impl.WorkflowContext; +import org.openworkflow.sdk.impl.WorkflowDefinition; +import org.openworkflow.sdk.impl.WorkflowFilter; +import org.openworkflow.sdk.impl.WorkflowModel; +import org.openworkflow.sdk.impl.WorkflowMutablePosition; +import org.openworkflow.sdk.impl.WorkflowUtils; public class SetExecutor extends RegularTaskExecutor { diff --git a/impl/core/src/main/java/io/serverlessworkflow/impl/executors/SwitchExecutor.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/executors/SwitchExecutor.java similarity index 84% rename from impl/core/src/main/java/io/serverlessworkflow/impl/executors/SwitchExecutor.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/executors/SwitchExecutor.java index 238c4dbab..a3f57a4ce 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/executors/SwitchExecutor.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/executors/SwitchExecutor.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,24 +13,24 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.executors; +package org.openworkflow.sdk.impl.executors; -import io.serverlessworkflow.api.types.FlowDirective; -import io.serverlessworkflow.api.types.SwitchCase; -import io.serverlessworkflow.api.types.SwitchItem; -import io.serverlessworkflow.api.types.SwitchTask; -import io.serverlessworkflow.impl.TaskContext; -import io.serverlessworkflow.impl.WorkflowContext; -import io.serverlessworkflow.impl.WorkflowDefinition; -import io.serverlessworkflow.impl.WorkflowMutablePosition; -import io.serverlessworkflow.impl.WorkflowPredicate; -import io.serverlessworkflow.impl.WorkflowUtils; import java.util.HashMap; import java.util.Map; import java.util.Map.Entry; import java.util.Optional; import java.util.concurrent.CompletableFuture; import java.util.stream.Collectors; +import org.openworkflow.sdk.api.types.FlowDirective; +import org.openworkflow.sdk.api.types.SwitchCase; +import org.openworkflow.sdk.api.types.SwitchItem; +import org.openworkflow.sdk.api.types.SwitchTask; +import org.openworkflow.sdk.impl.TaskContext; +import org.openworkflow.sdk.impl.WorkflowContext; +import org.openworkflow.sdk.impl.WorkflowDefinition; +import org.openworkflow.sdk.impl.WorkflowMutablePosition; +import org.openworkflow.sdk.impl.WorkflowPredicate; +import org.openworkflow.sdk.impl.WorkflowUtils; public class SwitchExecutor extends AbstractTaskExecutor { diff --git a/impl/core/src/main/java/io/serverlessworkflow/impl/executors/TaskExecutor.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/executors/TaskExecutor.java similarity index 73% rename from impl/core/src/main/java/io/serverlessworkflow/impl/executors/TaskExecutor.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/executors/TaskExecutor.java index ebf492f34..1df7e048f 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/executors/TaskExecutor.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/executors/TaskExecutor.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,14 +13,14 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.executors; +package org.openworkflow.sdk.impl.executors; -import io.serverlessworkflow.api.types.TaskBase; -import io.serverlessworkflow.impl.TaskContext; -import io.serverlessworkflow.impl.WorkflowContext; -import io.serverlessworkflow.impl.WorkflowModel; import java.util.Optional; import java.util.concurrent.CompletableFuture; +import org.openworkflow.sdk.api.types.TaskBase; +import org.openworkflow.sdk.impl.TaskContext; +import org.openworkflow.sdk.impl.WorkflowContext; +import org.openworkflow.sdk.impl.WorkflowModel; @FunctionalInterface public interface TaskExecutor { diff --git a/impl/core/src/main/java/io/serverlessworkflow/impl/executors/TaskExecutorBuilder.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/executors/TaskExecutorBuilder.java similarity index 81% rename from impl/core/src/main/java/io/serverlessworkflow/impl/executors/TaskExecutorBuilder.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/executors/TaskExecutorBuilder.java index 2cbb8c164..13a3ca1ef 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/executors/TaskExecutorBuilder.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/executors/TaskExecutorBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,10 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.executors; +package org.openworkflow.sdk.impl.executors; -import io.serverlessworkflow.api.types.TaskBase; import java.util.Map; +import org.openworkflow.sdk.api.types.TaskBase; public interface TaskExecutorBuilder { diff --git a/impl/core/src/main/java/io/serverlessworkflow/impl/executors/TaskExecutorFactory.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/executors/TaskExecutorFactory.java similarity index 67% rename from impl/core/src/main/java/io/serverlessworkflow/impl/executors/TaskExecutorFactory.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/executors/TaskExecutorFactory.java index 1a2206a9d..09a5d1a24 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/executors/TaskExecutorFactory.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/executors/TaskExecutorFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,13 +13,13 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.executors; +package org.openworkflow.sdk.impl.executors; -import io.serverlessworkflow.api.types.Task; -import io.serverlessworkflow.api.types.TaskBase; -import io.serverlessworkflow.impl.ServicePriority; -import io.serverlessworkflow.impl.WorkflowDefinition; -import io.serverlessworkflow.impl.WorkflowMutablePosition; +import org.openworkflow.sdk.api.types.Task; +import org.openworkflow.sdk.api.types.TaskBase; +import org.openworkflow.sdk.impl.ServicePriority; +import org.openworkflow.sdk.impl.WorkflowDefinition; +import org.openworkflow.sdk.impl.WorkflowMutablePosition; public interface TaskExecutorFactory extends ServicePriority { TaskExecutorBuilder getTaskExecutor( diff --git a/impl/core/src/main/java/io/serverlessworkflow/impl/executors/TaskExecutorHelper.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/executors/TaskExecutorHelper.java similarity index 88% rename from impl/core/src/main/java/io/serverlessworkflow/impl/executors/TaskExecutorHelper.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/executors/TaskExecutorHelper.java index 540e20ff8..e17b08948 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/executors/TaskExecutorHelper.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/executors/TaskExecutorHelper.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,15 +13,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.executors; +package org.openworkflow.sdk.impl.executors; -import io.serverlessworkflow.api.types.TaskItem; -import io.serverlessworkflow.impl.TaskContext; -import io.serverlessworkflow.impl.WorkflowContext; -import io.serverlessworkflow.impl.WorkflowDefinition; -import io.serverlessworkflow.impl.WorkflowModel; -import io.serverlessworkflow.impl.WorkflowMutablePosition; -import io.serverlessworkflow.impl.WorkflowStatus; import java.util.Iterator; import java.util.LinkedHashMap; import java.util.List; @@ -29,6 +22,13 @@ import java.util.Optional; import java.util.concurrent.CompletableFuture; import java.util.stream.Collectors; +import org.openworkflow.sdk.api.types.TaskItem; +import org.openworkflow.sdk.impl.TaskContext; +import org.openworkflow.sdk.impl.WorkflowContext; +import org.openworkflow.sdk.impl.WorkflowDefinition; +import org.openworkflow.sdk.impl.WorkflowModel; +import org.openworkflow.sdk.impl.WorkflowMutablePosition; +import org.openworkflow.sdk.impl.WorkflowStatus; public class TaskExecutorHelper { private TaskExecutorHelper() {} diff --git a/impl/core/src/main/java/io/serverlessworkflow/impl/executors/TransitionInfo.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/executors/TransitionInfo.java similarity index 89% rename from impl/core/src/main/java/io/serverlessworkflow/impl/executors/TransitionInfo.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/executors/TransitionInfo.java index f330ac741..a7c18ae4f 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/executors/TransitionInfo.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/executors/TransitionInfo.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.executors; +package org.openworkflow.sdk.impl.executors; public record TransitionInfo(TaskExecutor next, boolean isEndNode) { private static final TransitionInfo END = new TransitionInfo(null, true); diff --git a/impl/core/src/main/java/io/serverlessworkflow/impl/executors/TransitionInfoBuilder.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/executors/TransitionInfoBuilder.java similarity index 90% rename from impl/core/src/main/java/io/serverlessworkflow/impl/executors/TransitionInfoBuilder.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/executors/TransitionInfoBuilder.java index 7f62eaf7c..cac8b087d 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/executors/TransitionInfoBuilder.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/executors/TransitionInfoBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.executors; +package org.openworkflow.sdk.impl.executors; public record TransitionInfoBuilder(TaskExecutorBuilder next, boolean isEndNode) { diff --git a/impl/core/src/main/java/io/serverlessworkflow/impl/executors/TryExecutor.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/executors/TryExecutor.java similarity index 89% rename from impl/core/src/main/java/io/serverlessworkflow/impl/executors/TryExecutor.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/executors/TryExecutor.java index 9d281a9d9..acd91eeb1 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/executors/TryExecutor.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/executors/TryExecutor.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,34 +13,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.executors; +package org.openworkflow.sdk.impl.executors; -import io.serverlessworkflow.api.types.CatchErrors; -import io.serverlessworkflow.api.types.ErrorFilter; -import io.serverlessworkflow.api.types.FlowDirective; -import io.serverlessworkflow.api.types.Retry; -import io.serverlessworkflow.api.types.RetryBackoff; -import io.serverlessworkflow.api.types.RetryLimit; -import io.serverlessworkflow.api.types.RetryPolicy; -import io.serverlessworkflow.api.types.TaskItem; -import io.serverlessworkflow.api.types.TryTask; -import io.serverlessworkflow.api.types.TryTaskCatch; -import io.serverlessworkflow.impl.TaskContext; -import io.serverlessworkflow.impl.WorkflowContext; -import io.serverlessworkflow.impl.WorkflowDefinition; -import io.serverlessworkflow.impl.WorkflowError; -import io.serverlessworkflow.impl.WorkflowException; -import io.serverlessworkflow.impl.WorkflowModel; -import io.serverlessworkflow.impl.WorkflowMutablePosition; -import io.serverlessworkflow.impl.WorkflowPredicate; -import io.serverlessworkflow.impl.WorkflowUtils; -import io.serverlessworkflow.impl.WorkflowValueResolver; -import io.serverlessworkflow.impl.executors.retry.ConstantRetryIntervalFunction; -import io.serverlessworkflow.impl.executors.retry.DefaultRetryExecutor; -import io.serverlessworkflow.impl.executors.retry.ExponentialRetryIntervalFunction; -import io.serverlessworkflow.impl.executors.retry.LinearRetryIntervalFunction; -import io.serverlessworkflow.impl.executors.retry.RetryExecutor; -import io.serverlessworkflow.impl.executors.retry.RetryIntervalFunction; import java.time.Duration; import java.util.List; import java.util.Map; @@ -51,6 +25,32 @@ import java.util.concurrent.TimeUnit; import java.util.concurrent.TimeoutException; import java.util.function.Predicate; +import org.openworkflow.sdk.api.types.CatchErrors; +import org.openworkflow.sdk.api.types.ErrorFilter; +import org.openworkflow.sdk.api.types.FlowDirective; +import org.openworkflow.sdk.api.types.Retry; +import org.openworkflow.sdk.api.types.RetryBackoff; +import org.openworkflow.sdk.api.types.RetryLimit; +import org.openworkflow.sdk.api.types.RetryPolicy; +import org.openworkflow.sdk.api.types.TaskItem; +import org.openworkflow.sdk.api.types.TryTask; +import org.openworkflow.sdk.api.types.TryTaskCatch; +import org.openworkflow.sdk.impl.TaskContext; +import org.openworkflow.sdk.impl.WorkflowContext; +import org.openworkflow.sdk.impl.WorkflowDefinition; +import org.openworkflow.sdk.impl.WorkflowError; +import org.openworkflow.sdk.impl.WorkflowException; +import org.openworkflow.sdk.impl.WorkflowModel; +import org.openworkflow.sdk.impl.WorkflowMutablePosition; +import org.openworkflow.sdk.impl.WorkflowPredicate; +import org.openworkflow.sdk.impl.WorkflowUtils; +import org.openworkflow.sdk.impl.WorkflowValueResolver; +import org.openworkflow.sdk.impl.executors.retry.ConstantRetryIntervalFunction; +import org.openworkflow.sdk.impl.executors.retry.DefaultRetryExecutor; +import org.openworkflow.sdk.impl.executors.retry.ExponentialRetryIntervalFunction; +import org.openworkflow.sdk.impl.executors.retry.LinearRetryIntervalFunction; +import org.openworkflow.sdk.impl.executors.retry.RetryExecutor; +import org.openworkflow.sdk.impl.executors.retry.RetryIntervalFunction; public class TryExecutor extends RegularTaskExecutor { diff --git a/impl/core/src/main/java/io/serverlessworkflow/impl/executors/WaitExecutor.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/executors/WaitExecutor.java similarity index 78% rename from impl/core/src/main/java/io/serverlessworkflow/impl/executors/WaitExecutor.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/executors/WaitExecutor.java index 94e0796f8..6ef5a3c21 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/executors/WaitExecutor.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/executors/WaitExecutor.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,20 +13,20 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.executors; +package org.openworkflow.sdk.impl.executors; -import io.serverlessworkflow.api.types.WaitTask; -import io.serverlessworkflow.impl.TaskContext; -import io.serverlessworkflow.impl.WorkflowContext; -import io.serverlessworkflow.impl.WorkflowDefinition; -import io.serverlessworkflow.impl.WorkflowModel; -import io.serverlessworkflow.impl.WorkflowMutablePosition; -import io.serverlessworkflow.impl.WorkflowStatus; -import io.serverlessworkflow.impl.WorkflowUtils; -import io.serverlessworkflow.impl.WorkflowValueResolver; import java.time.Duration; import java.util.concurrent.CompletableFuture; import java.util.concurrent.TimeUnit; +import org.openworkflow.sdk.api.types.WaitTask; +import org.openworkflow.sdk.impl.TaskContext; +import org.openworkflow.sdk.impl.WorkflowContext; +import org.openworkflow.sdk.impl.WorkflowDefinition; +import org.openworkflow.sdk.impl.WorkflowModel; +import org.openworkflow.sdk.impl.WorkflowMutablePosition; +import org.openworkflow.sdk.impl.WorkflowStatus; +import org.openworkflow.sdk.impl.WorkflowUtils; +import org.openworkflow.sdk.impl.WorkflowValueResolver; public class WaitExecutor extends RegularTaskExecutor { diff --git a/impl/core/src/main/java/io/serverlessworkflow/impl/executors/retry/AbstractRetryIntervalFunction.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/executors/retry/AbstractRetryIntervalFunction.java similarity index 81% rename from impl/core/src/main/java/io/serverlessworkflow/impl/executors/retry/AbstractRetryIntervalFunction.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/executors/retry/AbstractRetryIntervalFunction.java index df8ed903c..3d6e27d36 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/executors/retry/AbstractRetryIntervalFunction.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/executors/retry/AbstractRetryIntervalFunction.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,18 +13,18 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.executors.retry; +package org.openworkflow.sdk.impl.executors.retry; -import io.serverlessworkflow.api.types.RetryPolicyJitter; -import io.serverlessworkflow.api.types.TimeoutAfter; -import io.serverlessworkflow.impl.TaskContext; -import io.serverlessworkflow.impl.WorkflowApplication; -import io.serverlessworkflow.impl.WorkflowContext; -import io.serverlessworkflow.impl.WorkflowModel; -import io.serverlessworkflow.impl.WorkflowUtils; -import io.serverlessworkflow.impl.WorkflowValueResolver; import java.time.Duration; import java.util.Optional; +import org.openworkflow.sdk.api.types.RetryPolicyJitter; +import org.openworkflow.sdk.api.types.TimeoutAfter; +import org.openworkflow.sdk.impl.TaskContext; +import org.openworkflow.sdk.impl.WorkflowApplication; +import org.openworkflow.sdk.impl.WorkflowContext; +import org.openworkflow.sdk.impl.WorkflowModel; +import org.openworkflow.sdk.impl.WorkflowUtils; +import org.openworkflow.sdk.impl.WorkflowValueResolver; public abstract class AbstractRetryIntervalFunction implements RetryIntervalFunction { diff --git a/impl/core/src/main/java/io/serverlessworkflow/impl/executors/retry/ConstantRetryIntervalFunction.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/executors/retry/ConstantRetryIntervalFunction.java similarity index 76% rename from impl/core/src/main/java/io/serverlessworkflow/impl/executors/retry/ConstantRetryIntervalFunction.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/executors/retry/ConstantRetryIntervalFunction.java index 28ebdc704..691afa47c 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/executors/retry/ConstantRetryIntervalFunction.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/executors/retry/ConstantRetryIntervalFunction.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,12 +13,12 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.executors.retry; +package org.openworkflow.sdk.impl.executors.retry; -import io.serverlessworkflow.api.types.RetryPolicyJitter; -import io.serverlessworkflow.api.types.TimeoutAfter; -import io.serverlessworkflow.impl.WorkflowApplication; import java.time.Duration; +import org.openworkflow.sdk.api.types.RetryPolicyJitter; +import org.openworkflow.sdk.api.types.TimeoutAfter; +import org.openworkflow.sdk.impl.WorkflowApplication; public class ConstantRetryIntervalFunction extends AbstractRetryIntervalFunction { diff --git a/impl/core/src/main/java/io/serverlessworkflow/impl/executors/retry/DefaultRetryExecutor.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/executors/retry/DefaultRetryExecutor.java similarity index 86% rename from impl/core/src/main/java/io/serverlessworkflow/impl/executors/retry/DefaultRetryExecutor.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/executors/retry/DefaultRetryExecutor.java index 2c6d59f66..06cc0a7b3 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/executors/retry/DefaultRetryExecutor.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/executors/retry/DefaultRetryExecutor.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,17 +13,17 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.executors.retry; +package org.openworkflow.sdk.impl.executors.retry; -import io.serverlessworkflow.impl.TaskContext; -import io.serverlessworkflow.impl.WorkflowContext; -import io.serverlessworkflow.impl.WorkflowModel; -import io.serverlessworkflow.impl.WorkflowPredicate; -import io.serverlessworkflow.impl.WorkflowUtils; import java.time.Duration; import java.util.Optional; import java.util.concurrent.CompletableFuture; import java.util.concurrent.TimeUnit; +import org.openworkflow.sdk.impl.TaskContext; +import org.openworkflow.sdk.impl.WorkflowContext; +import org.openworkflow.sdk.impl.WorkflowModel; +import org.openworkflow.sdk.impl.WorkflowPredicate; +import org.openworkflow.sdk.impl.WorkflowUtils; public class DefaultRetryExecutor implements RetryExecutor { diff --git a/impl/core/src/main/java/io/serverlessworkflow/impl/executors/retry/ExponentialRetryIntervalFunction.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/executors/retry/ExponentialRetryIntervalFunction.java similarity index 79% rename from impl/core/src/main/java/io/serverlessworkflow/impl/executors/retry/ExponentialRetryIntervalFunction.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/executors/retry/ExponentialRetryIntervalFunction.java index be50d3f0d..fbcd210d0 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/executors/retry/ExponentialRetryIntervalFunction.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/executors/retry/ExponentialRetryIntervalFunction.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,12 +13,12 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.executors.retry; +package org.openworkflow.sdk.impl.executors.retry; -import io.serverlessworkflow.api.types.RetryPolicyJitter; -import io.serverlessworkflow.api.types.TimeoutAfter; -import io.serverlessworkflow.impl.WorkflowApplication; import java.time.Duration; +import org.openworkflow.sdk.api.types.RetryPolicyJitter; +import org.openworkflow.sdk.api.types.TimeoutAfter; +import org.openworkflow.sdk.impl.WorkflowApplication; public class ExponentialRetryIntervalFunction extends AbstractRetryIntervalFunction { diff --git a/impl/core/src/main/java/io/serverlessworkflow/impl/executors/retry/LinearRetryIntervalFunction.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/executors/retry/LinearRetryIntervalFunction.java similarity index 76% rename from impl/core/src/main/java/io/serverlessworkflow/impl/executors/retry/LinearRetryIntervalFunction.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/executors/retry/LinearRetryIntervalFunction.java index 1e645c548..bd36463b2 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/executors/retry/LinearRetryIntervalFunction.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/executors/retry/LinearRetryIntervalFunction.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,12 +13,12 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.executors.retry; +package org.openworkflow.sdk.impl.executors.retry; -import io.serverlessworkflow.api.types.RetryPolicyJitter; -import io.serverlessworkflow.api.types.TimeoutAfter; -import io.serverlessworkflow.impl.WorkflowApplication; import java.time.Duration; +import org.openworkflow.sdk.api.types.RetryPolicyJitter; +import org.openworkflow.sdk.api.types.TimeoutAfter; +import org.openworkflow.sdk.impl.WorkflowApplication; public class LinearRetryIntervalFunction extends AbstractRetryIntervalFunction { diff --git a/impl/core/src/main/java/io/serverlessworkflow/impl/executors/retry/RetryExecutor.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/executors/retry/RetryExecutor.java similarity index 76% rename from impl/core/src/main/java/io/serverlessworkflow/impl/executors/retry/RetryExecutor.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/executors/retry/RetryExecutor.java index 4f9c23d5f..28e7120d3 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/executors/retry/RetryExecutor.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/executors/retry/RetryExecutor.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,13 +13,13 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.executors.retry; +package org.openworkflow.sdk.impl.executors.retry; -import io.serverlessworkflow.impl.TaskContext; -import io.serverlessworkflow.impl.WorkflowContext; -import io.serverlessworkflow.impl.WorkflowModel; import java.util.Optional; import java.util.concurrent.CompletableFuture; +import org.openworkflow.sdk.impl.TaskContext; +import org.openworkflow.sdk.impl.WorkflowContext; +import org.openworkflow.sdk.impl.WorkflowModel; public interface RetryExecutor { diff --git a/impl/core/src/main/java/io/serverlessworkflow/impl/executors/retry/RetryIntervalFunction.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/executors/retry/RetryIntervalFunction.java similarity index 74% rename from impl/core/src/main/java/io/serverlessworkflow/impl/executors/retry/RetryIntervalFunction.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/executors/retry/RetryIntervalFunction.java index 09ef700a8..47d6eb885 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/executors/retry/RetryIntervalFunction.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/executors/retry/RetryIntervalFunction.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,12 +13,12 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.executors.retry; +package org.openworkflow.sdk.impl.executors.retry; -import io.serverlessworkflow.impl.TaskContext; -import io.serverlessworkflow.impl.WorkflowContext; -import io.serverlessworkflow.impl.WorkflowModel; import java.time.Duration; +import org.openworkflow.sdk.impl.TaskContext; +import org.openworkflow.sdk.impl.WorkflowContext; +import org.openworkflow.sdk.impl.WorkflowModel; public interface RetryIntervalFunction { Duration apply( diff --git a/impl/core/src/main/java/io/serverlessworkflow/impl/expressions/AbstractExpressionFactory.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/expressions/AbstractExpressionFactory.java similarity index 91% rename from impl/core/src/main/java/io/serverlessworkflow/impl/expressions/AbstractExpressionFactory.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/expressions/AbstractExpressionFactory.java index 5fb96a046..ee1f81f8b 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/expressions/AbstractExpressionFactory.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/expressions/AbstractExpressionFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,15 +13,15 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.expressions; +package org.openworkflow.sdk.impl.expressions; import io.cloudevents.CloudEventData; -import io.serverlessworkflow.impl.WorkflowFilter; -import io.serverlessworkflow.impl.WorkflowModelFactory; -import io.serverlessworkflow.impl.WorkflowValueResolver; import java.time.OffsetDateTime; import java.util.Collection; import java.util.Map; +import org.openworkflow.sdk.impl.WorkflowFilter; +import org.openworkflow.sdk.impl.WorkflowModelFactory; +import org.openworkflow.sdk.impl.WorkflowValueResolver; public abstract class AbstractExpressionFactory implements ExpressionFactory { diff --git a/impl/core/src/main/java/io/serverlessworkflow/impl/expressions/AbstractProxyCollection.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/expressions/AbstractProxyCollection.java similarity index 92% rename from impl/core/src/main/java/io/serverlessworkflow/impl/expressions/AbstractProxyCollection.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/expressions/AbstractProxyCollection.java index 23d0b940f..75fe8613f 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/expressions/AbstractProxyCollection.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/expressions/AbstractProxyCollection.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.expressions; +package org.openworkflow.sdk.impl.expressions; import java.util.Collection; diff --git a/impl/core/src/main/java/io/serverlessworkflow/impl/expressions/DateTimeDescriptor.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/expressions/DateTimeDescriptor.java similarity index 90% rename from impl/core/src/main/java/io/serverlessworkflow/impl/expressions/DateTimeDescriptor.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/expressions/DateTimeDescriptor.java index 898476f83..b217df2be 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/expressions/DateTimeDescriptor.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/expressions/DateTimeDescriptor.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.expressions; +package org.openworkflow.sdk.impl.expressions; import java.time.Instant; diff --git a/impl/core/src/main/java/io/serverlessworkflow/impl/expressions/ExpressionDescriptor.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/expressions/ExpressionDescriptor.java similarity index 87% rename from impl/core/src/main/java/io/serverlessworkflow/impl/expressions/ExpressionDescriptor.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/expressions/ExpressionDescriptor.java index f7aef6c3e..efa817aba 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/expressions/ExpressionDescriptor.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/expressions/ExpressionDescriptor.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.expressions; +package org.openworkflow.sdk.impl.expressions; public record ExpressionDescriptor(String asString, Object asObject) { public static ExpressionDescriptor from(String string) { diff --git a/impl/core/src/main/java/io/serverlessworkflow/impl/expressions/ExpressionFactory.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/expressions/ExpressionFactory.java similarity index 81% rename from impl/core/src/main/java/io/serverlessworkflow/impl/expressions/ExpressionFactory.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/expressions/ExpressionFactory.java index af3e98a9b..09980364a 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/expressions/ExpressionFactory.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/expressions/ExpressionFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,18 +13,18 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.expressions; +package org.openworkflow.sdk.impl.expressions; import io.cloudevents.CloudEventData; -import io.serverlessworkflow.api.types.TaskBase; -import io.serverlessworkflow.impl.WorkflowFilter; -import io.serverlessworkflow.impl.WorkflowModelFactory; -import io.serverlessworkflow.impl.WorkflowPredicate; -import io.serverlessworkflow.impl.WorkflowValueResolver; import java.time.OffsetDateTime; import java.util.Collection; import java.util.Map; import java.util.Optional; +import org.openworkflow.sdk.api.types.TaskBase; +import org.openworkflow.sdk.impl.WorkflowFilter; +import org.openworkflow.sdk.impl.WorkflowModelFactory; +import org.openworkflow.sdk.impl.WorkflowPredicate; +import org.openworkflow.sdk.impl.WorkflowValueResolver; public interface ExpressionFactory { diff --git a/impl/core/src/main/java/io/serverlessworkflow/impl/expressions/ExpressionUtils.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/expressions/ExpressionUtils.java similarity index 91% rename from impl/core/src/main/java/io/serverlessworkflow/impl/expressions/ExpressionUtils.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/expressions/ExpressionUtils.java index b91ac21cc..146a92c14 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/expressions/ExpressionUtils.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/expressions/ExpressionUtils.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.expressions; +package org.openworkflow.sdk.impl.expressions; public class ExpressionUtils { diff --git a/impl/core/src/main/java/io/serverlessworkflow/impl/expressions/ExpressionValidationException.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/expressions/ExpressionValidationException.java similarity index 87% rename from impl/core/src/main/java/io/serverlessworkflow/impl/expressions/ExpressionValidationException.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/expressions/ExpressionValidationException.java index 8dc1b4f2c..86d9c1194 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/expressions/ExpressionValidationException.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/expressions/ExpressionValidationException.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.expressions; +package org.openworkflow.sdk.impl.expressions; public class ExpressionValidationException extends RuntimeException { diff --git a/impl/core/src/main/java/io/serverlessworkflow/impl/expressions/ObjectExpression.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/expressions/ObjectExpression.java similarity index 72% rename from impl/core/src/main/java/io/serverlessworkflow/impl/expressions/ObjectExpression.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/expressions/ObjectExpression.java index 59126ac17..ef31c9714 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/expressions/ObjectExpression.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/expressions/ObjectExpression.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,11 +13,11 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.expressions; +package org.openworkflow.sdk.impl.expressions; -import io.serverlessworkflow.impl.TaskContext; -import io.serverlessworkflow.impl.WorkflowContext; -import io.serverlessworkflow.impl.WorkflowModel; +import org.openworkflow.sdk.impl.TaskContext; +import org.openworkflow.sdk.impl.WorkflowContext; +import org.openworkflow.sdk.impl.WorkflowModel; public interface ObjectExpression { Object eval(WorkflowContext workflowContext, TaskContext context, WorkflowModel model); diff --git a/impl/core/src/main/java/io/serverlessworkflow/impl/expressions/ObjectExpressionFactory.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/expressions/ObjectExpressionFactory.java similarity index 90% rename from impl/core/src/main/java/io/serverlessworkflow/impl/expressions/ObjectExpressionFactory.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/expressions/ObjectExpressionFactory.java index 0dc2e01be..ce162558e 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/expressions/ObjectExpressionFactory.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/expressions/ObjectExpressionFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,17 +13,17 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.expressions; - -import io.serverlessworkflow.api.types.TaskBase; -import io.serverlessworkflow.impl.TaskContext; -import io.serverlessworkflow.impl.WorkflowContext; -import io.serverlessworkflow.impl.WorkflowModel; -import io.serverlessworkflow.impl.WorkflowPredicate; -import io.serverlessworkflow.impl.WorkflowValueResolver; +package org.openworkflow.sdk.impl.expressions; + import java.util.Collection; import java.util.Map; import java.util.Optional; +import org.openworkflow.sdk.api.types.TaskBase; +import org.openworkflow.sdk.impl.TaskContext; +import org.openworkflow.sdk.impl.WorkflowContext; +import org.openworkflow.sdk.impl.WorkflowModel; +import org.openworkflow.sdk.impl.WorkflowPredicate; +import org.openworkflow.sdk.impl.WorkflowValueResolver; public abstract class ObjectExpressionFactory extends AbstractExpressionFactory { diff --git a/impl/core/src/main/java/io/serverlessworkflow/impl/expressions/ProxyCollection.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/expressions/ProxyCollection.java similarity index 92% rename from impl/core/src/main/java/io/serverlessworkflow/impl/expressions/ProxyCollection.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/expressions/ProxyCollection.java index c2518bfec..ac44a5a8b 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/expressions/ProxyCollection.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/expressions/ProxyCollection.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.expressions; +package org.openworkflow.sdk.impl.expressions; import java.util.Collection; import java.util.Iterator; diff --git a/impl/core/src/main/java/io/serverlessworkflow/impl/expressions/ProxyIterator.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/expressions/ProxyIterator.java similarity index 90% rename from impl/core/src/main/java/io/serverlessworkflow/impl/expressions/ProxyIterator.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/expressions/ProxyIterator.java index bd63c2c5b..8b46b8ac8 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/expressions/ProxyIterator.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/expressions/ProxyIterator.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.expressions; +package org.openworkflow.sdk.impl.expressions; import java.util.Iterator; import java.util.function.UnaryOperator; diff --git a/impl/core/src/main/java/io/serverlessworkflow/impl/expressions/ProxyMap.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/expressions/ProxyMap.java similarity index 96% rename from impl/core/src/main/java/io/serverlessworkflow/impl/expressions/ProxyMap.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/expressions/ProxyMap.java index 9ebfe2145..744eb9e36 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/expressions/ProxyMap.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/expressions/ProxyMap.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.expressions; +package org.openworkflow.sdk.impl.expressions; import java.util.Collection; import java.util.Iterator; diff --git a/impl/core/src/main/java/io/serverlessworkflow/impl/expressions/RuntimeDescriptor.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/expressions/RuntimeDescriptor.java similarity index 84% rename from impl/core/src/main/java/io/serverlessworkflow/impl/expressions/RuntimeDescriptor.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/expressions/RuntimeDescriptor.java index e9893ed85..7024dd56b 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/expressions/RuntimeDescriptor.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/expressions/RuntimeDescriptor.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.expressions; +package org.openworkflow.sdk.impl.expressions; import java.util.Map; diff --git a/impl/core/src/main/java/io/serverlessworkflow/impl/expressions/TaskDescriptor.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/expressions/TaskDescriptor.java similarity index 79% rename from impl/core/src/main/java/io/serverlessworkflow/impl/expressions/TaskDescriptor.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/expressions/TaskDescriptor.java index a49190027..ca81f6ce3 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/expressions/TaskDescriptor.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/expressions/TaskDescriptor.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,11 +13,11 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.expressions; +package org.openworkflow.sdk.impl.expressions; -import io.serverlessworkflow.api.types.TaskBase; -import io.serverlessworkflow.impl.TaskContext; -import io.serverlessworkflow.impl.WorkflowModel; +import org.openworkflow.sdk.api.types.TaskBase; +import org.openworkflow.sdk.impl.TaskContext; +import org.openworkflow.sdk.impl.WorkflowModel; public record TaskDescriptor( String name, diff --git a/impl/core/src/main/java/io/serverlessworkflow/impl/expressions/WorkflowDescriptor.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/expressions/WorkflowDescriptor.java similarity index 76% rename from impl/core/src/main/java/io/serverlessworkflow/impl/expressions/WorkflowDescriptor.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/expressions/WorkflowDescriptor.java index cf87cfbbf..8f73225b0 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/expressions/WorkflowDescriptor.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/expressions/WorkflowDescriptor.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,12 +13,12 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.expressions; +package org.openworkflow.sdk.impl.expressions; -import io.serverlessworkflow.api.types.TaskBase; -import io.serverlessworkflow.api.types.Workflow; -import io.serverlessworkflow.impl.WorkflowContext; -import io.serverlessworkflow.impl.WorkflowModel; +import org.openworkflow.sdk.api.types.TaskBase; +import org.openworkflow.sdk.api.types.Workflow; +import org.openworkflow.sdk.impl.WorkflowContext; +import org.openworkflow.sdk.impl.WorkflowModel; public record WorkflowDescriptor( String id, Workflow definition, WorkflowModel input, DateTimeDescriptor startedAt) { diff --git a/impl/core/src/main/java/io/serverlessworkflow/impl/lifecycle/EventType.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/lifecycle/EventType.java similarity index 89% rename from impl/core/src/main/java/io/serverlessworkflow/impl/lifecycle/EventType.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/lifecycle/EventType.java index 9d9d4028c..ce64985ee 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/lifecycle/EventType.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/lifecycle/EventType.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,9 +13,9 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.lifecycle; +package org.openworkflow.sdk.impl.lifecycle; -import io.serverlessworkflow.impl.LifecycleEvents; +import org.openworkflow.sdk.impl.LifecycleEvents; public enum EventType { TASK_STARTED(LifecycleEvents.TASK_STARTED), diff --git a/impl/core/src/main/java/io/serverlessworkflow/impl/lifecycle/TaskCancelledEvent.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/lifecycle/TaskCancelledEvent.java similarity index 78% rename from impl/core/src/main/java/io/serverlessworkflow/impl/lifecycle/TaskCancelledEvent.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/lifecycle/TaskCancelledEvent.java index 7bc143bc7..b3c250b8e 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/lifecycle/TaskCancelledEvent.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/lifecycle/TaskCancelledEvent.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,10 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.lifecycle; +package org.openworkflow.sdk.impl.lifecycle; -import io.serverlessworkflow.impl.TaskContext; -import io.serverlessworkflow.impl.WorkflowContext; +import org.openworkflow.sdk.impl.TaskContext; +import org.openworkflow.sdk.impl.WorkflowContext; public class TaskCancelledEvent extends TaskEvent { diff --git a/impl/core/src/main/java/io/serverlessworkflow/impl/lifecycle/TaskCompletedEvent.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/lifecycle/TaskCompletedEvent.java similarity index 78% rename from impl/core/src/main/java/io/serverlessworkflow/impl/lifecycle/TaskCompletedEvent.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/lifecycle/TaskCompletedEvent.java index 7be89af26..119138cea 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/lifecycle/TaskCompletedEvent.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/lifecycle/TaskCompletedEvent.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,10 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.lifecycle; +package org.openworkflow.sdk.impl.lifecycle; -import io.serverlessworkflow.impl.TaskContext; -import io.serverlessworkflow.impl.WorkflowContext; +import org.openworkflow.sdk.impl.TaskContext; +import org.openworkflow.sdk.impl.WorkflowContext; public class TaskCompletedEvent extends TaskEvent { diff --git a/impl/core/src/main/java/io/serverlessworkflow/impl/lifecycle/TaskEvent.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/lifecycle/TaskEvent.java similarity index 79% rename from impl/core/src/main/java/io/serverlessworkflow/impl/lifecycle/TaskEvent.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/lifecycle/TaskEvent.java index 10aa7e746..57c8a1314 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/lifecycle/TaskEvent.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/lifecycle/TaskEvent.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,10 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.lifecycle; +package org.openworkflow.sdk.impl.lifecycle; -import io.serverlessworkflow.impl.TaskContextData; -import io.serverlessworkflow.impl.WorkflowContextData; +import org.openworkflow.sdk.impl.TaskContextData; +import org.openworkflow.sdk.impl.WorkflowContextData; public abstract class TaskEvent extends WorkflowEvent { diff --git a/impl/core/src/main/java/io/serverlessworkflow/impl/lifecycle/TaskFailedEvent.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/lifecycle/TaskFailedEvent.java similarity index 81% rename from impl/core/src/main/java/io/serverlessworkflow/impl/lifecycle/TaskFailedEvent.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/lifecycle/TaskFailedEvent.java index 9cbcff613..4a20c7483 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/lifecycle/TaskFailedEvent.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/lifecycle/TaskFailedEvent.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,10 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.lifecycle; +package org.openworkflow.sdk.impl.lifecycle; -import io.serverlessworkflow.impl.TaskContext; -import io.serverlessworkflow.impl.WorkflowContext; +import org.openworkflow.sdk.impl.TaskContext; +import org.openworkflow.sdk.impl.WorkflowContext; public class TaskFailedEvent extends TaskEvent { diff --git a/impl/core/src/main/java/io/serverlessworkflow/impl/lifecycle/TaskResumedEvent.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/lifecycle/TaskResumedEvent.java similarity index 78% rename from impl/core/src/main/java/io/serverlessworkflow/impl/lifecycle/TaskResumedEvent.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/lifecycle/TaskResumedEvent.java index c0b7af01f..7447deed1 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/lifecycle/TaskResumedEvent.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/lifecycle/TaskResumedEvent.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,10 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.lifecycle; +package org.openworkflow.sdk.impl.lifecycle; -import io.serverlessworkflow.impl.TaskContext; -import io.serverlessworkflow.impl.WorkflowContext; +import org.openworkflow.sdk.impl.TaskContext; +import org.openworkflow.sdk.impl.WorkflowContext; public class TaskResumedEvent extends TaskEvent { diff --git a/impl/core/src/main/java/io/serverlessworkflow/impl/lifecycle/TaskRetriedEvent.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/lifecycle/TaskRetriedEvent.java similarity index 78% rename from impl/core/src/main/java/io/serverlessworkflow/impl/lifecycle/TaskRetriedEvent.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/lifecycle/TaskRetriedEvent.java index 86dd4c240..e7a38cf23 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/lifecycle/TaskRetriedEvent.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/lifecycle/TaskRetriedEvent.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,10 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.lifecycle; +package org.openworkflow.sdk.impl.lifecycle; -import io.serverlessworkflow.impl.TaskContext; -import io.serverlessworkflow.impl.WorkflowContext; +import org.openworkflow.sdk.impl.TaskContext; +import org.openworkflow.sdk.impl.WorkflowContext; public class TaskRetriedEvent extends TaskEvent { diff --git a/impl/core/src/main/java/io/serverlessworkflow/impl/lifecycle/TaskStartedEvent.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/lifecycle/TaskStartedEvent.java similarity index 78% rename from impl/core/src/main/java/io/serverlessworkflow/impl/lifecycle/TaskStartedEvent.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/lifecycle/TaskStartedEvent.java index 003346a40..f7c8ec9c0 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/lifecycle/TaskStartedEvent.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/lifecycle/TaskStartedEvent.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,10 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.lifecycle; +package org.openworkflow.sdk.impl.lifecycle; -import io.serverlessworkflow.impl.TaskContext; -import io.serverlessworkflow.impl.WorkflowContext; +import org.openworkflow.sdk.impl.TaskContext; +import org.openworkflow.sdk.impl.WorkflowContext; public class TaskStartedEvent extends TaskEvent { diff --git a/impl/core/src/main/java/io/serverlessworkflow/impl/lifecycle/TaskSuspendedEvent.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/lifecycle/TaskSuspendedEvent.java similarity index 78% rename from impl/core/src/main/java/io/serverlessworkflow/impl/lifecycle/TaskSuspendedEvent.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/lifecycle/TaskSuspendedEvent.java index 12ef15c88..c9d031446 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/lifecycle/TaskSuspendedEvent.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/lifecycle/TaskSuspendedEvent.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,10 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.lifecycle; +package org.openworkflow.sdk.impl.lifecycle; -import io.serverlessworkflow.impl.TaskContext; -import io.serverlessworkflow.impl.WorkflowContext; +import org.openworkflow.sdk.impl.TaskContext; +import org.openworkflow.sdk.impl.WorkflowContext; public class TaskSuspendedEvent extends TaskEvent { diff --git a/impl/core/src/main/java/io/serverlessworkflow/impl/lifecycle/TraceExecutionListener.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/lifecycle/TraceExecutionListener.java similarity index 96% rename from impl/core/src/main/java/io/serverlessworkflow/impl/lifecycle/TraceExecutionListener.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/lifecycle/TraceExecutionListener.java index 0793b14c0..b2f745527 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/lifecycle/TraceExecutionListener.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/lifecycle/TraceExecutionListener.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.lifecycle; +package org.openworkflow.sdk.impl.lifecycle; import org.slf4j.Logger; import org.slf4j.LoggerFactory; diff --git a/impl/core/src/main/java/io/serverlessworkflow/impl/lifecycle/WorkflowCancelledEvent.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/lifecycle/WorkflowCancelledEvent.java similarity index 82% rename from impl/core/src/main/java/io/serverlessworkflow/impl/lifecycle/WorkflowCancelledEvent.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/lifecycle/WorkflowCancelledEvent.java index 7185bc635..1e1d10adc 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/lifecycle/WorkflowCancelledEvent.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/lifecycle/WorkflowCancelledEvent.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,9 +13,9 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.lifecycle; +package org.openworkflow.sdk.impl.lifecycle; -import io.serverlessworkflow.impl.WorkflowContextData; +import org.openworkflow.sdk.impl.WorkflowContextData; public class WorkflowCancelledEvent extends WorkflowEvent { diff --git a/impl/core/src/main/java/io/serverlessworkflow/impl/lifecycle/WorkflowCompletedEvent.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/lifecycle/WorkflowCompletedEvent.java similarity index 80% rename from impl/core/src/main/java/io/serverlessworkflow/impl/lifecycle/WorkflowCompletedEvent.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/lifecycle/WorkflowCompletedEvent.java index b6630ff61..5d6209d2d 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/lifecycle/WorkflowCompletedEvent.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/lifecycle/WorkflowCompletedEvent.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,10 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.lifecycle; +package org.openworkflow.sdk.impl.lifecycle; -import io.serverlessworkflow.impl.WorkflowContextData; -import io.serverlessworkflow.impl.WorkflowModel; +import org.openworkflow.sdk.impl.WorkflowContextData; +import org.openworkflow.sdk.impl.WorkflowModel; public class WorkflowCompletedEvent extends WorkflowEvent { diff --git a/impl/core/src/main/java/io/serverlessworkflow/impl/lifecycle/WorkflowEvent.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/lifecycle/WorkflowEvent.java similarity index 85% rename from impl/core/src/main/java/io/serverlessworkflow/impl/lifecycle/WorkflowEvent.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/lifecycle/WorkflowEvent.java index 4a486e85e..c74f1ceac 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/lifecycle/WorkflowEvent.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/lifecycle/WorkflowEvent.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,10 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.lifecycle; +package org.openworkflow.sdk.impl.lifecycle; -import io.serverlessworkflow.impl.WorkflowContextData; import java.time.OffsetDateTime; +import org.openworkflow.sdk.impl.WorkflowContextData; public abstract class WorkflowEvent { diff --git a/impl/core/src/main/java/io/serverlessworkflow/impl/lifecycle/WorkflowExecutionCompletableListener.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/lifecycle/WorkflowExecutionCompletableListener.java similarity index 93% rename from impl/core/src/main/java/io/serverlessworkflow/impl/lifecycle/WorkflowExecutionCompletableListener.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/lifecycle/WorkflowExecutionCompletableListener.java index 4e83a9e77..94b13397b 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/lifecycle/WorkflowExecutionCompletableListener.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/lifecycle/WorkflowExecutionCompletableListener.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,10 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.lifecycle; +package org.openworkflow.sdk.impl.lifecycle; -import io.serverlessworkflow.impl.ServicePriority; import java.util.concurrent.CompletableFuture; +import org.openworkflow.sdk.impl.ServicePriority; public interface WorkflowExecutionCompletableListener extends AutoCloseable, ServicePriority { diff --git a/impl/core/src/main/java/io/serverlessworkflow/impl/lifecycle/WorkflowExecutionListener.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/lifecycle/WorkflowExecutionListener.java similarity index 90% rename from impl/core/src/main/java/io/serverlessworkflow/impl/lifecycle/WorkflowExecutionListener.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/lifecycle/WorkflowExecutionListener.java index bb63f06ae..47fb7fcd9 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/lifecycle/WorkflowExecutionListener.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/lifecycle/WorkflowExecutionListener.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,9 +13,9 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.lifecycle; +package org.openworkflow.sdk.impl.lifecycle; -import io.serverlessworkflow.impl.ServicePriority; +import org.openworkflow.sdk.impl.ServicePriority; public interface WorkflowExecutionListener extends AutoCloseable, ServicePriority { diff --git a/impl/core/src/main/java/io/serverlessworkflow/impl/lifecycle/WorkflowExecutionListenerAdapter.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/lifecycle/WorkflowExecutionListenerAdapter.java similarity index 97% rename from impl/core/src/main/java/io/serverlessworkflow/impl/lifecycle/WorkflowExecutionListenerAdapter.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/lifecycle/WorkflowExecutionListenerAdapter.java index f5cf47e98..e3bf79f6b 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/lifecycle/WorkflowExecutionListenerAdapter.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/lifecycle/WorkflowExecutionListenerAdapter.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.lifecycle; +package org.openworkflow.sdk.impl.lifecycle; import java.util.concurrent.CompletableFuture; diff --git a/impl/core/src/main/java/io/serverlessworkflow/impl/lifecycle/WorkflowFailedEvent.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/lifecycle/WorkflowFailedEvent.java similarity index 84% rename from impl/core/src/main/java/io/serverlessworkflow/impl/lifecycle/WorkflowFailedEvent.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/lifecycle/WorkflowFailedEvent.java index 05ee55951..d45736076 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/lifecycle/WorkflowFailedEvent.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/lifecycle/WorkflowFailedEvent.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,9 +13,9 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.lifecycle; +package org.openworkflow.sdk.impl.lifecycle; -import io.serverlessworkflow.impl.WorkflowContextData; +import org.openworkflow.sdk.impl.WorkflowContextData; public class WorkflowFailedEvent extends WorkflowEvent { diff --git a/impl/core/src/main/java/io/serverlessworkflow/impl/lifecycle/WorkflowResumedEvent.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/lifecycle/WorkflowResumedEvent.java similarity index 82% rename from impl/core/src/main/java/io/serverlessworkflow/impl/lifecycle/WorkflowResumedEvent.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/lifecycle/WorkflowResumedEvent.java index 116082f00..dc0146876 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/lifecycle/WorkflowResumedEvent.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/lifecycle/WorkflowResumedEvent.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,9 +13,9 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.lifecycle; +package org.openworkflow.sdk.impl.lifecycle; -import io.serverlessworkflow.impl.WorkflowContextData; +import org.openworkflow.sdk.impl.WorkflowContextData; public class WorkflowResumedEvent extends WorkflowEvent { diff --git a/impl/core/src/main/java/io/serverlessworkflow/impl/lifecycle/WorkflowStartedEvent.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/lifecycle/WorkflowStartedEvent.java similarity index 82% rename from impl/core/src/main/java/io/serverlessworkflow/impl/lifecycle/WorkflowStartedEvent.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/lifecycle/WorkflowStartedEvent.java index 9638eada1..901750a63 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/lifecycle/WorkflowStartedEvent.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/lifecycle/WorkflowStartedEvent.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,9 +13,9 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.lifecycle; +package org.openworkflow.sdk.impl.lifecycle; -import io.serverlessworkflow.impl.WorkflowContextData; +import org.openworkflow.sdk.impl.WorkflowContextData; public class WorkflowStartedEvent extends WorkflowEvent { diff --git a/impl/core/src/main/java/io/serverlessworkflow/impl/lifecycle/WorkflowStatusEvent.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/lifecycle/WorkflowStatusEvent.java similarity index 83% rename from impl/core/src/main/java/io/serverlessworkflow/impl/lifecycle/WorkflowStatusEvent.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/lifecycle/WorkflowStatusEvent.java index 0f882860d..a17dd8d55 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/lifecycle/WorkflowStatusEvent.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/lifecycle/WorkflowStatusEvent.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,10 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.lifecycle; +package org.openworkflow.sdk.impl.lifecycle; -import io.serverlessworkflow.impl.WorkflowContextData; -import io.serverlessworkflow.impl.WorkflowStatus; +import org.openworkflow.sdk.impl.WorkflowContextData; +import org.openworkflow.sdk.impl.WorkflowStatus; public class WorkflowStatusEvent extends WorkflowEvent { diff --git a/impl/core/src/main/java/io/serverlessworkflow/impl/lifecycle/WorkflowSuspendedEvent.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/lifecycle/WorkflowSuspendedEvent.java similarity index 82% rename from impl/core/src/main/java/io/serverlessworkflow/impl/lifecycle/WorkflowSuspendedEvent.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/lifecycle/WorkflowSuspendedEvent.java index bb6347147..9a90597c3 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/lifecycle/WorkflowSuspendedEvent.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/lifecycle/WorkflowSuspendedEvent.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,9 +13,9 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.lifecycle; +package org.openworkflow.sdk.impl.lifecycle; -import io.serverlessworkflow.impl.WorkflowContextData; +import org.openworkflow.sdk.impl.WorkflowContextData; public class WorkflowSuspendedEvent extends WorkflowEvent { diff --git a/impl/core/src/main/java/io/serverlessworkflow/impl/lifecycle/ce/AbstractLifeCyclePublisher.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/lifecycle/ce/AbstractLifeCyclePublisher.java similarity index 80% rename from impl/core/src/main/java/io/serverlessworkflow/impl/lifecycle/ce/AbstractLifeCyclePublisher.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/lifecycle/ce/AbstractLifeCyclePublisher.java index 24efd52c2..ffe1e6ad0 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/lifecycle/ce/AbstractLifeCyclePublisher.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/lifecycle/ce/AbstractLifeCyclePublisher.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,51 +13,51 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.lifecycle.ce; - -import static io.serverlessworkflow.impl.LifecycleEvents.APPLICATION_ID_EXTENSION; -import static io.serverlessworkflow.impl.LifecycleEvents.TASK_CANCELLED; -import static io.serverlessworkflow.impl.LifecycleEvents.TASK_COMPLETED; -import static io.serverlessworkflow.impl.LifecycleEvents.TASK_FAULTED; -import static io.serverlessworkflow.impl.LifecycleEvents.TASK_RESUMED; -import static io.serverlessworkflow.impl.LifecycleEvents.TASK_RETRIED; -import static io.serverlessworkflow.impl.LifecycleEvents.TASK_STARTED; -import static io.serverlessworkflow.impl.LifecycleEvents.TASK_SUSPENDED; -import static io.serverlessworkflow.impl.LifecycleEvents.WORKFLOW_CANCELLED; -import static io.serverlessworkflow.impl.LifecycleEvents.WORKFLOW_COMPLETED; -import static io.serverlessworkflow.impl.LifecycleEvents.WORKFLOW_FAULTED; -import static io.serverlessworkflow.impl.LifecycleEvents.WORKFLOW_RESUMED; -import static io.serverlessworkflow.impl.LifecycleEvents.WORKFLOW_STARTED; -import static io.serverlessworkflow.impl.LifecycleEvents.WORKFLOW_STATUS_CHANGED; -import static io.serverlessworkflow.impl.LifecycleEvents.WORKFLOW_SUSPENDED; +package org.openworkflow.sdk.impl.lifecycle.ce; + +import static org.openworkflow.sdk.impl.LifecycleEvents.APPLICATION_ID_EXTENSION; +import static org.openworkflow.sdk.impl.LifecycleEvents.TASK_CANCELLED; +import static org.openworkflow.sdk.impl.LifecycleEvents.TASK_COMPLETED; +import static org.openworkflow.sdk.impl.LifecycleEvents.TASK_FAULTED; +import static org.openworkflow.sdk.impl.LifecycleEvents.TASK_RESUMED; +import static org.openworkflow.sdk.impl.LifecycleEvents.TASK_RETRIED; +import static org.openworkflow.sdk.impl.LifecycleEvents.TASK_STARTED; +import static org.openworkflow.sdk.impl.LifecycleEvents.TASK_SUSPENDED; +import static org.openworkflow.sdk.impl.LifecycleEvents.WORKFLOW_CANCELLED; +import static org.openworkflow.sdk.impl.LifecycleEvents.WORKFLOW_COMPLETED; +import static org.openworkflow.sdk.impl.LifecycleEvents.WORKFLOW_FAULTED; +import static org.openworkflow.sdk.impl.LifecycleEvents.WORKFLOW_RESUMED; +import static org.openworkflow.sdk.impl.LifecycleEvents.WORKFLOW_STARTED; +import static org.openworkflow.sdk.impl.LifecycleEvents.WORKFLOW_STATUS_CHANGED; +import static org.openworkflow.sdk.impl.LifecycleEvents.WORKFLOW_SUSPENDED; import io.cloudevents.CloudEvent; import io.cloudevents.CloudEventData; import io.cloudevents.core.builder.CloudEventBuilder; import io.cloudevents.core.data.PojoCloudEventData; import io.cloudevents.core.data.PojoCloudEventData.ToBytes; -import io.serverlessworkflow.impl.WorkflowApplication; -import io.serverlessworkflow.impl.events.CloudEventUtils; -import io.serverlessworkflow.impl.lifecycle.TaskCancelledEvent; -import io.serverlessworkflow.impl.lifecycle.TaskCompletedEvent; -import io.serverlessworkflow.impl.lifecycle.TaskFailedEvent; -import io.serverlessworkflow.impl.lifecycle.TaskResumedEvent; -import io.serverlessworkflow.impl.lifecycle.TaskRetriedEvent; -import io.serverlessworkflow.impl.lifecycle.TaskStartedEvent; -import io.serverlessworkflow.impl.lifecycle.TaskSuspendedEvent; -import io.serverlessworkflow.impl.lifecycle.WorkflowCancelledEvent; -import io.serverlessworkflow.impl.lifecycle.WorkflowCompletedEvent; -import io.serverlessworkflow.impl.lifecycle.WorkflowEvent; -import io.serverlessworkflow.impl.lifecycle.WorkflowExecutionListener; -import io.serverlessworkflow.impl.lifecycle.WorkflowFailedEvent; -import io.serverlessworkflow.impl.lifecycle.WorkflowResumedEvent; -import io.serverlessworkflow.impl.lifecycle.WorkflowStartedEvent; -import io.serverlessworkflow.impl.lifecycle.WorkflowStatusEvent; -import io.serverlessworkflow.impl.lifecycle.WorkflowSuspendedEvent; import java.time.OffsetDateTime; import java.util.Collection; import java.util.Set; import java.util.function.Function; +import org.openworkflow.sdk.impl.WorkflowApplication; +import org.openworkflow.sdk.impl.events.CloudEventUtils; +import org.openworkflow.sdk.impl.lifecycle.TaskCancelledEvent; +import org.openworkflow.sdk.impl.lifecycle.TaskCompletedEvent; +import org.openworkflow.sdk.impl.lifecycle.TaskFailedEvent; +import org.openworkflow.sdk.impl.lifecycle.TaskResumedEvent; +import org.openworkflow.sdk.impl.lifecycle.TaskRetriedEvent; +import org.openworkflow.sdk.impl.lifecycle.TaskStartedEvent; +import org.openworkflow.sdk.impl.lifecycle.TaskSuspendedEvent; +import org.openworkflow.sdk.impl.lifecycle.WorkflowCancelledEvent; +import org.openworkflow.sdk.impl.lifecycle.WorkflowCompletedEvent; +import org.openworkflow.sdk.impl.lifecycle.WorkflowEvent; +import org.openworkflow.sdk.impl.lifecycle.WorkflowExecutionListener; +import org.openworkflow.sdk.impl.lifecycle.WorkflowFailedEvent; +import org.openworkflow.sdk.impl.lifecycle.WorkflowResumedEvent; +import org.openworkflow.sdk.impl.lifecycle.WorkflowStartedEvent; +import org.openworkflow.sdk.impl.lifecycle.WorkflowStatusEvent; +import org.openworkflow.sdk.impl.lifecycle.WorkflowSuspendedEvent; public abstract class AbstractLifeCyclePublisher implements WorkflowExecutionListener { diff --git a/impl/core/src/main/java/io/serverlessworkflow/impl/lifecycle/ce/DefaultLifeCycleCloudEventFactory.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/lifecycle/ce/DefaultLifeCycleCloudEventFactory.java similarity index 71% rename from impl/core/src/main/java/io/serverlessworkflow/impl/lifecycle/ce/DefaultLifeCycleCloudEventFactory.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/lifecycle/ce/DefaultLifeCycleCloudEventFactory.java index e2e3ce184..e7688d012 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/lifecycle/ce/DefaultLifeCycleCloudEventFactory.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/lifecycle/ce/DefaultLifeCycleCloudEventFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,24 +13,24 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.lifecycle.ce; +package org.openworkflow.sdk.impl.lifecycle.ce; import io.cloudevents.CloudEvent; import io.cloudevents.core.builder.CloudEventBuilder; -import io.serverlessworkflow.impl.lifecycle.TaskCancelledEvent; -import io.serverlessworkflow.impl.lifecycle.TaskCompletedEvent; -import io.serverlessworkflow.impl.lifecycle.TaskFailedEvent; -import io.serverlessworkflow.impl.lifecycle.TaskResumedEvent; -import io.serverlessworkflow.impl.lifecycle.TaskRetriedEvent; -import io.serverlessworkflow.impl.lifecycle.TaskStartedEvent; -import io.serverlessworkflow.impl.lifecycle.TaskSuspendedEvent; -import io.serverlessworkflow.impl.lifecycle.WorkflowCancelledEvent; -import io.serverlessworkflow.impl.lifecycle.WorkflowCompletedEvent; -import io.serverlessworkflow.impl.lifecycle.WorkflowFailedEvent; -import io.serverlessworkflow.impl.lifecycle.WorkflowResumedEvent; -import io.serverlessworkflow.impl.lifecycle.WorkflowStartedEvent; -import io.serverlessworkflow.impl.lifecycle.WorkflowStatusEvent; -import io.serverlessworkflow.impl.lifecycle.WorkflowSuspendedEvent; +import org.openworkflow.sdk.impl.lifecycle.TaskCancelledEvent; +import org.openworkflow.sdk.impl.lifecycle.TaskCompletedEvent; +import org.openworkflow.sdk.impl.lifecycle.TaskFailedEvent; +import org.openworkflow.sdk.impl.lifecycle.TaskResumedEvent; +import org.openworkflow.sdk.impl.lifecycle.TaskRetriedEvent; +import org.openworkflow.sdk.impl.lifecycle.TaskStartedEvent; +import org.openworkflow.sdk.impl.lifecycle.TaskSuspendedEvent; +import org.openworkflow.sdk.impl.lifecycle.WorkflowCancelledEvent; +import org.openworkflow.sdk.impl.lifecycle.WorkflowCompletedEvent; +import org.openworkflow.sdk.impl.lifecycle.WorkflowFailedEvent; +import org.openworkflow.sdk.impl.lifecycle.WorkflowResumedEvent; +import org.openworkflow.sdk.impl.lifecycle.WorkflowStartedEvent; +import org.openworkflow.sdk.impl.lifecycle.WorkflowStatusEvent; +import org.openworkflow.sdk.impl.lifecycle.WorkflowSuspendedEvent; public class DefaultLifeCycleCloudEventFactory implements WorkflowLifeCycleCloudEventFactory { diff --git a/impl/core/src/main/java/io/serverlessworkflow/impl/lifecycle/ce/InputOutputLifeCycleCloudEventFactory.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/lifecycle/ce/InputOutputLifeCycleCloudEventFactory.java similarity index 75% rename from impl/core/src/main/java/io/serverlessworkflow/impl/lifecycle/ce/InputOutputLifeCycleCloudEventFactory.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/lifecycle/ce/InputOutputLifeCycleCloudEventFactory.java index dbba242aa..cfe92a612 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/lifecycle/ce/InputOutputLifeCycleCloudEventFactory.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/lifecycle/ce/InputOutputLifeCycleCloudEventFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,12 +13,12 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.lifecycle.ce; +package org.openworkflow.sdk.impl.lifecycle.ce; -import io.serverlessworkflow.impl.lifecycle.TaskCompletedEvent; -import io.serverlessworkflow.impl.lifecycle.TaskStartedEvent; -import io.serverlessworkflow.impl.lifecycle.WorkflowCompletedEvent; -import io.serverlessworkflow.impl.lifecycle.WorkflowStartedEvent; +import org.openworkflow.sdk.impl.lifecycle.TaskCompletedEvent; +import org.openworkflow.sdk.impl.lifecycle.TaskStartedEvent; +import org.openworkflow.sdk.impl.lifecycle.WorkflowCompletedEvent; +import org.openworkflow.sdk.impl.lifecycle.WorkflowStartedEvent; public class InputOutputLifeCycleCloudEventFactory extends DefaultLifeCycleCloudEventFactory { diff --git a/impl/core/src/main/java/io/serverlessworkflow/impl/lifecycle/ce/TaskCEData.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/lifecycle/ce/TaskCEData.java similarity index 85% rename from impl/core/src/main/java/io/serverlessworkflow/impl/lifecycle/ce/TaskCEData.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/lifecycle/ce/TaskCEData.java index 9af7499ad..fcc93b54f 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/lifecycle/ce/TaskCEData.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/lifecycle/ce/TaskCEData.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,13 +13,13 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.lifecycle.ce; +package org.openworkflow.sdk.impl.lifecycle.ce; -import static io.serverlessworkflow.impl.lifecycle.ce.WorkflowCEData.id; -import static io.serverlessworkflow.impl.lifecycle.ce.WorkflowDefinitionCEData.ref; +import static org.openworkflow.sdk.impl.lifecycle.ce.WorkflowCEData.id; +import static org.openworkflow.sdk.impl.lifecycle.ce.WorkflowDefinitionCEData.ref; -import io.serverlessworkflow.impl.lifecycle.TaskEvent; import java.util.Objects; +import org.openworkflow.sdk.impl.lifecycle.TaskEvent; public class TaskCEData { diff --git a/impl/core/src/main/java/io/serverlessworkflow/impl/lifecycle/ce/TaskCancelledCEData.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/lifecycle/ce/TaskCancelledCEData.java similarity index 91% rename from impl/core/src/main/java/io/serverlessworkflow/impl/lifecycle/ce/TaskCancelledCEData.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/lifecycle/ce/TaskCancelledCEData.java index da5d4eae8..76bc75f8c 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/lifecycle/ce/TaskCancelledCEData.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/lifecycle/ce/TaskCancelledCEData.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,11 +13,11 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.lifecycle.ce; +package org.openworkflow.sdk.impl.lifecycle.ce; -import io.serverlessworkflow.impl.lifecycle.TaskCancelledEvent; import java.time.OffsetDateTime; import java.util.Objects; +import org.openworkflow.sdk.impl.lifecycle.TaskCancelledEvent; public class TaskCancelledCEData extends TaskCEData { private OffsetDateTime cancelledAt; diff --git a/impl/core/src/main/java/io/serverlessworkflow/impl/lifecycle/ce/TaskCompletedCEData.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/lifecycle/ce/TaskCompletedCEData.java similarity index 91% rename from impl/core/src/main/java/io/serverlessworkflow/impl/lifecycle/ce/TaskCompletedCEData.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/lifecycle/ce/TaskCompletedCEData.java index 1251df49c..f0ae437de 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/lifecycle/ce/TaskCompletedCEData.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/lifecycle/ce/TaskCompletedCEData.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,11 +13,11 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.lifecycle.ce; +package org.openworkflow.sdk.impl.lifecycle.ce; -import io.serverlessworkflow.impl.lifecycle.TaskCompletedEvent; import java.time.OffsetDateTime; import java.util.Objects; +import org.openworkflow.sdk.impl.lifecycle.TaskCompletedEvent; public class TaskCompletedCEData extends TaskCEData { diff --git a/impl/core/src/main/java/io/serverlessworkflow/impl/lifecycle/ce/TaskCompletedCEDataWithOutput.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/lifecycle/ce/TaskCompletedCEDataWithOutput.java similarity index 89% rename from impl/core/src/main/java/io/serverlessworkflow/impl/lifecycle/ce/TaskCompletedCEDataWithOutput.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/lifecycle/ce/TaskCompletedCEDataWithOutput.java index 5ffd05fec..ff2a4c132 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/lifecycle/ce/TaskCompletedCEDataWithOutput.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/lifecycle/ce/TaskCompletedCEDataWithOutput.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,10 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.lifecycle.ce; +package org.openworkflow.sdk.impl.lifecycle.ce; -import io.serverlessworkflow.impl.lifecycle.TaskCompletedEvent; import java.util.Objects; +import org.openworkflow.sdk.impl.lifecycle.TaskCompletedEvent; public class TaskCompletedCEDataWithOutput extends TaskCompletedCEData { diff --git a/impl/core/src/main/java/io/serverlessworkflow/impl/lifecycle/ce/TaskFailedCEData.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/lifecycle/ce/TaskFailedCEData.java similarity index 90% rename from impl/core/src/main/java/io/serverlessworkflow/impl/lifecycle/ce/TaskFailedCEData.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/lifecycle/ce/TaskFailedCEData.java index 688fe7f85..2eb3cd311 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/lifecycle/ce/TaskFailedCEData.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/lifecycle/ce/TaskFailedCEData.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,12 +13,12 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.lifecycle.ce; +package org.openworkflow.sdk.impl.lifecycle.ce; -import io.serverlessworkflow.impl.WorkflowError; -import io.serverlessworkflow.impl.lifecycle.TaskFailedEvent; import java.time.OffsetDateTime; import java.util.Objects; +import org.openworkflow.sdk.impl.WorkflowError; +import org.openworkflow.sdk.impl.lifecycle.TaskFailedEvent; public class TaskFailedCEData extends TaskCEData { private OffsetDateTime faultedAt; diff --git a/impl/core/src/main/java/io/serverlessworkflow/impl/lifecycle/ce/TaskResumedCEData.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/lifecycle/ce/TaskResumedCEData.java similarity index 91% rename from impl/core/src/main/java/io/serverlessworkflow/impl/lifecycle/ce/TaskResumedCEData.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/lifecycle/ce/TaskResumedCEData.java index 73fcf059f..cc05f69e4 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/lifecycle/ce/TaskResumedCEData.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/lifecycle/ce/TaskResumedCEData.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,11 +13,11 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.lifecycle.ce; +package org.openworkflow.sdk.impl.lifecycle.ce; -import io.serverlessworkflow.impl.lifecycle.TaskResumedEvent; import java.time.OffsetDateTime; import java.util.Objects; +import org.openworkflow.sdk.impl.lifecycle.TaskResumedEvent; public class TaskResumedCEData extends TaskCEData { private OffsetDateTime resumedAt; diff --git a/impl/core/src/main/java/io/serverlessworkflow/impl/lifecycle/ce/TaskRetriedCEData.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/lifecycle/ce/TaskRetriedCEData.java similarity index 91% rename from impl/core/src/main/java/io/serverlessworkflow/impl/lifecycle/ce/TaskRetriedCEData.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/lifecycle/ce/TaskRetriedCEData.java index 770ef4f5d..26ad7826b 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/lifecycle/ce/TaskRetriedCEData.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/lifecycle/ce/TaskRetriedCEData.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,11 +13,11 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.lifecycle.ce; +package org.openworkflow.sdk.impl.lifecycle.ce; -import io.serverlessworkflow.impl.lifecycle.TaskRetriedEvent; import java.time.OffsetDateTime; import java.util.Objects; +import org.openworkflow.sdk.impl.lifecycle.TaskRetriedEvent; public class TaskRetriedCEData extends TaskCEData { private OffsetDateTime retriedAt; diff --git a/impl/core/src/main/java/io/serverlessworkflow/impl/lifecycle/ce/TaskStartedCEData.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/lifecycle/ce/TaskStartedCEData.java similarity index 91% rename from impl/core/src/main/java/io/serverlessworkflow/impl/lifecycle/ce/TaskStartedCEData.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/lifecycle/ce/TaskStartedCEData.java index 875f01487..c92c93883 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/lifecycle/ce/TaskStartedCEData.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/lifecycle/ce/TaskStartedCEData.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,11 +13,11 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.lifecycle.ce; +package org.openworkflow.sdk.impl.lifecycle.ce; -import io.serverlessworkflow.impl.lifecycle.TaskStartedEvent; import java.time.OffsetDateTime; import java.util.Objects; +import org.openworkflow.sdk.impl.lifecycle.TaskStartedEvent; public class TaskStartedCEData extends TaskCEData { private OffsetDateTime startedAt; diff --git a/impl/core/src/main/java/io/serverlessworkflow/impl/lifecycle/ce/TaskStartedCEDataWithInput.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/lifecycle/ce/TaskStartedCEDataWithInput.java similarity index 88% rename from impl/core/src/main/java/io/serverlessworkflow/impl/lifecycle/ce/TaskStartedCEDataWithInput.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/lifecycle/ce/TaskStartedCEDataWithInput.java index 15cbb978c..7d3ef76d5 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/lifecycle/ce/TaskStartedCEDataWithInput.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/lifecycle/ce/TaskStartedCEDataWithInput.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,10 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.lifecycle.ce; +package org.openworkflow.sdk.impl.lifecycle.ce; -import io.serverlessworkflow.impl.lifecycle.TaskStartedEvent; import java.util.Objects; +import org.openworkflow.sdk.impl.lifecycle.TaskStartedEvent; public class TaskStartedCEDataWithInput extends TaskStartedCEData { private Object input; diff --git a/impl/core/src/main/java/io/serverlessworkflow/impl/lifecycle/ce/TaskSuspendedCEData.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/lifecycle/ce/TaskSuspendedCEData.java similarity index 91% rename from impl/core/src/main/java/io/serverlessworkflow/impl/lifecycle/ce/TaskSuspendedCEData.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/lifecycle/ce/TaskSuspendedCEData.java index 13594583c..3eb90f16d 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/lifecycle/ce/TaskSuspendedCEData.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/lifecycle/ce/TaskSuspendedCEData.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,11 +13,11 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.lifecycle.ce; +package org.openworkflow.sdk.impl.lifecycle.ce; -import io.serverlessworkflow.impl.lifecycle.TaskSuspendedEvent; import java.time.OffsetDateTime; import java.util.Objects; +import org.openworkflow.sdk.impl.lifecycle.TaskSuspendedEvent; public class TaskSuspendedCEData extends TaskCEData { diff --git a/impl/core/src/main/java/io/serverlessworkflow/impl/lifecycle/ce/WorkflowCEData.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/lifecycle/ce/WorkflowCEData.java similarity index 86% rename from impl/core/src/main/java/io/serverlessworkflow/impl/lifecycle/ce/WorkflowCEData.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/lifecycle/ce/WorkflowCEData.java index ba2fa60d1..597be9527 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/lifecycle/ce/WorkflowCEData.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/lifecycle/ce/WorkflowCEData.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,12 +13,12 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.lifecycle.ce; +package org.openworkflow.sdk.impl.lifecycle.ce; -import static io.serverlessworkflow.impl.lifecycle.ce.WorkflowDefinitionCEData.ref; +import static org.openworkflow.sdk.impl.lifecycle.ce.WorkflowDefinitionCEData.ref; -import io.serverlessworkflow.impl.lifecycle.WorkflowEvent; import java.util.Objects; +import org.openworkflow.sdk.impl.lifecycle.WorkflowEvent; public class WorkflowCEData { diff --git a/impl/core/src/main/java/io/serverlessworkflow/impl/lifecycle/ce/WorkflowCancelledCEData.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/lifecycle/ce/WorkflowCancelledCEData.java similarity index 91% rename from impl/core/src/main/java/io/serverlessworkflow/impl/lifecycle/ce/WorkflowCancelledCEData.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/lifecycle/ce/WorkflowCancelledCEData.java index ff94c92fb..883194a26 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/lifecycle/ce/WorkflowCancelledCEData.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/lifecycle/ce/WorkflowCancelledCEData.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,11 +13,11 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.lifecycle.ce; +package org.openworkflow.sdk.impl.lifecycle.ce; -import io.serverlessworkflow.impl.lifecycle.WorkflowCancelledEvent; import java.time.OffsetDateTime; import java.util.Objects; +import org.openworkflow.sdk.impl.lifecycle.WorkflowCancelledEvent; public class WorkflowCancelledCEData extends WorkflowCEData { private OffsetDateTime cancelledAt; diff --git a/impl/core/src/main/java/io/serverlessworkflow/impl/lifecycle/ce/WorkflowCompletedCEData.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/lifecycle/ce/WorkflowCompletedCEData.java similarity index 91% rename from impl/core/src/main/java/io/serverlessworkflow/impl/lifecycle/ce/WorkflowCompletedCEData.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/lifecycle/ce/WorkflowCompletedCEData.java index 8b8b740f6..7c63dc1c8 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/lifecycle/ce/WorkflowCompletedCEData.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/lifecycle/ce/WorkflowCompletedCEData.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,11 +13,11 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.lifecycle.ce; +package org.openworkflow.sdk.impl.lifecycle.ce; -import io.serverlessworkflow.impl.lifecycle.WorkflowCompletedEvent; import java.time.OffsetDateTime; import java.util.Objects; +import org.openworkflow.sdk.impl.lifecycle.WorkflowCompletedEvent; public class WorkflowCompletedCEData extends WorkflowCEData { public WorkflowCompletedCEData(WorkflowCompletedEvent ev) { diff --git a/impl/core/src/main/java/io/serverlessworkflow/impl/lifecycle/ce/WorkflowCompletedCEDataWithOutput.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/lifecycle/ce/WorkflowCompletedCEDataWithOutput.java similarity index 88% rename from impl/core/src/main/java/io/serverlessworkflow/impl/lifecycle/ce/WorkflowCompletedCEDataWithOutput.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/lifecycle/ce/WorkflowCompletedCEDataWithOutput.java index 20040d747..089915941 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/lifecycle/ce/WorkflowCompletedCEDataWithOutput.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/lifecycle/ce/WorkflowCompletedCEDataWithOutput.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,10 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.lifecycle.ce; +package org.openworkflow.sdk.impl.lifecycle.ce; -import io.serverlessworkflow.impl.lifecycle.WorkflowCompletedEvent; import java.util.Objects; +import org.openworkflow.sdk.impl.lifecycle.WorkflowCompletedEvent; public class WorkflowCompletedCEDataWithOutput extends WorkflowCompletedCEData { diff --git a/impl/core/src/main/java/io/serverlessworkflow/impl/lifecycle/ce/WorkflowDefinitionCEData.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/lifecycle/ce/WorkflowDefinitionCEData.java similarity index 78% rename from impl/core/src/main/java/io/serverlessworkflow/impl/lifecycle/ce/WorkflowDefinitionCEData.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/lifecycle/ce/WorkflowDefinitionCEData.java index 62e7e3dfc..d7cbf3ffb 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/lifecycle/ce/WorkflowDefinitionCEData.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/lifecycle/ce/WorkflowDefinitionCEData.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,10 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.lifecycle.ce; +package org.openworkflow.sdk.impl.lifecycle.ce; -import io.serverlessworkflow.impl.WorkflowDefinitionId; -import io.serverlessworkflow.impl.lifecycle.WorkflowEvent; +import org.openworkflow.sdk.impl.WorkflowDefinitionId; +import org.openworkflow.sdk.impl.lifecycle.WorkflowEvent; public record WorkflowDefinitionCEData(String namespace, String name, String version) { diff --git a/impl/core/src/main/java/io/serverlessworkflow/impl/lifecycle/ce/WorkflowFailedCEData.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/lifecycle/ce/WorkflowFailedCEData.java similarity index 90% rename from impl/core/src/main/java/io/serverlessworkflow/impl/lifecycle/ce/WorkflowFailedCEData.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/lifecycle/ce/WorkflowFailedCEData.java index 1efc05c3f..921fb509e 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/lifecycle/ce/WorkflowFailedCEData.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/lifecycle/ce/WorkflowFailedCEData.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,12 +13,12 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.lifecycle.ce; +package org.openworkflow.sdk.impl.lifecycle.ce; -import io.serverlessworkflow.impl.WorkflowError; -import io.serverlessworkflow.impl.lifecycle.WorkflowFailedEvent; import java.time.OffsetDateTime; import java.util.Objects; +import org.openworkflow.sdk.impl.WorkflowError; +import org.openworkflow.sdk.impl.lifecycle.WorkflowFailedEvent; public class WorkflowFailedCEData extends WorkflowCEData { diff --git a/impl/core/src/main/java/io/serverlessworkflow/impl/lifecycle/ce/WorkflowLifeCycleCloudEventFactory.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/lifecycle/ce/WorkflowLifeCycleCloudEventFactory.java similarity index 59% rename from impl/core/src/main/java/io/serverlessworkflow/impl/lifecycle/ce/WorkflowLifeCycleCloudEventFactory.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/lifecycle/ce/WorkflowLifeCycleCloudEventFactory.java index 32d074022..0983ad134 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/lifecycle/ce/WorkflowLifeCycleCloudEventFactory.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/lifecycle/ce/WorkflowLifeCycleCloudEventFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,24 +13,24 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.lifecycle.ce; +package org.openworkflow.sdk.impl.lifecycle.ce; import io.cloudevents.CloudEvent; import io.cloudevents.core.builder.CloudEventBuilder; -import io.serverlessworkflow.impl.lifecycle.TaskCancelledEvent; -import io.serverlessworkflow.impl.lifecycle.TaskCompletedEvent; -import io.serverlessworkflow.impl.lifecycle.TaskFailedEvent; -import io.serverlessworkflow.impl.lifecycle.TaskResumedEvent; -import io.serverlessworkflow.impl.lifecycle.TaskRetriedEvent; -import io.serverlessworkflow.impl.lifecycle.TaskStartedEvent; -import io.serverlessworkflow.impl.lifecycle.TaskSuspendedEvent; -import io.serverlessworkflow.impl.lifecycle.WorkflowCancelledEvent; -import io.serverlessworkflow.impl.lifecycle.WorkflowCompletedEvent; -import io.serverlessworkflow.impl.lifecycle.WorkflowFailedEvent; -import io.serverlessworkflow.impl.lifecycle.WorkflowResumedEvent; -import io.serverlessworkflow.impl.lifecycle.WorkflowStartedEvent; -import io.serverlessworkflow.impl.lifecycle.WorkflowStatusEvent; -import io.serverlessworkflow.impl.lifecycle.WorkflowSuspendedEvent; +import org.openworkflow.sdk.impl.lifecycle.TaskCancelledEvent; +import org.openworkflow.sdk.impl.lifecycle.TaskCompletedEvent; +import org.openworkflow.sdk.impl.lifecycle.TaskFailedEvent; +import org.openworkflow.sdk.impl.lifecycle.TaskResumedEvent; +import org.openworkflow.sdk.impl.lifecycle.TaskRetriedEvent; +import org.openworkflow.sdk.impl.lifecycle.TaskStartedEvent; +import org.openworkflow.sdk.impl.lifecycle.TaskSuspendedEvent; +import org.openworkflow.sdk.impl.lifecycle.WorkflowCancelledEvent; +import org.openworkflow.sdk.impl.lifecycle.WorkflowCompletedEvent; +import org.openworkflow.sdk.impl.lifecycle.WorkflowFailedEvent; +import org.openworkflow.sdk.impl.lifecycle.WorkflowResumedEvent; +import org.openworkflow.sdk.impl.lifecycle.WorkflowStartedEvent; +import org.openworkflow.sdk.impl.lifecycle.WorkflowStatusEvent; +import org.openworkflow.sdk.impl.lifecycle.WorkflowSuspendedEvent; public interface WorkflowLifeCycleCloudEventFactory { diff --git a/impl/core/src/main/java/io/serverlessworkflow/impl/lifecycle/ce/WorkflowResumedCEData.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/lifecycle/ce/WorkflowResumedCEData.java similarity index 91% rename from impl/core/src/main/java/io/serverlessworkflow/impl/lifecycle/ce/WorkflowResumedCEData.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/lifecycle/ce/WorkflowResumedCEData.java index cab8d0308..d3550bae8 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/lifecycle/ce/WorkflowResumedCEData.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/lifecycle/ce/WorkflowResumedCEData.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,11 +13,11 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.lifecycle.ce; +package org.openworkflow.sdk.impl.lifecycle.ce; -import io.serverlessworkflow.impl.lifecycle.WorkflowResumedEvent; import java.time.OffsetDateTime; import java.util.Objects; +import org.openworkflow.sdk.impl.lifecycle.WorkflowResumedEvent; public class WorkflowResumedCEData extends WorkflowCEData { private OffsetDateTime resumedAt; diff --git a/impl/core/src/main/java/io/serverlessworkflow/impl/lifecycle/ce/WorkflowStartedCEData.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/lifecycle/ce/WorkflowStartedCEData.java similarity index 91% rename from impl/core/src/main/java/io/serverlessworkflow/impl/lifecycle/ce/WorkflowStartedCEData.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/lifecycle/ce/WorkflowStartedCEData.java index ee8c90c96..3ee199743 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/lifecycle/ce/WorkflowStartedCEData.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/lifecycle/ce/WorkflowStartedCEData.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,11 +13,11 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.lifecycle.ce; +package org.openworkflow.sdk.impl.lifecycle.ce; -import io.serverlessworkflow.impl.lifecycle.WorkflowStartedEvent; import java.time.OffsetDateTime; import java.util.Objects; +import org.openworkflow.sdk.impl.lifecycle.WorkflowStartedEvent; public class WorkflowStartedCEData extends WorkflowCEData { private OffsetDateTime startedAt; diff --git a/impl/core/src/main/java/io/serverlessworkflow/impl/lifecycle/ce/WorkflowStartedCEDataWithInput.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/lifecycle/ce/WorkflowStartedCEDataWithInput.java similarity index 89% rename from impl/core/src/main/java/io/serverlessworkflow/impl/lifecycle/ce/WorkflowStartedCEDataWithInput.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/lifecycle/ce/WorkflowStartedCEDataWithInput.java index 5eb228655..acb5ea812 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/lifecycle/ce/WorkflowStartedCEDataWithInput.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/lifecycle/ce/WorkflowStartedCEDataWithInput.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,10 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.lifecycle.ce; +package org.openworkflow.sdk.impl.lifecycle.ce; -import io.serverlessworkflow.impl.lifecycle.WorkflowStartedEvent; import java.util.Objects; +import org.openworkflow.sdk.impl.lifecycle.WorkflowStartedEvent; public class WorkflowStartedCEDataWithInput extends WorkflowStartedCEData { diff --git a/impl/core/src/main/java/io/serverlessworkflow/impl/lifecycle/ce/WorkflowStatusCEDataEvent.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/lifecycle/ce/WorkflowStatusCEDataEvent.java similarity index 90% rename from impl/core/src/main/java/io/serverlessworkflow/impl/lifecycle/ce/WorkflowStatusCEDataEvent.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/lifecycle/ce/WorkflowStatusCEDataEvent.java index f772d086d..b01d47a52 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/lifecycle/ce/WorkflowStatusCEDataEvent.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/lifecycle/ce/WorkflowStatusCEDataEvent.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,12 +13,12 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.lifecycle.ce; +package org.openworkflow.sdk.impl.lifecycle.ce; -import io.serverlessworkflow.impl.WorkflowStatus; -import io.serverlessworkflow.impl.lifecycle.WorkflowStatusEvent; import java.time.OffsetDateTime; import java.util.Objects; +import org.openworkflow.sdk.impl.WorkflowStatus; +import org.openworkflow.sdk.impl.lifecycle.WorkflowStatusEvent; public class WorkflowStatusCEDataEvent extends WorkflowCEData { private OffsetDateTime updatedAt; diff --git a/impl/core/src/main/java/io/serverlessworkflow/impl/lifecycle/ce/WorkflowSuspendedCEData.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/lifecycle/ce/WorkflowSuspendedCEData.java similarity index 91% rename from impl/core/src/main/java/io/serverlessworkflow/impl/lifecycle/ce/WorkflowSuspendedCEData.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/lifecycle/ce/WorkflowSuspendedCEData.java index 6186666db..1e302670c 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/lifecycle/ce/WorkflowSuspendedCEData.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/lifecycle/ce/WorkflowSuspendedCEData.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,11 +13,11 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.lifecycle.ce; +package org.openworkflow.sdk.impl.lifecycle.ce; -import io.serverlessworkflow.impl.lifecycle.WorkflowSuspendedEvent; import java.time.OffsetDateTime; import java.util.Objects; +import org.openworkflow.sdk.impl.lifecycle.WorkflowSuspendedEvent; public class WorkflowSuspendedCEData extends WorkflowCEData { private OffsetDateTime suspendedAt; diff --git a/impl/core/src/main/java/io/serverlessworkflow/impl/marshaller/AbstractInputBuffer.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/marshaller/AbstractInputBuffer.java similarity index 91% rename from impl/core/src/main/java/io/serverlessworkflow/impl/marshaller/AbstractInputBuffer.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/marshaller/AbstractInputBuffer.java index d3379b2f3..08e44ec67 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/marshaller/AbstractInputBuffer.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/marshaller/AbstractInputBuffer.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,9 +13,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.marshaller; +package org.openworkflow.sdk.impl.marshaller; -import java.net.URI; import java.time.Instant; import java.util.ArrayList; import java.util.Collection; @@ -127,7 +126,10 @@ public Object readObject() { protected Class readClass() { String className = readString(); try { - return Class.forName(className); + return Class.forName( + className.startsWith("io.serverlessworkflow.") + ? className.replaceFirst("io.serverlessworkflow.", "org.openworkflow.sdk.") + : className); } catch (ClassNotFoundException ex) { throw new IllegalStateException(ex); } diff --git a/impl/core/src/main/java/io/serverlessworkflow/impl/marshaller/AbstractOutputBuffer.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/marshaller/AbstractOutputBuffer.java similarity index 96% rename from impl/core/src/main/java/io/serverlessworkflow/impl/marshaller/AbstractOutputBuffer.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/marshaller/AbstractOutputBuffer.java index 1b943d876..c90134521 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/marshaller/AbstractOutputBuffer.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/marshaller/AbstractOutputBuffer.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,15 +13,15 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.marshaller; +package org.openworkflow.sdk.impl.marshaller; -import io.serverlessworkflow.impl.WorkflowModel; import java.net.URI; import java.time.Instant; import java.time.OffsetDateTime; import java.util.Collection; import java.util.Map; import java.util.concurrent.ConcurrentHashMap; +import org.openworkflow.sdk.impl.WorkflowModel; public abstract class AbstractOutputBuffer implements WorkflowOutputBuffer { diff --git a/impl/core/src/main/java/io/serverlessworkflow/impl/marshaller/CustomObjectMarshaller.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/marshaller/CustomObjectMarshaller.java similarity index 82% rename from impl/core/src/main/java/io/serverlessworkflow/impl/marshaller/CustomObjectMarshaller.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/marshaller/CustomObjectMarshaller.java index 23e10287b..b383724e7 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/marshaller/CustomObjectMarshaller.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/marshaller/CustomObjectMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,9 +13,9 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.marshaller; +package org.openworkflow.sdk.impl.marshaller; -import io.serverlessworkflow.impl.ServicePriority; +import org.openworkflow.sdk.impl.ServicePriority; public interface CustomObjectMarshaller extends ServicePriority { void write(WorkflowOutputBuffer buffer, T object); diff --git a/impl/core/src/main/java/io/serverlessworkflow/impl/marshaller/DefaultBufferFactory.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/marshaller/DefaultBufferFactory.java similarity index 93% rename from impl/core/src/main/java/io/serverlessworkflow/impl/marshaller/DefaultBufferFactory.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/marshaller/DefaultBufferFactory.java index 5fbc7efa3..d477b1b1d 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/marshaller/DefaultBufferFactory.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/marshaller/DefaultBufferFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.marshaller; +package org.openworkflow.sdk.impl.marshaller; import java.io.InputStream; import java.io.OutputStream; diff --git a/impl/core/src/main/java/io/serverlessworkflow/impl/marshaller/DefaultInputBuffer.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/marshaller/DefaultInputBuffer.java similarity index 95% rename from impl/core/src/main/java/io/serverlessworkflow/impl/marshaller/DefaultInputBuffer.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/marshaller/DefaultInputBuffer.java index ac89fbe0d..ed37644c1 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/marshaller/DefaultInputBuffer.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/marshaller/DefaultInputBuffer.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.marshaller; +package org.openworkflow.sdk.impl.marshaller; import java.io.DataInputStream; import java.io.IOException; diff --git a/impl/core/src/main/java/io/serverlessworkflow/impl/marshaller/DefaultOutputBuffer.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/marshaller/DefaultOutputBuffer.java similarity index 96% rename from impl/core/src/main/java/io/serverlessworkflow/impl/marshaller/DefaultOutputBuffer.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/marshaller/DefaultOutputBuffer.java index 27b19f885..4af88d977 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/marshaller/DefaultOutputBuffer.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/marshaller/DefaultOutputBuffer.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.marshaller; +package org.openworkflow.sdk.impl.marshaller; import java.io.DataOutputStream; import java.io.IOException; diff --git a/impl/core/src/main/java/io/serverlessworkflow/impl/marshaller/MarshallingUtils.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/marshaller/MarshallingUtils.java similarity index 98% rename from impl/core/src/main/java/io/serverlessworkflow/impl/marshaller/MarshallingUtils.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/marshaller/MarshallingUtils.java index c765798fe..f396df5d7 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/marshaller/MarshallingUtils.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/marshaller/MarshallingUtils.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,11 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.marshaller; +package org.openworkflow.sdk.impl.marshaller; import io.cloudevents.CloudEvent; import io.cloudevents.core.builder.CloudEventBuilder; -import io.serverlessworkflow.impl.WorkflowModel; import java.io.ByteArrayInputStream; import java.io.ByteArrayOutputStream; import java.io.IOException; @@ -32,6 +31,7 @@ import java.util.Set; import java.util.function.BiConsumer; import java.util.function.Function; +import org.openworkflow.sdk.impl.WorkflowModel; import org.slf4j.Logger; import org.slf4j.LoggerFactory; diff --git a/impl/core/src/main/java/io/serverlessworkflow/impl/marshaller/TaskStatus.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/marshaller/TaskStatus.java similarity index 83% rename from impl/core/src/main/java/io/serverlessworkflow/impl/marshaller/TaskStatus.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/marshaller/TaskStatus.java index 74bdbfc3d..37f9da80f 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/marshaller/TaskStatus.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/marshaller/TaskStatus.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.marshaller; +package org.openworkflow.sdk.impl.marshaller; public enum TaskStatus { COMPLETED, diff --git a/impl/core/src/main/java/io/serverlessworkflow/impl/marshaller/Type.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/marshaller/Type.java similarity index 86% rename from impl/core/src/main/java/io/serverlessworkflow/impl/marshaller/Type.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/marshaller/Type.java index b11570a69..65e41f72c 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/marshaller/Type.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/marshaller/Type.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.marshaller; +package org.openworkflow.sdk.impl.marshaller; enum Type { BYTE, diff --git a/impl/core/src/main/java/io/serverlessworkflow/impl/marshaller/WorkflowBufferFactory.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/marshaller/WorkflowBufferFactory.java similarity index 86% rename from impl/core/src/main/java/io/serverlessworkflow/impl/marshaller/WorkflowBufferFactory.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/marshaller/WorkflowBufferFactory.java index 78b27c2bd..cede12be8 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/marshaller/WorkflowBufferFactory.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/marshaller/WorkflowBufferFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.marshaller; +package org.openworkflow.sdk.impl.marshaller; import java.io.InputStream; import java.io.OutputStream; diff --git a/impl/core/src/main/java/io/serverlessworkflow/impl/marshaller/WorkflowInputBuffer.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/marshaller/WorkflowInputBuffer.java similarity index 92% rename from impl/core/src/main/java/io/serverlessworkflow/impl/marshaller/WorkflowInputBuffer.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/marshaller/WorkflowInputBuffer.java index 53a600e95..87cad598b 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/marshaller/WorkflowInputBuffer.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/marshaller/WorkflowInputBuffer.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.marshaller; +package org.openworkflow.sdk.impl.marshaller; import java.io.Closeable; import java.net.URI; diff --git a/impl/core/src/main/java/io/serverlessworkflow/impl/marshaller/WorkflowOutputBuffer.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/marshaller/WorkflowOutputBuffer.java similarity index 93% rename from impl/core/src/main/java/io/serverlessworkflow/impl/marshaller/WorkflowOutputBuffer.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/marshaller/WorkflowOutputBuffer.java index 63d6b2b6b..61dfd34b4 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/marshaller/WorkflowOutputBuffer.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/marshaller/WorkflowOutputBuffer.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.marshaller; +package org.openworkflow.sdk.impl.marshaller; import java.net.URI; import java.time.Instant; diff --git a/impl/core/src/main/java/io/serverlessworkflow/impl/resources/CachedResource.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/resources/CachedResource.java similarity index 84% rename from impl/core/src/main/java/io/serverlessworkflow/impl/resources/CachedResource.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/resources/CachedResource.java index 10e891885..c0e201cd1 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/resources/CachedResource.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/resources/CachedResource.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.resources; +package org.openworkflow.sdk.impl.resources; import java.time.Instant; diff --git a/impl/core/src/main/java/io/serverlessworkflow/impl/resources/ClasspathResource.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/resources/ClasspathResource.java similarity index 92% rename from impl/core/src/main/java/io/serverlessworkflow/impl/resources/ClasspathResource.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/resources/ClasspathResource.java index 1efeaee45..0fa344685 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/resources/ClasspathResource.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/resources/ClasspathResource.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.resources; +package org.openworkflow.sdk.impl.resources; import java.io.IOException; import java.io.InputStream; diff --git a/impl/core/src/main/java/io/serverlessworkflow/impl/resources/DefaultResourceLoader.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/resources/DefaultResourceLoader.java similarity index 93% rename from impl/core/src/main/java/io/serverlessworkflow/impl/resources/DefaultResourceLoader.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/resources/DefaultResourceLoader.java index c69373aa4..00857854c 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/resources/DefaultResourceLoader.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/resources/DefaultResourceLoader.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,9 +13,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.resources; +package org.openworkflow.sdk.impl.resources; -import io.serverlessworkflow.impl.WorkflowApplication; import java.net.MalformedURLException; import java.net.URI; import java.nio.file.Path; @@ -24,6 +23,7 @@ import java.util.Optional; import java.util.concurrent.ConcurrentHashMap; import java.util.function.Function; +import org.openworkflow.sdk.impl.WorkflowApplication; public class DefaultResourceLoader extends ResourceLoader { diff --git a/impl/core/src/main/java/io/serverlessworkflow/impl/resources/DefaultResourceLoaderFactory.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/resources/DefaultResourceLoaderFactory.java similarity index 85% rename from impl/core/src/main/java/io/serverlessworkflow/impl/resources/DefaultResourceLoaderFactory.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/resources/DefaultResourceLoaderFactory.java index 5bed3c40a..3199c4168 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/resources/DefaultResourceLoaderFactory.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/resources/DefaultResourceLoaderFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,10 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.resources; +package org.openworkflow.sdk.impl.resources; -import io.serverlessworkflow.impl.WorkflowApplication; import java.nio.file.Path; +import org.openworkflow.sdk.impl.WorkflowApplication; public class DefaultResourceLoaderFactory implements ResourceLoaderFactory { diff --git a/impl/core/src/main/java/io/serverlessworkflow/impl/resources/ExternalResourceHandler.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/resources/ExternalResourceHandler.java similarity index 87% rename from impl/core/src/main/java/io/serverlessworkflow/impl/resources/ExternalResourceHandler.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/resources/ExternalResourceHandler.java index f10f4c195..74cffbe98 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/resources/ExternalResourceHandler.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/resources/ExternalResourceHandler.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.resources; +package org.openworkflow.sdk.impl.resources; import java.io.IOException; import java.io.InputStream; diff --git a/impl/core/src/main/java/io/serverlessworkflow/impl/resources/FileResource.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/resources/FileResource.java similarity index 93% rename from impl/core/src/main/java/io/serverlessworkflow/impl/resources/FileResource.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/resources/FileResource.java index 08110959d..72b0dc4aa 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/resources/FileResource.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/resources/FileResource.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.resources; +package org.openworkflow.sdk.impl.resources; import java.io.IOException; import java.io.InputStream; diff --git a/impl/core/src/main/java/io/serverlessworkflow/impl/resources/GitHubHelper.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/resources/GitHubHelper.java similarity index 91% rename from impl/core/src/main/java/io/serverlessworkflow/impl/resources/GitHubHelper.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/resources/GitHubHelper.java index e0e52b843..d57f17892 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/resources/GitHubHelper.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/resources/GitHubHelper.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.resources; +package org.openworkflow.sdk.impl.resources; import java.io.UncheckedIOException; import java.net.MalformedURLException; diff --git a/impl/core/src/main/java/io/serverlessworkflow/impl/resources/HttpResource.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/resources/HttpResource.java similarity index 93% rename from impl/core/src/main/java/io/serverlessworkflow/impl/resources/HttpResource.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/resources/HttpResource.java index 434b38634..4a80859d0 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/resources/HttpResource.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/resources/HttpResource.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,9 +13,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.resources; +package org.openworkflow.sdk.impl.resources; -import io.serverlessworkflow.impl.auth.AuthUtils; import java.io.IOException; import java.io.InputStream; import java.io.UncheckedIOException; @@ -25,6 +24,7 @@ import java.time.Instant; import java.util.Objects; import java.util.Optional; +import org.openworkflow.sdk.impl.auth.AuthUtils; public class HttpResource implements ExternalResourceHandler { diff --git a/impl/core/src/main/java/io/serverlessworkflow/impl/resources/ResourceLoader.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/resources/ResourceLoader.java similarity index 85% rename from impl/core/src/main/java/io/serverlessworkflow/impl/resources/ResourceLoader.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/resources/ResourceLoader.java index 18db10991..346291c32 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/resources/ResourceLoader.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/resources/ResourceLoader.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,24 +13,24 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.resources; - -import static io.serverlessworkflow.impl.WorkflowUtils.getURISupplier; - -import io.serverlessworkflow.api.types.Endpoint; -import io.serverlessworkflow.api.types.EndpointUri; -import io.serverlessworkflow.api.types.ExternalResource; -import io.serverlessworkflow.api.types.UriTemplate; -import io.serverlessworkflow.impl.TaskContext; -import io.serverlessworkflow.impl.WorkflowApplication; -import io.serverlessworkflow.impl.WorkflowContext; -import io.serverlessworkflow.impl.WorkflowModel; -import io.serverlessworkflow.impl.WorkflowValueResolver; -import io.serverlessworkflow.impl.auth.AuthUtils; -import io.serverlessworkflow.impl.expressions.ExpressionDescriptor; +package org.openworkflow.sdk.impl.resources; + +import static org.openworkflow.sdk.impl.WorkflowUtils.getURISupplier; + import java.net.URI; import java.util.Optional; import java.util.function.Function; +import org.openworkflow.sdk.api.types.Endpoint; +import org.openworkflow.sdk.api.types.EndpointUri; +import org.openworkflow.sdk.api.types.ExternalResource; +import org.openworkflow.sdk.api.types.UriTemplate; +import org.openworkflow.sdk.impl.TaskContext; +import org.openworkflow.sdk.impl.WorkflowApplication; +import org.openworkflow.sdk.impl.WorkflowContext; +import org.openworkflow.sdk.impl.WorkflowModel; +import org.openworkflow.sdk.impl.WorkflowValueResolver; +import org.openworkflow.sdk.impl.auth.AuthUtils; +import org.openworkflow.sdk.impl.expressions.ExpressionDescriptor; public abstract class ResourceLoader implements AutoCloseable { diff --git a/impl/core/src/main/java/io/serverlessworkflow/impl/resources/ResourceLoaderFactory.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/resources/ResourceLoaderFactory.java similarity index 80% rename from impl/core/src/main/java/io/serverlessworkflow/impl/resources/ResourceLoaderFactory.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/resources/ResourceLoaderFactory.java index 41b3b2f21..d57799871 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/resources/ResourceLoaderFactory.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/resources/ResourceLoaderFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,10 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.resources; +package org.openworkflow.sdk.impl.resources; -import io.serverlessworkflow.impl.WorkflowApplication; import java.nio.file.Path; +import org.openworkflow.sdk.impl.WorkflowApplication; public interface ResourceLoaderFactory { ResourceLoader getResourceLoader(WorkflowApplication application, Path path); diff --git a/impl/core/src/main/java/io/serverlessworkflow/impl/resources/ResourceLoaderUtils.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/resources/ResourceLoaderUtils.java similarity index 89% rename from impl/core/src/main/java/io/serverlessworkflow/impl/resources/ResourceLoaderUtils.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/resources/ResourceLoaderUtils.java index 4ec41f204..dfae30c66 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/resources/ResourceLoaderUtils.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/resources/ResourceLoaderUtils.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.resources; +package org.openworkflow.sdk.impl.resources; import java.io.IOException; import java.io.InputStream; diff --git a/impl/core/src/main/java/io/serverlessworkflow/impl/resources/URITemplateResolver.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/resources/URITemplateResolver.java similarity index 70% rename from impl/core/src/main/java/io/serverlessworkflow/impl/resources/URITemplateResolver.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/resources/URITemplateResolver.java index 97bb62360..ace9b68b3 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/resources/URITemplateResolver.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/resources/URITemplateResolver.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,13 +13,13 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.resources; +package org.openworkflow.sdk.impl.resources; -import io.serverlessworkflow.impl.ServicePriority; -import io.serverlessworkflow.impl.TaskContext; -import io.serverlessworkflow.impl.WorkflowContext; -import io.serverlessworkflow.impl.WorkflowModel; import java.net.URI; +import org.openworkflow.sdk.impl.ServicePriority; +import org.openworkflow.sdk.impl.TaskContext; +import org.openworkflow.sdk.impl.WorkflowContext; +import org.openworkflow.sdk.impl.WorkflowModel; public interface URITemplateResolver extends ServicePriority { URI resolveTemplates( diff --git a/impl/core/src/main/java/io/serverlessworkflow/impl/scheduler/AllStrategyCorrelationInfo.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/scheduler/AllStrategyCorrelationInfo.java similarity index 82% rename from impl/core/src/main/java/io/serverlessworkflow/impl/scheduler/AllStrategyCorrelationInfo.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/scheduler/AllStrategyCorrelationInfo.java index 5400da5b2..5c071ebfa 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/scheduler/AllStrategyCorrelationInfo.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/scheduler/AllStrategyCorrelationInfo.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,14 +13,14 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.scheduler; +package org.openworkflow.sdk.impl.scheduler; import io.cloudevents.CloudEvent; -import io.serverlessworkflow.impl.WorkflowInstance; -import io.serverlessworkflow.impl.events.EventRegistrationBuilder; import java.util.Collection; import java.util.Map; import java.util.function.Consumer; +import org.openworkflow.sdk.impl.WorkflowInstance; +import org.openworkflow.sdk.impl.events.EventRegistrationBuilder; public interface AllStrategyCorrelationInfo extends AutoCloseable { diff --git a/impl/core/src/main/java/io/serverlessworkflow/impl/scheduler/AllStrategyCorrelationInfoFactory.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/scheduler/AllStrategyCorrelationInfoFactory.java similarity index 80% rename from impl/core/src/main/java/io/serverlessworkflow/impl/scheduler/AllStrategyCorrelationInfoFactory.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/scheduler/AllStrategyCorrelationInfoFactory.java index 4d6e34478..3f43306b0 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/scheduler/AllStrategyCorrelationInfoFactory.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/scheduler/AllStrategyCorrelationInfoFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,10 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.scheduler; +package org.openworkflow.sdk.impl.scheduler; -import io.serverlessworkflow.impl.WorkflowDefinition; import java.util.function.Function; +import org.openworkflow.sdk.impl.WorkflowDefinition; public interface AllStrategyCorrelationInfoFactory extends Function {} diff --git a/impl/core/src/main/java/io/serverlessworkflow/impl/scheduler/Cancellable.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/scheduler/Cancellable.java similarity index 83% rename from impl/core/src/main/java/io/serverlessworkflow/impl/scheduler/Cancellable.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/scheduler/Cancellable.java index fef5b9733..5506f86f7 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/scheduler/Cancellable.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/scheduler/Cancellable.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.scheduler; +package org.openworkflow.sdk.impl.scheduler; public interface Cancellable { void cancel(); diff --git a/impl/core/src/main/java/io/serverlessworkflow/impl/scheduler/CronResolver.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/scheduler/CronResolver.java similarity index 85% rename from impl/core/src/main/java/io/serverlessworkflow/impl/scheduler/CronResolver.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/scheduler/CronResolver.java index df2548956..5fc167786 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/scheduler/CronResolver.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/scheduler/CronResolver.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.scheduler; +package org.openworkflow.sdk.impl.scheduler; import java.time.Duration; import java.util.Optional; diff --git a/impl/core/src/main/java/io/serverlessworkflow/impl/scheduler/CronResolverFactory.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/scheduler/CronResolverFactory.java similarity index 79% rename from impl/core/src/main/java/io/serverlessworkflow/impl/scheduler/CronResolverFactory.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/scheduler/CronResolverFactory.java index 5be71bbec..8c7c8e539 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/scheduler/CronResolverFactory.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/scheduler/CronResolverFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,9 +13,9 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.scheduler; +package org.openworkflow.sdk.impl.scheduler; -import io.serverlessworkflow.impl.ServicePriority; +import org.openworkflow.sdk.impl.ServicePriority; public interface CronResolverFactory extends ServicePriority { CronResolver parseCron(String cron); diff --git a/impl/core/src/main/java/io/serverlessworkflow/impl/scheduler/DefaultWorkflowScheduler.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/scheduler/DefaultWorkflowScheduler.java similarity index 92% rename from impl/core/src/main/java/io/serverlessworkflow/impl/scheduler/DefaultWorkflowScheduler.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/scheduler/DefaultWorkflowScheduler.java index cc0eb907e..791919323 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/scheduler/DefaultWorkflowScheduler.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/scheduler/DefaultWorkflowScheduler.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,15 +13,15 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.scheduler; +package org.openworkflow.sdk.impl.scheduler; -import io.serverlessworkflow.impl.WorkflowDefinition; -import io.serverlessworkflow.impl.WorkflowInstance; import java.util.concurrent.ScheduledExecutorService; import java.util.concurrent.ScheduledFuture; import java.util.concurrent.TimeUnit; import java.util.concurrent.atomic.AtomicBoolean; import java.util.concurrent.atomic.AtomicReference; +import org.openworkflow.sdk.impl.WorkflowDefinition; +import org.openworkflow.sdk.impl.WorkflowInstance; public class DefaultWorkflowScheduler extends ExecutorServiceWorkflowScheduler { diff --git a/impl/core/src/main/java/io/serverlessworkflow/impl/scheduler/EventWorkflowScheduler.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/scheduler/EventWorkflowScheduler.java similarity index 78% rename from impl/core/src/main/java/io/serverlessworkflow/impl/scheduler/EventWorkflowScheduler.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/scheduler/EventWorkflowScheduler.java index a509b5f3b..b04595be0 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/scheduler/EventWorkflowScheduler.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/scheduler/EventWorkflowScheduler.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,13 +13,13 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.scheduler; +package org.openworkflow.sdk.impl.scheduler; import io.cloudevents.CloudEvent; -import io.serverlessworkflow.impl.WorkflowDefinition; -import io.serverlessworkflow.impl.WorkflowModel; -import io.serverlessworkflow.impl.events.EventRegistrationBuilderInfo; import java.util.function.Function; +import org.openworkflow.sdk.impl.WorkflowDefinition; +import org.openworkflow.sdk.impl.WorkflowModel; +import org.openworkflow.sdk.impl.events.EventRegistrationBuilderInfo; public abstract class EventWorkflowScheduler implements WorkflowScheduler { diff --git a/impl/core/src/main/java/io/serverlessworkflow/impl/scheduler/ExecutorServiceWorkflowScheduler.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/scheduler/ExecutorServiceWorkflowScheduler.java similarity index 91% rename from impl/core/src/main/java/io/serverlessworkflow/impl/scheduler/ExecutorServiceWorkflowScheduler.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/scheduler/ExecutorServiceWorkflowScheduler.java index b3e0c6ecb..6aeca6a7f 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/scheduler/ExecutorServiceWorkflowScheduler.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/scheduler/ExecutorServiceWorkflowScheduler.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,12 +13,12 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.scheduler; +package org.openworkflow.sdk.impl.scheduler; -import io.serverlessworkflow.impl.WorkflowDefinition; import java.time.Duration; import java.util.concurrent.ScheduledExecutorService; import java.util.concurrent.TimeUnit; +import org.openworkflow.sdk.impl.WorkflowDefinition; public abstract class ExecutorServiceWorkflowScheduler extends EventWorkflowScheduler { diff --git a/impl/core/src/main/java/io/serverlessworkflow/impl/scheduler/InMemoryAllStrategyCorrelationInfo.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/scheduler/InMemoryAllStrategyCorrelationInfo.java similarity index 93% rename from impl/core/src/main/java/io/serverlessworkflow/impl/scheduler/InMemoryAllStrategyCorrelationInfo.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/scheduler/InMemoryAllStrategyCorrelationInfo.java index 2ff3b2ae1..edb121e7f 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/scheduler/InMemoryAllStrategyCorrelationInfo.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/scheduler/InMemoryAllStrategyCorrelationInfo.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,16 +13,16 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.scheduler; +package org.openworkflow.sdk.impl.scheduler; import io.cloudevents.CloudEvent; -import io.serverlessworkflow.impl.events.EventRegistrationBuilder; import java.util.Collection; import java.util.HashMap; import java.util.Iterator; import java.util.LinkedHashSet; import java.util.Map; import java.util.function.Consumer; +import org.openworkflow.sdk.impl.events.EventRegistrationBuilder; public class InMemoryAllStrategyCorrelationInfo implements AllStrategyCorrelationInfo { diff --git a/impl/core/src/main/java/io/serverlessworkflow/impl/scheduler/ScheduledEventConsumer.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/scheduler/ScheduledEventConsumer.java similarity index 83% rename from impl/core/src/main/java/io/serverlessworkflow/impl/scheduler/ScheduledEventConsumer.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/scheduler/ScheduledEventConsumer.java index bc70833ae..c8d2775db 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/scheduler/ScheduledEventConsumer.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/scheduler/ScheduledEventConsumer.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,23 +13,23 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.scheduler; +package org.openworkflow.sdk.impl.scheduler; -import static io.serverlessworkflow.impl.WorkflowUtils.safeClose; +import static org.openworkflow.sdk.impl.WorkflowUtils.safeClose; import io.cloudevents.CloudEvent; -import io.serverlessworkflow.impl.WorkflowDefinition; -import io.serverlessworkflow.impl.WorkflowInstance; -import io.serverlessworkflow.impl.WorkflowModel; -import io.serverlessworkflow.impl.WorkflowModelCollection; -import io.serverlessworkflow.impl.events.EventConsumer; -import io.serverlessworkflow.impl.events.EventRegistration; -import io.serverlessworkflow.impl.events.EventRegistrationBuilder; -import io.serverlessworkflow.impl.events.EventRegistrationBuilderInfo; import java.util.ArrayList; import java.util.Collection; import java.util.Map; import java.util.function.Function; +import org.openworkflow.sdk.impl.WorkflowDefinition; +import org.openworkflow.sdk.impl.WorkflowInstance; +import org.openworkflow.sdk.impl.WorkflowModel; +import org.openworkflow.sdk.impl.WorkflowModelCollection; +import org.openworkflow.sdk.impl.events.EventConsumer; +import org.openworkflow.sdk.impl.events.EventRegistration; +import org.openworkflow.sdk.impl.events.EventRegistrationBuilder; +import org.openworkflow.sdk.impl.events.EventRegistrationBuilderInfo; public class ScheduledEventConsumer implements AutoCloseable { diff --git a/impl/core/src/main/java/io/serverlessworkflow/impl/scheduler/ScheduledInstanceRunnable.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/scheduler/ScheduledInstanceRunnable.java similarity index 88% rename from impl/core/src/main/java/io/serverlessworkflow/impl/scheduler/ScheduledInstanceRunnable.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/scheduler/ScheduledInstanceRunnable.java index d77f9b302..1b3ca419f 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/scheduler/ScheduledInstanceRunnable.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/scheduler/ScheduledInstanceRunnable.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,12 +13,12 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.scheduler; +package org.openworkflow.sdk.impl.scheduler; -import io.serverlessworkflow.impl.WorkflowDefinition; -import io.serverlessworkflow.impl.WorkflowInstance; -import io.serverlessworkflow.impl.WorkflowModel; import java.util.function.Consumer; +import org.openworkflow.sdk.impl.WorkflowDefinition; +import org.openworkflow.sdk.impl.WorkflowInstance; +import org.openworkflow.sdk.impl.WorkflowModel; import org.slf4j.Logger; import org.slf4j.LoggerFactory; diff --git a/impl/core/src/main/java/io/serverlessworkflow/impl/scheduler/ScheduledServiceCancellable.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/scheduler/ScheduledServiceCancellable.java similarity index 88% rename from impl/core/src/main/java/io/serverlessworkflow/impl/scheduler/ScheduledServiceCancellable.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/scheduler/ScheduledServiceCancellable.java index 45a8d01d1..57f60f7c7 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/scheduler/ScheduledServiceCancellable.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/scheduler/ScheduledServiceCancellable.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.scheduler; +package org.openworkflow.sdk.impl.scheduler; import java.util.concurrent.ScheduledFuture; diff --git a/impl/core/src/main/java/io/serverlessworkflow/impl/scheduler/WorkflowScheduler.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/scheduler/WorkflowScheduler.java similarity index 84% rename from impl/core/src/main/java/io/serverlessworkflow/impl/scheduler/WorkflowScheduler.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/scheduler/WorkflowScheduler.java index 55707eadd..e9d3bc553 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/scheduler/WorkflowScheduler.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/scheduler/WorkflowScheduler.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,14 +13,14 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.scheduler; +package org.openworkflow.sdk.impl.scheduler; import io.cloudevents.CloudEvent; -import io.serverlessworkflow.impl.WorkflowDefinition; -import io.serverlessworkflow.impl.WorkflowModel; -import io.serverlessworkflow.impl.events.EventRegistrationBuilderInfo; import java.time.Duration; import java.util.function.Function; +import org.openworkflow.sdk.impl.WorkflowDefinition; +import org.openworkflow.sdk.impl.WorkflowModel; +import org.openworkflow.sdk.impl.events.EventRegistrationBuilderInfo; public interface WorkflowScheduler { diff --git a/impl/core/src/main/java/io/serverlessworkflow/impl/schema/AbstractSchemaValidator.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/schema/AbstractSchemaValidator.java similarity index 85% rename from impl/core/src/main/java/io/serverlessworkflow/impl/schema/AbstractSchemaValidator.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/schema/AbstractSchemaValidator.java index be688443b..0b6f70c4a 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/schema/AbstractSchemaValidator.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/schema/AbstractSchemaValidator.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,12 +13,12 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.schema; +package org.openworkflow.sdk.impl.schema; -import io.serverlessworkflow.impl.WorkflowError; -import io.serverlessworkflow.impl.WorkflowModel; -import io.serverlessworkflow.types.Errors; import java.util.Optional; +import org.openworkflow.sdk.impl.WorkflowError; +import org.openworkflow.sdk.impl.WorkflowModel; +import org.openworkflow.sdk.types.Errors; public abstract class AbstractSchemaValidator implements SchemaValidator { diff --git a/impl/core/src/main/java/io/serverlessworkflow/impl/schema/SchemaValidator.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/schema/SchemaValidator.java similarity index 76% rename from impl/core/src/main/java/io/serverlessworkflow/impl/schema/SchemaValidator.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/schema/SchemaValidator.java index fa52364ec..0ccec4588 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/schema/SchemaValidator.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/schema/SchemaValidator.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,11 +13,11 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.schema; +package org.openworkflow.sdk.impl.schema; -import io.serverlessworkflow.impl.WorkflowError; -import io.serverlessworkflow.impl.WorkflowModel; import java.util.Optional; +import org.openworkflow.sdk.impl.WorkflowError; +import org.openworkflow.sdk.impl.WorkflowModel; public interface SchemaValidator { Optional validate(WorkflowModel model); diff --git a/impl/core/src/main/java/io/serverlessworkflow/impl/schema/SchemaValidatorFactory.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/schema/SchemaValidatorFactory.java similarity index 72% rename from impl/core/src/main/java/io/serverlessworkflow/impl/schema/SchemaValidatorFactory.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/schema/SchemaValidatorFactory.java index 6111cd824..1ab8bba15 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/schema/SchemaValidatorFactory.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/schema/SchemaValidatorFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,11 +13,11 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.schema; +package org.openworkflow.sdk.impl.schema; -import io.serverlessworkflow.api.types.SchemaInline; -import io.serverlessworkflow.impl.ServicePriority; -import io.serverlessworkflow.impl.resources.ExternalResourceHandler; +import org.openworkflow.sdk.api.types.SchemaInline; +import org.openworkflow.sdk.impl.ServicePriority; +import org.openworkflow.sdk.impl.resources.ExternalResourceHandler; public interface SchemaValidatorFactory extends ServicePriority { SchemaValidator getValidator(SchemaInline inline); diff --git a/impl/core/src/main/java/io/serverlessworkflow/impl/scripts/ScriptContext.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/scripts/ScriptContext.java similarity index 80% rename from impl/core/src/main/java/io/serverlessworkflow/impl/scripts/ScriptContext.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/scripts/ScriptContext.java index 44da27bce..8b3e5568b 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/scripts/ScriptContext.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/scripts/ScriptContext.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,10 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.scripts; +package org.openworkflow.sdk.impl.scripts; -import io.serverlessworkflow.api.types.RunTaskConfiguration; import java.util.Map; +import org.openworkflow.sdk.api.types.RunTaskConfiguration; public record ScriptContext( Map args, diff --git a/impl/core/src/main/java/io/serverlessworkflow/impl/scripts/ScriptLanguageId.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/scripts/ScriptLanguageId.java similarity index 91% rename from impl/core/src/main/java/io/serverlessworkflow/impl/scripts/ScriptLanguageId.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/scripts/ScriptLanguageId.java index 70cf0fb67..e43b34717 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/scripts/ScriptLanguageId.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/scripts/ScriptLanguageId.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.scripts; +package org.openworkflow.sdk.impl.scripts; import java.util.Arrays; diff --git a/impl/core/src/main/java/io/serverlessworkflow/impl/scripts/ScriptRunner.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/scripts/ScriptRunner.java similarity index 73% rename from impl/core/src/main/java/io/serverlessworkflow/impl/scripts/ScriptRunner.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/scripts/ScriptRunner.java index f2795352e..ac71e3667 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/scripts/ScriptRunner.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/scripts/ScriptRunner.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,13 +13,13 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.scripts; +package org.openworkflow.sdk.impl.scripts; -import io.serverlessworkflow.impl.ServicePriority; -import io.serverlessworkflow.impl.TaskContext; -import io.serverlessworkflow.impl.WorkflowContext; -import io.serverlessworkflow.impl.WorkflowModel; -import io.serverlessworkflow.impl.executors.RunScriptExecutor; +import org.openworkflow.sdk.impl.ServicePriority; +import org.openworkflow.sdk.impl.TaskContext; +import org.openworkflow.sdk.impl.WorkflowContext; +import org.openworkflow.sdk.impl.WorkflowModel; +import org.openworkflow.sdk.impl.executors.RunScriptExecutor; /** Represents a script task that executes a script in a specific scripting language. */ public interface ScriptRunner extends ServicePriority { diff --git a/impl/core/src/main/java/io/serverlessworkflow/impl/scripts/ScriptUtils.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/scripts/ScriptUtils.java similarity index 83% rename from impl/core/src/main/java/io/serverlessworkflow/impl/scripts/ScriptUtils.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/scripts/ScriptUtils.java index f33f3bed3..5d10deda6 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/scripts/ScriptUtils.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/scripts/ScriptUtils.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,17 +13,17 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.scripts; +package org.openworkflow.sdk.impl.scripts; -import io.serverlessworkflow.api.types.RunTaskConfiguration; -import io.serverlessworkflow.api.types.RunTaskConfiguration.ProcessReturnType; -import io.serverlessworkflow.impl.WorkflowDefinition; -import io.serverlessworkflow.impl.WorkflowModel; -import io.serverlessworkflow.impl.WorkflowModelFactory; -import io.serverlessworkflow.impl.executors.ProcessResult; import java.io.IOException; import java.io.UncheckedIOException; import java.util.Map; +import org.openworkflow.sdk.api.types.RunTaskConfiguration; +import org.openworkflow.sdk.api.types.RunTaskConfiguration.ProcessReturnType; +import org.openworkflow.sdk.impl.WorkflowDefinition; +import org.openworkflow.sdk.impl.WorkflowModel; +import org.openworkflow.sdk.impl.WorkflowModelFactory; +import org.openworkflow.sdk.impl.executors.ProcessResult; import org.slf4j.Logger; import org.slf4j.LoggerFactory; @@ -77,7 +77,7 @@ public static WorkflowModel buildResultFromProcess( if (definition .application() .configManager() - .config("io.serverlessworkflow.impl.scripts.dumpOutput", Boolean.class) + .config("org.openworkflow.sdk.impl.scripts.dumpOutput", Boolean.class) .orElse(true)) { System.out.println(suppliers.outputStream().get()); } diff --git a/impl/core/src/main/java/io/serverlessworkflow/impl/scripts/StreamSuppliers.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/scripts/StreamSuppliers.java similarity index 95% rename from impl/core/src/main/java/io/serverlessworkflow/impl/scripts/StreamSuppliers.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/scripts/StreamSuppliers.java index 2e21cb89e..bfe683ab9 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/scripts/StreamSuppliers.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/scripts/StreamSuppliers.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.scripts; +package org.openworkflow.sdk.impl.scripts; import java.io.ByteArrayOutputStream; import java.io.IOException; diff --git a/impl/core/src/main/java/io/serverlessworkflow/impl/utils/RandomFactory.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/utils/RandomFactory.java similarity index 86% rename from impl/core/src/main/java/io/serverlessworkflow/impl/utils/RandomFactory.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/utils/RandomFactory.java index c1c4163bd..bcea6a1f5 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/utils/RandomFactory.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/utils/RandomFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.utils; +package org.openworkflow.sdk.impl.utils; import java.util.Random; diff --git a/impl/core/src/main/resources/META-INF/native-image/io.serverlessworkflow/serverlessworkflow-impl-core/reflect-config.json b/impl/core/src/main/resources/META-INF/native-image/org.openworkflow.sdk/openworkflow-impl-core/reflect-config.json similarity index 84% rename from impl/core/src/main/resources/META-INF/native-image/io.serverlessworkflow/serverlessworkflow-impl-core/reflect-config.json rename to impl/core/src/main/resources/META-INF/native-image/org.openworkflow.sdk/openworkflow-impl-core/reflect-config.json index d6e04d6cd..1273e1e0b 100644 --- a/impl/core/src/main/resources/META-INF/native-image/io.serverlessworkflow/serverlessworkflow-impl-core/reflect-config.json +++ b/impl/core/src/main/resources/META-INF/native-image/org.openworkflow.sdk/openworkflow-impl-core/reflect-config.json @@ -1,6 +1,6 @@ [ { - "name": "io.serverlessworkflow.impl.executors.ProcessResult", + "name": "org.openworkflow.sdk.impl.executors.ProcessResult", "queryAllPublicConstructors": true, "queryAllDeclaredConstructors": true, "queryAllPublicMethods": true, @@ -15,7 +15,7 @@ "allDeclaredClasses": true }, { - "name": "io.serverlessworkflow.impl.WorkflowError", + "name": "org.openworkflow.sdk.impl.WorkflowError", "queryAllPublicConstructors": true, "queryAllDeclaredConstructors": true, "queryAllPublicMethods": true, @@ -30,7 +30,7 @@ "allDeclaredClasses": true }, { - "name": "io.serverlessworkflow.impl.lifecycle.ce.TaskCEData", + "name": "org.openworkflow.sdk.impl.lifecycle.ce.TaskCEData", "queryAllPublicConstructors": true, "queryAllDeclaredConstructors": true, "queryAllPublicMethods": true, @@ -45,7 +45,7 @@ "allDeclaredClasses": true }, { - "name": "io.serverlessworkflow.impl.lifecycle.ce.TaskCancelledCEData", + "name": "org.openworkflow.sdk.impl.lifecycle.ce.TaskCancelledCEData", "queryAllPublicConstructors": true, "queryAllDeclaredConstructors": true, "queryAllPublicMethods": true, @@ -60,7 +60,7 @@ "allDeclaredClasses": true }, { - "name": "io.serverlessworkflow.impl.lifecycle.ce.TaskCompletedCEData", + "name": "org.openworkflow.sdk.impl.lifecycle.ce.TaskCompletedCEData", "queryAllPublicConstructors": true, "queryAllDeclaredConstructors": true, "queryAllPublicMethods": true, @@ -75,7 +75,7 @@ "allDeclaredClasses": true }, { - "name": "io.serverlessworkflow.impl.lifecycle.ce.TaskCompletedCEDataWithOutput", + "name": "org.openworkflow.sdk.impl.lifecycle.ce.TaskCompletedCEDataWithOutput", "queryAllPublicConstructors": true, "queryAllDeclaredConstructors": true, "queryAllPublicMethods": true, @@ -90,7 +90,7 @@ "allDeclaredClasses": true }, { - "name": "io.serverlessworkflow.impl.lifecycle.ce.TaskFailedCEData", + "name": "org.openworkflow.sdk.impl.lifecycle.ce.TaskFailedCEData", "queryAllPublicConstructors": true, "queryAllDeclaredConstructors": true, "queryAllPublicMethods": true, @@ -105,7 +105,7 @@ "allDeclaredClasses": true }, { - "name": "io.serverlessworkflow.impl.lifecycle.ce.TaskResumedCEData", + "name": "org.openworkflow.sdk.impl.lifecycle.ce.TaskResumedCEData", "queryAllPublicConstructors": true, "queryAllDeclaredConstructors": true, "queryAllPublicMethods": true, @@ -120,7 +120,7 @@ "allDeclaredClasses": true }, { - "name": "io.serverlessworkflow.impl.lifecycle.ce.TaskRetriedCEData", + "name": "org.openworkflow.sdk.impl.lifecycle.ce.TaskRetriedCEData", "queryAllPublicConstructors": true, "queryAllDeclaredConstructors": true, "queryAllPublicMethods": true, @@ -135,7 +135,7 @@ "allDeclaredClasses": true }, { - "name": "io.serverlessworkflow.impl.lifecycle.ce.TaskStartedCEData", + "name": "org.openworkflow.sdk.impl.lifecycle.ce.TaskStartedCEData", "queryAllPublicConstructors": true, "queryAllDeclaredConstructors": true, "queryAllPublicMethods": true, @@ -150,7 +150,7 @@ "allDeclaredClasses": true }, { - "name": "io.serverlessworkflow.impl.lifecycle.ce.TaskStartedCEDataWithInput", + "name": "org.openworkflow.sdk.impl.lifecycle.ce.TaskStartedCEDataWithInput", "queryAllPublicConstructors": true, "queryAllDeclaredConstructors": true, "queryAllPublicMethods": true, @@ -165,7 +165,7 @@ "allDeclaredClasses": true }, { - "name": "io.serverlessworkflow.impl.lifecycle.ce.TaskSuspendedCEData", + "name": "org.openworkflow.sdk.impl.lifecycle.ce.TaskSuspendedCEData", "queryAllPublicConstructors": true, "queryAllDeclaredConstructors": true, "queryAllPublicMethods": true, @@ -180,7 +180,7 @@ "allDeclaredClasses": true }, { - "name": "io.serverlessworkflow.impl.lifecycle.ce.WorkflowCEData", + "name": "org.openworkflow.sdk.impl.lifecycle.ce.WorkflowCEData", "queryAllPublicConstructors": true, "queryAllDeclaredConstructors": true, "queryAllPublicMethods": true, @@ -195,7 +195,7 @@ "allDeclaredClasses": true }, { - "name": "io.serverlessworkflow.impl.lifecycle.ce.WorkflowCancelledCEData", + "name": "org.openworkflow.sdk.impl.lifecycle.ce.WorkflowCancelledCEData", "queryAllPublicConstructors": true, "queryAllDeclaredConstructors": true, "queryAllPublicMethods": true, @@ -210,7 +210,7 @@ "allDeclaredClasses": true }, { - "name": "io.serverlessworkflow.impl.lifecycle.ce.WorkflowCompletedCEData", + "name": "org.openworkflow.sdk.impl.lifecycle.ce.WorkflowCompletedCEData", "queryAllPublicConstructors": true, "queryAllDeclaredConstructors": true, "queryAllPublicMethods": true, @@ -225,7 +225,7 @@ "allDeclaredClasses": true }, { - "name": "io.serverlessworkflow.impl.lifecycle.ce.WorkflowCompletedCEDataWithOutput", + "name": "org.openworkflow.sdk.impl.lifecycle.ce.WorkflowCompletedCEDataWithOutput", "queryAllPublicConstructors": true, "queryAllDeclaredConstructors": true, "queryAllPublicMethods": true, @@ -240,7 +240,7 @@ "allDeclaredClasses": true }, { - "name": "io.serverlessworkflow.impl.lifecycle.ce.WorkflowDefinitionCEData", + "name": "org.openworkflow.sdk.impl.lifecycle.ce.WorkflowDefinitionCEData", "queryAllPublicConstructors": true, "queryAllDeclaredConstructors": true, "queryAllPublicMethods": true, @@ -255,7 +255,7 @@ "allDeclaredClasses": true }, { - "name": "io.serverlessworkflow.impl.lifecycle.ce.WorkflowFailedCEData", + "name": "org.openworkflow.sdk.impl.lifecycle.ce.WorkflowFailedCEData", "queryAllPublicConstructors": true, "queryAllDeclaredConstructors": true, "queryAllPublicMethods": true, @@ -270,7 +270,7 @@ "allDeclaredClasses": true }, { - "name": "io.serverlessworkflow.impl.lifecycle.ce.WorkflowResumedCEData", + "name": "org.openworkflow.sdk.impl.lifecycle.ce.WorkflowResumedCEData", "queryAllPublicConstructors": true, "queryAllDeclaredConstructors": true, "queryAllPublicMethods": true, @@ -285,7 +285,7 @@ "allDeclaredClasses": true }, { - "name": "io.serverlessworkflow.impl.lifecycle.ce.WorkflowStartedCEData", + "name": "org.openworkflow.sdk.impl.lifecycle.ce.WorkflowStartedCEData", "queryAllPublicConstructors": true, "queryAllDeclaredConstructors": true, "queryAllPublicMethods": true, @@ -300,7 +300,7 @@ "allDeclaredClasses": true }, { - "name": "io.serverlessworkflow.impl.lifecycle.ce.WorkflowStartedCEDataWithInput", + "name": "org.openworkflow.sdk.impl.lifecycle.ce.WorkflowStartedCEDataWithInput", "queryAllPublicConstructors": true, "queryAllDeclaredConstructors": true, "queryAllPublicMethods": true, @@ -315,7 +315,7 @@ "allDeclaredClasses": true }, { - "name": "io.serverlessworkflow.impl.lifecycle.ce.WorkflowStatusCEDataEvent", + "name": "org.openworkflow.sdk.impl.lifecycle.ce.WorkflowStatusCEDataEvent", "queryAllPublicConstructors": true, "queryAllDeclaredConstructors": true, "queryAllPublicMethods": true, @@ -330,7 +330,7 @@ "allDeclaredClasses": true }, { - "name": "io.serverlessworkflow.impl.lifecycle.ce.WorkflowSuspendedCEData", + "name": "org.openworkflow.sdk.impl.lifecycle.ce.WorkflowSuspendedCEData", "queryAllPublicConstructors": true, "queryAllDeclaredConstructors": true, "queryAllPublicMethods": true, diff --git a/impl/core/src/main/resources/META-INF/services/io.serverlessworkflow.impl.executors.CallableTaskBuilder b/impl/core/src/main/resources/META-INF/services/io.serverlessworkflow.impl.executors.CallableTaskBuilder deleted file mode 100644 index b4cdcebc2..000000000 --- a/impl/core/src/main/resources/META-INF/services/io.serverlessworkflow.impl.executors.CallableTaskBuilder +++ /dev/null @@ -1 +0,0 @@ -io.serverlessworkflow.impl.executors.CallFunctionExecutorBuilder \ No newline at end of file diff --git a/impl/core/src/main/resources/META-INF/services/io.serverlessworkflow.impl.executors.RunnableTaskBuilder b/impl/core/src/main/resources/META-INF/services/io.serverlessworkflow.impl.executors.RunnableTaskBuilder deleted file mode 100644 index 6f0679b48..000000000 --- a/impl/core/src/main/resources/META-INF/services/io.serverlessworkflow.impl.executors.RunnableTaskBuilder +++ /dev/null @@ -1,3 +0,0 @@ -io.serverlessworkflow.impl.executors.RunWorkflowExecutorBuilder -io.serverlessworkflow.impl.executors.RunShellExecutorBuilder -io.serverlessworkflow.impl.executors.RunScriptExecutorBuilder \ No newline at end of file diff --git a/impl/core/src/main/resources/META-INF/services/org.openworkflow.sdk.impl.executors.CallableTaskBuilder b/impl/core/src/main/resources/META-INF/services/org.openworkflow.sdk.impl.executors.CallableTaskBuilder new file mode 100644 index 000000000..69ad9014d --- /dev/null +++ b/impl/core/src/main/resources/META-INF/services/org.openworkflow.sdk.impl.executors.CallableTaskBuilder @@ -0,0 +1 @@ +org.openworkflow.sdk.impl.executors.CallFunctionExecutorBuilder \ No newline at end of file diff --git a/impl/core/src/main/resources/META-INF/services/org.openworkflow.sdk.impl.executors.RunnableTaskBuilder b/impl/core/src/main/resources/META-INF/services/org.openworkflow.sdk.impl.executors.RunnableTaskBuilder new file mode 100644 index 000000000..ff68cd5a1 --- /dev/null +++ b/impl/core/src/main/resources/META-INF/services/org.openworkflow.sdk.impl.executors.RunnableTaskBuilder @@ -0,0 +1,3 @@ +org.openworkflow.sdk.impl.executors.RunWorkflowExecutorBuilder +org.openworkflow.sdk.impl.executors.RunShellExecutorBuilder +org.openworkflow.sdk.impl.executors.RunScriptExecutorBuilder \ No newline at end of file diff --git a/impl/core/src/test/java/io/serverlessworkflow/impl/LowestPriority.java b/impl/core/src/test/java/org/openworkflow/sdk/impl/LowestPriority.java similarity index 86% rename from impl/core/src/test/java/io/serverlessworkflow/impl/LowestPriority.java rename to impl/core/src/test/java/org/openworkflow/sdk/impl/LowestPriority.java index b4410e198..4477cb927 100644 --- a/impl/core/src/test/java/io/serverlessworkflow/impl/LowestPriority.java +++ b/impl/core/src/test/java/org/openworkflow/sdk/impl/LowestPriority.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl; +package org.openworkflow.sdk.impl; public class LowestPriority implements ServicePriority { public int priority() { diff --git a/impl/core/src/test/java/io/serverlessworkflow/impl/LowestPriorityListener.java b/impl/core/src/test/java/org/openworkflow/sdk/impl/LowestPriorityListener.java similarity index 78% rename from impl/core/src/test/java/io/serverlessworkflow/impl/LowestPriorityListener.java rename to impl/core/src/test/java/org/openworkflow/sdk/impl/LowestPriorityListener.java index 7109ab4c6..408b8bc6a 100644 --- a/impl/core/src/test/java/io/serverlessworkflow/impl/LowestPriorityListener.java +++ b/impl/core/src/test/java/org/openworkflow/sdk/impl/LowestPriorityListener.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,9 +13,9 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl; +package org.openworkflow.sdk.impl; -import io.serverlessworkflow.impl.lifecycle.WorkflowExecutionCompletableListener; +import org.openworkflow.sdk.impl.lifecycle.WorkflowExecutionCompletableListener; public class LowestPriorityListener implements WorkflowExecutionCompletableListener { public int priority() { diff --git a/impl/core/src/test/java/io/serverlessworkflow/impl/MediumPriority.java b/impl/core/src/test/java/org/openworkflow/sdk/impl/MediumPriority.java similarity index 85% rename from impl/core/src/test/java/io/serverlessworkflow/impl/MediumPriority.java rename to impl/core/src/test/java/org/openworkflow/sdk/impl/MediumPriority.java index 2963409f8..7cec4e561 100644 --- a/impl/core/src/test/java/io/serverlessworkflow/impl/MediumPriority.java +++ b/impl/core/src/test/java/org/openworkflow/sdk/impl/MediumPriority.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,6 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl; +package org.openworkflow.sdk.impl; public class MediumPriority implements ServicePriority {} diff --git a/impl/core/src/test/java/io/serverlessworkflow/impl/MediumPriorityListener.java b/impl/core/src/test/java/org/openworkflow/sdk/impl/MediumPriorityListener.java similarity index 85% rename from impl/core/src/test/java/io/serverlessworkflow/impl/MediumPriorityListener.java rename to impl/core/src/test/java/org/openworkflow/sdk/impl/MediumPriorityListener.java index a26abe944..907c0ebf8 100644 --- a/impl/core/src/test/java/io/serverlessworkflow/impl/MediumPriorityListener.java +++ b/impl/core/src/test/java/org/openworkflow/sdk/impl/MediumPriorityListener.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,10 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl; +package org.openworkflow.sdk.impl; -import io.serverlessworkflow.impl.lifecycle.WorkflowExecutionCompletableListener; import java.util.Objects; +import org.openworkflow.sdk.impl.lifecycle.WorkflowExecutionCompletableListener; public class MediumPriorityListener implements WorkflowExecutionCompletableListener { diff --git a/impl/core/src/test/java/io/serverlessworkflow/impl/ServicePriorityTest.java b/impl/core/src/test/java/org/openworkflow/sdk/impl/ServicePriorityTest.java similarity index 88% rename from impl/core/src/test/java/io/serverlessworkflow/impl/ServicePriorityTest.java rename to impl/core/src/test/java/org/openworkflow/sdk/impl/ServicePriorityTest.java index f58af79df..715ddae6e 100644 --- a/impl/core/src/test/java/io/serverlessworkflow/impl/ServicePriorityTest.java +++ b/impl/core/src/test/java/org/openworkflow/sdk/impl/ServicePriorityTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl; +package org.openworkflow.sdk.impl; import static org.assertj.core.api.Assertions.assertThat; diff --git a/impl/core/src/test/java/io/serverlessworkflow/impl/TopPriority.java b/impl/core/src/test/java/org/openworkflow/sdk/impl/TopPriority.java similarity index 86% rename from impl/core/src/test/java/io/serverlessworkflow/impl/TopPriority.java rename to impl/core/src/test/java/org/openworkflow/sdk/impl/TopPriority.java index ce7bd88ff..c07c40470 100644 --- a/impl/core/src/test/java/io/serverlessworkflow/impl/TopPriority.java +++ b/impl/core/src/test/java/org/openworkflow/sdk/impl/TopPriority.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl; +package org.openworkflow.sdk.impl; public class TopPriority implements ServicePriority { public int priority() { diff --git a/impl/core/src/test/java/io/serverlessworkflow/impl/TopPriorityListener.java b/impl/core/src/test/java/org/openworkflow/sdk/impl/TopPriorityListener.java similarity index 78% rename from impl/core/src/test/java/io/serverlessworkflow/impl/TopPriorityListener.java rename to impl/core/src/test/java/org/openworkflow/sdk/impl/TopPriorityListener.java index 5b55f0248..93ae960cb 100644 --- a/impl/core/src/test/java/io/serverlessworkflow/impl/TopPriorityListener.java +++ b/impl/core/src/test/java/org/openworkflow/sdk/impl/TopPriorityListener.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,9 +13,9 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl; +package org.openworkflow.sdk.impl; -import io.serverlessworkflow.impl.lifecycle.WorkflowExecutionCompletableListener; +import org.openworkflow.sdk.impl.lifecycle.WorkflowExecutionCompletableListener; public class TopPriorityListener implements WorkflowExecutionCompletableListener { public int priority() { diff --git a/impl/core/src/test/java/io/serverlessworkflow/impl/WorkflowAdditionalObjectTest.java b/impl/core/src/test/java/org/openworkflow/sdk/impl/WorkflowAdditionalObjectTest.java similarity index 93% rename from impl/core/src/test/java/io/serverlessworkflow/impl/WorkflowAdditionalObjectTest.java rename to impl/core/src/test/java/org/openworkflow/sdk/impl/WorkflowAdditionalObjectTest.java index 9ba69c060..9dc7e76b7 100644 --- a/impl/core/src/test/java/io/serverlessworkflow/impl/WorkflowAdditionalObjectTest.java +++ b/impl/core/src/test/java/org/openworkflow/sdk/impl/WorkflowAdditionalObjectTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,20 +13,20 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl; +package org.openworkflow.sdk.impl; import static org.assertj.core.api.Assertions.assertThat; import static org.mockito.Mockito.mock; import static org.mockito.Mockito.when; -import io.serverlessworkflow.impl.additional.WorkflowAdditionalObject; -import io.serverlessworkflow.impl.lifecycle.WorkflowExecutionCompletableListener; import java.util.ArrayList; import java.util.Collections; import java.util.List; import java.util.function.Supplier; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; +import org.openworkflow.sdk.impl.additional.WorkflowAdditionalObject; +import org.openworkflow.sdk.impl.lifecycle.WorkflowExecutionCompletableListener; public class WorkflowAdditionalObjectTest { diff --git a/impl/core/src/test/java/io/serverlessworkflow/impl/WorkflowListenerTest.java b/impl/core/src/test/java/org/openworkflow/sdk/impl/WorkflowListenerTest.java similarity index 93% rename from impl/core/src/test/java/io/serverlessworkflow/impl/WorkflowListenerTest.java rename to impl/core/src/test/java/org/openworkflow/sdk/impl/WorkflowListenerTest.java index 536648211..85a98ca7f 100644 --- a/impl/core/src/test/java/io/serverlessworkflow/impl/WorkflowListenerTest.java +++ b/impl/core/src/test/java/org/openworkflow/sdk/impl/WorkflowListenerTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,14 +13,14 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl; +package org.openworkflow.sdk.impl; import static org.assertj.core.api.Assertions.assertThat; -import io.serverlessworkflow.impl.lifecycle.WorkflowExecutionCompletableListener; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; import org.mockito.Mockito; +import org.openworkflow.sdk.impl.lifecycle.WorkflowExecutionCompletableListener; public class WorkflowListenerTest { diff --git a/impl/core/src/test/java/io/serverlessworkflow/impl/WorkflowUtilsTest.java b/impl/core/src/test/java/org/openworkflow/sdk/impl/WorkflowUtilsTest.java similarity index 95% rename from impl/core/src/test/java/io/serverlessworkflow/impl/WorkflowUtilsTest.java rename to impl/core/src/test/java/org/openworkflow/sdk/impl/WorkflowUtilsTest.java index 6fb73dc72..15c35a5cc 100644 --- a/impl/core/src/test/java/io/serverlessworkflow/impl/WorkflowUtilsTest.java +++ b/impl/core/src/test/java/org/openworkflow/sdk/impl/WorkflowUtilsTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl; +package org.openworkflow.sdk.impl; import static org.junit.jupiter.api.Assertions.assertEquals; diff --git a/impl/core/src/test/java/io/serverlessworkflow/impl/auth/JWTTest.java b/impl/core/src/test/java/org/openworkflow/sdk/impl/auth/JWTTest.java similarity index 90% rename from impl/core/src/test/java/io/serverlessworkflow/impl/auth/JWTTest.java rename to impl/core/src/test/java/org/openworkflow/sdk/impl/auth/JWTTest.java index b6661fc9e..5229b6dc9 100644 --- a/impl/core/src/test/java/io/serverlessworkflow/impl/auth/JWTTest.java +++ b/impl/core/src/test/java/org/openworkflow/sdk/impl/auth/JWTTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.auth; +package org.openworkflow.sdk.impl.auth; import static org.assertj.core.api.Assertions.assertThat; diff --git a/impl/core/src/test/java/io/serverlessworkflow/impl/marshaller/Employee.java b/impl/core/src/test/java/org/openworkflow/sdk/impl/marshaller/Employee.java similarity index 83% rename from impl/core/src/test/java/io/serverlessworkflow/impl/marshaller/Employee.java rename to impl/core/src/test/java/org/openworkflow/sdk/impl/marshaller/Employee.java index 1a8d7455b..da0b62344 100644 --- a/impl/core/src/test/java/io/serverlessworkflow/impl/marshaller/Employee.java +++ b/impl/core/src/test/java/org/openworkflow/sdk/impl/marshaller/Employee.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,6 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.marshaller; +package org.openworkflow.sdk.impl.marshaller; class Employee extends Person {} diff --git a/impl/core/src/test/java/io/serverlessworkflow/impl/marshaller/MarshallingUtilsTest.java b/impl/core/src/test/java/org/openworkflow/sdk/impl/marshaller/MarshallingUtilsTest.java similarity index 96% rename from impl/core/src/test/java/io/serverlessworkflow/impl/marshaller/MarshallingUtilsTest.java rename to impl/core/src/test/java/org/openworkflow/sdk/impl/marshaller/MarshallingUtilsTest.java index 112d2c148..108673405 100644 --- a/impl/core/src/test/java/io/serverlessworkflow/impl/marshaller/MarshallingUtilsTest.java +++ b/impl/core/src/test/java/org/openworkflow/sdk/impl/marshaller/MarshallingUtilsTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.marshaller; +package org.openworkflow.sdk.impl.marshaller; import static org.assertj.core.api.Assertions.assertThat; diff --git a/impl/core/src/test/java/io/serverlessworkflow/impl/marshaller/NonSerializableClass.java b/impl/core/src/test/java/org/openworkflow/sdk/impl/marshaller/NonSerializableClass.java similarity index 83% rename from impl/core/src/test/java/io/serverlessworkflow/impl/marshaller/NonSerializableClass.java rename to impl/core/src/test/java/org/openworkflow/sdk/impl/marshaller/NonSerializableClass.java index ce22a3969..1041a3449 100644 --- a/impl/core/src/test/java/io/serverlessworkflow/impl/marshaller/NonSerializableClass.java +++ b/impl/core/src/test/java/org/openworkflow/sdk/impl/marshaller/NonSerializableClass.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,6 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.marshaller; +package org.openworkflow.sdk.impl.marshaller; class NonSerializableClass {} diff --git a/impl/core/src/test/java/io/serverlessworkflow/impl/marshaller/Person.java b/impl/core/src/test/java/org/openworkflow/sdk/impl/marshaller/Person.java similarity index 82% rename from impl/core/src/test/java/io/serverlessworkflow/impl/marshaller/Person.java rename to impl/core/src/test/java/org/openworkflow/sdk/impl/marshaller/Person.java index a618f9e26..be5c3a3a6 100644 --- a/impl/core/src/test/java/io/serverlessworkflow/impl/marshaller/Person.java +++ b/impl/core/src/test/java/org/openworkflow/sdk/impl/marshaller/Person.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,6 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.marshaller; +package org.openworkflow.sdk.impl.marshaller; class Person {} diff --git a/impl/core/src/test/java/io/serverlessworkflow/impl/marshaller/SerializableClass.java b/impl/core/src/test/java/org/openworkflow/sdk/impl/marshaller/SerializableClass.java similarity index 85% rename from impl/core/src/test/java/io/serverlessworkflow/impl/marshaller/SerializableClass.java rename to impl/core/src/test/java/org/openworkflow/sdk/impl/marshaller/SerializableClass.java index 7bd1fddf9..e6beac1ea 100644 --- a/impl/core/src/test/java/io/serverlessworkflow/impl/marshaller/SerializableClass.java +++ b/impl/core/src/test/java/org/openworkflow/sdk/impl/marshaller/SerializableClass.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.marshaller; +package org.openworkflow.sdk.impl.marshaller; import java.io.Serializable; diff --git a/impl/core/src/test/java/io/serverlessworkflow/impl/marshaller/Student.java b/impl/core/src/test/java/org/openworkflow/sdk/impl/marshaller/Student.java similarity index 83% rename from impl/core/src/test/java/io/serverlessworkflow/impl/marshaller/Student.java rename to impl/core/src/test/java/org/openworkflow/sdk/impl/marshaller/Student.java index 9012cdb16..86acf7bf5 100644 --- a/impl/core/src/test/java/io/serverlessworkflow/impl/marshaller/Student.java +++ b/impl/core/src/test/java/org/openworkflow/sdk/impl/marshaller/Student.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,6 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.marshaller; +package org.openworkflow.sdk.impl.marshaller; class Student extends Employee {} diff --git a/impl/core/src/test/resources/META-INF/services/io.serverlessworkflow.impl.ServicePriority b/impl/core/src/test/resources/META-INF/services/io.serverlessworkflow.impl.ServicePriority deleted file mode 100644 index 0c5166da3..000000000 --- a/impl/core/src/test/resources/META-INF/services/io.serverlessworkflow.impl.ServicePriority +++ /dev/null @@ -1,3 +0,0 @@ -io.serverlessworkflow.impl.LowestPriority -io.serverlessworkflow.impl.TopPriority -io.serverlessworkflow.impl.MediumPriority diff --git a/impl/core/src/test/resources/META-INF/services/org.openworkflow.sdk.impl.ServicePriority b/impl/core/src/test/resources/META-INF/services/org.openworkflow.sdk.impl.ServicePriority new file mode 100644 index 000000000..da0b7340e --- /dev/null +++ b/impl/core/src/test/resources/META-INF/services/org.openworkflow.sdk.impl.ServicePriority @@ -0,0 +1,3 @@ +org.openworkflow.sdk.impl.LowestPriority +org.openworkflow.sdk.impl.TopPriority +org.openworkflow.sdk.impl.MediumPriority diff --git a/impl/cron/pom.xml b/impl/cron/pom.xml index 53094624e..5db6eae77 100644 --- a/impl/cron/pom.xml +++ b/impl/cron/pom.xml @@ -1,20 +1,20 @@ 4.0.0 - io.serverlessworkflow - serverlessworkflow-impl + org.openworkflow.sdk + openworkflow-impl 8.0.0-SNAPSHOT - serverlessworkflow-impl-cron - Serverless Workflow :: Impl :: Cron + openworkflow-impl-cron + Open Workflow :: Impl :: Cron com.cronutils cron-utils - io.serverlessworkflow - serverlessworkflow-impl-core + org.openworkflow.sdk + openworkflow-impl-core \ No newline at end of file diff --git a/impl/cron/src/main/java/io/serverlessworkflow/impl/cron/CronUtilsResolver.java b/impl/cron/src/main/java/org/openworkflow/sdk/impl/cron/CronUtilsResolver.java similarity index 86% rename from impl/cron/src/main/java/io/serverlessworkflow/impl/cron/CronUtilsResolver.java rename to impl/cron/src/main/java/org/openworkflow/sdk/impl/cron/CronUtilsResolver.java index 2ce36b311..c53f58131 100644 --- a/impl/cron/src/main/java/io/serverlessworkflow/impl/cron/CronUtilsResolver.java +++ b/impl/cron/src/main/java/org/openworkflow/sdk/impl/cron/CronUtilsResolver.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,14 +13,14 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.cron; +package org.openworkflow.sdk.impl.cron; import com.cronutils.model.Cron; import com.cronutils.model.time.ExecutionTime; -import io.serverlessworkflow.impl.scheduler.CronResolver; import java.time.Duration; import java.time.ZonedDateTime; import java.util.Optional; +import org.openworkflow.sdk.impl.scheduler.CronResolver; class CronUtilsResolver implements CronResolver { diff --git a/impl/cron/src/main/java/io/serverlessworkflow/impl/cron/CronUtilsResolverFactory.java b/impl/cron/src/main/java/org/openworkflow/sdk/impl/cron/CronUtilsResolverFactory.java similarity index 82% rename from impl/cron/src/main/java/io/serverlessworkflow/impl/cron/CronUtilsResolverFactory.java rename to impl/cron/src/main/java/org/openworkflow/sdk/impl/cron/CronUtilsResolverFactory.java index c5b9f5e42..e8bb1e0a9 100644 --- a/impl/cron/src/main/java/io/serverlessworkflow/impl/cron/CronUtilsResolverFactory.java +++ b/impl/cron/src/main/java/org/openworkflow/sdk/impl/cron/CronUtilsResolverFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,13 +13,13 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.cron; +package org.openworkflow.sdk.impl.cron; import com.cronutils.model.CronType; import com.cronutils.model.definition.CronDefinitionBuilder; import com.cronutils.parser.CronParser; -import io.serverlessworkflow.impl.scheduler.CronResolver; -import io.serverlessworkflow.impl.scheduler.CronResolverFactory; +import org.openworkflow.sdk.impl.scheduler.CronResolver; +import org.openworkflow.sdk.impl.scheduler.CronResolverFactory; public class CronUtilsResolverFactory implements CronResolverFactory { diff --git a/impl/cron/src/main/resources/META-INF/services/io.serverlessworkflow.impl.scheduler.CronResolverFactory b/impl/cron/src/main/resources/META-INF/services/io.serverlessworkflow.impl.scheduler.CronResolverFactory deleted file mode 100644 index 846dc6696..000000000 --- a/impl/cron/src/main/resources/META-INF/services/io.serverlessworkflow.impl.scheduler.CronResolverFactory +++ /dev/null @@ -1 +0,0 @@ -io.serverlessworkflow.impl.cron.CronUtilsResolverFactory \ No newline at end of file diff --git a/impl/cron/src/main/resources/META-INF/services/org.openworkflow.sdk.impl.scheduler.CronResolverFactory b/impl/cron/src/main/resources/META-INF/services/org.openworkflow.sdk.impl.scheduler.CronResolverFactory new file mode 100644 index 000000000..3e764e29f --- /dev/null +++ b/impl/cron/src/main/resources/META-INF/services/org.openworkflow.sdk.impl.scheduler.CronResolverFactory @@ -0,0 +1 @@ +org.openworkflow.sdk.impl.cron.CronUtilsResolverFactory \ No newline at end of file diff --git a/impl/function/pom.xml b/impl/function/pom.xml index 0c637884c..926098e32 100644 --- a/impl/function/pom.xml +++ b/impl/function/pom.xml @@ -1,24 +1,24 @@ 4.0.0 - io.serverlessworkflow - serverlessworkflow-impl + org.openworkflow.sdk + openworkflow-impl 8.0.0-SNAPSHOT - serverlessworkflow-impl-function - Serverless Workflow :: Impl :: Jackson:: Function + openworkflow-impl-function + Open Workflow :: Impl :: Function - io.serverlessworkflow - serverlessworkflow-api + org.openworkflow.sdk + openworkflow-api - io.serverlessworkflow - serverlessworkflow-impl-core + org.openworkflow.sdk + openworkflow-impl-core - io.serverlessworkflow - serverlessworkflow-impl-json + org.openworkflow.sdk + openworkflow-impl-json \ No newline at end of file diff --git a/impl/function/src/main/java/io/serverlessworkflow/impl/jackson/function/JacksonFunctionReader.java b/impl/function/src/main/java/org/openworkflow/sdk/impl/jackson/function/JacksonFunctionReader.java similarity index 74% rename from impl/function/src/main/java/io/serverlessworkflow/impl/jackson/function/JacksonFunctionReader.java rename to impl/function/src/main/java/org/openworkflow/sdk/impl/jackson/function/JacksonFunctionReader.java index 425fec267..9450c37e7 100644 --- a/impl/function/src/main/java/io/serverlessworkflow/impl/jackson/function/JacksonFunctionReader.java +++ b/impl/function/src/main/java/org/openworkflow/sdk/impl/jackson/function/JacksonFunctionReader.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,15 +13,15 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.jackson.function; +package org.openworkflow.sdk.impl.jackson.function; -import io.serverlessworkflow.api.WorkflowFormat; -import io.serverlessworkflow.api.types.Task; -import io.serverlessworkflow.impl.FunctionReader; -import io.serverlessworkflow.impl.resources.ExternalResourceHandler; import java.io.IOException; import java.io.InputStream; import java.io.UncheckedIOException; +import org.openworkflow.sdk.api.WorkflowFormat; +import org.openworkflow.sdk.api.types.Task; +import org.openworkflow.sdk.impl.FunctionReader; +import org.openworkflow.sdk.impl.resources.ExternalResourceHandler; public class JacksonFunctionReader implements FunctionReader { diff --git a/impl/function/src/main/resources/META-INF/services/io.serverlessworkflow.impl.FunctionReader b/impl/function/src/main/resources/META-INF/services/io.serverlessworkflow.impl.FunctionReader deleted file mode 100644 index 0c8ebd73c..000000000 --- a/impl/function/src/main/resources/META-INF/services/io.serverlessworkflow.impl.FunctionReader +++ /dev/null @@ -1 +0,0 @@ -io.serverlessworkflow.impl.jackson.function.JacksonFunctionReader \ No newline at end of file diff --git a/impl/function/src/main/resources/META-INF/services/org.openworkflow.sdk.impl.FunctionReader b/impl/function/src/main/resources/META-INF/services/org.openworkflow.sdk.impl.FunctionReader new file mode 100644 index 000000000..0d6d669ce --- /dev/null +++ b/impl/function/src/main/resources/META-INF/services/org.openworkflow.sdk.impl.FunctionReader @@ -0,0 +1 @@ +org.openworkflow.sdk.impl.jackson.function.JacksonFunctionReader \ No newline at end of file diff --git a/impl/grpc/pom.xml b/impl/grpc/pom.xml index f6583ac9f..781e7b2cb 100644 --- a/impl/grpc/pom.xml +++ b/impl/grpc/pom.xml @@ -1,17 +1,17 @@ 4.0.0 - io.serverlessworkflow - serverlessworkflow-impl + org.openworkflow.sdk + openworkflow-impl 8.0.0-SNAPSHOT - serverlessworkflow-impl-grpc - Serverless Workflow :: Impl :: gRPC + openworkflow-impl-grpc + Open Workflow :: Impl :: gRPC - io.serverlessworkflow - serverlessworkflow-impl-core + org.openworkflow.sdk + openworkflow-impl-core io.grpc @@ -22,8 +22,8 @@ protobuf-java-util - io.serverlessworkflow - serverlessworkflow-impl-json + org.openworkflow.sdk + openworkflow-impl-json com.github.os72 diff --git a/impl/grpc/src/main/java/io/serverlessworkflow/impl/executors/grpc/CollectionStreamObserver.java b/impl/grpc/src/main/java/org/openworkflow/sdk/impl/executors/grpc/CollectionStreamObserver.java similarity index 78% rename from impl/grpc/src/main/java/io/serverlessworkflow/impl/executors/grpc/CollectionStreamObserver.java rename to impl/grpc/src/main/java/org/openworkflow/sdk/impl/executors/grpc/CollectionStreamObserver.java index 1b0198410..a8a464afa 100644 --- a/impl/grpc/src/main/java/io/serverlessworkflow/impl/executors/grpc/CollectionStreamObserver.java +++ b/impl/grpc/src/main/java/org/openworkflow/sdk/impl/executors/grpc/CollectionStreamObserver.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,12 +13,12 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.executors.grpc; +package org.openworkflow.sdk.impl.executors.grpc; import com.google.protobuf.Message; -import io.serverlessworkflow.impl.TaskContext; -import io.serverlessworkflow.impl.WorkflowContext; -import io.serverlessworkflow.impl.WorkflowModelCollection; +import org.openworkflow.sdk.impl.TaskContext; +import org.openworkflow.sdk.impl.WorkflowContext; +import org.openworkflow.sdk.impl.WorkflowModelCollection; class CollectionStreamObserver extends ModelStreamObserver { diff --git a/impl/grpc/src/main/java/io/serverlessworkflow/impl/executors/grpc/FileDescriptorReader.java b/impl/grpc/src/main/java/org/openworkflow/sdk/impl/executors/grpc/FileDescriptorReader.java similarity index 97% rename from impl/grpc/src/main/java/io/serverlessworkflow/impl/executors/grpc/FileDescriptorReader.java rename to impl/grpc/src/main/java/org/openworkflow/sdk/impl/executors/grpc/FileDescriptorReader.java index f6ceb6b88..b8dd8cdd9 100644 --- a/impl/grpc/src/main/java/io/serverlessworkflow/impl/executors/grpc/FileDescriptorReader.java +++ b/impl/grpc/src/main/java/org/openworkflow/sdk/impl/executors/grpc/FileDescriptorReader.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.executors.grpc; +package org.openworkflow.sdk.impl.executors.grpc; import com.github.os72.protocjar.Protoc; import com.google.protobuf.DescriptorProtos; @@ -22,7 +22,6 @@ import com.google.protobuf.Descriptors.DescriptorValidationException; import com.google.protobuf.Descriptors.FileDescriptor; import com.google.protobuf.ProtocolStringList; -import io.serverlessworkflow.impl.resources.ExternalResourceHandler; import java.io.FileNotFoundException; import java.io.IOException; import java.io.InputStream; @@ -38,6 +37,7 @@ import java.util.List; import java.util.Map; import java.util.Objects; +import org.openworkflow.sdk.impl.resources.ExternalResourceHandler; import org.slf4j.Logger; import org.slf4j.LoggerFactory; diff --git a/impl/grpc/src/main/java/io/serverlessworkflow/impl/executors/grpc/GrpcExecutor.java b/impl/grpc/src/main/java/org/openworkflow/sdk/impl/executors/grpc/GrpcExecutor.java similarity index 95% rename from impl/grpc/src/main/java/io/serverlessworkflow/impl/executors/grpc/GrpcExecutor.java rename to impl/grpc/src/main/java/org/openworkflow/sdk/impl/executors/grpc/GrpcExecutor.java index de59c23e5..31102fce5 100644 --- a/impl/grpc/src/main/java/io/serverlessworkflow/impl/executors/grpc/GrpcExecutor.java +++ b/impl/grpc/src/main/java/org/openworkflow/sdk/impl/executors/grpc/GrpcExecutor.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.executors.grpc; +package org.openworkflow.sdk.impl.executors.grpc; import com.google.protobuf.DescriptorProtos; import com.google.protobuf.Descriptors; @@ -29,17 +29,17 @@ import io.grpc.protobuf.ProtoUtils; import io.grpc.stub.ClientCalls; import io.grpc.stub.StreamObserver; -import io.serverlessworkflow.impl.TaskContext; -import io.serverlessworkflow.impl.WorkflowContext; -import io.serverlessworkflow.impl.WorkflowModel; -import io.serverlessworkflow.impl.WorkflowModelCollection; -import io.serverlessworkflow.impl.WorkflowValueResolver; -import io.serverlessworkflow.impl.executors.CallableTask; import java.io.IOException; import java.util.Map; import java.util.Optional; import java.util.concurrent.CompletableFuture; import java.util.function.UnaryOperator; +import org.openworkflow.sdk.impl.TaskContext; +import org.openworkflow.sdk.impl.WorkflowContext; +import org.openworkflow.sdk.impl.WorkflowModel; +import org.openworkflow.sdk.impl.WorkflowModelCollection; +import org.openworkflow.sdk.impl.WorkflowValueResolver; +import org.openworkflow.sdk.impl.executors.CallableTask; public class GrpcExecutor implements CallableTask { diff --git a/impl/grpc/src/main/java/io/serverlessworkflow/impl/executors/grpc/GrpcExecutorBuilder.java b/impl/grpc/src/main/java/org/openworkflow/sdk/impl/executors/grpc/GrpcExecutorBuilder.java similarity index 77% rename from impl/grpc/src/main/java/io/serverlessworkflow/impl/executors/grpc/GrpcExecutorBuilder.java rename to impl/grpc/src/main/java/org/openworkflow/sdk/impl/executors/grpc/GrpcExecutorBuilder.java index 4c22b4a61..c7eb0b9d5 100644 --- a/impl/grpc/src/main/java/io/serverlessworkflow/impl/executors/grpc/GrpcExecutorBuilder.java +++ b/impl/grpc/src/main/java/org/openworkflow/sdk/impl/executors/grpc/GrpcExecutorBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,21 +13,21 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.executors.grpc; +package org.openworkflow.sdk.impl.executors.grpc; import com.google.protobuf.Descriptors; import com.google.protobuf.Descriptors.FileDescriptor; -import io.serverlessworkflow.api.types.CallGRPC; -import io.serverlessworkflow.api.types.GRPCArguments; -import io.serverlessworkflow.api.types.TaskBase; -import io.serverlessworkflow.api.types.WithGRPCService; -import io.serverlessworkflow.impl.WorkflowDefinition; -import io.serverlessworkflow.impl.WorkflowMutablePosition; -import io.serverlessworkflow.impl.WorkflowUtils; -import io.serverlessworkflow.impl.executors.CallableTaskBuilder; -import io.serverlessworkflow.impl.executors.CallableTaskFactory; import java.util.Map; import java.util.Objects; +import org.openworkflow.sdk.api.types.CallGRPC; +import org.openworkflow.sdk.api.types.GRPCArguments; +import org.openworkflow.sdk.api.types.TaskBase; +import org.openworkflow.sdk.api.types.WithGRPCService; +import org.openworkflow.sdk.impl.WorkflowDefinition; +import org.openworkflow.sdk.impl.WorkflowMutablePosition; +import org.openworkflow.sdk.impl.WorkflowUtils; +import org.openworkflow.sdk.impl.executors.CallableTaskBuilder; +import org.openworkflow.sdk.impl.executors.CallableTaskFactory; public class GrpcExecutorBuilder implements CallableTaskBuilder { diff --git a/impl/grpc/src/main/java/io/serverlessworkflow/impl/executors/grpc/ItemStreamObserver.java b/impl/grpc/src/main/java/org/openworkflow/sdk/impl/executors/grpc/ItemStreamObserver.java similarity index 78% rename from impl/grpc/src/main/java/io/serverlessworkflow/impl/executors/grpc/ItemStreamObserver.java rename to impl/grpc/src/main/java/org/openworkflow/sdk/impl/executors/grpc/ItemStreamObserver.java index ddbecf830..8fbaf9785 100644 --- a/impl/grpc/src/main/java/io/serverlessworkflow/impl/executors/grpc/ItemStreamObserver.java +++ b/impl/grpc/src/main/java/org/openworkflow/sdk/impl/executors/grpc/ItemStreamObserver.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,12 +13,12 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.executors.grpc; +package org.openworkflow.sdk.impl.executors.grpc; import com.google.protobuf.Message; -import io.serverlessworkflow.impl.TaskContext; -import io.serverlessworkflow.impl.WorkflowContext; -import io.serverlessworkflow.impl.WorkflowModel; +import org.openworkflow.sdk.impl.TaskContext; +import org.openworkflow.sdk.impl.WorkflowContext; +import org.openworkflow.sdk.impl.WorkflowModel; class ItemStreamObserver extends ModelStreamObserver { diff --git a/impl/grpc/src/main/java/io/serverlessworkflow/impl/executors/grpc/ModelStreamObserver.java b/impl/grpc/src/main/java/org/openworkflow/sdk/impl/executors/grpc/ModelStreamObserver.java similarity index 78% rename from impl/grpc/src/main/java/io/serverlessworkflow/impl/executors/grpc/ModelStreamObserver.java rename to impl/grpc/src/main/java/org/openworkflow/sdk/impl/executors/grpc/ModelStreamObserver.java index c89c39ef7..9528f1852 100644 --- a/impl/grpc/src/main/java/io/serverlessworkflow/impl/executors/grpc/ModelStreamObserver.java +++ b/impl/grpc/src/main/java/org/openworkflow/sdk/impl/executors/grpc/ModelStreamObserver.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,17 +13,17 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.executors.grpc; +package org.openworkflow.sdk.impl.executors.grpc; import com.google.protobuf.Message; import io.grpc.stub.StreamObserver; -import io.serverlessworkflow.impl.TaskContext; -import io.serverlessworkflow.impl.WorkflowContext; -import io.serverlessworkflow.impl.WorkflowError; -import io.serverlessworkflow.impl.WorkflowException; -import io.serverlessworkflow.impl.WorkflowModel; -import io.serverlessworkflow.impl.WorkflowModelFactory; import java.util.concurrent.CompletableFuture; +import org.openworkflow.sdk.impl.TaskContext; +import org.openworkflow.sdk.impl.WorkflowContext; +import org.openworkflow.sdk.impl.WorkflowError; +import org.openworkflow.sdk.impl.WorkflowException; +import org.openworkflow.sdk.impl.WorkflowModel; +import org.openworkflow.sdk.impl.WorkflowModelFactory; abstract class ModelStreamObserver implements StreamObserver { protected T model; diff --git a/impl/grpc/src/main/java/io/serverlessworkflow/impl/executors/grpc/ProtobufMessageUtils.java b/impl/grpc/src/main/java/org/openworkflow/sdk/impl/executors/grpc/ProtobufMessageUtils.java similarity index 86% rename from impl/grpc/src/main/java/io/serverlessworkflow/impl/executors/grpc/ProtobufMessageUtils.java rename to impl/grpc/src/main/java/org/openworkflow/sdk/impl/executors/grpc/ProtobufMessageUtils.java index c4484f56b..421b89082 100644 --- a/impl/grpc/src/main/java/io/serverlessworkflow/impl/executors/grpc/ProtobufMessageUtils.java +++ b/impl/grpc/src/main/java/org/openworkflow/sdk/impl/executors/grpc/ProtobufMessageUtils.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,18 +13,18 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.executors.grpc; +package org.openworkflow.sdk.impl.executors.grpc; import com.google.protobuf.Descriptors; import com.google.protobuf.DynamicMessage; import com.google.protobuf.Message; import com.google.protobuf.util.JsonFormat; -import io.serverlessworkflow.impl.WorkflowModel; -import io.serverlessworkflow.impl.WorkflowModelFactory; -import io.serverlessworkflow.impl.jackson.JsonUtils; import java.io.IOException; import java.io.UncheckedIOException; import java.util.Map; +import org.openworkflow.sdk.impl.WorkflowModel; +import org.openworkflow.sdk.impl.WorkflowModelFactory; +import org.openworkflow.sdk.impl.jackson.JsonUtils; class ProtobufMessageUtils { diff --git a/impl/grpc/src/main/resources/META-INF/services/io.serverlessworkflow.impl.executors.CallableTaskBuilder b/impl/grpc/src/main/resources/META-INF/services/io.serverlessworkflow.impl.executors.CallableTaskBuilder deleted file mode 100644 index 6acd9ba63..000000000 --- a/impl/grpc/src/main/resources/META-INF/services/io.serverlessworkflow.impl.executors.CallableTaskBuilder +++ /dev/null @@ -1 +0,0 @@ -io.serverlessworkflow.impl.executors.grpc.GrpcExecutorBuilder \ No newline at end of file diff --git a/impl/grpc/src/main/resources/META-INF/services/org.openworkflow.sdk.impl.executors.CallableTaskBuilder b/impl/grpc/src/main/resources/META-INF/services/org.openworkflow.sdk.impl.executors.CallableTaskBuilder new file mode 100644 index 000000000..ec13c7e49 --- /dev/null +++ b/impl/grpc/src/main/resources/META-INF/services/org.openworkflow.sdk.impl.executors.CallableTaskBuilder @@ -0,0 +1 @@ +org.openworkflow.sdk.impl.executors.grpc.GrpcExecutorBuilder \ No newline at end of file diff --git a/impl/http/pom.xml b/impl/http/pom.xml index 7fa11af78..9e467b4e5 100644 --- a/impl/http/pom.xml +++ b/impl/http/pom.xml @@ -1,16 +1,16 @@ 4.0.0 - io.serverlessworkflow - serverlessworkflow-impl + org.openworkflow.sdk + openworkflow-impl 8.0.0-SNAPSHOT - serverlessworkflow-impl-http - Serverless Workflow :: Impl :: HTTP + openworkflow-impl-http + Open Workflow :: Impl :: HTTP - io.serverlessworkflow - serverlessworkflow-impl-template-resolver + org.openworkflow.sdk + openworkflow-impl-template-resolver org.junit.jupiter diff --git a/impl/http/src/main/java/io/serverlessworkflow/impl/executors/http/AbstractRequestExecutor.java b/impl/http/src/main/java/org/openworkflow/sdk/impl/executors/http/AbstractRequestExecutor.java similarity index 89% rename from impl/http/src/main/java/io/serverlessworkflow/impl/executors/http/AbstractRequestExecutor.java rename to impl/http/src/main/java/org/openworkflow/sdk/impl/executors/http/AbstractRequestExecutor.java index 83caf1789..e30257372 100644 --- a/impl/http/src/main/java/io/serverlessworkflow/impl/executors/http/AbstractRequestExecutor.java +++ b/impl/http/src/main/java/org/openworkflow/sdk/impl/executors/http/AbstractRequestExecutor.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,19 +13,11 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.executors.http; +package org.openworkflow.sdk.impl.executors.http; import static jakarta.ws.rs.core.Response.Status.Family.REDIRECTION; import static jakarta.ws.rs.core.Response.Status.Family.SUCCESSFUL; -import io.serverlessworkflow.impl.TaskContext; -import io.serverlessworkflow.impl.WorkflowContext; -import io.serverlessworkflow.impl.WorkflowError; -import io.serverlessworkflow.impl.WorkflowException; -import io.serverlessworkflow.impl.WorkflowModel; -import io.serverlessworkflow.impl.auth.AuthProvider; -import io.serverlessworkflow.impl.auth.AuthUtils; -import io.serverlessworkflow.types.Errors; import jakarta.ws.rs.ProcessingException; import jakarta.ws.rs.WebApplicationException; import jakarta.ws.rs.client.Invocation.Builder; @@ -38,6 +30,14 @@ import java.util.concurrent.CompletableFuture; import java.util.concurrent.ExecutorService; import java.util.concurrent.TimeoutException; +import org.openworkflow.sdk.impl.TaskContext; +import org.openworkflow.sdk.impl.WorkflowContext; +import org.openworkflow.sdk.impl.WorkflowError; +import org.openworkflow.sdk.impl.WorkflowException; +import org.openworkflow.sdk.impl.WorkflowModel; +import org.openworkflow.sdk.impl.auth.AuthProvider; +import org.openworkflow.sdk.impl.auth.AuthUtils; +import org.openworkflow.sdk.types.Errors; abstract class AbstractRequestExecutor implements RequestExecutor { diff --git a/impl/http/src/main/java/io/serverlessworkflow/impl/executors/http/CallableTaskHttpExecutorBuilder.java b/impl/http/src/main/java/org/openworkflow/sdk/impl/executors/http/CallableTaskHttpExecutorBuilder.java similarity index 76% rename from impl/http/src/main/java/io/serverlessworkflow/impl/executors/http/CallableTaskHttpExecutorBuilder.java rename to impl/http/src/main/java/org/openworkflow/sdk/impl/executors/http/CallableTaskHttpExecutorBuilder.java index 5f45f5562..22e83bf19 100644 --- a/impl/http/src/main/java/io/serverlessworkflow/impl/executors/http/CallableTaskHttpExecutorBuilder.java +++ b/impl/http/src/main/java/org/openworkflow/sdk/impl/executors/http/CallableTaskHttpExecutorBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,20 +13,20 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.executors.http; +package org.openworkflow.sdk.impl.executors.http; -import static io.serverlessworkflow.impl.WorkflowUtils.buildMapResolver; +import static org.openworkflow.sdk.impl.WorkflowUtils.buildMapResolver; -import io.serverlessworkflow.api.types.CallHTTP; -import io.serverlessworkflow.api.types.Endpoint; -import io.serverlessworkflow.api.types.HTTPArguments; -import io.serverlessworkflow.api.types.TaskBase; -import io.serverlessworkflow.impl.WorkflowDefinition; -import io.serverlessworkflow.impl.WorkflowMutablePosition; -import io.serverlessworkflow.impl.WorkflowValueResolver; -import io.serverlessworkflow.impl.executors.CallableTaskBuilder; -import io.serverlessworkflow.impl.executors.CallableTaskFactory; import java.net.URI; +import org.openworkflow.sdk.api.types.CallHTTP; +import org.openworkflow.sdk.api.types.Endpoint; +import org.openworkflow.sdk.api.types.HTTPArguments; +import org.openworkflow.sdk.api.types.TaskBase; +import org.openworkflow.sdk.impl.WorkflowDefinition; +import org.openworkflow.sdk.impl.WorkflowMutablePosition; +import org.openworkflow.sdk.impl.WorkflowValueResolver; +import org.openworkflow.sdk.impl.executors.CallableTaskBuilder; +import org.openworkflow.sdk.impl.executors.CallableTaskFactory; public class CallableTaskHttpExecutorBuilder implements CallableTaskBuilder { diff --git a/impl/http/src/main/java/io/serverlessworkflow/impl/executors/http/HttpClientResolver.java b/impl/http/src/main/java/org/openworkflow/sdk/impl/executors/http/HttpClientResolver.java similarity index 85% rename from impl/http/src/main/java/io/serverlessworkflow/impl/executors/http/HttpClientResolver.java rename to impl/http/src/main/java/org/openworkflow/sdk/impl/executors/http/HttpClientResolver.java index 740415272..c34e28336 100644 --- a/impl/http/src/main/java/io/serverlessworkflow/impl/executors/http/HttpClientResolver.java +++ b/impl/http/src/main/java/org/openworkflow/sdk/impl/executors/http/HttpClientResolver.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,15 +13,15 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.executors.http; +package org.openworkflow.sdk.impl.executors.http; -import io.serverlessworkflow.impl.TaskContext; -import io.serverlessworkflow.impl.WorkflowApplication; -import io.serverlessworkflow.impl.WorkflowContext; import jakarta.ws.rs.client.Client; import jakarta.ws.rs.client.ClientBuilder; import java.util.concurrent.locks.Lock; import java.util.concurrent.locks.ReentrantLock; +import org.openworkflow.sdk.impl.TaskContext; +import org.openworkflow.sdk.impl.WorkflowApplication; +import org.openworkflow.sdk.impl.WorkflowContext; public class HttpClientResolver { diff --git a/impl/http/src/main/java/io/serverlessworkflow/impl/executors/http/HttpConverterResolver.java b/impl/http/src/main/java/org/openworkflow/sdk/impl/executors/http/HttpConverterResolver.java similarity index 85% rename from impl/http/src/main/java/io/serverlessworkflow/impl/executors/http/HttpConverterResolver.java rename to impl/http/src/main/java/org/openworkflow/sdk/impl/executors/http/HttpConverterResolver.java index df80d122f..783b7066d 100644 --- a/impl/http/src/main/java/io/serverlessworkflow/impl/executors/http/HttpConverterResolver.java +++ b/impl/http/src/main/java/org/openworkflow/sdk/impl/executors/http/HttpConverterResolver.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,10 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.executors.http; +package org.openworkflow.sdk.impl.executors.http; -import io.serverlessworkflow.impl.TaskContext; -import io.serverlessworkflow.impl.WorkflowContext; +import org.openworkflow.sdk.impl.TaskContext; +import org.openworkflow.sdk.impl.WorkflowContext; public class HttpConverterResolver { diff --git a/impl/http/src/main/java/io/serverlessworkflow/impl/executors/http/HttpExecutor.java b/impl/http/src/main/java/org/openworkflow/sdk/impl/executors/http/HttpExecutor.java similarity index 87% rename from impl/http/src/main/java/io/serverlessworkflow/impl/executors/http/HttpExecutor.java rename to impl/http/src/main/java/org/openworkflow/sdk/impl/executors/http/HttpExecutor.java index 31edeb8f3..ba6be80c4 100644 --- a/impl/http/src/main/java/io/serverlessworkflow/impl/executors/http/HttpExecutor.java +++ b/impl/http/src/main/java/org/openworkflow/sdk/impl/executors/http/HttpExecutor.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,14 +13,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.executors.http; +package org.openworkflow.sdk.impl.executors.http; -import io.serverlessworkflow.impl.TaskContext; -import io.serverlessworkflow.impl.WorkflowContext; -import io.serverlessworkflow.impl.WorkflowModel; -import io.serverlessworkflow.impl.WorkflowUtils; -import io.serverlessworkflow.impl.WorkflowValueResolver; -import io.serverlessworkflow.impl.executors.CallableTask; import jakarta.ws.rs.client.Invocation.Builder; import jakarta.ws.rs.client.WebTarget; import java.net.URI; @@ -29,6 +23,12 @@ import java.util.Map.Entry; import java.util.Optional; import java.util.concurrent.CompletableFuture; +import org.openworkflow.sdk.impl.TaskContext; +import org.openworkflow.sdk.impl.WorkflowContext; +import org.openworkflow.sdk.impl.WorkflowModel; +import org.openworkflow.sdk.impl.WorkflowUtils; +import org.openworkflow.sdk.impl.WorkflowValueResolver; +import org.openworkflow.sdk.impl.executors.CallableTask; public class HttpExecutor implements CallableTask { diff --git a/impl/http/src/main/java/io/serverlessworkflow/impl/executors/http/HttpExecutorBuilder.java b/impl/http/src/main/java/org/openworkflow/sdk/impl/executors/http/HttpExecutorBuilder.java similarity index 90% rename from impl/http/src/main/java/io/serverlessworkflow/impl/executors/http/HttpExecutorBuilder.java rename to impl/http/src/main/java/org/openworkflow/sdk/impl/executors/http/HttpExecutorBuilder.java index 5433a3432..db15d100e 100644 --- a/impl/http/src/main/java/io/serverlessworkflow/impl/executors/http/HttpExecutorBuilder.java +++ b/impl/http/src/main/java/org/openworkflow/sdk/impl/executors/http/HttpExecutorBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,15 +13,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.executors.http; - -import io.serverlessworkflow.api.types.ReferenceableAuthenticationPolicy; -import io.serverlessworkflow.api.types.Use; -import io.serverlessworkflow.api.types.UseAuthentications; -import io.serverlessworkflow.impl.WorkflowDefinition; -import io.serverlessworkflow.impl.WorkflowUtils; -import io.serverlessworkflow.impl.WorkflowValueResolver; -import io.serverlessworkflow.impl.auth.AuthProvider; +package org.openworkflow.sdk.impl.executors.http; + import jakarta.ws.rs.HttpMethod; import java.net.URI; import java.util.ArrayList; @@ -30,6 +23,13 @@ import java.util.List; import java.util.Map; import java.util.Optional; +import org.openworkflow.sdk.api.types.ReferenceableAuthenticationPolicy; +import org.openworkflow.sdk.api.types.Use; +import org.openworkflow.sdk.api.types.UseAuthentications; +import org.openworkflow.sdk.impl.WorkflowDefinition; +import org.openworkflow.sdk.impl.WorkflowUtils; +import org.openworkflow.sdk.impl.WorkflowValueResolver; +import org.openworkflow.sdk.impl.auth.AuthProvider; public class HttpExecutorBuilder { diff --git a/impl/http/src/main/java/io/serverlessworkflow/impl/executors/http/HttpModelConverter.java b/impl/http/src/main/java/org/openworkflow/sdk/impl/executors/http/HttpModelConverter.java similarity index 86% rename from impl/http/src/main/java/io/serverlessworkflow/impl/executors/http/HttpModelConverter.java rename to impl/http/src/main/java/org/openworkflow/sdk/impl/executors/http/HttpModelConverter.java index 7465afe46..0e9ff3097 100644 --- a/impl/http/src/main/java/io/serverlessworkflow/impl/executors/http/HttpModelConverter.java +++ b/impl/http/src/main/java/org/openworkflow/sdk/impl/executors/http/HttpModelConverter.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,12 +13,12 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.executors.http; +package org.openworkflow.sdk.impl.executors.http; -import io.serverlessworkflow.impl.WorkflowError; -import io.serverlessworkflow.impl.WorkflowModel; import jakarta.ws.rs.client.Entity; import jakarta.ws.rs.core.Response; +import org.openworkflow.sdk.impl.WorkflowError; +import org.openworkflow.sdk.impl.WorkflowModel; import org.slf4j.LoggerFactory; public interface HttpModelConverter { diff --git a/impl/http/src/main/java/io/serverlessworkflow/impl/executors/http/HttpRequestDecorator.java b/impl/http/src/main/java/org/openworkflow/sdk/impl/executors/http/HttpRequestDecorator.java similarity index 81% rename from impl/http/src/main/java/io/serverlessworkflow/impl/executors/http/HttpRequestDecorator.java rename to impl/http/src/main/java/org/openworkflow/sdk/impl/executors/http/HttpRequestDecorator.java index ffab37234..e8d46dfc2 100644 --- a/impl/http/src/main/java/io/serverlessworkflow/impl/executors/http/HttpRequestDecorator.java +++ b/impl/http/src/main/java/org/openworkflow/sdk/impl/executors/http/HttpRequestDecorator.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,10 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.executors.http; +package org.openworkflow.sdk.impl.executors.http; -import io.serverlessworkflow.impl.WorkflowDecorator; import jakarta.ws.rs.client.Invocation; +import org.openworkflow.sdk.impl.WorkflowDecorator; /** Interface for decorating HTTP requests with additional modifications. */ public interface HttpRequestDecorator extends WorkflowDecorator {} diff --git a/impl/http/src/main/java/io/serverlessworkflow/impl/executors/http/RequestExecutor.java b/impl/http/src/main/java/org/openworkflow/sdk/impl/executors/http/RequestExecutor.java similarity index 76% rename from impl/http/src/main/java/io/serverlessworkflow/impl/executors/http/RequestExecutor.java rename to impl/http/src/main/java/org/openworkflow/sdk/impl/executors/http/RequestExecutor.java index a5caf54e6..f1dcffe3e 100644 --- a/impl/http/src/main/java/io/serverlessworkflow/impl/executors/http/RequestExecutor.java +++ b/impl/http/src/main/java/org/openworkflow/sdk/impl/executors/http/RequestExecutor.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,14 +13,14 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.executors.http; +package org.openworkflow.sdk.impl.executors.http; -import io.serverlessworkflow.impl.TaskContext; -import io.serverlessworkflow.impl.WorkflowContext; -import io.serverlessworkflow.impl.WorkflowModel; import jakarta.ws.rs.client.Invocation.Builder; import java.net.URI; import java.util.concurrent.CompletableFuture; +import org.openworkflow.sdk.impl.TaskContext; +import org.openworkflow.sdk.impl.WorkflowContext; +import org.openworkflow.sdk.impl.WorkflowModel; @FunctionalInterface interface RequestExecutor { diff --git a/impl/http/src/main/java/io/serverlessworkflow/impl/executors/http/WithBodyRequestExecutor.java b/impl/http/src/main/java/org/openworkflow/sdk/impl/executors/http/WithBodyRequestExecutor.java similarity index 74% rename from impl/http/src/main/java/io/serverlessworkflow/impl/executors/http/WithBodyRequestExecutor.java rename to impl/http/src/main/java/org/openworkflow/sdk/impl/executors/http/WithBodyRequestExecutor.java index 91661e294..399939288 100644 --- a/impl/http/src/main/java/io/serverlessworkflow/impl/executors/http/WithBodyRequestExecutor.java +++ b/impl/http/src/main/java/org/openworkflow/sdk/impl/executors/http/WithBodyRequestExecutor.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,18 +13,18 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.executors.http; +package org.openworkflow.sdk.impl.executors.http; -import io.serverlessworkflow.impl.TaskContext; -import io.serverlessworkflow.impl.WorkflowApplication; -import io.serverlessworkflow.impl.WorkflowContext; -import io.serverlessworkflow.impl.WorkflowFilter; -import io.serverlessworkflow.impl.WorkflowModel; -import io.serverlessworkflow.impl.WorkflowUtils; -import io.serverlessworkflow.impl.auth.AuthProvider; import jakarta.ws.rs.client.Invocation.Builder; import jakarta.ws.rs.core.Response; import java.util.Optional; +import org.openworkflow.sdk.impl.TaskContext; +import org.openworkflow.sdk.impl.WorkflowApplication; +import org.openworkflow.sdk.impl.WorkflowContext; +import org.openworkflow.sdk.impl.WorkflowFilter; +import org.openworkflow.sdk.impl.WorkflowModel; +import org.openworkflow.sdk.impl.WorkflowUtils; +import org.openworkflow.sdk.impl.auth.AuthProvider; class WithBodyRequestExecutor extends AbstractRequestExecutor { private final WorkflowFilter bodyFilter; diff --git a/impl/http/src/main/java/io/serverlessworkflow/impl/executors/http/WithoutBodyRequestExecutor.java b/impl/http/src/main/java/org/openworkflow/sdk/impl/executors/http/WithoutBodyRequestExecutor.java similarity index 77% rename from impl/http/src/main/java/io/serverlessworkflow/impl/executors/http/WithoutBodyRequestExecutor.java rename to impl/http/src/main/java/org/openworkflow/sdk/impl/executors/http/WithoutBodyRequestExecutor.java index 5901a39dc..7fbe835fe 100644 --- a/impl/http/src/main/java/io/serverlessworkflow/impl/executors/http/WithoutBodyRequestExecutor.java +++ b/impl/http/src/main/java/org/openworkflow/sdk/impl/executors/http/WithoutBodyRequestExecutor.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,15 +13,15 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.executors.http; +package org.openworkflow.sdk.impl.executors.http; -import io.serverlessworkflow.impl.TaskContext; -import io.serverlessworkflow.impl.WorkflowContext; -import io.serverlessworkflow.impl.WorkflowModel; -import io.serverlessworkflow.impl.auth.AuthProvider; import jakarta.ws.rs.client.Invocation.Builder; import jakarta.ws.rs.core.Response; import java.util.Optional; +import org.openworkflow.sdk.impl.TaskContext; +import org.openworkflow.sdk.impl.WorkflowContext; +import org.openworkflow.sdk.impl.WorkflowModel; +import org.openworkflow.sdk.impl.auth.AuthProvider; class WithoutBodyRequestExecutor extends AbstractRequestExecutor { diff --git a/impl/http/src/main/java/io/serverlessworkflow/impl/executors/http/auth/JaxRSAccessTokenProvider.java b/impl/http/src/main/java/org/openworkflow/sdk/impl/executors/http/auth/JaxRSAccessTokenProvider.java similarity index 87% rename from impl/http/src/main/java/io/serverlessworkflow/impl/executors/http/auth/JaxRSAccessTokenProvider.java rename to impl/http/src/main/java/org/openworkflow/sdk/impl/executors/http/auth/JaxRSAccessTokenProvider.java index f67c08fc0..f7a612fe2 100644 --- a/impl/http/src/main/java/io/serverlessworkflow/impl/executors/http/auth/JaxRSAccessTokenProvider.java +++ b/impl/http/src/main/java/org/openworkflow/sdk/impl/executors/http/auth/JaxRSAccessTokenProvider.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,20 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.executors.http.auth; +package org.openworkflow.sdk.impl.executors.http.auth; -import static io.serverlessworkflow.api.types.OAuth2TokenRequest.Oauth2TokenRequestEncoding.APPLICATION_X_WWW_FORM_URLENCODED; +import static org.openworkflow.sdk.api.types.OAuth2TokenRequest.Oauth2TokenRequestEncoding.APPLICATION_X_WWW_FORM_URLENCODED; -import io.serverlessworkflow.impl.TaskContext; -import io.serverlessworkflow.impl.WorkflowContext; -import io.serverlessworkflow.impl.WorkflowError; -import io.serverlessworkflow.impl.WorkflowException; -import io.serverlessworkflow.impl.WorkflowModel; -import io.serverlessworkflow.impl.auth.AccessTokenProvider; -import io.serverlessworkflow.impl.auth.HttpRequestInfo; -import io.serverlessworkflow.impl.auth.JWT; -import io.serverlessworkflow.impl.auth.JWTConverter; -import io.serverlessworkflow.impl.executors.http.HttpClientResolver; import jakarta.ws.rs.ProcessingException; import jakarta.ws.rs.client.Client; import jakarta.ws.rs.client.Entity; @@ -41,6 +31,16 @@ import java.util.List; import java.util.Map; import java.util.concurrent.CompletableFuture; +import org.openworkflow.sdk.impl.TaskContext; +import org.openworkflow.sdk.impl.WorkflowContext; +import org.openworkflow.sdk.impl.WorkflowError; +import org.openworkflow.sdk.impl.WorkflowException; +import org.openworkflow.sdk.impl.WorkflowModel; +import org.openworkflow.sdk.impl.auth.AccessTokenProvider; +import org.openworkflow.sdk.impl.auth.HttpRequestInfo; +import org.openworkflow.sdk.impl.auth.JWT; +import org.openworkflow.sdk.impl.auth.JWTConverter; +import org.openworkflow.sdk.impl.executors.http.HttpClientResolver; class JaxRSAccessTokenProvider implements AccessTokenProvider { diff --git a/impl/http/src/main/java/io/serverlessworkflow/impl/executors/http/auth/JaxRSAccessTokenProviderFactory.java b/impl/http/src/main/java/org/openworkflow/sdk/impl/executors/http/auth/JaxRSAccessTokenProviderFactory.java similarity index 70% rename from impl/http/src/main/java/io/serverlessworkflow/impl/executors/http/auth/JaxRSAccessTokenProviderFactory.java rename to impl/http/src/main/java/org/openworkflow/sdk/impl/executors/http/auth/JaxRSAccessTokenProviderFactory.java index 22e31f9b7..ddbc71bba 100644 --- a/impl/http/src/main/java/io/serverlessworkflow/impl/executors/http/auth/JaxRSAccessTokenProviderFactory.java +++ b/impl/http/src/main/java/org/openworkflow/sdk/impl/executors/http/auth/JaxRSAccessTokenProviderFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,13 +13,13 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.executors.http.auth; +package org.openworkflow.sdk.impl.executors.http.auth; -import io.serverlessworkflow.impl.auth.AccessTokenProvider; -import io.serverlessworkflow.impl.auth.AccessTokenProviderFactory; -import io.serverlessworkflow.impl.auth.HttpRequestInfo; -import io.serverlessworkflow.impl.auth.JWTConverter; import java.util.List; +import org.openworkflow.sdk.impl.auth.AccessTokenProvider; +import org.openworkflow.sdk.impl.auth.AccessTokenProviderFactory; +import org.openworkflow.sdk.impl.auth.HttpRequestInfo; +import org.openworkflow.sdk.impl.auth.JWTConverter; public class JaxRSAccessTokenProviderFactory implements AccessTokenProviderFactory { diff --git a/impl/http/src/main/resources/META-INF/services/io.serverlessworkflow.impl.auth.AccessTokenProviderFactory b/impl/http/src/main/resources/META-INF/services/io.serverlessworkflow.impl.auth.AccessTokenProviderFactory deleted file mode 100644 index a11e9357e..000000000 --- a/impl/http/src/main/resources/META-INF/services/io.serverlessworkflow.impl.auth.AccessTokenProviderFactory +++ /dev/null @@ -1 +0,0 @@ -io.serverlessworkflow.impl.executors.http.auth.JaxRSAccessTokenProviderFactory \ No newline at end of file diff --git a/impl/http/src/main/resources/META-INF/services/io.serverlessworkflow.impl.executors.CallableTaskBuilder b/impl/http/src/main/resources/META-INF/services/io.serverlessworkflow.impl.executors.CallableTaskBuilder deleted file mode 100644 index ac3c2ec47..000000000 --- a/impl/http/src/main/resources/META-INF/services/io.serverlessworkflow.impl.executors.CallableTaskBuilder +++ /dev/null @@ -1 +0,0 @@ -io.serverlessworkflow.impl.executors.http.CallableTaskHttpExecutorBuilder \ No newline at end of file diff --git a/impl/http/src/main/resources/META-INF/services/org.openworkflow.sdk.impl.auth.AccessTokenProviderFactory b/impl/http/src/main/resources/META-INF/services/org.openworkflow.sdk.impl.auth.AccessTokenProviderFactory new file mode 100644 index 000000000..f1dba17de --- /dev/null +++ b/impl/http/src/main/resources/META-INF/services/org.openworkflow.sdk.impl.auth.AccessTokenProviderFactory @@ -0,0 +1 @@ +org.openworkflow.sdk.impl.executors.http.auth.JaxRSAccessTokenProviderFactory \ No newline at end of file diff --git a/impl/http/src/main/resources/META-INF/services/org.openworkflow.sdk.impl.executors.CallableTaskBuilder b/impl/http/src/main/resources/META-INF/services/org.openworkflow.sdk.impl.executors.CallableTaskBuilder new file mode 100644 index 000000000..96a53d33d --- /dev/null +++ b/impl/http/src/main/resources/META-INF/services/org.openworkflow.sdk.impl.executors.CallableTaskBuilder @@ -0,0 +1 @@ +org.openworkflow.sdk.impl.executors.http.CallableTaskHttpExecutorBuilder \ No newline at end of file diff --git a/impl/jackson/pom.xml b/impl/jackson/pom.xml index ec4b6d19c..0df977746 100644 --- a/impl/jackson/pom.xml +++ b/impl/jackson/pom.xml @@ -1,44 +1,44 @@ 4.0.0 - io.serverlessworkflow - serverlessworkflow-impl + org.openworkflow.sdk + openworkflow-impl 8.0.0-SNAPSHOT - serverlessworkflow-impl-jackson - Serverless Workflow :: Impl :: Jackson + openworkflow-impl-jackson + Open Workflow :: Impl :: Jackson - io.serverlessworkflow - serverlessworkflow-impl-core + org.openworkflow.sdk + openworkflow-impl-core - io.serverlessworkflow - serverlessworkflow-impl-jq + org.openworkflow.sdk + openworkflow-impl-jq - io.serverlessworkflow - serverlessworkflow-impl-template-resolver + org.openworkflow.sdk + openworkflow-impl-template-resolver - io.serverlessworkflow - serverlessworkflow-impl-model + org.openworkflow.sdk + openworkflow-impl-model - io.serverlessworkflow - serverlessworkflow-impl-validation + org.openworkflow.sdk + openworkflow-impl-validation - io.serverlessworkflow - serverlessworkflow-impl-function + org.openworkflow.sdk + openworkflow-impl-function - io.serverlessworkflow - serverlessworkflow-impl-lifecycle-events + org.openworkflow.sdk + openworkflow-impl-lifecycle-events - io.serverlessworkflow - serverlessworkflow-impl-cron + org.openworkflow.sdk + openworkflow-impl-cron \ No newline at end of file diff --git a/impl/javascript/pom.xml b/impl/javascript/pom.xml index 1101de3f1..233d8b1af 100644 --- a/impl/javascript/pom.xml +++ b/impl/javascript/pom.xml @@ -1,16 +1,16 @@ 4.0.0 - io.serverlessworkflow - serverlessworkflow-impl + org.openworkflow.sdk + openworkflow-impl 8.0.0-SNAPSHOT - serverlessworkflow-impl-script-js - Serverless Workflow :: Impl :: Script JavaScript + openworkflow-impl-script-js + Open Workflow :: Impl :: Script JavaScript - io.serverlessworkflow - serverlessworkflow-impl-core + org.openworkflow.sdk + openworkflow-impl-core org.graalvm.polyglot diff --git a/impl/javascript/src/main/java/io/serverlessworkflow/impl/executors/script/js/JavaScriptScriptTaskRunner.java b/impl/javascript/src/main/java/org/openworkflow/sdk/impl/executors/script/js/JavaScriptScriptTaskRunner.java similarity index 82% rename from impl/javascript/src/main/java/io/serverlessworkflow/impl/executors/script/js/JavaScriptScriptTaskRunner.java rename to impl/javascript/src/main/java/org/openworkflow/sdk/impl/executors/script/js/JavaScriptScriptTaskRunner.java index dce8f159a..68a68e9a5 100644 --- a/impl/javascript/src/main/java/io/serverlessworkflow/impl/executors/script/js/JavaScriptScriptTaskRunner.java +++ b/impl/javascript/src/main/java/org/openworkflow/sdk/impl/executors/script/js/JavaScriptScriptTaskRunner.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,21 +13,21 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.executors.script.js; +package org.openworkflow.sdk.impl.executors.script.js; -import io.serverlessworkflow.impl.TaskContext; -import io.serverlessworkflow.impl.WorkflowContext; -import io.serverlessworkflow.impl.WorkflowModel; -import io.serverlessworkflow.impl.scripts.ScriptContext; -import io.serverlessworkflow.impl.scripts.ScriptLanguageId; -import io.serverlessworkflow.impl.scripts.ScriptRunner; -import io.serverlessworkflow.impl.scripts.ScriptUtils; -import io.serverlessworkflow.impl.scripts.StreamSuppliers; import java.io.ByteArrayOutputStream; import java.util.Map; import org.graalvm.polyglot.Context; import org.graalvm.polyglot.Source; import org.graalvm.polyglot.Value; +import org.openworkflow.sdk.impl.TaskContext; +import org.openworkflow.sdk.impl.WorkflowContext; +import org.openworkflow.sdk.impl.WorkflowModel; +import org.openworkflow.sdk.impl.scripts.ScriptContext; +import org.openworkflow.sdk.impl.scripts.ScriptLanguageId; +import org.openworkflow.sdk.impl.scripts.ScriptRunner; +import org.openworkflow.sdk.impl.scripts.ScriptUtils; +import org.openworkflow.sdk.impl.scripts.StreamSuppliers; /** * JavaScript implementation of the {@link ScriptRunner} interface that executes JavaScript scripts diff --git a/impl/javascript/src/main/resources/META-INF/services/io.serverlessworkflow.impl.scripts.ScriptRunner b/impl/javascript/src/main/resources/META-INF/services/io.serverlessworkflow.impl.scripts.ScriptRunner deleted file mode 100644 index 0e3bb877b..000000000 --- a/impl/javascript/src/main/resources/META-INF/services/io.serverlessworkflow.impl.scripts.ScriptRunner +++ /dev/null @@ -1 +0,0 @@ -io.serverlessworkflow.impl.executors.script.js.JavaScriptScriptTaskRunner \ No newline at end of file diff --git a/impl/javascript/src/main/resources/META-INF/services/org.openworkflow.sdk.impl.scripts.ScriptRunner b/impl/javascript/src/main/resources/META-INF/services/org.openworkflow.sdk.impl.scripts.ScriptRunner new file mode 100644 index 000000000..2943ee7b4 --- /dev/null +++ b/impl/javascript/src/main/resources/META-INF/services/org.openworkflow.sdk.impl.scripts.ScriptRunner @@ -0,0 +1 @@ +org.openworkflow.sdk.impl.executors.script.js.JavaScriptScriptTaskRunner \ No newline at end of file diff --git a/impl/jq/pom.xml b/impl/jq/pom.xml index 909ace32b..02881777f 100644 --- a/impl/jq/pom.xml +++ b/impl/jq/pom.xml @@ -1,20 +1,20 @@ 4.0.0 - io.serverlessworkflow - serverlessworkflow-impl + org.openworkflow.sdk + openworkflow-impl 8.0.0-SNAPSHOT - serverlessworkflow-impl-jq - Serverless Workflow :: Impl :: JQ + openworkflow-impl-jq + Open Workflow :: Impl :: JQ net.thisptr jackson-jq - io.serverlessworkflow - serverlessworkflow-impl-json + org.openworkflow.sdk + openworkflow-impl-json org.junit.jupiter @@ -29,8 +29,8 @@ mockito-core - io.serverlessworkflow - serverlessworkflow-impl-model + org.openworkflow.sdk + openworkflow-impl-model test diff --git a/impl/jq/src/main/java/io/serverlessworkflow/impl/expressions/jq/JQExpression.java b/impl/jq/src/main/java/org/openworkflow/sdk/impl/expressions/jq/JQExpression.java similarity index 83% rename from impl/jq/src/main/java/io/serverlessworkflow/impl/expressions/jq/JQExpression.java rename to impl/jq/src/main/java/org/openworkflow/sdk/impl/expressions/jq/JQExpression.java index 21edca3a0..82b8ab7f8 100644 --- a/impl/jq/src/main/java/io/serverlessworkflow/impl/expressions/jq/JQExpression.java +++ b/impl/jq/src/main/java/org/openworkflow/sdk/impl/expressions/jq/JQExpression.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,23 +13,12 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.expressions.jq; +package org.openworkflow.sdk.impl.expressions.jq; -import static io.serverlessworkflow.impl.jackson.JsonUtils.modelToJson; +import static org.openworkflow.sdk.impl.jackson.JsonUtils.modelToJson; import com.fasterxml.jackson.databind.JsonNode; import com.fasterxml.jackson.databind.node.ArrayNode; -import io.serverlessworkflow.impl.AuthorizationDescriptor; -import io.serverlessworkflow.impl.TaskContext; -import io.serverlessworkflow.impl.WorkflowContext; -import io.serverlessworkflow.impl.WorkflowError; -import io.serverlessworkflow.impl.WorkflowException; -import io.serverlessworkflow.impl.WorkflowModel; -import io.serverlessworkflow.impl.expressions.ObjectExpression; -import io.serverlessworkflow.impl.expressions.TaskDescriptor; -import io.serverlessworkflow.impl.expressions.WorkflowDescriptor; -import io.serverlessworkflow.impl.jackson.FunctionJsonNode; -import io.serverlessworkflow.impl.jackson.JsonUtils; import java.util.Map; import java.util.function.Supplier; import net.thisptr.jackson.jq.Output; @@ -37,6 +26,17 @@ import net.thisptr.jackson.jq.Version; import net.thisptr.jackson.jq.exception.JsonQueryException; import net.thisptr.jackson.jq.internal.javacc.ExpressionParser; +import org.openworkflow.sdk.impl.AuthorizationDescriptor; +import org.openworkflow.sdk.impl.TaskContext; +import org.openworkflow.sdk.impl.WorkflowContext; +import org.openworkflow.sdk.impl.WorkflowError; +import org.openworkflow.sdk.impl.WorkflowException; +import org.openworkflow.sdk.impl.WorkflowModel; +import org.openworkflow.sdk.impl.expressions.ObjectExpression; +import org.openworkflow.sdk.impl.expressions.TaskDescriptor; +import org.openworkflow.sdk.impl.expressions.WorkflowDescriptor; +import org.openworkflow.sdk.impl.jackson.FunctionJsonNode; +import org.openworkflow.sdk.impl.jackson.JsonUtils; public class JQExpression implements ObjectExpression { diff --git a/impl/jq/src/main/java/io/serverlessworkflow/impl/expressions/jq/JQExpressionFactory.java b/impl/jq/src/main/java/org/openworkflow/sdk/impl/expressions/jq/JQExpressionFactory.java similarity index 88% rename from impl/jq/src/main/java/io/serverlessworkflow/impl/expressions/jq/JQExpressionFactory.java rename to impl/jq/src/main/java/org/openworkflow/sdk/impl/expressions/jq/JQExpressionFactory.java index 7eeac60f5..be628a846 100644 --- a/impl/jq/src/main/java/io/serverlessworkflow/impl/expressions/jq/JQExpressionFactory.java +++ b/impl/jq/src/main/java/org/openworkflow/sdk/impl/expressions/jq/JQExpressionFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,14 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.expressions.jq; +package org.openworkflow.sdk.impl.expressions.jq; import io.cloudevents.CloudEventData; import io.cloudevents.jackson.JsonCloudEventData; -import io.serverlessworkflow.impl.expressions.ExpressionUtils; -import io.serverlessworkflow.impl.expressions.ObjectExpression; -import io.serverlessworkflow.impl.expressions.ObjectExpressionFactory; -import io.serverlessworkflow.impl.jackson.JsonUtils; import java.time.OffsetDateTime; import java.util.Collection; import java.util.Map; @@ -30,6 +26,10 @@ import net.thisptr.jackson.jq.Scope; import net.thisptr.jackson.jq.Versions; import net.thisptr.jackson.jq.exception.JsonQueryException; +import org.openworkflow.sdk.impl.expressions.ExpressionUtils; +import org.openworkflow.sdk.impl.expressions.ObjectExpression; +import org.openworkflow.sdk.impl.expressions.ObjectExpressionFactory; +import org.openworkflow.sdk.impl.jackson.JsonUtils; public class JQExpressionFactory extends ObjectExpressionFactory { diff --git a/impl/jq/src/main/resources/META-INF/services/io.serverlessworkflow.impl.expressions.ExpressionFactory b/impl/jq/src/main/resources/META-INF/services/io.serverlessworkflow.impl.expressions.ExpressionFactory deleted file mode 100644 index 420f62ad3..000000000 --- a/impl/jq/src/main/resources/META-INF/services/io.serverlessworkflow.impl.expressions.ExpressionFactory +++ /dev/null @@ -1 +0,0 @@ -io.serverlessworkflow.impl.expressions.jq.JQExpressionFactory \ No newline at end of file diff --git a/impl/jq/src/main/resources/META-INF/services/org.openworkflow.sdk.impl.expressions.ExpressionFactory b/impl/jq/src/main/resources/META-INF/services/org.openworkflow.sdk.impl.expressions.ExpressionFactory new file mode 100644 index 000000000..5be82b17f --- /dev/null +++ b/impl/jq/src/main/resources/META-INF/services/org.openworkflow.sdk.impl.expressions.ExpressionFactory @@ -0,0 +1 @@ +org.openworkflow.sdk.impl.expressions.jq.JQExpressionFactory \ No newline at end of file diff --git a/impl/jq/src/test/java/io/serverlessworkflow/impl/expressions/jq/JQExpressionFactoryTest.java b/impl/jq/src/test/java/org/openworkflow/sdk/impl/expressions/jq/JQExpressionFactoryTest.java similarity index 87% rename from impl/jq/src/test/java/io/serverlessworkflow/impl/expressions/jq/JQExpressionFactoryTest.java rename to impl/jq/src/test/java/org/openworkflow/sdk/impl/expressions/jq/JQExpressionFactoryTest.java index aa9bcc8b2..67b2aefd4 100644 --- a/impl/jq/src/test/java/io/serverlessworkflow/impl/expressions/jq/JQExpressionFactoryTest.java +++ b/impl/jq/src/test/java/org/openworkflow/sdk/impl/expressions/jq/JQExpressionFactoryTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,16 +13,11 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.expressions.jq; +package org.openworkflow.sdk.impl.expressions.jq; -import static io.serverlessworkflow.impl.WorkflowUtils.loadFirst; import static org.assertj.core.api.Assertions.assertThat; +import static org.openworkflow.sdk.impl.WorkflowUtils.loadFirst; -import io.serverlessworkflow.impl.WorkflowContext; -import io.serverlessworkflow.impl.WorkflowModelFactory; -import io.serverlessworkflow.impl.WorkflowValueResolver; -import io.serverlessworkflow.impl.expressions.ExpressionDescriptor; -import io.serverlessworkflow.impl.jackson.JsonUtils; import java.util.Collection; import java.util.Iterator; import java.util.List; @@ -30,6 +25,11 @@ import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; import org.mockito.Mockito; +import org.openworkflow.sdk.impl.WorkflowContext; +import org.openworkflow.sdk.impl.WorkflowModelFactory; +import org.openworkflow.sdk.impl.WorkflowValueResolver; +import org.openworkflow.sdk.impl.expressions.ExpressionDescriptor; +import org.openworkflow.sdk.impl.jackson.JsonUtils; class JQExpressionFactoryTest { diff --git a/impl/json-utils/pom.xml b/impl/json-utils/pom.xml index c9dfc64f6..eba1b1334 100644 --- a/impl/json-utils/pom.xml +++ b/impl/json-utils/pom.xml @@ -1,20 +1,20 @@ 4.0.0 - io.serverlessworkflow - serverlessworkflow-impl + org.openworkflow.sdk + openworkflow-impl 8.0.0-SNAPSHOT - serverlessworkflow-impl-json - Serverless Workflow :: Impl :: Json utils + openworkflow-impl-json + Open Workflow :: Impl :: Json utils com.fasterxml.jackson.core jackson-databind - io.serverlessworkflow - serverlessworkflow-impl-core + org.openworkflow.sdk + openworkflow-impl-core io.cloudevents diff --git a/impl/json-utils/src/main/java/io/serverlessworkflow/impl/jackson/FunctionBaseJsonNode.java b/impl/json-utils/src/main/java/org/openworkflow/sdk/impl/jackson/FunctionBaseJsonNode.java similarity index 96% rename from impl/json-utils/src/main/java/io/serverlessworkflow/impl/jackson/FunctionBaseJsonNode.java rename to impl/json-utils/src/main/java/org/openworkflow/sdk/impl/jackson/FunctionBaseJsonNode.java index 0ce68c644..7d0083c9b 100644 --- a/impl/json-utils/src/main/java/io/serverlessworkflow/impl/jackson/FunctionBaseJsonNode.java +++ b/impl/json-utils/src/main/java/org/openworkflow/sdk/impl/jackson/FunctionBaseJsonNode.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.jackson; +package org.openworkflow.sdk.impl.jackson; import com.fasterxml.jackson.core.JsonGenerator; import com.fasterxml.jackson.core.JsonPointer; diff --git a/impl/json-utils/src/main/java/io/serverlessworkflow/impl/jackson/FunctionJsonNode.java b/impl/json-utils/src/main/java/org/openworkflow/sdk/impl/jackson/FunctionJsonNode.java similarity index 89% rename from impl/json-utils/src/main/java/io/serverlessworkflow/impl/jackson/FunctionJsonNode.java rename to impl/json-utils/src/main/java/org/openworkflow/sdk/impl/jackson/FunctionJsonNode.java index 5152a5123..5cb800a48 100644 --- a/impl/json-utils/src/main/java/io/serverlessworkflow/impl/jackson/FunctionJsonNode.java +++ b/impl/json-utils/src/main/java/org/openworkflow/sdk/impl/jackson/FunctionJsonNode.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.jackson; +package org.openworkflow.sdk.impl.jackson; import com.fasterxml.jackson.databind.JsonNode; import java.util.function.Function; diff --git a/impl/json-utils/src/main/java/io/serverlessworkflow/impl/jackson/JacksonCloudEventUtils.java b/impl/json-utils/src/main/java/org/openworkflow/sdk/impl/jackson/JacksonCloudEventUtils.java similarity index 95% rename from impl/json-utils/src/main/java/io/serverlessworkflow/impl/jackson/JacksonCloudEventUtils.java rename to impl/json-utils/src/main/java/org/openworkflow/sdk/impl/jackson/JacksonCloudEventUtils.java index d5c037d22..7d7a5aa9e 100644 --- a/impl/json-utils/src/main/java/io/serverlessworkflow/impl/jackson/JacksonCloudEventUtils.java +++ b/impl/json-utils/src/main/java/org/openworkflow/sdk/impl/jackson/JacksonCloudEventUtils.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.jackson; +package org.openworkflow.sdk.impl.jackson; import com.fasterxml.jackson.databind.JsonNode; import com.fasterxml.jackson.databind.node.NullNode; diff --git a/impl/json-utils/src/main/java/io/serverlessworkflow/impl/jackson/JsonUtils.java b/impl/json-utils/src/main/java/org/openworkflow/sdk/impl/jackson/JsonUtils.java similarity index 98% rename from impl/json-utils/src/main/java/io/serverlessworkflow/impl/jackson/JsonUtils.java rename to impl/json-utils/src/main/java/org/openworkflow/sdk/impl/jackson/JsonUtils.java index c3bb0bed6..0da058750 100644 --- a/impl/json-utils/src/main/java/io/serverlessworkflow/impl/jackson/JsonUtils.java +++ b/impl/json-utils/src/main/java/org/openworkflow/sdk/impl/jackson/JsonUtils.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.jackson; +package org.openworkflow.sdk.impl.jackson; import com.fasterxml.jackson.core.JsonProcessingException; import com.fasterxml.jackson.databind.JsonNode; @@ -33,7 +33,6 @@ import com.fasterxml.jackson.databind.node.TextNode; import io.cloudevents.CloudEvent; import io.cloudevents.CloudEventData; -import io.serverlessworkflow.impl.WorkflowModel; import java.io.IOException; import java.math.BigDecimal; import java.math.BigInteger; @@ -53,6 +52,7 @@ import java.util.function.Function; import java.util.function.Supplier; import java.util.stream.Collector; +import org.openworkflow.sdk.impl.WorkflowModel; public class JsonUtils { diff --git a/impl/json-utils/src/main/java/io/serverlessworkflow/impl/jackson/MergeUtils.java b/impl/json-utils/src/main/java/org/openworkflow/sdk/impl/jackson/MergeUtils.java similarity index 96% rename from impl/json-utils/src/main/java/io/serverlessworkflow/impl/jackson/MergeUtils.java rename to impl/json-utils/src/main/java/org/openworkflow/sdk/impl/jackson/MergeUtils.java index a94b7ff13..9f9d1fc8b 100644 --- a/impl/json-utils/src/main/java/io/serverlessworkflow/impl/jackson/MergeUtils.java +++ b/impl/json-utils/src/main/java/org/openworkflow/sdk/impl/jackson/MergeUtils.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.jackson; +package org.openworkflow.sdk.impl.jackson; import com.fasterxml.jackson.databind.JsonNode; import com.fasterxml.jackson.databind.node.ArrayNode; diff --git a/impl/json-utils/src/main/java/io/serverlessworkflow/impl/jackson/ObjectMapperFactory.java b/impl/json-utils/src/main/java/org/openworkflow/sdk/impl/jackson/ObjectMapperFactory.java similarity index 81% rename from impl/json-utils/src/main/java/io/serverlessworkflow/impl/jackson/ObjectMapperFactory.java rename to impl/json-utils/src/main/java/org/openworkflow/sdk/impl/jackson/ObjectMapperFactory.java index 6cc04cf24..04c742d5f 100644 --- a/impl/json-utils/src/main/java/io/serverlessworkflow/impl/jackson/ObjectMapperFactory.java +++ b/impl/json-utils/src/main/java/org/openworkflow/sdk/impl/jackson/ObjectMapperFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,10 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.jackson; +package org.openworkflow.sdk.impl.jackson; import com.fasterxml.jackson.databind.ObjectMapper; -import io.serverlessworkflow.impl.ServicePriority; import java.util.function.Supplier; +import org.openworkflow.sdk.impl.ServicePriority; public interface ObjectMapperFactory extends Supplier, ServicePriority {} diff --git a/impl/json-utils/src/main/java/io/serverlessworkflow/impl/jackson/ObjectMapperFactoryProvider.java b/impl/json-utils/src/main/java/org/openworkflow/sdk/impl/jackson/ObjectMapperFactoryProvider.java similarity index 92% rename from impl/json-utils/src/main/java/io/serverlessworkflow/impl/jackson/ObjectMapperFactoryProvider.java rename to impl/json-utils/src/main/java/org/openworkflow/sdk/impl/jackson/ObjectMapperFactoryProvider.java index 4e7cb1c60..40c4de571 100644 --- a/impl/json-utils/src/main/java/io/serverlessworkflow/impl/jackson/ObjectMapperFactoryProvider.java +++ b/impl/json-utils/src/main/java/org/openworkflow/sdk/impl/jackson/ObjectMapperFactoryProvider.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,9 +13,9 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.jackson; +package org.openworkflow.sdk.impl.jackson; -import static io.serverlessworkflow.impl.WorkflowUtils.loadFirst; +import static org.openworkflow.sdk.impl.WorkflowUtils.loadFirst; import com.fasterxml.jackson.databind.DeserializationFeature; import com.fasterxml.jackson.databind.ObjectMapper; diff --git a/impl/json-utils/src/test/java/io/serverlessworkflow/impl/jackson/JacksonCloudEventUtilsTest.java b/impl/json-utils/src/test/java/org/openworkflow/sdk/impl/jackson/JacksonCloudEventUtilsTest.java similarity index 97% rename from impl/json-utils/src/test/java/io/serverlessworkflow/impl/jackson/JacksonCloudEventUtilsTest.java rename to impl/json-utils/src/test/java/org/openworkflow/sdk/impl/jackson/JacksonCloudEventUtilsTest.java index 5f433e0f7..4bdef169b 100644 --- a/impl/json-utils/src/test/java/io/serverlessworkflow/impl/jackson/JacksonCloudEventUtilsTest.java +++ b/impl/json-utils/src/test/java/org/openworkflow/sdk/impl/jackson/JacksonCloudEventUtilsTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.jackson; +package org.openworkflow.sdk.impl.jackson; import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertFalse; diff --git a/impl/json-utils/src/test/java/io/serverlessworkflow/impl/jackson/JsonUtilsStaticInitTest.java b/impl/json-utils/src/test/java/org/openworkflow/sdk/impl/jackson/JsonUtilsStaticInitTest.java similarity index 94% rename from impl/json-utils/src/test/java/io/serverlessworkflow/impl/jackson/JsonUtilsStaticInitTest.java rename to impl/json-utils/src/test/java/org/openworkflow/sdk/impl/jackson/JsonUtilsStaticInitTest.java index 04a953aa9..ecd8b950f 100644 --- a/impl/json-utils/src/test/java/io/serverlessworkflow/impl/jackson/JsonUtilsStaticInitTest.java +++ b/impl/json-utils/src/test/java/org/openworkflow/sdk/impl/jackson/JsonUtilsStaticInitTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.jackson; +package org.openworkflow.sdk.impl.jackson; import static org.junit.jupiter.api.Assertions.assertNotSame; import static org.junit.jupiter.api.Assertions.assertSame; diff --git a/impl/jwt-impl/pom.xml b/impl/jwt-impl/pom.xml index 09c5164f6..07a53570c 100644 --- a/impl/jwt-impl/pom.xml +++ b/impl/jwt-impl/pom.xml @@ -2,22 +2,22 @@ 4.0.0 - io.serverlessworkflow - serverlessworkflow-impl + org.openworkflow.sdk + openworkflow-impl 8.0.0-SNAPSHOT - serverlessworkflow-impl-jackson-jwt - Serverless Workflow :: Impl :: JWT :: Jackson + openworkflow-impl-jackson-jwt + Open Workflow :: Impl :: JWT :: Jackson - io.serverlessworkflow - serverlessworkflow-impl-http + org.openworkflow.sdk + openworkflow-impl-http - io.serverlessworkflow - serverlessworkflow-impl-json + org.openworkflow.sdk + openworkflow-impl-json org.junit.jupiter diff --git a/impl/jwt-impl/src/main/java/io/serverlessworkflow/impl/executors/http/jackson/JacksonModelConverterFactory.java b/impl/jwt-impl/src/main/java/org/openworkflow/sdk/impl/executors/http/jackson/JacksonModelConverterFactory.java similarity index 73% rename from impl/jwt-impl/src/main/java/io/serverlessworkflow/impl/executors/http/jackson/JacksonModelConverterFactory.java rename to impl/jwt-impl/src/main/java/org/openworkflow/sdk/impl/executors/http/jackson/JacksonModelConverterFactory.java index e5909d2f9..8b77e5a5d 100644 --- a/impl/jwt-impl/src/main/java/io/serverlessworkflow/impl/executors/http/jackson/JacksonModelConverterFactory.java +++ b/impl/jwt-impl/src/main/java/org/openworkflow/sdk/impl/executors/http/jackson/JacksonModelConverterFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,14 +13,14 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.executors.http.jackson; +package org.openworkflow.sdk.impl.executors.http.jackson; import com.fasterxml.jackson.databind.JsonNode; -import io.serverlessworkflow.impl.TaskContextData; -import io.serverlessworkflow.impl.WorkflowContextData; -import io.serverlessworkflow.impl.additional.NamedWorkflowAdditionalObject; -import io.serverlessworkflow.impl.executors.http.HttpConverterResolver; -import io.serverlessworkflow.impl.executors.http.HttpModelConverter; +import org.openworkflow.sdk.impl.TaskContextData; +import org.openworkflow.sdk.impl.WorkflowContextData; +import org.openworkflow.sdk.impl.additional.NamedWorkflowAdditionalObject; +import org.openworkflow.sdk.impl.executors.http.HttpConverterResolver; +import org.openworkflow.sdk.impl.executors.http.HttpModelConverter; public class JacksonModelConverterFactory implements NamedWorkflowAdditionalObject { diff --git a/impl/jwt-impl/src/main/java/io/serverlessworkflow/impl/executors/http/oauth/jackson/JacksonJWTConverter.java b/impl/jwt-impl/src/main/java/org/openworkflow/sdk/impl/executors/http/oauth/jackson/JacksonJWTConverter.java similarity index 85% rename from impl/jwt-impl/src/main/java/io/serverlessworkflow/impl/executors/http/oauth/jackson/JacksonJWTConverter.java rename to impl/jwt-impl/src/main/java/org/openworkflow/sdk/impl/executors/http/oauth/jackson/JacksonJWTConverter.java index 3522913b9..bdd0b0db0 100644 --- a/impl/jwt-impl/src/main/java/io/serverlessworkflow/impl/executors/http/oauth/jackson/JacksonJWTConverter.java +++ b/impl/jwt-impl/src/main/java/org/openworkflow/sdk/impl/executors/http/oauth/jackson/JacksonJWTConverter.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,16 +13,16 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.executors.http.oauth.jackson; +package org.openworkflow.sdk.impl.executors.http.oauth.jackson; import com.fasterxml.jackson.core.type.TypeReference; -import io.serverlessworkflow.impl.auth.JWT; -import io.serverlessworkflow.impl.auth.JWTConverter; -import io.serverlessworkflow.impl.jackson.JsonUtils; import java.io.IOException; import java.nio.charset.StandardCharsets; import java.util.Base64; import java.util.Map; +import org.openworkflow.sdk.impl.auth.JWT; +import org.openworkflow.sdk.impl.auth.JWTConverter; +import org.openworkflow.sdk.impl.jackson.JsonUtils; public class JacksonJWTConverter implements JWTConverter { diff --git a/impl/jwt-impl/src/main/resources/META-INF/services/io.serverlessworkflow.impl.additional.NamedWorkflowAdditionalObject b/impl/jwt-impl/src/main/resources/META-INF/services/io.serverlessworkflow.impl.additional.NamedWorkflowAdditionalObject deleted file mode 100644 index 9f3e874a8..000000000 --- a/impl/jwt-impl/src/main/resources/META-INF/services/io.serverlessworkflow.impl.additional.NamedWorkflowAdditionalObject +++ /dev/null @@ -1 +0,0 @@ -io.serverlessworkflow.impl.executors.http.jackson.JacksonModelConverterFactory \ No newline at end of file diff --git a/impl/jwt-impl/src/main/resources/META-INF/services/io.serverlessworkflow.impl.auth.JWTConverter b/impl/jwt-impl/src/main/resources/META-INF/services/io.serverlessworkflow.impl.auth.JWTConverter deleted file mode 100644 index 9d4bcb2b2..000000000 --- a/impl/jwt-impl/src/main/resources/META-INF/services/io.serverlessworkflow.impl.auth.JWTConverter +++ /dev/null @@ -1 +0,0 @@ -io.serverlessworkflow.impl.executors.http.oauth.jackson.JacksonJWTConverter \ No newline at end of file diff --git a/impl/jwt-impl/src/main/resources/META-INF/services/org.openworkflow.sdk.impl.additional.NamedWorkflowAdditionalObject b/impl/jwt-impl/src/main/resources/META-INF/services/org.openworkflow.sdk.impl.additional.NamedWorkflowAdditionalObject new file mode 100644 index 000000000..6312ef99c --- /dev/null +++ b/impl/jwt-impl/src/main/resources/META-INF/services/org.openworkflow.sdk.impl.additional.NamedWorkflowAdditionalObject @@ -0,0 +1 @@ +org.openworkflow.sdk.impl.executors.http.jackson.JacksonModelConverterFactory \ No newline at end of file diff --git a/impl/jwt-impl/src/main/resources/META-INF/services/org.openworkflow.sdk.impl.auth.JWTConverter b/impl/jwt-impl/src/main/resources/META-INF/services/org.openworkflow.sdk.impl.auth.JWTConverter new file mode 100644 index 000000000..8f03b08b6 --- /dev/null +++ b/impl/jwt-impl/src/main/resources/META-INF/services/org.openworkflow.sdk.impl.auth.JWTConverter @@ -0,0 +1 @@ +org.openworkflow.sdk.impl.executors.http.oauth.jackson.JacksonJWTConverter \ No newline at end of file diff --git a/impl/jwt-impl/src/test/java/io/serverlessworkflow/impl/http/jwt/JacksonJWTImplTest.java b/impl/jwt-impl/src/test/java/org/openworkflow/sdk/impl/http/jwt/JacksonJWTImplTest.java similarity index 95% rename from impl/jwt-impl/src/test/java/io/serverlessworkflow/impl/http/jwt/JacksonJWTImplTest.java rename to impl/jwt-impl/src/test/java/org/openworkflow/sdk/impl/http/jwt/JacksonJWTImplTest.java index c96d75767..5e63129e1 100644 --- a/impl/jwt-impl/src/test/java/io/serverlessworkflow/impl/http/jwt/JacksonJWTImplTest.java +++ b/impl/jwt-impl/src/test/java/org/openworkflow/sdk/impl/http/jwt/JacksonJWTImplTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,20 +13,20 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.http.jwt; +package org.openworkflow.sdk.impl.http.jwt; import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertNull; import static org.junit.jupiter.api.Assertions.assertThrows; import static org.junit.jupiter.api.Assertions.assertTrue; -import io.serverlessworkflow.impl.auth.JWT; -import io.serverlessworkflow.impl.executors.http.oauth.jackson.JacksonJWTConverter; import java.time.Instant; import java.util.List; import java.util.Map; import java.util.Optional; import org.junit.jupiter.api.Test; +import org.openworkflow.sdk.impl.auth.JWT; +import org.openworkflow.sdk.impl.executors.http.oauth.jackson.JacksonJWTConverter; public class JacksonJWTImplTest { diff --git a/impl/lifecycleevent/pom.xml b/impl/lifecycleevent/pom.xml index dafad537d..f30588856 100644 --- a/impl/lifecycleevent/pom.xml +++ b/impl/lifecycleevent/pom.xml @@ -1,24 +1,24 @@ 4.0.0 - io.serverlessworkflow - serverlessworkflow-impl + org.openworkflow.sdk + openworkflow-impl 8.0.0-SNAPSHOT - serverlessworkflow-impl-lifecycle-events - Serverless Workflow :: Impl :: Jackson:: Lifecycle Events + openworkflow-impl-lifecycle-events + Open Workflow :: Impl :: Lifecycle Events - io.serverlessworkflow - serverlessworkflow-impl-json + org.openworkflow.sdk + openworkflow-impl-json - io.serverlessworkflow - serverlessworkflow-impl-core + org.openworkflow.sdk + openworkflow-impl-core - io.serverlessworkflow - serverlessworkflow-impl-model + org.openworkflow.sdk + openworkflow-impl-model test diff --git a/impl/lifecycleevent/src/main/java/io/serverlessworkflow/impl/jackson/events/JacksonLifeCyclePublisher.java b/impl/lifecycleevent/src/main/java/org/openworkflow/sdk/impl/jackson/events/JacksonLifeCyclePublisher.java similarity index 79% rename from impl/lifecycleevent/src/main/java/io/serverlessworkflow/impl/jackson/events/JacksonLifeCyclePublisher.java rename to impl/lifecycleevent/src/main/java/org/openworkflow/sdk/impl/jackson/events/JacksonLifeCyclePublisher.java index 66a7618a3..76e509231 100644 --- a/impl/lifecycleevent/src/main/java/io/serverlessworkflow/impl/jackson/events/JacksonLifeCyclePublisher.java +++ b/impl/lifecycleevent/src/main/java/org/openworkflow/sdk/impl/jackson/events/JacksonLifeCyclePublisher.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,12 +13,12 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.jackson.events; +package org.openworkflow.sdk.impl.jackson.events; import com.fasterxml.jackson.core.JsonProcessingException; -import io.serverlessworkflow.impl.jackson.JsonUtils; -import io.serverlessworkflow.impl.lifecycle.ce.AbstractLifeCyclePublisher; import java.io.UncheckedIOException; +import org.openworkflow.sdk.impl.jackson.JsonUtils; +import org.openworkflow.sdk.impl.lifecycle.ce.AbstractLifeCyclePublisher; public class JacksonLifeCyclePublisher extends AbstractLifeCyclePublisher { diff --git a/impl/lifecycleevent/src/main/resources/META-INF/services/io.serverlessworkflow.impl.lifecycle.WorkflowExecutionListener b/impl/lifecycleevent/src/main/resources/META-INF/services/io.serverlessworkflow.impl.lifecycle.WorkflowExecutionListener deleted file mode 100644 index 511575b5d..000000000 --- a/impl/lifecycleevent/src/main/resources/META-INF/services/io.serverlessworkflow.impl.lifecycle.WorkflowExecutionListener +++ /dev/null @@ -1 +0,0 @@ -io.serverlessworkflow.impl.jackson.events.JacksonLifeCyclePublisher \ No newline at end of file diff --git a/impl/lifecycleevent/src/main/resources/META-INF/services/org.openworkflow.sdk.impl.lifecycle.WorkflowExecutionListener b/impl/lifecycleevent/src/main/resources/META-INF/services/org.openworkflow.sdk.impl.lifecycle.WorkflowExecutionListener new file mode 100644 index 000000000..f8e68bb97 --- /dev/null +++ b/impl/lifecycleevent/src/main/resources/META-INF/services/org.openworkflow.sdk.impl.lifecycle.WorkflowExecutionListener @@ -0,0 +1 @@ +org.openworkflow.sdk.impl.jackson.events.JacksonLifeCyclePublisher \ No newline at end of file diff --git a/impl/lifecycleevent/src/test/java/io/serverlessworkflow/impl/jackson/events/JacksonLifeCyclePublisherTest.java b/impl/lifecycleevent/src/test/java/org/openworkflow/sdk/impl/jackson/events/JacksonLifeCyclePublisherTest.java similarity index 64% rename from impl/lifecycleevent/src/test/java/io/serverlessworkflow/impl/jackson/events/JacksonLifeCyclePublisherTest.java rename to impl/lifecycleevent/src/test/java/org/openworkflow/sdk/impl/jackson/events/JacksonLifeCyclePublisherTest.java index 6f4ccda37..45356fffa 100644 --- a/impl/lifecycleevent/src/test/java/io/serverlessworkflow/impl/jackson/events/JacksonLifeCyclePublisherTest.java +++ b/impl/lifecycleevent/src/test/java/org/openworkflow/sdk/impl/jackson/events/JacksonLifeCyclePublisherTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,55 +13,13 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.jackson.events; +package org.openworkflow.sdk.impl.jackson.events; import static org.assertj.core.api.Assertions.assertThat; import static org.mockito.Mockito.mock; import static org.mockito.Mockito.when; import io.cloudevents.core.data.PojoCloudEventData; -import io.serverlessworkflow.impl.TaskContext; -import io.serverlessworkflow.impl.WorkflowContext; -import io.serverlessworkflow.impl.WorkflowDefinition; -import io.serverlessworkflow.impl.WorkflowDefinitionId; -import io.serverlessworkflow.impl.WorkflowInstance; -import io.serverlessworkflow.impl.WorkflowModelFactory; -import io.serverlessworkflow.impl.WorkflowPosition; -import io.serverlessworkflow.impl.WorkflowStatus; -import io.serverlessworkflow.impl.jackson.JsonUtils; -import io.serverlessworkflow.impl.lifecycle.TaskCancelledEvent; -import io.serverlessworkflow.impl.lifecycle.TaskCompletedEvent; -import io.serverlessworkflow.impl.lifecycle.TaskFailedEvent; -import io.serverlessworkflow.impl.lifecycle.TaskResumedEvent; -import io.serverlessworkflow.impl.lifecycle.TaskRetriedEvent; -import io.serverlessworkflow.impl.lifecycle.TaskStartedEvent; -import io.serverlessworkflow.impl.lifecycle.TaskSuspendedEvent; -import io.serverlessworkflow.impl.lifecycle.WorkflowCancelledEvent; -import io.serverlessworkflow.impl.lifecycle.WorkflowCompletedEvent; -import io.serverlessworkflow.impl.lifecycle.WorkflowFailedEvent; -import io.serverlessworkflow.impl.lifecycle.WorkflowResumedEvent; -import io.serverlessworkflow.impl.lifecycle.WorkflowStartedEvent; -import io.serverlessworkflow.impl.lifecycle.WorkflowStatusEvent; -import io.serverlessworkflow.impl.lifecycle.WorkflowSuspendedEvent; -import io.serverlessworkflow.impl.lifecycle.ce.TaskCancelledCEData; -import io.serverlessworkflow.impl.lifecycle.ce.TaskCompletedCEData; -import io.serverlessworkflow.impl.lifecycle.ce.TaskCompletedCEDataWithOutput; -import io.serverlessworkflow.impl.lifecycle.ce.TaskFailedCEData; -import io.serverlessworkflow.impl.lifecycle.ce.TaskResumedCEData; -import io.serverlessworkflow.impl.lifecycle.ce.TaskRetriedCEData; -import io.serverlessworkflow.impl.lifecycle.ce.TaskStartedCEData; -import io.serverlessworkflow.impl.lifecycle.ce.TaskStartedCEDataWithInput; -import io.serverlessworkflow.impl.lifecycle.ce.TaskSuspendedCEData; -import io.serverlessworkflow.impl.lifecycle.ce.WorkflowCancelledCEData; -import io.serverlessworkflow.impl.lifecycle.ce.WorkflowCompletedCEData; -import io.serverlessworkflow.impl.lifecycle.ce.WorkflowCompletedCEDataWithOutput; -import io.serverlessworkflow.impl.lifecycle.ce.WorkflowFailedCEData; -import io.serverlessworkflow.impl.lifecycle.ce.WorkflowResumedCEData; -import io.serverlessworkflow.impl.lifecycle.ce.WorkflowStartedCEData; -import io.serverlessworkflow.impl.lifecycle.ce.WorkflowStartedCEDataWithInput; -import io.serverlessworkflow.impl.lifecycle.ce.WorkflowStatusCEDataEvent; -import io.serverlessworkflow.impl.lifecycle.ce.WorkflowSuspendedCEData; -import io.serverlessworkflow.impl.model.jackson.JacksonModelFactory; import java.io.IOException; import java.util.Map; import java.util.stream.Stream; @@ -69,6 +27,48 @@ import org.junit.jupiter.params.ParameterizedTest; import org.junit.jupiter.params.provider.Arguments; import org.junit.jupiter.params.provider.MethodSource; +import org.openworkflow.sdk.impl.TaskContext; +import org.openworkflow.sdk.impl.WorkflowContext; +import org.openworkflow.sdk.impl.WorkflowDefinition; +import org.openworkflow.sdk.impl.WorkflowDefinitionId; +import org.openworkflow.sdk.impl.WorkflowInstance; +import org.openworkflow.sdk.impl.WorkflowModelFactory; +import org.openworkflow.sdk.impl.WorkflowPosition; +import org.openworkflow.sdk.impl.WorkflowStatus; +import org.openworkflow.sdk.impl.jackson.JsonUtils; +import org.openworkflow.sdk.impl.lifecycle.TaskCancelledEvent; +import org.openworkflow.sdk.impl.lifecycle.TaskCompletedEvent; +import org.openworkflow.sdk.impl.lifecycle.TaskFailedEvent; +import org.openworkflow.sdk.impl.lifecycle.TaskResumedEvent; +import org.openworkflow.sdk.impl.lifecycle.TaskRetriedEvent; +import org.openworkflow.sdk.impl.lifecycle.TaskStartedEvent; +import org.openworkflow.sdk.impl.lifecycle.TaskSuspendedEvent; +import org.openworkflow.sdk.impl.lifecycle.WorkflowCancelledEvent; +import org.openworkflow.sdk.impl.lifecycle.WorkflowCompletedEvent; +import org.openworkflow.sdk.impl.lifecycle.WorkflowFailedEvent; +import org.openworkflow.sdk.impl.lifecycle.WorkflowResumedEvent; +import org.openworkflow.sdk.impl.lifecycle.WorkflowStartedEvent; +import org.openworkflow.sdk.impl.lifecycle.WorkflowStatusEvent; +import org.openworkflow.sdk.impl.lifecycle.WorkflowSuspendedEvent; +import org.openworkflow.sdk.impl.lifecycle.ce.TaskCancelledCEData; +import org.openworkflow.sdk.impl.lifecycle.ce.TaskCompletedCEData; +import org.openworkflow.sdk.impl.lifecycle.ce.TaskCompletedCEDataWithOutput; +import org.openworkflow.sdk.impl.lifecycle.ce.TaskFailedCEData; +import org.openworkflow.sdk.impl.lifecycle.ce.TaskResumedCEData; +import org.openworkflow.sdk.impl.lifecycle.ce.TaskRetriedCEData; +import org.openworkflow.sdk.impl.lifecycle.ce.TaskStartedCEData; +import org.openworkflow.sdk.impl.lifecycle.ce.TaskStartedCEDataWithInput; +import org.openworkflow.sdk.impl.lifecycle.ce.TaskSuspendedCEData; +import org.openworkflow.sdk.impl.lifecycle.ce.WorkflowCancelledCEData; +import org.openworkflow.sdk.impl.lifecycle.ce.WorkflowCompletedCEData; +import org.openworkflow.sdk.impl.lifecycle.ce.WorkflowCompletedCEDataWithOutput; +import org.openworkflow.sdk.impl.lifecycle.ce.WorkflowFailedCEData; +import org.openworkflow.sdk.impl.lifecycle.ce.WorkflowResumedCEData; +import org.openworkflow.sdk.impl.lifecycle.ce.WorkflowStartedCEData; +import org.openworkflow.sdk.impl.lifecycle.ce.WorkflowStartedCEDataWithInput; +import org.openworkflow.sdk.impl.lifecycle.ce.WorkflowStatusCEDataEvent; +import org.openworkflow.sdk.impl.lifecycle.ce.WorkflowSuspendedCEData; +import org.openworkflow.sdk.impl.model.jackson.JacksonModelFactory; public class JacksonLifeCyclePublisherTest { diff --git a/impl/model/pom.xml b/impl/model/pom.xml index 66b92c978..653bf9234 100644 --- a/impl/model/pom.xml +++ b/impl/model/pom.xml @@ -1,20 +1,20 @@ 4.0.0 - io.serverlessworkflow - serverlessworkflow-impl + org.openworkflow.sdk + openworkflow-impl 8.0.0-SNAPSHOT - serverlessworkflow-impl-model - Serverless Workflow :: Impl :: Jackson:: Model + openworkflow-impl-model + Open Workflow :: Impl :: Model - io.serverlessworkflow - serverlessworkflow-impl-json + org.openworkflow.sdk + openworkflow-impl-json - io.serverlessworkflow - serverlessworkflow-impl-core + org.openworkflow.sdk + openworkflow-impl-core org.junit.jupiter diff --git a/impl/model/src/main/java/io/serverlessworkflow/impl/model/jackson/AbstractJacksonMarshaller.java b/impl/model/src/main/java/org/openworkflow/sdk/impl/model/jackson/AbstractJacksonMarshaller.java similarity index 77% rename from impl/model/src/main/java/io/serverlessworkflow/impl/model/jackson/AbstractJacksonMarshaller.java rename to impl/model/src/main/java/org/openworkflow/sdk/impl/model/jackson/AbstractJacksonMarshaller.java index 16f577a75..d917d81fd 100644 --- a/impl/model/src/main/java/io/serverlessworkflow/impl/model/jackson/AbstractJacksonMarshaller.java +++ b/impl/model/src/main/java/org/openworkflow/sdk/impl/model/jackson/AbstractJacksonMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,15 +13,15 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.model.jackson; +package org.openworkflow.sdk.impl.model.jackson; import com.fasterxml.jackson.core.JsonProcessingException; -import io.serverlessworkflow.impl.jackson.JsonUtils; -import io.serverlessworkflow.impl.marshaller.CustomObjectMarshaller; -import io.serverlessworkflow.impl.marshaller.WorkflowInputBuffer; -import io.serverlessworkflow.impl.marshaller.WorkflowOutputBuffer; import java.io.IOException; import java.io.UncheckedIOException; +import org.openworkflow.sdk.impl.jackson.JsonUtils; +import org.openworkflow.sdk.impl.marshaller.CustomObjectMarshaller; +import org.openworkflow.sdk.impl.marshaller.WorkflowInputBuffer; +import org.openworkflow.sdk.impl.marshaller.WorkflowOutputBuffer; public abstract class AbstractJacksonMarshaller implements CustomObjectMarshaller { diff --git a/impl/model/src/main/java/io/serverlessworkflow/impl/model/jackson/JacksonModel.java b/impl/model/src/main/java/org/openworkflow/sdk/impl/model/jackson/JacksonModel.java similarity index 94% rename from impl/model/src/main/java/io/serverlessworkflow/impl/model/jackson/JacksonModel.java rename to impl/model/src/main/java/org/openworkflow/sdk/impl/model/jackson/JacksonModel.java index df55437bf..2e50de1a9 100644 --- a/impl/model/src/main/java/io/serverlessworkflow/impl/model/jackson/JacksonModel.java +++ b/impl/model/src/main/java/org/openworkflow/sdk/impl/model/jackson/JacksonModel.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.model.jackson; +package org.openworkflow.sdk.impl.model.jackson; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.databind.JsonNode; @@ -22,9 +22,6 @@ import com.fasterxml.jackson.databind.node.ArrayNode; import com.fasterxml.jackson.databind.node.BooleanNode; import com.fasterxml.jackson.databind.node.NullNode; -import io.serverlessworkflow.impl.AbstractWorkflowModel; -import io.serverlessworkflow.impl.WorkflowModel; -import io.serverlessworkflow.impl.jackson.JsonUtils; import java.math.BigDecimal; import java.math.BigInteger; import java.time.OffsetDateTime; @@ -33,6 +30,9 @@ import java.util.Map; import java.util.Objects; import java.util.Optional; +import org.openworkflow.sdk.impl.AbstractWorkflowModel; +import org.openworkflow.sdk.impl.WorkflowModel; +import org.openworkflow.sdk.impl.jackson.JsonUtils; @JsonSerialize(using = JacksonModelSerializer.class) @JsonDeserialize(using = JacksonModelDeserializer.class) diff --git a/impl/model/src/main/java/io/serverlessworkflow/impl/model/jackson/JacksonModelCollection.java b/impl/model/src/main/java/org/openworkflow/sdk/impl/model/jackson/JacksonModelCollection.java similarity index 92% rename from impl/model/src/main/java/io/serverlessworkflow/impl/model/jackson/JacksonModelCollection.java rename to impl/model/src/main/java/org/openworkflow/sdk/impl/model/jackson/JacksonModelCollection.java index 1796efca0..6932c37ef 100644 --- a/impl/model/src/main/java/io/serverlessworkflow/impl/model/jackson/JacksonModelCollection.java +++ b/impl/model/src/main/java/org/openworkflow/sdk/impl/model/jackson/JacksonModelCollection.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,22 +13,22 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.model.jackson; +package org.openworkflow.sdk.impl.model.jackson; import com.fasterxml.jackson.databind.JsonNode; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; import com.fasterxml.jackson.databind.annotation.JsonSerialize; import com.fasterxml.jackson.databind.node.ArrayNode; -import io.serverlessworkflow.impl.CollectionConversionUtils; -import io.serverlessworkflow.impl.WorkflowModel; -import io.serverlessworkflow.impl.WorkflowModelCollection; -import io.serverlessworkflow.impl.jackson.JsonUtils; import java.util.ArrayList; import java.util.Collection; import java.util.Iterator; import java.util.List; import java.util.Objects; import java.util.Optional; +import org.openworkflow.sdk.impl.CollectionConversionUtils; +import org.openworkflow.sdk.impl.WorkflowModel; +import org.openworkflow.sdk.impl.WorkflowModelCollection; +import org.openworkflow.sdk.impl.jackson.JsonUtils; @JsonSerialize(using = JacksonModelCollectionSerializer.class) @JsonDeserialize(using = JacksonModelCollectionDeserializer.class) diff --git a/impl/model/src/main/java/io/serverlessworkflow/impl/model/jackson/JacksonModelCollectionDeserializer.java b/impl/model/src/main/java/org/openworkflow/sdk/impl/model/jackson/JacksonModelCollectionDeserializer.java similarity index 91% rename from impl/model/src/main/java/io/serverlessworkflow/impl/model/jackson/JacksonModelCollectionDeserializer.java rename to impl/model/src/main/java/org/openworkflow/sdk/impl/model/jackson/JacksonModelCollectionDeserializer.java index 71011b895..ce2a604bc 100644 --- a/impl/model/src/main/java/io/serverlessworkflow/impl/model/jackson/JacksonModelCollectionDeserializer.java +++ b/impl/model/src/main/java/org/openworkflow/sdk/impl/model/jackson/JacksonModelCollectionDeserializer.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.model.jackson; +package org.openworkflow.sdk.impl.model.jackson; import com.fasterxml.jackson.core.JacksonException; import com.fasterxml.jackson.core.JsonParser; diff --git a/impl/model/src/main/java/io/serverlessworkflow/impl/model/jackson/JacksonModelCollectionMarshaller.java b/impl/model/src/main/java/org/openworkflow/sdk/impl/model/jackson/JacksonModelCollectionMarshaller.java similarity index 86% rename from impl/model/src/main/java/io/serverlessworkflow/impl/model/jackson/JacksonModelCollectionMarshaller.java rename to impl/model/src/main/java/org/openworkflow/sdk/impl/model/jackson/JacksonModelCollectionMarshaller.java index afe4777c1..e2fc9813e 100644 --- a/impl/model/src/main/java/io/serverlessworkflow/impl/model/jackson/JacksonModelCollectionMarshaller.java +++ b/impl/model/src/main/java/org/openworkflow/sdk/impl/model/jackson/JacksonModelCollectionMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.model.jackson; +package org.openworkflow.sdk.impl.model.jackson; public class JacksonModelCollectionMarshaller extends AbstractJacksonMarshaller { diff --git a/impl/model/src/main/java/io/serverlessworkflow/impl/model/jackson/JacksonModelCollectionSerializer.java b/impl/model/src/main/java/org/openworkflow/sdk/impl/model/jackson/JacksonModelCollectionSerializer.java similarity index 90% rename from impl/model/src/main/java/io/serverlessworkflow/impl/model/jackson/JacksonModelCollectionSerializer.java rename to impl/model/src/main/java/org/openworkflow/sdk/impl/model/jackson/JacksonModelCollectionSerializer.java index 0fbcc5355..5dd6229c1 100644 --- a/impl/model/src/main/java/io/serverlessworkflow/impl/model/jackson/JacksonModelCollectionSerializer.java +++ b/impl/model/src/main/java/org/openworkflow/sdk/impl/model/jackson/JacksonModelCollectionSerializer.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.model.jackson; +package org.openworkflow.sdk.impl.model.jackson; import com.fasterxml.jackson.core.JsonGenerator; import com.fasterxml.jackson.databind.SerializerProvider; diff --git a/impl/model/src/main/java/io/serverlessworkflow/impl/model/jackson/JacksonModelDeserializer.java b/impl/model/src/main/java/org/openworkflow/sdk/impl/model/jackson/JacksonModelDeserializer.java similarity index 90% rename from impl/model/src/main/java/io/serverlessworkflow/impl/model/jackson/JacksonModelDeserializer.java rename to impl/model/src/main/java/org/openworkflow/sdk/impl/model/jackson/JacksonModelDeserializer.java index e0dd30bef..8efa252b7 100644 --- a/impl/model/src/main/java/io/serverlessworkflow/impl/model/jackson/JacksonModelDeserializer.java +++ b/impl/model/src/main/java/org/openworkflow/sdk/impl/model/jackson/JacksonModelDeserializer.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.model.jackson; +package org.openworkflow.sdk.impl.model.jackson; import com.fasterxml.jackson.core.JacksonException; import com.fasterxml.jackson.core.JsonParser; diff --git a/impl/model/src/main/java/io/serverlessworkflow/impl/model/jackson/JacksonModelFactory.java b/impl/model/src/main/java/org/openworkflow/sdk/impl/model/jackson/JacksonModelFactory.java similarity index 90% rename from impl/model/src/main/java/io/serverlessworkflow/impl/model/jackson/JacksonModelFactory.java rename to impl/model/src/main/java/org/openworkflow/sdk/impl/model/jackson/JacksonModelFactory.java index 8b01935e5..6cb69ad6d 100644 --- a/impl/model/src/main/java/io/serverlessworkflow/impl/model/jackson/JacksonModelFactory.java +++ b/impl/model/src/main/java/org/openworkflow/sdk/impl/model/jackson/JacksonModelFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.model.jackson; +package org.openworkflow.sdk.impl.model.jackson; import com.fasterxml.jackson.core.JsonProcessingException; import com.fasterxml.jackson.databind.JsonNode; @@ -25,14 +25,14 @@ import com.fasterxml.jackson.databind.node.TextNode; import io.cloudevents.CloudEvent; import io.cloudevents.CloudEventData; -import io.serverlessworkflow.impl.WorkflowModel; -import io.serverlessworkflow.impl.WorkflowModelCollection; -import io.serverlessworkflow.impl.WorkflowModelFactory; -import io.serverlessworkflow.impl.jackson.JacksonCloudEventUtils; -import io.serverlessworkflow.impl.jackson.JsonUtils; import java.math.BigDecimal; import java.time.OffsetDateTime; import java.util.Map; +import org.openworkflow.sdk.impl.WorkflowModel; +import org.openworkflow.sdk.impl.WorkflowModelCollection; +import org.openworkflow.sdk.impl.WorkflowModelFactory; +import org.openworkflow.sdk.impl.jackson.JacksonCloudEventUtils; +import org.openworkflow.sdk.impl.jackson.JsonUtils; public class JacksonModelFactory implements WorkflowModelFactory { diff --git a/impl/model/src/main/java/io/serverlessworkflow/impl/model/jackson/JacksonModelMarshaller.java b/impl/model/src/main/java/org/openworkflow/sdk/impl/model/jackson/JacksonModelMarshaller.java similarity index 83% rename from impl/model/src/main/java/io/serverlessworkflow/impl/model/jackson/JacksonModelMarshaller.java rename to impl/model/src/main/java/org/openworkflow/sdk/impl/model/jackson/JacksonModelMarshaller.java index ca95e82fb..88dce3067 100644 --- a/impl/model/src/main/java/io/serverlessworkflow/impl/model/jackson/JacksonModelMarshaller.java +++ b/impl/model/src/main/java/org/openworkflow/sdk/impl/model/jackson/JacksonModelMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,9 +13,9 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.model.jackson; +package org.openworkflow.sdk.impl.model.jackson; -import io.serverlessworkflow.impl.marshaller.WorkflowInputBuffer; +import org.openworkflow.sdk.impl.marshaller.WorkflowInputBuffer; public class JacksonModelMarshaller extends AbstractJacksonMarshaller { diff --git a/impl/model/src/main/java/io/serverlessworkflow/impl/model/jackson/JacksonModelSerializer.java b/impl/model/src/main/java/org/openworkflow/sdk/impl/model/jackson/JacksonModelSerializer.java similarity index 90% rename from impl/model/src/main/java/io/serverlessworkflow/impl/model/jackson/JacksonModelSerializer.java rename to impl/model/src/main/java/org/openworkflow/sdk/impl/model/jackson/JacksonModelSerializer.java index e621ee77f..b657337aa 100644 --- a/impl/model/src/main/java/io/serverlessworkflow/impl/model/jackson/JacksonModelSerializer.java +++ b/impl/model/src/main/java/org/openworkflow/sdk/impl/model/jackson/JacksonModelSerializer.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.model.jackson; +package org.openworkflow.sdk.impl.model.jackson; import com.fasterxml.jackson.core.JsonGenerator; import com.fasterxml.jackson.databind.SerializerProvider; diff --git a/impl/model/src/main/java/io/serverlessworkflow/impl/model/jackson/JacksonObjectMarshaller.java b/impl/model/src/main/java/org/openworkflow/sdk/impl/model/jackson/JacksonObjectMarshaller.java similarity index 86% rename from impl/model/src/main/java/io/serverlessworkflow/impl/model/jackson/JacksonObjectMarshaller.java rename to impl/model/src/main/java/org/openworkflow/sdk/impl/model/jackson/JacksonObjectMarshaller.java index 1f406f804..61b69e86f 100644 --- a/impl/model/src/main/java/io/serverlessworkflow/impl/model/jackson/JacksonObjectMarshaller.java +++ b/impl/model/src/main/java/org/openworkflow/sdk/impl/model/jackson/JacksonObjectMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.model.jackson; +package org.openworkflow.sdk.impl.model.jackson; public class JacksonObjectMarshaller extends AbstractJacksonMarshaller { diff --git a/impl/model/src/main/resources/META-INF/native-image/io.serverlessworkflow/serverlessworkflow-impl-model/reflect-config.json b/impl/model/src/main/resources/META-INF/native-image/org.openworkflow.sdk/openworkflow-impl-model/reflect-config.json similarity index 83% rename from impl/model/src/main/resources/META-INF/native-image/io.serverlessworkflow/serverlessworkflow-impl-model/reflect-config.json rename to impl/model/src/main/resources/META-INF/native-image/org.openworkflow.sdk/openworkflow-impl-model/reflect-config.json index 91032a133..8970e2a81 100644 --- a/impl/model/src/main/resources/META-INF/native-image/io.serverlessworkflow/serverlessworkflow-impl-model/reflect-config.json +++ b/impl/model/src/main/resources/META-INF/native-image/org.openworkflow.sdk/openworkflow-impl-model/reflect-config.json @@ -1,6 +1,6 @@ [ { - "name": "io.serverlessworkflow.impl.model.jackson.JacksonModelSerializer", + "name": "org.openworkflow.sdk.impl.model.jackson.JacksonModelSerializer", "queryAllPublicConstructors": true, "queryAllDeclaredConstructors": true, "queryAllPublicMethods": true, @@ -15,7 +15,7 @@ "allDeclaredClasses": true }, { - "name": "io.serverlessworkflow.impl.model.jackson.JacksonModelDeserializer", + "name": "org.openworkflow.sdk.impl.model.jackson.JacksonModelDeserializer", "queryAllPublicConstructors": true, "queryAllDeclaredConstructors": true, "queryAllPublicMethods": true, @@ -30,7 +30,7 @@ "allDeclaredClasses": true }, { - "name": "io.serverlessworkflow.impl.model.jackson.JacksonModelCollectionSerializer", + "name": "org.openworkflow.sdk.impl.model.jackson.JacksonModelCollectionSerializer", "queryAllPublicConstructors": true, "queryAllDeclaredConstructors": true, "queryAllPublicMethods": true, @@ -45,7 +45,7 @@ "allDeclaredClasses": true }, { - "name": "io.serverlessworkflow.impl.model.jackson.JacksonModelCollectionDeserializer", + "name": "org.openworkflow.sdk.impl.model.jackson.JacksonModelCollectionDeserializer", "queryAllPublicConstructors": true, "queryAllDeclaredConstructors": true, "queryAllPublicMethods": true, diff --git a/impl/model/src/main/resources/META-INF/services/io.serverlessworkflow.impl.WorkflowModelFactory b/impl/model/src/main/resources/META-INF/services/io.serverlessworkflow.impl.WorkflowModelFactory deleted file mode 100644 index 663194671..000000000 --- a/impl/model/src/main/resources/META-INF/services/io.serverlessworkflow.impl.WorkflowModelFactory +++ /dev/null @@ -1 +0,0 @@ -io.serverlessworkflow.impl.model.jackson.JacksonModelFactory \ No newline at end of file diff --git a/impl/model/src/main/resources/META-INF/services/io.serverlessworkflow.impl.marshaller.CustomObjectMarshaller b/impl/model/src/main/resources/META-INF/services/io.serverlessworkflow.impl.marshaller.CustomObjectMarshaller deleted file mode 100644 index 914f4ffa7..000000000 --- a/impl/model/src/main/resources/META-INF/services/io.serverlessworkflow.impl.marshaller.CustomObjectMarshaller +++ /dev/null @@ -1,3 +0,0 @@ -io.serverlessworkflow.impl.model.jackson.JacksonModelMarshaller -io.serverlessworkflow.impl.model.jackson.JacksonModelCollectionMarshaller -io.serverlessworkflow.impl.model.jackson.JacksonObjectMarshaller \ No newline at end of file diff --git a/impl/model/src/main/resources/META-INF/services/org.openworkflow.sdk.impl.WorkflowModelFactory b/impl/model/src/main/resources/META-INF/services/org.openworkflow.sdk.impl.WorkflowModelFactory new file mode 100644 index 000000000..151c1c4c0 --- /dev/null +++ b/impl/model/src/main/resources/META-INF/services/org.openworkflow.sdk.impl.WorkflowModelFactory @@ -0,0 +1 @@ +org.openworkflow.sdk.impl.model.jackson.JacksonModelFactory \ No newline at end of file diff --git a/impl/model/src/main/resources/META-INF/services/org.openworkflow.sdk.impl.marshaller.CustomObjectMarshaller b/impl/model/src/main/resources/META-INF/services/org.openworkflow.sdk.impl.marshaller.CustomObjectMarshaller new file mode 100644 index 000000000..8f932d024 --- /dev/null +++ b/impl/model/src/main/resources/META-INF/services/org.openworkflow.sdk.impl.marshaller.CustomObjectMarshaller @@ -0,0 +1,3 @@ +org.openworkflow.sdk.impl.model.jackson.JacksonModelMarshaller +org.openworkflow.sdk.impl.model.jackson.JacksonModelCollectionMarshaller +org.openworkflow.sdk.impl.model.jackson.JacksonObjectMarshaller \ No newline at end of file diff --git a/impl/model/src/test/java/io/serverlessworkflow/impl/model/jackson/Employee.java b/impl/model/src/test/java/org/openworkflow/sdk/impl/model/jackson/Employee.java similarity index 83% rename from impl/model/src/test/java/io/serverlessworkflow/impl/model/jackson/Employee.java rename to impl/model/src/test/java/org/openworkflow/sdk/impl/model/jackson/Employee.java index 6d6d2e02e..a4739135a 100644 --- a/impl/model/src/test/java/io/serverlessworkflow/impl/model/jackson/Employee.java +++ b/impl/model/src/test/java/org/openworkflow/sdk/impl/model/jackson/Employee.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,6 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.model.jackson; +package org.openworkflow.sdk.impl.model.jackson; record Employee(String name, String company) {} diff --git a/impl/model/src/test/java/io/serverlessworkflow/impl/model/jackson/JacksonModelSerializationTest.java b/impl/model/src/test/java/org/openworkflow/sdk/impl/model/jackson/JacksonModelSerializationTest.java similarity index 81% rename from impl/model/src/test/java/io/serverlessworkflow/impl/model/jackson/JacksonModelSerializationTest.java rename to impl/model/src/test/java/org/openworkflow/sdk/impl/model/jackson/JacksonModelSerializationTest.java index 1c7f2754c..261de978c 100644 --- a/impl/model/src/test/java/io/serverlessworkflow/impl/model/jackson/JacksonModelSerializationTest.java +++ b/impl/model/src/test/java/org/openworkflow/sdk/impl/model/jackson/JacksonModelSerializationTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,18 +13,18 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.model.jackson; +package org.openworkflow.sdk.impl.model.jackson; import static org.assertj.core.api.Assertions.assertThat; -import io.serverlessworkflow.impl.jackson.JsonUtils; -import io.serverlessworkflow.impl.marshaller.DefaultBufferFactory; -import io.serverlessworkflow.impl.marshaller.WorkflowBufferFactory; -import io.serverlessworkflow.impl.marshaller.WorkflowInputBuffer; -import io.serverlessworkflow.impl.marshaller.WorkflowOutputBuffer; import java.io.ByteArrayInputStream; import java.io.ByteArrayOutputStream; import org.junit.jupiter.api.Test; +import org.openworkflow.sdk.impl.jackson.JsonUtils; +import org.openworkflow.sdk.impl.marshaller.DefaultBufferFactory; +import org.openworkflow.sdk.impl.marshaller.WorkflowBufferFactory; +import org.openworkflow.sdk.impl.marshaller.WorkflowInputBuffer; +import org.openworkflow.sdk.impl.marshaller.WorkflowOutputBuffer; class JacksonModelSerializationTest { diff --git a/impl/model/src/test/java/io/serverlessworkflow/impl/model/jackson/JacksonModelTest.java b/impl/model/src/test/java/org/openworkflow/sdk/impl/model/jackson/JacksonModelTest.java similarity index 91% rename from impl/model/src/test/java/io/serverlessworkflow/impl/model/jackson/JacksonModelTest.java rename to impl/model/src/test/java/org/openworkflow/sdk/impl/model/jackson/JacksonModelTest.java index ae4d62664..a96ce7217 100644 --- a/impl/model/src/test/java/io/serverlessworkflow/impl/model/jackson/JacksonModelTest.java +++ b/impl/model/src/test/java/org/openworkflow/sdk/impl/model/jackson/JacksonModelTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,19 +13,19 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.model.jackson; +package org.openworkflow.sdk.impl.model.jackson; import static org.assertj.core.api.Assertions.assertThat; import com.fasterxml.jackson.databind.JsonNode; -import io.serverlessworkflow.impl.WorkflowModel; -import io.serverlessworkflow.impl.WorkflowModelFactory; -import io.serverlessworkflow.impl.jackson.JsonUtils; import java.util.Collection; import java.util.LinkedHashMap; import java.util.Map; import org.junit.jupiter.api.BeforeAll; import org.junit.jupiter.api.Test; +import org.openworkflow.sdk.impl.WorkflowModel; +import org.openworkflow.sdk.impl.WorkflowModelFactory; +import org.openworkflow.sdk.impl.jackson.JsonUtils; public class JacksonModelTest { diff --git a/impl/openapi-jackson/pom.xml b/impl/openapi-jackson/pom.xml index 4b11bb761..3b88edf43 100644 --- a/impl/openapi-jackson/pom.xml +++ b/impl/openapi-jackson/pom.xml @@ -1,24 +1,24 @@ 4.0.0 - io.serverlessworkflow - serverlessworkflow-impl + org.openworkflow.sdk + openworkflow-impl 8.0.0-SNAPSHOT - serverlessworkflow-impl-openapi - Serverless Workflow :: Impl :: OpenAPI:: Jackson + openworkflow-impl-openapi + Open Workflow :: Impl :: OpenAPI:: Jackson - io.serverlessworkflow - serverlessworkflow-impl-openapi-base + org.openworkflow.sdk + openworkflow-impl-openapi-base - io.serverlessworkflow - serverlessworkflow-api + org.openworkflow.sdk + openworkflow-api - io.serverlessworkflow - serverlessworkflow-impl-openapi-base + org.openworkflow.sdk + openworkflow-impl-openapi-base test-jar test diff --git a/impl/openapi-jackson/src/main/java/io/serverlessworkflow/impl/executors/openapi/jackson/JacksonUnifiedOpenAPIMixIn.java b/impl/openapi-jackson/src/main/java/org/openworkflow/sdk/impl/executors/openapi/jackson/JacksonUnifiedOpenAPIMixIn.java similarity index 93% rename from impl/openapi-jackson/src/main/java/io/serverlessworkflow/impl/executors/openapi/jackson/JacksonUnifiedOpenAPIMixIn.java rename to impl/openapi-jackson/src/main/java/org/openworkflow/sdk/impl/executors/openapi/jackson/JacksonUnifiedOpenAPIMixIn.java index 4b5295381..6f43e9086 100644 --- a/impl/openapi-jackson/src/main/java/io/serverlessworkflow/impl/executors/openapi/jackson/JacksonUnifiedOpenAPIMixIn.java +++ b/impl/openapi-jackson/src/main/java/org/openworkflow/sdk/impl/executors/openapi/jackson/JacksonUnifiedOpenAPIMixIn.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.executors.openapi.jackson; +package org.openworkflow.sdk.impl.executors.openapi.jackson; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonProperty; diff --git a/impl/openapi-jackson/src/main/java/io/serverlessworkflow/impl/executors/openapi/jackson/JacksonUnifiedOpenAPIMixInModule.java b/impl/openapi-jackson/src/main/java/org/openworkflow/sdk/impl/executors/openapi/jackson/JacksonUnifiedOpenAPIMixInModule.java similarity index 90% rename from impl/openapi-jackson/src/main/java/io/serverlessworkflow/impl/executors/openapi/jackson/JacksonUnifiedOpenAPIMixInModule.java rename to impl/openapi-jackson/src/main/java/org/openworkflow/sdk/impl/executors/openapi/jackson/JacksonUnifiedOpenAPIMixInModule.java index e82702e23..eab250c67 100644 --- a/impl/openapi-jackson/src/main/java/io/serverlessworkflow/impl/executors/openapi/jackson/JacksonUnifiedOpenAPIMixInModule.java +++ b/impl/openapi-jackson/src/main/java/org/openworkflow/sdk/impl/executors/openapi/jackson/JacksonUnifiedOpenAPIMixInModule.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,10 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.executors.openapi.jackson; +package org.openworkflow.sdk.impl.executors.openapi.jackson; import com.fasterxml.jackson.databind.module.SimpleModule; -import io.serverlessworkflow.impl.executors.openapi.UnifiedOpenAPI; +import org.openworkflow.sdk.impl.executors.openapi.UnifiedOpenAPI; public class JacksonUnifiedOpenAPIMixInModule extends SimpleModule { diff --git a/impl/openapi-jackson/src/main/java/io/serverlessworkflow/impl/executors/openapi/jackson/JacksonUnifiedOpenAPIReader.java b/impl/openapi-jackson/src/main/java/org/openworkflow/sdk/impl/executors/openapi/jackson/JacksonUnifiedOpenAPIReader.java similarity index 72% rename from impl/openapi-jackson/src/main/java/io/serverlessworkflow/impl/executors/openapi/jackson/JacksonUnifiedOpenAPIReader.java rename to impl/openapi-jackson/src/main/java/org/openworkflow/sdk/impl/executors/openapi/jackson/JacksonUnifiedOpenAPIReader.java index fce695b2d..0c9e061ed 100644 --- a/impl/openapi-jackson/src/main/java/io/serverlessworkflow/impl/executors/openapi/jackson/JacksonUnifiedOpenAPIReader.java +++ b/impl/openapi-jackson/src/main/java/org/openworkflow/sdk/impl/executors/openapi/jackson/JacksonUnifiedOpenAPIReader.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,15 +13,15 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.executors.openapi.jackson; +package org.openworkflow.sdk.impl.executors.openapi.jackson; import com.fasterxml.jackson.databind.ObjectMapper; -import io.serverlessworkflow.api.WorkflowFormat; -import io.serverlessworkflow.impl.executors.openapi.UnifiedOpenAPI; -import io.serverlessworkflow.impl.executors.openapi.UnifiedOpenAPIReader; -import io.serverlessworkflow.impl.resources.ExternalResourceHandler; import java.io.IOException; import java.io.InputStream; +import org.openworkflow.sdk.api.WorkflowFormat; +import org.openworkflow.sdk.impl.executors.openapi.UnifiedOpenAPI; +import org.openworkflow.sdk.impl.executors.openapi.UnifiedOpenAPIReader; +import org.openworkflow.sdk.impl.resources.ExternalResourceHandler; public class JacksonUnifiedOpenAPIReader implements UnifiedOpenAPIReader { diff --git a/impl/openapi-jackson/src/main/java/io/serverlessworkflow/impl/executors/openapi/jackson/JacksonUnifiedOpenAPIReaderFactory.java b/impl/openapi-jackson/src/main/java/org/openworkflow/sdk/impl/executors/openapi/jackson/JacksonUnifiedOpenAPIReaderFactory.java similarity index 77% rename from impl/openapi-jackson/src/main/java/io/serverlessworkflow/impl/executors/openapi/jackson/JacksonUnifiedOpenAPIReaderFactory.java rename to impl/openapi-jackson/src/main/java/org/openworkflow/sdk/impl/executors/openapi/jackson/JacksonUnifiedOpenAPIReaderFactory.java index 0933e6b9a..11efc844f 100644 --- a/impl/openapi-jackson/src/main/java/io/serverlessworkflow/impl/executors/openapi/jackson/JacksonUnifiedOpenAPIReaderFactory.java +++ b/impl/openapi-jackson/src/main/java/org/openworkflow/sdk/impl/executors/openapi/jackson/JacksonUnifiedOpenAPIReaderFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,11 +13,11 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.executors.openapi.jackson; +package org.openworkflow.sdk.impl.executors.openapi.jackson; -import io.serverlessworkflow.impl.TaskContextData; -import io.serverlessworkflow.impl.WorkflowContextData; -import io.serverlessworkflow.impl.additional.NamedWorkflowAdditionalObject; +import org.openworkflow.sdk.impl.TaskContextData; +import org.openworkflow.sdk.impl.WorkflowContextData; +import org.openworkflow.sdk.impl.additional.NamedWorkflowAdditionalObject; public class JacksonUnifiedOpenAPIReaderFactory implements NamedWorkflowAdditionalObject { diff --git a/impl/openapi-jackson/src/main/resources/META-INF/native-image/io.serverlessworkflow/serverlessworkflow-impl-openapi/reflect-config.json b/impl/openapi-jackson/src/main/resources/META-INF/native-image/io.serverlessworkflow/serverlessworkflow-impl-openapi/reflect-config.json deleted file mode 100644 index 0e6938d70..000000000 --- a/impl/openapi-jackson/src/main/resources/META-INF/native-image/io.serverlessworkflow/serverlessworkflow-impl-openapi/reflect-config.json +++ /dev/null @@ -1,14 +0,0 @@ -[ -{"name":"io.serverlessworkflow.impl.executors.openapi.UnifiedOpenAPI","queryAllPublicConstructors":true,"queryAllDeclaredConstructors":true,"queryAllPublicMethods":true,"queryAllDeclaredMethods":true,"allPublicConstructors":true,"allDeclaredConstructors":true,"allPublicMethods":true,"allDeclaredMethods":true,"allPublicFields":true,"allDeclaredFields":true,"allPublicClasses":true,"allDeclaredClasses":true}, -{"name":"io.serverlessworkflow.impl.executors.openapi.UnifiedOpenAPI$Components","queryAllPublicConstructors":true,"queryAllDeclaredConstructors":true,"queryAllPublicMethods":true,"queryAllDeclaredMethods":true,"allPublicConstructors":true,"allDeclaredConstructors":true,"allPublicMethods":true,"allDeclaredMethods":true,"allPublicFields":true,"allDeclaredFields":true,"allPublicClasses":true,"allDeclaredClasses":true}, -{"name":"io.serverlessworkflow.impl.executors.openapi.UnifiedOpenAPI$Content","queryAllPublicConstructors":true,"queryAllDeclaredConstructors":true,"queryAllPublicMethods":true,"queryAllDeclaredMethods":true,"allPublicConstructors":true,"allDeclaredConstructors":true,"allPublicMethods":true,"allDeclaredMethods":true,"allPublicFields":true,"allDeclaredFields":true,"allPublicClasses":true,"allDeclaredClasses":true}, -{"name":"io.serverlessworkflow.impl.executors.openapi.UnifiedOpenAPI$HttpOperation","queryAllPublicConstructors":true,"queryAllDeclaredConstructors":true,"queryAllPublicMethods":true,"queryAllDeclaredMethods":true,"allPublicConstructors":true,"allDeclaredConstructors":true,"allPublicMethods":true,"allDeclaredMethods":true,"allPublicFields":true,"allDeclaredFields":true,"allPublicClasses":true,"allDeclaredClasses":true}, -{"name":"io.serverlessworkflow.impl.executors.openapi.UnifiedOpenAPI$MediaType","queryAllPublicConstructors":true,"queryAllDeclaredConstructors":true,"queryAllPublicMethods":true,"queryAllDeclaredMethods":true,"allPublicConstructors":true,"allDeclaredConstructors":true,"allPublicMethods":true,"allDeclaredMethods":true,"allPublicFields":true,"allDeclaredFields":true,"allPublicClasses":true,"allDeclaredClasses":true}, -{"name":"io.serverlessworkflow.impl.executors.openapi.UnifiedOpenAPI$Operation","queryAllPublicConstructors":true,"queryAllDeclaredConstructors":true,"queryAllPublicMethods":true,"queryAllDeclaredMethods":true,"allPublicConstructors":true,"allDeclaredConstructors":true,"allPublicMethods":true,"allDeclaredMethods":true,"allPublicFields":true,"allDeclaredFields":true,"allPublicClasses":true,"allDeclaredClasses":true}, -{"name":"io.serverlessworkflow.impl.executors.openapi.UnifiedOpenAPI$Parameter","queryAllPublicConstructors":true,"queryAllDeclaredConstructors":true,"queryAllPublicMethods":true,"queryAllDeclaredMethods":true,"allPublicConstructors":true,"allDeclaredConstructors":true,"allPublicMethods":true,"allDeclaredMethods":true,"allPublicFields":true,"allDeclaredFields":true,"allPublicClasses":true,"allDeclaredClasses":true}, -{"name":"io.serverlessworkflow.impl.executors.openapi.UnifiedOpenAPI$PathItem","queryAllPublicConstructors":true,"queryAllDeclaredConstructors":true,"queryAllPublicMethods":true,"queryAllDeclaredMethods":true,"allPublicConstructors":true,"allDeclaredConstructors":true,"allPublicMethods":true,"allDeclaredMethods":true,"allPublicFields":true,"allDeclaredFields":true,"allPublicClasses":true,"allDeclaredClasses":true}, -{"name":"io.serverlessworkflow.impl.executors.openapi.UnifiedOpenAPI$RequestBody","queryAllPublicConstructors":true,"queryAllDeclaredConstructors":true,"queryAllPublicMethods":true,"queryAllDeclaredMethods":true,"allPublicConstructors":true,"allDeclaredConstructors":true,"allPublicMethods":true,"allDeclaredMethods":true,"allPublicFields":true,"allDeclaredFields":true,"allPublicClasses":true,"allDeclaredClasses":true}, -{"name":"io.serverlessworkflow.impl.executors.openapi.UnifiedOpenAPI$Schema","queryAllPublicConstructors":true,"queryAllDeclaredConstructors":true,"queryAllPublicMethods":true,"queryAllDeclaredMethods":true,"allPublicConstructors":true,"allDeclaredConstructors":true,"allPublicMethods":true,"allDeclaredMethods":true,"allPublicFields":true,"allDeclaredFields":true,"allPublicClasses":true,"allDeclaredClasses":true}, -{"name":"io.serverlessworkflow.impl.executors.openapi.UnifiedOpenAPI$Server","queryAllPublicConstructors":true,"queryAllDeclaredConstructors":true,"queryAllPublicMethods":true,"queryAllDeclaredMethods":true,"allPublicConstructors":true,"allDeclaredConstructors":true,"allPublicMethods":true,"allDeclaredMethods":true,"allPublicFields":true,"allDeclaredFields":true,"allPublicClasses":true,"allDeclaredClasses":true}, -{"name":"io.serverlessworkflow.impl.executors.openapi.UnifiedOpenAPI$SwaggerVersion","queryAllPublicConstructors":true,"queryAllDeclaredConstructors":true,"queryAllPublicMethods":true,"queryAllDeclaredMethods":true,"allPublicConstructors":true,"allDeclaredConstructors":true,"allPublicMethods":true,"allDeclaredMethods":true,"allPublicFields":true,"allDeclaredFields":true,"allPublicClasses":true,"allDeclaredClasses":true} -] \ No newline at end of file diff --git a/impl/openapi-jackson/src/main/resources/META-INF/native-image/org.openworkflow.sdk/openworkflow-impl-openapi/reflect-config.json b/impl/openapi-jackson/src/main/resources/META-INF/native-image/org.openworkflow.sdk/openworkflow-impl-openapi/reflect-config.json new file mode 100644 index 000000000..9e1f34132 --- /dev/null +++ b/impl/openapi-jackson/src/main/resources/META-INF/native-image/org.openworkflow.sdk/openworkflow-impl-openapi/reflect-config.json @@ -0,0 +1,14 @@ +[ +{"name":"org.openworkflow.sdk.impl.executors.openapi.UnifiedOpenAPI","queryAllPublicConstructors":true,"queryAllDeclaredConstructors":true,"queryAllPublicMethods":true,"queryAllDeclaredMethods":true,"allPublicConstructors":true,"allDeclaredConstructors":true,"allPublicMethods":true,"allDeclaredMethods":true,"allPublicFields":true,"allDeclaredFields":true,"allPublicClasses":true,"allDeclaredClasses":true}, +{"name":"org.openworkflow.sdk.impl.executors.openapi.UnifiedOpenAPI$Components","queryAllPublicConstructors":true,"queryAllDeclaredConstructors":true,"queryAllPublicMethods":true,"queryAllDeclaredMethods":true,"allPublicConstructors":true,"allDeclaredConstructors":true,"allPublicMethods":true,"allDeclaredMethods":true,"allPublicFields":true,"allDeclaredFields":true,"allPublicClasses":true,"allDeclaredClasses":true}, +{"name":"org.openworkflow.sdk.impl.executors.openapi.UnifiedOpenAPI$Content","queryAllPublicConstructors":true,"queryAllDeclaredConstructors":true,"queryAllPublicMethods":true,"queryAllDeclaredMethods":true,"allPublicConstructors":true,"allDeclaredConstructors":true,"allPublicMethods":true,"allDeclaredMethods":true,"allPublicFields":true,"allDeclaredFields":true,"allPublicClasses":true,"allDeclaredClasses":true}, +{"name":"org.openworkflow.sdk.impl.executors.openapi.UnifiedOpenAPI$HttpOperation","queryAllPublicConstructors":true,"queryAllDeclaredConstructors":true,"queryAllPublicMethods":true,"queryAllDeclaredMethods":true,"allPublicConstructors":true,"allDeclaredConstructors":true,"allPublicMethods":true,"allDeclaredMethods":true,"allPublicFields":true,"allDeclaredFields":true,"allPublicClasses":true,"allDeclaredClasses":true}, +{"name":"org.openworkflow.sdk.impl.executors.openapi.UnifiedOpenAPI$MediaType","queryAllPublicConstructors":true,"queryAllDeclaredConstructors":true,"queryAllPublicMethods":true,"queryAllDeclaredMethods":true,"allPublicConstructors":true,"allDeclaredConstructors":true,"allPublicMethods":true,"allDeclaredMethods":true,"allPublicFields":true,"allDeclaredFields":true,"allPublicClasses":true,"allDeclaredClasses":true}, +{"name":"org.openworkflow.sdk.impl.executors.openapi.UnifiedOpenAPI$Operation","queryAllPublicConstructors":true,"queryAllDeclaredConstructors":true,"queryAllPublicMethods":true,"queryAllDeclaredMethods":true,"allPublicConstructors":true,"allDeclaredConstructors":true,"allPublicMethods":true,"allDeclaredMethods":true,"allPublicFields":true,"allDeclaredFields":true,"allPublicClasses":true,"allDeclaredClasses":true}, +{"name":"org.openworkflow.sdk.impl.executors.openapi.UnifiedOpenAPI$Parameter","queryAllPublicConstructors":true,"queryAllDeclaredConstructors":true,"queryAllPublicMethods":true,"queryAllDeclaredMethods":true,"allPublicConstructors":true,"allDeclaredConstructors":true,"allPublicMethods":true,"allDeclaredMethods":true,"allPublicFields":true,"allDeclaredFields":true,"allPublicClasses":true,"allDeclaredClasses":true}, +{"name":"org.openworkflow.sdk.impl.executors.openapi.UnifiedOpenAPI$PathItem","queryAllPublicConstructors":true,"queryAllDeclaredConstructors":true,"queryAllPublicMethods":true,"queryAllDeclaredMethods":true,"allPublicConstructors":true,"allDeclaredConstructors":true,"allPublicMethods":true,"allDeclaredMethods":true,"allPublicFields":true,"allDeclaredFields":true,"allPublicClasses":true,"allDeclaredClasses":true}, +{"name":"org.openworkflow.sdk.impl.executors.openapi.UnifiedOpenAPI$RequestBody","queryAllPublicConstructors":true,"queryAllDeclaredConstructors":true,"queryAllPublicMethods":true,"queryAllDeclaredMethods":true,"allPublicConstructors":true,"allDeclaredConstructors":true,"allPublicMethods":true,"allDeclaredMethods":true,"allPublicFields":true,"allDeclaredFields":true,"allPublicClasses":true,"allDeclaredClasses":true}, +{"name":"org.openworkflow.sdk.impl.executors.openapi.UnifiedOpenAPI$Schema","queryAllPublicConstructors":true,"queryAllDeclaredConstructors":true,"queryAllPublicMethods":true,"queryAllDeclaredMethods":true,"allPublicConstructors":true,"allDeclaredConstructors":true,"allPublicMethods":true,"allDeclaredMethods":true,"allPublicFields":true,"allDeclaredFields":true,"allPublicClasses":true,"allDeclaredClasses":true}, +{"name":"org.openworkflow.sdk.impl.executors.openapi.UnifiedOpenAPI$Server","queryAllPublicConstructors":true,"queryAllDeclaredConstructors":true,"queryAllPublicMethods":true,"queryAllDeclaredMethods":true,"allPublicConstructors":true,"allDeclaredConstructors":true,"allPublicMethods":true,"allDeclaredMethods":true,"allPublicFields":true,"allDeclaredFields":true,"allPublicClasses":true,"allDeclaredClasses":true}, +{"name":"org.openworkflow.sdk.impl.executors.openapi.UnifiedOpenAPI$SwaggerVersion","queryAllPublicConstructors":true,"queryAllDeclaredConstructors":true,"queryAllPublicMethods":true,"queryAllDeclaredMethods":true,"allPublicConstructors":true,"allDeclaredConstructors":true,"allPublicMethods":true,"allDeclaredMethods":true,"allPublicFields":true,"allDeclaredFields":true,"allPublicClasses":true,"allDeclaredClasses":true} +] \ No newline at end of file diff --git a/impl/openapi-jackson/src/main/resources/META-INF/services/com.fasterxml.jackson.databind.Module b/impl/openapi-jackson/src/main/resources/META-INF/services/com.fasterxml.jackson.databind.Module index 2cb975aa6..4f61ff8e3 100644 --- a/impl/openapi-jackson/src/main/resources/META-INF/services/com.fasterxml.jackson.databind.Module +++ b/impl/openapi-jackson/src/main/resources/META-INF/services/com.fasterxml.jackson.databind.Module @@ -1 +1 @@ -io.serverlessworkflow.impl.executors.openapi.jackson.JacksonUnifiedOpenAPIMixInModule \ No newline at end of file +org.openworkflow.sdk.impl.executors.openapi.jackson.JacksonUnifiedOpenAPIMixInModule \ No newline at end of file diff --git a/impl/openapi-jackson/src/main/resources/META-INF/services/io.serverlessworkflow.impl.additional.NamedWorkflowAdditionalObject b/impl/openapi-jackson/src/main/resources/META-INF/services/io.serverlessworkflow.impl.additional.NamedWorkflowAdditionalObject deleted file mode 100644 index 3bf16bff9..000000000 --- a/impl/openapi-jackson/src/main/resources/META-INF/services/io.serverlessworkflow.impl.additional.NamedWorkflowAdditionalObject +++ /dev/null @@ -1 +0,0 @@ -io.serverlessworkflow.impl.executors.openapi.jackson.JacksonUnifiedOpenAPIReaderFactory \ No newline at end of file diff --git a/impl/openapi-jackson/src/main/resources/META-INF/services/org.openworkflow.sdk.impl.additional.NamedWorkflowAdditionalObject b/impl/openapi-jackson/src/main/resources/META-INF/services/org.openworkflow.sdk.impl.additional.NamedWorkflowAdditionalObject new file mode 100644 index 000000000..76c73740e --- /dev/null +++ b/impl/openapi-jackson/src/main/resources/META-INF/services/org.openworkflow.sdk.impl.additional.NamedWorkflowAdditionalObject @@ -0,0 +1 @@ +org.openworkflow.sdk.impl.executors.openapi.jackson.JacksonUnifiedOpenAPIReaderFactory \ No newline at end of file diff --git a/impl/openapi-jackson/src/test/java/io/serverlessworkflow/impl/executors/openapi/jackson/JacksonOpenAPIProcessorTest.java b/impl/openapi-jackson/src/test/java/org/openworkflow/sdk/impl/executors/openapi/jackson/JacksonOpenAPIProcessorTest.java similarity index 76% rename from impl/openapi-jackson/src/test/java/io/serverlessworkflow/impl/executors/openapi/jackson/JacksonOpenAPIProcessorTest.java rename to impl/openapi-jackson/src/test/java/org/openworkflow/sdk/impl/executors/openapi/jackson/JacksonOpenAPIProcessorTest.java index 057ad59f3..743b11125 100644 --- a/impl/openapi-jackson/src/test/java/io/serverlessworkflow/impl/executors/openapi/jackson/JacksonOpenAPIProcessorTest.java +++ b/impl/openapi-jackson/src/test/java/org/openworkflow/sdk/impl/executors/openapi/jackson/JacksonOpenAPIProcessorTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,11 +13,11 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.executors.openapi.jackson; +package org.openworkflow.sdk.impl.executors.openapi.jackson; -import io.serverlessworkflow.impl.executors.openapi.OpenAPIProcessorTest; -import io.serverlessworkflow.impl.executors.openapi.UnifiedOpenAPIReader; import org.junit.jupiter.api.BeforeAll; +import org.openworkflow.sdk.impl.executors.openapi.OpenAPIProcessorTest; +import org.openworkflow.sdk.impl.executors.openapi.UnifiedOpenAPIReader; public class JacksonOpenAPIProcessorTest extends OpenAPIProcessorTest { diff --git a/impl/openapi/pom.xml b/impl/openapi/pom.xml index a5cd19167..0d1e3eba3 100644 --- a/impl/openapi/pom.xml +++ b/impl/openapi/pom.xml @@ -1,24 +1,24 @@ 4.0.0 - io.serverlessworkflow - serverlessworkflow-impl + org.openworkflow.sdk + openworkflow-impl 8.0.0-SNAPSHOT - serverlessworkflow-impl-openapi-base - Serverless Workflow :: Impl :: OpenAPI :: Base + openworkflow-impl-openapi-base + Open Workflow :: Impl :: OpenAPI :: Base jakarta.ws.rs jakarta.ws.rs-api - io.serverlessworkflow - serverlessworkflow-impl-core + org.openworkflow.sdk + openworkflow-impl-core - io.serverlessworkflow - serverlessworkflow-impl-http + org.openworkflow.sdk + openworkflow-impl-http org.junit.jupiter diff --git a/impl/openapi/src/main/java/io/serverlessworkflow/impl/executors/openapi/OpenAPIExecutor.java b/impl/openapi/src/main/java/org/openworkflow/sdk/impl/executors/openapi/OpenAPIExecutor.java similarity index 89% rename from impl/openapi/src/main/java/io/serverlessworkflow/impl/executors/openapi/OpenAPIExecutor.java rename to impl/openapi/src/main/java/org/openworkflow/sdk/impl/executors/openapi/OpenAPIExecutor.java index 131b34d54..b7108c4d9 100644 --- a/impl/openapi/src/main/java/io/serverlessworkflow/impl/executors/openapi/OpenAPIExecutor.java +++ b/impl/openapi/src/main/java/org/openworkflow/sdk/impl/executors/openapi/OpenAPIExecutor.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,17 +13,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.executors.openapi; +package org.openworkflow.sdk.impl.executors.openapi; -import io.serverlessworkflow.api.types.ExternalResource; -import io.serverlessworkflow.impl.TaskContext; -import io.serverlessworkflow.impl.WorkflowApplication; -import io.serverlessworkflow.impl.WorkflowContext; -import io.serverlessworkflow.impl.WorkflowModel; -import io.serverlessworkflow.impl.executors.CallableTask; -import io.serverlessworkflow.impl.executors.http.HttpExecutor; -import io.serverlessworkflow.impl.executors.http.HttpExecutorBuilder; -import io.serverlessworkflow.impl.resources.ExternalResourceHandler; import java.io.IOException; import java.io.UncheckedIOException; import java.util.Collection; @@ -33,6 +24,15 @@ import java.util.Map; import java.util.Set; import java.util.concurrent.CompletableFuture; +import org.openworkflow.sdk.api.types.ExternalResource; +import org.openworkflow.sdk.impl.TaskContext; +import org.openworkflow.sdk.impl.WorkflowApplication; +import org.openworkflow.sdk.impl.WorkflowContext; +import org.openworkflow.sdk.impl.WorkflowModel; +import org.openworkflow.sdk.impl.executors.CallableTask; +import org.openworkflow.sdk.impl.executors.http.HttpExecutor; +import org.openworkflow.sdk.impl.executors.http.HttpExecutorBuilder; +import org.openworkflow.sdk.impl.resources.ExternalResourceHandler; class OpenAPIExecutor implements CallableTask { @@ -174,6 +174,6 @@ private UnifiedOpenAPI readUnifiedOpenAPI( .orElseThrow( () -> new IllegalStateException( - "Missing UnifiedOpenAPIReader, please make sure dependency serverlessworkflow-impl-openapi is included")); + "Missing UnifiedOpenAPIReader, please make sure dependency openworkflow-impl-openapi is included")); } } diff --git a/impl/openapi/src/main/java/io/serverlessworkflow/impl/executors/openapi/OpenAPIExecutorBuilder.java b/impl/openapi/src/main/java/org/openworkflow/sdk/impl/executors/openapi/OpenAPIExecutorBuilder.java similarity index 70% rename from impl/openapi/src/main/java/io/serverlessworkflow/impl/executors/openapi/OpenAPIExecutorBuilder.java rename to impl/openapi/src/main/java/org/openworkflow/sdk/impl/executors/openapi/OpenAPIExecutorBuilder.java index 8c7cd11be..81c2f3b94 100644 --- a/impl/openapi/src/main/java/io/serverlessworkflow/impl/executors/openapi/OpenAPIExecutorBuilder.java +++ b/impl/openapi/src/main/java/org/openworkflow/sdk/impl/executors/openapi/OpenAPIExecutorBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,18 +13,18 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.executors.openapi; +package org.openworkflow.sdk.impl.executors.openapi; -import io.serverlessworkflow.api.types.CallOpenAPI; -import io.serverlessworkflow.api.types.ExternalResource; -import io.serverlessworkflow.api.types.OpenAPIArguments; -import io.serverlessworkflow.api.types.TaskBase; -import io.serverlessworkflow.impl.WorkflowDefinition; -import io.serverlessworkflow.impl.WorkflowMutablePosition; -import io.serverlessworkflow.impl.executors.CallableTaskBuilder; -import io.serverlessworkflow.impl.executors.CallableTaskFactory; -import io.serverlessworkflow.impl.executors.http.HttpExecutorBuilder; import java.util.Map; +import org.openworkflow.sdk.api.types.CallOpenAPI; +import org.openworkflow.sdk.api.types.ExternalResource; +import org.openworkflow.sdk.api.types.OpenAPIArguments; +import org.openworkflow.sdk.api.types.TaskBase; +import org.openworkflow.sdk.impl.WorkflowDefinition; +import org.openworkflow.sdk.impl.WorkflowMutablePosition; +import org.openworkflow.sdk.impl.executors.CallableTaskBuilder; +import org.openworkflow.sdk.impl.executors.CallableTaskFactory; +import org.openworkflow.sdk.impl.executors.http.HttpExecutorBuilder; public class OpenAPIExecutorBuilder implements CallableTaskBuilder { diff --git a/impl/openapi/src/main/java/io/serverlessworkflow/impl/executors/openapi/OpenAPIProcessor.java b/impl/openapi/src/main/java/org/openworkflow/sdk/impl/executors/openapi/OpenAPIProcessor.java similarity index 89% rename from impl/openapi/src/main/java/io/serverlessworkflow/impl/executors/openapi/OpenAPIProcessor.java rename to impl/openapi/src/main/java/org/openworkflow/sdk/impl/executors/openapi/OpenAPIProcessor.java index 1b4bcca2d..006d83519 100644 --- a/impl/openapi/src/main/java/io/serverlessworkflow/impl/executors/openapi/OpenAPIProcessor.java +++ b/impl/openapi/src/main/java/org/openworkflow/sdk/impl/executors/openapi/OpenAPIProcessor.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.executors.openapi; +package org.openworkflow.sdk.impl.executors.openapi; import java.util.Objects; import java.util.Optional; diff --git a/impl/openapi/src/main/java/io/serverlessworkflow/impl/executors/openapi/OperationDefinition.java b/impl/openapi/src/main/java/org/openworkflow/sdk/impl/executors/openapi/OperationDefinition.java similarity index 97% rename from impl/openapi/src/main/java/io/serverlessworkflow/impl/executors/openapi/OperationDefinition.java rename to impl/openapi/src/main/java/org/openworkflow/sdk/impl/executors/openapi/OperationDefinition.java index 693f1c188..33c50dd7a 100644 --- a/impl/openapi/src/main/java/io/serverlessworkflow/impl/executors/openapi/OperationDefinition.java +++ b/impl/openapi/src/main/java/org/openworkflow/sdk/impl/executors/openapi/OperationDefinition.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.executors.openapi; +package org.openworkflow.sdk.impl.executors.openapi; import java.util.ArrayList; import java.util.List; diff --git a/impl/openapi/src/main/java/io/serverlessworkflow/impl/executors/openapi/OperationPathResolver.java b/impl/openapi/src/main/java/org/openworkflow/sdk/impl/executors/openapi/OperationPathResolver.java similarity index 73% rename from impl/openapi/src/main/java/io/serverlessworkflow/impl/executors/openapi/OperationPathResolver.java rename to impl/openapi/src/main/java/org/openworkflow/sdk/impl/executors/openapi/OperationPathResolver.java index 70e952c33..57a3a5113 100644 --- a/impl/openapi/src/main/java/io/serverlessworkflow/impl/executors/openapi/OperationPathResolver.java +++ b/impl/openapi/src/main/java/org/openworkflow/sdk/impl/executors/openapi/OperationPathResolver.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,17 +13,17 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.executors.openapi; +package org.openworkflow.sdk.impl.executors.openapi; -import io.serverlessworkflow.impl.TaskContext; -import io.serverlessworkflow.impl.WorkflowApplication; -import io.serverlessworkflow.impl.WorkflowContext; -import io.serverlessworkflow.impl.WorkflowModel; -import io.serverlessworkflow.impl.WorkflowUtils; -import io.serverlessworkflow.impl.WorkflowValueResolver; import jakarta.ws.rs.core.UriBuilder; import java.net.URI; import java.util.Map; +import org.openworkflow.sdk.impl.TaskContext; +import org.openworkflow.sdk.impl.WorkflowApplication; +import org.openworkflow.sdk.impl.WorkflowContext; +import org.openworkflow.sdk.impl.WorkflowModel; +import org.openworkflow.sdk.impl.WorkflowUtils; +import org.openworkflow.sdk.impl.WorkflowValueResolver; class OperationPathResolver implements WorkflowValueResolver { private final String path; diff --git a/impl/openapi/src/main/java/io/serverlessworkflow/impl/executors/openapi/ParameterDefinition.java b/impl/openapi/src/main/java/org/openworkflow/sdk/impl/executors/openapi/ParameterDefinition.java similarity index 84% rename from impl/openapi/src/main/java/io/serverlessworkflow/impl/executors/openapi/ParameterDefinition.java rename to impl/openapi/src/main/java/org/openworkflow/sdk/impl/executors/openapi/ParameterDefinition.java index 4733464d3..674c36f2f 100644 --- a/impl/openapi/src/main/java/io/serverlessworkflow/impl/executors/openapi/ParameterDefinition.java +++ b/impl/openapi/src/main/java/org/openworkflow/sdk/impl/executors/openapi/ParameterDefinition.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.executors.openapi; +package org.openworkflow.sdk.impl.executors.openapi; record ParameterDefinition( String name, String in, boolean required, UnifiedOpenAPI.Schema schema) {} diff --git a/impl/openapi/src/main/java/io/serverlessworkflow/impl/executors/openapi/UnifiedOpenAPI.java b/impl/openapi/src/main/java/org/openworkflow/sdk/impl/executors/openapi/UnifiedOpenAPI.java similarity index 97% rename from impl/openapi/src/main/java/io/serverlessworkflow/impl/executors/openapi/UnifiedOpenAPI.java rename to impl/openapi/src/main/java/org/openworkflow/sdk/impl/executors/openapi/UnifiedOpenAPI.java index 26ade7a33..4f45c4a39 100644 --- a/impl/openapi/src/main/java/io/serverlessworkflow/impl/executors/openapi/UnifiedOpenAPI.java +++ b/impl/openapi/src/main/java/org/openworkflow/sdk/impl/executors/openapi/UnifiedOpenAPI.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.executors.openapi; +package org.openworkflow.sdk.impl.executors.openapi; import java.util.List; import java.util.Locale; diff --git a/impl/openapi/src/main/java/io/serverlessworkflow/impl/executors/openapi/UnifiedOpenAPIReader.java b/impl/openapi/src/main/java/org/openworkflow/sdk/impl/executors/openapi/UnifiedOpenAPIReader.java similarity index 79% rename from impl/openapi/src/main/java/io/serverlessworkflow/impl/executors/openapi/UnifiedOpenAPIReader.java rename to impl/openapi/src/main/java/org/openworkflow/sdk/impl/executors/openapi/UnifiedOpenAPIReader.java index 53ea097cd..7ca015064 100644 --- a/impl/openapi/src/main/java/io/serverlessworkflow/impl/executors/openapi/UnifiedOpenAPIReader.java +++ b/impl/openapi/src/main/java/org/openworkflow/sdk/impl/executors/openapi/UnifiedOpenAPIReader.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,10 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.executors.openapi; +package org.openworkflow.sdk.impl.executors.openapi; -import io.serverlessworkflow.impl.resources.ExternalResourceHandler; import java.io.IOException; +import org.openworkflow.sdk.impl.resources.ExternalResourceHandler; public interface UnifiedOpenAPIReader { diff --git a/impl/openapi/src/main/resources/META-INF/services/io.serverlessworkflow.impl.executors.CallableTaskBuilder b/impl/openapi/src/main/resources/META-INF/services/io.serverlessworkflow.impl.executors.CallableTaskBuilder deleted file mode 100644 index 517495e43..000000000 --- a/impl/openapi/src/main/resources/META-INF/services/io.serverlessworkflow.impl.executors.CallableTaskBuilder +++ /dev/null @@ -1 +0,0 @@ -io.serverlessworkflow.impl.executors.openapi.OpenAPIExecutorBuilder diff --git a/impl/openapi/src/main/resources/META-INF/services/org.openworkflow.sdk.impl.executors.CallableTaskBuilder b/impl/openapi/src/main/resources/META-INF/services/org.openworkflow.sdk.impl.executors.CallableTaskBuilder new file mode 100644 index 000000000..890d62786 --- /dev/null +++ b/impl/openapi/src/main/resources/META-INF/services/org.openworkflow.sdk.impl.executors.CallableTaskBuilder @@ -0,0 +1 @@ +org.openworkflow.sdk.impl.executors.openapi.OpenAPIExecutorBuilder diff --git a/impl/openapi/src/test/java/io/serverlessworkflow/impl/executors/openapi/OpenAPIProcessorTest.java b/impl/openapi/src/test/java/org/openworkflow/sdk/impl/executors/openapi/OpenAPIProcessorTest.java similarity index 96% rename from impl/openapi/src/test/java/io/serverlessworkflow/impl/executors/openapi/OpenAPIProcessorTest.java rename to impl/openapi/src/test/java/org/openworkflow/sdk/impl/executors/openapi/OpenAPIProcessorTest.java index eec573271..c7d5d3aa7 100644 --- a/impl/openapi/src/test/java/io/serverlessworkflow/impl/executors/openapi/OpenAPIProcessorTest.java +++ b/impl/openapi/src/test/java/org/openworkflow/sdk/impl/executors/openapi/OpenAPIProcessorTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,18 +13,18 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.executors.openapi; +package org.openworkflow.sdk.impl.executors.openapi; import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertFalse; import static org.junit.jupiter.api.Assertions.assertTrue; -import io.serverlessworkflow.impl.resources.ClasspathResource; -import io.serverlessworkflow.impl.resources.ExternalResourceHandler; import java.io.IOException; import java.io.UncheckedIOException; import java.util.List; import org.junit.jupiter.api.Test; +import org.openworkflow.sdk.impl.resources.ClasspathResource; +import org.openworkflow.sdk.impl.resources.ExternalResourceHandler; public abstract class OpenAPIProcessorTest { diff --git a/impl/persistence/README.md b/impl/persistence/README.md index 43b4ca84a..efbb8fa64 100644 --- a/impl/persistence/README.md +++ b/impl/persistence/README.md @@ -1,6 +1,6 @@ -[![Gitpod ready-to-code](https://img.shields.io/badge/Gitpod-ready--to--code-blue?logo=gitpod)](https://gitpod.io/#https://github.com/serverlessworkflow/sdk-java) +[![Gitpod ready-to-code](https://img.shields.io/badge/Gitpod-ready--to--code-blue?logo=gitpod)](https://gitpod.io/#https://github.com/open-workflow-specification/sdk-java) -# Serverless Workflow Specification — Java SDK (Reference Implementation)- Persistence +# Open Workflow Specification — Java SDK (Reference Implementation)- Persistence Workflow persistence aim is to be able to restore workflow instances execution in the event of a JVM stop. To do that, progress of every running instance is persisted into the underlying DB by using life cycle events. Later on, when a new JVM is instantiated, the application is expected to manually start those instances that are not longer being executed by any other JVM, using the information previously stored. diff --git a/impl/persistence/api/pom.xml b/impl/persistence/api/pom.xml index f62f1a3f9..03b6eea9d 100644 --- a/impl/persistence/api/pom.xml +++ b/impl/persistence/api/pom.xml @@ -1,16 +1,16 @@ 4.0.0 - io.serverlessworkflow - serverlessworkflow-persistence + org.openworkflow.sdk + openworkflow-persistence 8.0.0-SNAPSHOT - serverlessworkflow-persistence-api - Serverless Workflow :: Impl :: Persistence:: API + openworkflow-persistence-api + Open Workflow :: Impl :: Persistence:: API - io.serverlessworkflow - serverlessworkflow-impl-core + org.openworkflow.sdk + openworkflow-impl-core org.junit.jupiter diff --git a/impl/persistence/api/src/main/java/io/serverlessworkflow/impl/persistence/AbstractAllStrategyCorrelationInfo.java b/impl/persistence/api/src/main/java/org/openworkflow/sdk/impl/persistence/AbstractAllStrategyCorrelationInfo.java similarity index 95% rename from impl/persistence/api/src/main/java/io/serverlessworkflow/impl/persistence/AbstractAllStrategyCorrelationInfo.java rename to impl/persistence/api/src/main/java/org/openworkflow/sdk/impl/persistence/AbstractAllStrategyCorrelationInfo.java index 166030138..ca8c6d03f 100644 --- a/impl/persistence/api/src/main/java/io/serverlessworkflow/impl/persistence/AbstractAllStrategyCorrelationInfo.java +++ b/impl/persistence/api/src/main/java/org/openworkflow/sdk/impl/persistence/AbstractAllStrategyCorrelationInfo.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,13 +13,9 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.persistence; +package org.openworkflow.sdk.impl.persistence; import io.cloudevents.CloudEvent; -import io.serverlessworkflow.impl.WorkflowDefinition; -import io.serverlessworkflow.impl.WorkflowInstance; -import io.serverlessworkflow.impl.events.EventRegistrationBuilder; -import io.serverlessworkflow.impl.scheduler.AllStrategyCorrelationInfo; import java.util.ArrayList; import java.util.Collection; import java.util.HashMap; @@ -32,6 +28,10 @@ import java.util.function.Consumer; import java.util.function.Function; import java.util.stream.Collectors; +import org.openworkflow.sdk.impl.WorkflowDefinition; +import org.openworkflow.sdk.impl.WorkflowInstance; +import org.openworkflow.sdk.impl.events.EventRegistrationBuilder; +import org.openworkflow.sdk.impl.scheduler.AllStrategyCorrelationInfo; import org.slf4j.Logger; import org.slf4j.LoggerFactory; diff --git a/impl/persistence/api/src/main/java/io/serverlessworkflow/impl/persistence/AbstractAsyncPersistenceExecutor.java b/impl/persistence/api/src/main/java/org/openworkflow/sdk/impl/persistence/AbstractAsyncPersistenceExecutor.java similarity index 88% rename from impl/persistence/api/src/main/java/io/serverlessworkflow/impl/persistence/AbstractAsyncPersistenceExecutor.java rename to impl/persistence/api/src/main/java/org/openworkflow/sdk/impl/persistence/AbstractAsyncPersistenceExecutor.java index 74ca8ef18..eaa4956ec 100644 --- a/impl/persistence/api/src/main/java/io/serverlessworkflow/impl/persistence/AbstractAsyncPersistenceExecutor.java +++ b/impl/persistence/api/src/main/java/org/openworkflow/sdk/impl/persistence/AbstractAsyncPersistenceExecutor.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,13 +13,13 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.persistence; +package org.openworkflow.sdk.impl.persistence; -import io.serverlessworkflow.impl.WorkflowDefinitionData; import java.util.Optional; import java.util.concurrent.CompletableFuture; import java.util.concurrent.ExecutorService; import java.util.function.Supplier; +import org.openworkflow.sdk.impl.WorkflowDefinitionData; public abstract class AbstractAsyncPersistenceExecutor implements PersistenceExecutor { @Override diff --git a/impl/persistence/api/src/main/java/io/serverlessworkflow/impl/persistence/AbstractPersistenceInstanceReader.java b/impl/persistence/api/src/main/java/org/openworkflow/sdk/impl/persistence/AbstractPersistenceInstanceReader.java similarity index 85% rename from impl/persistence/api/src/main/java/io/serverlessworkflow/impl/persistence/AbstractPersistenceInstanceReader.java rename to impl/persistence/api/src/main/java/org/openworkflow/sdk/impl/persistence/AbstractPersistenceInstanceReader.java index 723d81cc1..6eb7ebaf3 100644 --- a/impl/persistence/api/src/main/java/io/serverlessworkflow/impl/persistence/AbstractPersistenceInstanceReader.java +++ b/impl/persistence/api/src/main/java/org/openworkflow/sdk/impl/persistence/AbstractPersistenceInstanceReader.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,12 +13,12 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.persistence; +package org.openworkflow.sdk.impl.persistence; -import io.serverlessworkflow.impl.WorkflowDefinition; -import io.serverlessworkflow.impl.WorkflowInstance; import java.util.Optional; import java.util.stream.Stream; +import org.openworkflow.sdk.impl.WorkflowDefinition; +import org.openworkflow.sdk.impl.WorkflowInstance; public abstract class AbstractPersistenceInstanceReader implements PersistenceInstanceReader { diff --git a/impl/persistence/api/src/main/java/io/serverlessworkflow/impl/persistence/AbstractPersistenceInstanceWriter.java b/impl/persistence/api/src/main/java/org/openworkflow/sdk/impl/persistence/AbstractPersistenceInstanceWriter.java similarity index 92% rename from impl/persistence/api/src/main/java/io/serverlessworkflow/impl/persistence/AbstractPersistenceInstanceWriter.java rename to impl/persistence/api/src/main/java/org/openworkflow/sdk/impl/persistence/AbstractPersistenceInstanceWriter.java index dea3e1848..f1e331ea2 100644 --- a/impl/persistence/api/src/main/java/io/serverlessworkflow/impl/persistence/AbstractPersistenceInstanceWriter.java +++ b/impl/persistence/api/src/main/java/org/openworkflow/sdk/impl/persistence/AbstractPersistenceInstanceWriter.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,14 +13,14 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.persistence; +package org.openworkflow.sdk.impl.persistence; -import io.serverlessworkflow.impl.TaskContextData; -import io.serverlessworkflow.impl.WorkflowContextData; -import io.serverlessworkflow.impl.WorkflowStatus; import java.util.Map; import java.util.concurrent.CompletableFuture; import java.util.function.Consumer; +import org.openworkflow.sdk.impl.TaskContextData; +import org.openworkflow.sdk.impl.WorkflowContextData; +import org.openworkflow.sdk.impl.WorkflowStatus; public abstract class AbstractPersistenceInstanceWriter implements PersistenceInstanceWriter { diff --git a/impl/persistence/api/src/main/java/io/serverlessworkflow/impl/persistence/AsyncPersistenceExecutor.java b/impl/persistence/api/src/main/java/org/openworkflow/sdk/impl/persistence/AsyncPersistenceExecutor.java similarity index 89% rename from impl/persistence/api/src/main/java/io/serverlessworkflow/impl/persistence/AsyncPersistenceExecutor.java rename to impl/persistence/api/src/main/java/org/openworkflow/sdk/impl/persistence/AsyncPersistenceExecutor.java index e8a10ab8a..67545e488 100644 --- a/impl/persistence/api/src/main/java/io/serverlessworkflow/impl/persistence/AsyncPersistenceExecutor.java +++ b/impl/persistence/api/src/main/java/org/openworkflow/sdk/impl/persistence/AsyncPersistenceExecutor.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.persistence; +package org.openworkflow.sdk.impl.persistence; import java.util.Optional; import java.util.concurrent.ExecutorService; diff --git a/impl/persistence/api/src/main/java/io/serverlessworkflow/impl/persistence/CompletedTaskInfo.java b/impl/persistence/api/src/main/java/org/openworkflow/sdk/impl/persistence/CompletedTaskInfo.java similarity index 88% rename from impl/persistence/api/src/main/java/io/serverlessworkflow/impl/persistence/CompletedTaskInfo.java rename to impl/persistence/api/src/main/java/org/openworkflow/sdk/impl/persistence/CompletedTaskInfo.java index 3a03e66a5..ae22dd4dd 100644 --- a/impl/persistence/api/src/main/java/io/serverlessworkflow/impl/persistence/CompletedTaskInfo.java +++ b/impl/persistence/api/src/main/java/org/openworkflow/sdk/impl/persistence/CompletedTaskInfo.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,11 +13,11 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.persistence; +package org.openworkflow.sdk.impl.persistence; -import io.serverlessworkflow.impl.WorkflowModel; import java.time.Instant; import java.util.Map; +import org.openworkflow.sdk.impl.WorkflowModel; public record CompletedTaskInfo( Instant instant, diff --git a/impl/persistence/api/src/main/java/io/serverlessworkflow/impl/persistence/CorrelationOperations.java b/impl/persistence/api/src/main/java/org/openworkflow/sdk/impl/persistence/CorrelationOperations.java similarity index 89% rename from impl/persistence/api/src/main/java/io/serverlessworkflow/impl/persistence/CorrelationOperations.java rename to impl/persistence/api/src/main/java/org/openworkflow/sdk/impl/persistence/CorrelationOperations.java index dacaa8655..c9234d7a9 100644 --- a/impl/persistence/api/src/main/java/io/serverlessworkflow/impl/persistence/CorrelationOperations.java +++ b/impl/persistence/api/src/main/java/org/openworkflow/sdk/impl/persistence/CorrelationOperations.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.persistence; +package org.openworkflow.sdk.impl.persistence; import io.cloudevents.CloudEvent; import java.util.Collection; diff --git a/impl/persistence/api/src/main/java/io/serverlessworkflow/impl/persistence/DefaultPersistenceInstanceHandlers.java b/impl/persistence/api/src/main/java/org/openworkflow/sdk/impl/persistence/DefaultPersistenceInstanceHandlers.java similarity index 91% rename from impl/persistence/api/src/main/java/io/serverlessworkflow/impl/persistence/DefaultPersistenceInstanceHandlers.java rename to impl/persistence/api/src/main/java/org/openworkflow/sdk/impl/persistence/DefaultPersistenceInstanceHandlers.java index ac582a1b5..31ee02312 100644 --- a/impl/persistence/api/src/main/java/io/serverlessworkflow/impl/persistence/DefaultPersistenceInstanceHandlers.java +++ b/impl/persistence/api/src/main/java/org/openworkflow/sdk/impl/persistence/DefaultPersistenceInstanceHandlers.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,9 +13,9 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.persistence; +package org.openworkflow.sdk.impl.persistence; -import static io.serverlessworkflow.impl.WorkflowUtils.safeClose; +import static org.openworkflow.sdk.impl.WorkflowUtils.safeClose; import java.util.concurrent.ExecutorService; diff --git a/impl/persistence/api/src/main/java/io/serverlessworkflow/impl/persistence/DefaultPersistenceInstanceReader.java b/impl/persistence/api/src/main/java/org/openworkflow/sdk/impl/persistence/DefaultPersistenceInstanceReader.java similarity index 89% rename from impl/persistence/api/src/main/java/io/serverlessworkflow/impl/persistence/DefaultPersistenceInstanceReader.java rename to impl/persistence/api/src/main/java/org/openworkflow/sdk/impl/persistence/DefaultPersistenceInstanceReader.java index 29731f0f7..ff9ee3f03 100644 --- a/impl/persistence/api/src/main/java/io/serverlessworkflow/impl/persistence/DefaultPersistenceInstanceReader.java +++ b/impl/persistence/api/src/main/java/org/openworkflow/sdk/impl/persistence/DefaultPersistenceInstanceReader.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,12 +13,12 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.persistence; +package org.openworkflow.sdk.impl.persistence; -import io.serverlessworkflow.impl.WorkflowDefinition; -import io.serverlessworkflow.impl.WorkflowInstance; import java.util.Optional; import java.util.stream.Stream; +import org.openworkflow.sdk.impl.WorkflowDefinition; +import org.openworkflow.sdk.impl.WorkflowInstance; import org.slf4j.Logger; import org.slf4j.LoggerFactory; diff --git a/impl/persistence/api/src/main/java/io/serverlessworkflow/impl/persistence/DefaultPersistenceInstanceWriter.java b/impl/persistence/api/src/main/java/org/openworkflow/sdk/impl/persistence/DefaultPersistenceInstanceWriter.java similarity index 90% rename from impl/persistence/api/src/main/java/io/serverlessworkflow/impl/persistence/DefaultPersistenceInstanceWriter.java rename to impl/persistence/api/src/main/java/org/openworkflow/sdk/impl/persistence/DefaultPersistenceInstanceWriter.java index a3a1953f5..bd417c075 100644 --- a/impl/persistence/api/src/main/java/io/serverlessworkflow/impl/persistence/DefaultPersistenceInstanceWriter.java +++ b/impl/persistence/api/src/main/java/org/openworkflow/sdk/impl/persistence/DefaultPersistenceInstanceWriter.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,10 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.persistence; +package org.openworkflow.sdk.impl.persistence; -import io.serverlessworkflow.impl.WorkflowDefinitionData; import java.util.function.Consumer; +import org.openworkflow.sdk.impl.WorkflowDefinitionData; import org.slf4j.Logger; import org.slf4j.LoggerFactory; diff --git a/impl/persistence/api/src/main/java/io/serverlessworkflow/impl/persistence/OperationAllStrategyCorrelationInfo.java b/impl/persistence/api/src/main/java/org/openworkflow/sdk/impl/persistence/OperationAllStrategyCorrelationInfo.java similarity index 84% rename from impl/persistence/api/src/main/java/io/serverlessworkflow/impl/persistence/OperationAllStrategyCorrelationInfo.java rename to impl/persistence/api/src/main/java/org/openworkflow/sdk/impl/persistence/OperationAllStrategyCorrelationInfo.java index 3dbba48a9..34d00d9c8 100644 --- a/impl/persistence/api/src/main/java/io/serverlessworkflow/impl/persistence/OperationAllStrategyCorrelationInfo.java +++ b/impl/persistence/api/src/main/java/org/openworkflow/sdk/impl/persistence/OperationAllStrategyCorrelationInfo.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,14 +13,14 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.persistence; +package org.openworkflow.sdk.impl.persistence; import io.cloudevents.CloudEvent; -import io.serverlessworkflow.impl.WorkflowDefinition; -import io.serverlessworkflow.impl.events.EventRegistrationBuilder; import java.util.Collection; import java.util.Map; import java.util.function.Function; +import org.openworkflow.sdk.impl.WorkflowDefinition; +import org.openworkflow.sdk.impl.events.EventRegistrationBuilder; public class OperationAllStrategyCorrelationInfo extends AbstractAllStrategyCorrelationInfo { diff --git a/impl/persistence/api/src/main/java/io/serverlessworkflow/impl/persistence/OperationAllStrategyCorrelationInfoFactory.java b/impl/persistence/api/src/main/java/org/openworkflow/sdk/impl/persistence/OperationAllStrategyCorrelationInfoFactory.java similarity index 78% rename from impl/persistence/api/src/main/java/io/serverlessworkflow/impl/persistence/OperationAllStrategyCorrelationInfoFactory.java rename to impl/persistence/api/src/main/java/org/openworkflow/sdk/impl/persistence/OperationAllStrategyCorrelationInfoFactory.java index 3b829b07e..bd7ce2633 100644 --- a/impl/persistence/api/src/main/java/io/serverlessworkflow/impl/persistence/OperationAllStrategyCorrelationInfoFactory.java +++ b/impl/persistence/api/src/main/java/org/openworkflow/sdk/impl/persistence/OperationAllStrategyCorrelationInfoFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,11 +13,11 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.persistence; +package org.openworkflow.sdk.impl.persistence; -import io.serverlessworkflow.impl.WorkflowDefinition; -import io.serverlessworkflow.impl.scheduler.AllStrategyCorrelationInfo; -import io.serverlessworkflow.impl.scheduler.AllStrategyCorrelationInfoFactory; +import org.openworkflow.sdk.impl.WorkflowDefinition; +import org.openworkflow.sdk.impl.scheduler.AllStrategyCorrelationInfo; +import org.openworkflow.sdk.impl.scheduler.AllStrategyCorrelationInfoFactory; public class OperationAllStrategyCorrelationInfoFactory implements AllStrategyCorrelationInfoFactory { diff --git a/impl/persistence/api/src/main/java/io/serverlessworkflow/impl/persistence/PersistenceAllStrategyCorrelationInfoFactories.java b/impl/persistence/api/src/main/java/org/openworkflow/sdk/impl/persistence/PersistenceAllStrategyCorrelationInfoFactories.java similarity index 84% rename from impl/persistence/api/src/main/java/io/serverlessworkflow/impl/persistence/PersistenceAllStrategyCorrelationInfoFactories.java rename to impl/persistence/api/src/main/java/org/openworkflow/sdk/impl/persistence/PersistenceAllStrategyCorrelationInfoFactories.java index 7929aabaa..1a24bd199 100644 --- a/impl/persistence/api/src/main/java/io/serverlessworkflow/impl/persistence/PersistenceAllStrategyCorrelationInfoFactories.java +++ b/impl/persistence/api/src/main/java/org/openworkflow/sdk/impl/persistence/PersistenceAllStrategyCorrelationInfoFactories.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,9 +13,9 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.persistence; +package org.openworkflow.sdk.impl.persistence; -import io.serverlessworkflow.impl.scheduler.AllStrategyCorrelationInfoFactory; +import org.openworkflow.sdk.impl.scheduler.AllStrategyCorrelationInfoFactory; public class PersistenceAllStrategyCorrelationInfoFactories { diff --git a/impl/persistence/api/src/main/java/io/serverlessworkflow/impl/persistence/PersistenceApplicationBuilder.java b/impl/persistence/api/src/main/java/org/openworkflow/sdk/impl/persistence/PersistenceApplicationBuilder.java similarity index 85% rename from impl/persistence/api/src/main/java/io/serverlessworkflow/impl/persistence/PersistenceApplicationBuilder.java rename to impl/persistence/api/src/main/java/org/openworkflow/sdk/impl/persistence/PersistenceApplicationBuilder.java index 954f38c82..8e5eda188 100644 --- a/impl/persistence/api/src/main/java/io/serverlessworkflow/impl/persistence/PersistenceApplicationBuilder.java +++ b/impl/persistence/api/src/main/java/org/openworkflow/sdk/impl/persistence/PersistenceApplicationBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,10 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.persistence; +package org.openworkflow.sdk.impl.persistence; -import io.serverlessworkflow.impl.WorkflowApplication; -import io.serverlessworkflow.impl.WorkflowApplication.Builder; +import org.openworkflow.sdk.impl.WorkflowApplication; +import org.openworkflow.sdk.impl.WorkflowApplication.Builder; public class PersistenceApplicationBuilder { diff --git a/impl/persistence/api/src/main/java/io/serverlessworkflow/impl/persistence/PersistenceExecutor.java b/impl/persistence/api/src/main/java/org/openworkflow/sdk/impl/persistence/PersistenceExecutor.java similarity index 83% rename from impl/persistence/api/src/main/java/io/serverlessworkflow/impl/persistence/PersistenceExecutor.java rename to impl/persistence/api/src/main/java/org/openworkflow/sdk/impl/persistence/PersistenceExecutor.java index 879bd52bb..5ea118ac0 100644 --- a/impl/persistence/api/src/main/java/io/serverlessworkflow/impl/persistence/PersistenceExecutor.java +++ b/impl/persistence/api/src/main/java/org/openworkflow/sdk/impl/persistence/PersistenceExecutor.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,11 +13,11 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.persistence; +package org.openworkflow.sdk.impl.persistence; -import io.serverlessworkflow.impl.WorkflowDefinitionData; import java.util.concurrent.CompletableFuture; import java.util.function.Supplier; +import org.openworkflow.sdk.impl.WorkflowDefinitionData; public interface PersistenceExecutor extends AutoCloseable { CompletableFuture execute(Supplier runnable, WorkflowDefinitionData definition); diff --git a/impl/persistence/api/src/main/java/io/serverlessworkflow/impl/persistence/PersistenceInstanceHandlers.java b/impl/persistence/api/src/main/java/org/openworkflow/sdk/impl/persistence/PersistenceInstanceHandlers.java similarity index 85% rename from impl/persistence/api/src/main/java/io/serverlessworkflow/impl/persistence/PersistenceInstanceHandlers.java rename to impl/persistence/api/src/main/java/org/openworkflow/sdk/impl/persistence/PersistenceInstanceHandlers.java index beec1c672..b27e5eb42 100644 --- a/impl/persistence/api/src/main/java/io/serverlessworkflow/impl/persistence/PersistenceInstanceHandlers.java +++ b/impl/persistence/api/src/main/java/org/openworkflow/sdk/impl/persistence/PersistenceInstanceHandlers.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,9 +13,9 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.persistence; +package org.openworkflow.sdk.impl.persistence; -import static io.serverlessworkflow.impl.WorkflowUtils.safeClose; +import static org.openworkflow.sdk.impl.WorkflowUtils.safeClose; public class PersistenceInstanceHandlers implements AutoCloseable { diff --git a/impl/persistence/api/src/main/java/io/serverlessworkflow/impl/persistence/PersistenceInstanceInfo.java b/impl/persistence/api/src/main/java/org/openworkflow/sdk/impl/persistence/PersistenceInstanceInfo.java similarity index 83% rename from impl/persistence/api/src/main/java/io/serverlessworkflow/impl/persistence/PersistenceInstanceInfo.java rename to impl/persistence/api/src/main/java/org/openworkflow/sdk/impl/persistence/PersistenceInstanceInfo.java index 1d0bdcdab..b7f7d22e3 100644 --- a/impl/persistence/api/src/main/java/io/serverlessworkflow/impl/persistence/PersistenceInstanceInfo.java +++ b/impl/persistence/api/src/main/java/org/openworkflow/sdk/impl/persistence/PersistenceInstanceInfo.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,11 +13,11 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.persistence; +package org.openworkflow.sdk.impl.persistence; -import io.serverlessworkflow.impl.WorkflowModel; import java.time.Instant; import java.util.Map; +import org.openworkflow.sdk.impl.WorkflowModel; public record PersistenceInstanceInfo( Instant startedAt, WorkflowModel input, Map metadata) { diff --git a/impl/persistence/api/src/main/java/io/serverlessworkflow/impl/persistence/PersistenceInstanceOperations.java b/impl/persistence/api/src/main/java/org/openworkflow/sdk/impl/persistence/PersistenceInstanceOperations.java similarity index 80% rename from impl/persistence/api/src/main/java/io/serverlessworkflow/impl/persistence/PersistenceInstanceOperations.java rename to impl/persistence/api/src/main/java/org/openworkflow/sdk/impl/persistence/PersistenceInstanceOperations.java index a4aebe2fb..b08850e90 100644 --- a/impl/persistence/api/src/main/java/io/serverlessworkflow/impl/persistence/PersistenceInstanceOperations.java +++ b/impl/persistence/api/src/main/java/org/openworkflow/sdk/impl/persistence/PersistenceInstanceOperations.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,14 +13,14 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.persistence; +package org.openworkflow.sdk.impl.persistence; -import io.serverlessworkflow.impl.TaskContextData; -import io.serverlessworkflow.impl.WorkflowContextData; -import io.serverlessworkflow.impl.WorkflowDefinition; -import io.serverlessworkflow.impl.WorkflowStatus; import java.util.Optional; import java.util.stream.Stream; +import org.openworkflow.sdk.impl.TaskContextData; +import org.openworkflow.sdk.impl.WorkflowContextData; +import org.openworkflow.sdk.impl.WorkflowDefinition; +import org.openworkflow.sdk.impl.WorkflowStatus; public interface PersistenceInstanceOperations extends CorrelationOperations { void writeInstanceData(WorkflowContextData workflowContext); diff --git a/impl/persistence/api/src/main/java/io/serverlessworkflow/impl/persistence/PersistenceInstanceReader.java b/impl/persistence/api/src/main/java/org/openworkflow/sdk/impl/persistence/PersistenceInstanceReader.java similarity index 81% rename from impl/persistence/api/src/main/java/io/serverlessworkflow/impl/persistence/PersistenceInstanceReader.java rename to impl/persistence/api/src/main/java/org/openworkflow/sdk/impl/persistence/PersistenceInstanceReader.java index d7736c8f5..5a3d35e65 100644 --- a/impl/persistence/api/src/main/java/io/serverlessworkflow/impl/persistence/PersistenceInstanceReader.java +++ b/impl/persistence/api/src/main/java/org/openworkflow/sdk/impl/persistence/PersistenceInstanceReader.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,12 +13,12 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.persistence; +package org.openworkflow.sdk.impl.persistence; -import io.serverlessworkflow.impl.WorkflowDefinition; -import io.serverlessworkflow.impl.WorkflowInstance; import java.util.Optional; import java.util.stream.Stream; +import org.openworkflow.sdk.impl.WorkflowDefinition; +import org.openworkflow.sdk.impl.WorkflowInstance; public interface PersistenceInstanceReader extends AutoCloseable { diff --git a/impl/persistence/api/src/main/java/io/serverlessworkflow/impl/persistence/PersistenceInstanceStore.java b/impl/persistence/api/src/main/java/org/openworkflow/sdk/impl/persistence/PersistenceInstanceStore.java similarity index 85% rename from impl/persistence/api/src/main/java/io/serverlessworkflow/impl/persistence/PersistenceInstanceStore.java rename to impl/persistence/api/src/main/java/org/openworkflow/sdk/impl/persistence/PersistenceInstanceStore.java index 99c5096e0..add0c7a19 100644 --- a/impl/persistence/api/src/main/java/io/serverlessworkflow/impl/persistence/PersistenceInstanceStore.java +++ b/impl/persistence/api/src/main/java/org/openworkflow/sdk/impl/persistence/PersistenceInstanceStore.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.persistence; +package org.openworkflow.sdk.impl.persistence; public interface PersistenceInstanceStore extends AutoCloseable { PersistenceInstanceTransaction begin(); diff --git a/impl/persistence/api/src/main/java/io/serverlessworkflow/impl/persistence/PersistenceInstanceTransaction.java b/impl/persistence/api/src/main/java/org/openworkflow/sdk/impl/persistence/PersistenceInstanceTransaction.java similarity index 80% rename from impl/persistence/api/src/main/java/io/serverlessworkflow/impl/persistence/PersistenceInstanceTransaction.java rename to impl/persistence/api/src/main/java/org/openworkflow/sdk/impl/persistence/PersistenceInstanceTransaction.java index c8a2a2ab1..a063e6975 100644 --- a/impl/persistence/api/src/main/java/io/serverlessworkflow/impl/persistence/PersistenceInstanceTransaction.java +++ b/impl/persistence/api/src/main/java/org/openworkflow/sdk/impl/persistence/PersistenceInstanceTransaction.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,9 +13,9 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.persistence; +package org.openworkflow.sdk.impl.persistence; -import io.serverlessworkflow.impl.WorkflowDefinitionData; +import org.openworkflow.sdk.impl.WorkflowDefinitionData; public interface PersistenceInstanceTransaction extends PersistenceInstanceOperations { diff --git a/impl/persistence/api/src/main/java/io/serverlessworkflow/impl/persistence/PersistenceInstanceWriter.java b/impl/persistence/api/src/main/java/org/openworkflow/sdk/impl/persistence/PersistenceInstanceWriter.java similarity index 86% rename from impl/persistence/api/src/main/java/io/serverlessworkflow/impl/persistence/PersistenceInstanceWriter.java rename to impl/persistence/api/src/main/java/org/openworkflow/sdk/impl/persistence/PersistenceInstanceWriter.java index 31ce235a5..d94d9ca46 100644 --- a/impl/persistence/api/src/main/java/io/serverlessworkflow/impl/persistence/PersistenceInstanceWriter.java +++ b/impl/persistence/api/src/main/java/org/openworkflow/sdk/impl/persistence/PersistenceInstanceWriter.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,11 +13,11 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.persistence; +package org.openworkflow.sdk.impl.persistence; -import io.serverlessworkflow.impl.TaskContextData; -import io.serverlessworkflow.impl.WorkflowContextData; import java.util.concurrent.CompletableFuture; +import org.openworkflow.sdk.impl.TaskContextData; +import org.openworkflow.sdk.impl.WorkflowContextData; public interface PersistenceInstanceWriter extends AutoCloseable { diff --git a/impl/persistence/api/src/main/java/io/serverlessworkflow/impl/persistence/PersistenceTaskInfo.java b/impl/persistence/api/src/main/java/org/openworkflow/sdk/impl/persistence/PersistenceTaskInfo.java similarity index 84% rename from impl/persistence/api/src/main/java/io/serverlessworkflow/impl/persistence/PersistenceTaskInfo.java rename to impl/persistence/api/src/main/java/org/openworkflow/sdk/impl/persistence/PersistenceTaskInfo.java index b6fdc2298..734ec143f 100644 --- a/impl/persistence/api/src/main/java/io/serverlessworkflow/impl/persistence/PersistenceTaskInfo.java +++ b/impl/persistence/api/src/main/java/org/openworkflow/sdk/impl/persistence/PersistenceTaskInfo.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.persistence; +package org.openworkflow.sdk.impl.persistence; import java.util.Map; diff --git a/impl/persistence/api/src/main/java/io/serverlessworkflow/impl/persistence/PersistenceWorkflowInfo.java b/impl/persistence/api/src/main/java/org/openworkflow/sdk/impl/persistence/PersistenceWorkflowInfo.java similarity index 82% rename from impl/persistence/api/src/main/java/io/serverlessworkflow/impl/persistence/PersistenceWorkflowInfo.java rename to impl/persistence/api/src/main/java/org/openworkflow/sdk/impl/persistence/PersistenceWorkflowInfo.java index bb21fad2f..cf3b80894 100644 --- a/impl/persistence/api/src/main/java/io/serverlessworkflow/impl/persistence/PersistenceWorkflowInfo.java +++ b/impl/persistence/api/src/main/java/org/openworkflow/sdk/impl/persistence/PersistenceWorkflowInfo.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,12 +13,12 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.persistence; +package org.openworkflow.sdk.impl.persistence; -import io.serverlessworkflow.impl.WorkflowModel; -import io.serverlessworkflow.impl.WorkflowStatus; import java.time.Instant; import java.util.Map; +import org.openworkflow.sdk.impl.WorkflowModel; +import org.openworkflow.sdk.impl.WorkflowStatus; public record PersistenceWorkflowInfo( String id, diff --git a/impl/persistence/api/src/main/java/io/serverlessworkflow/impl/persistence/RetriedTaskInfo.java b/impl/persistence/api/src/main/java/org/openworkflow/sdk/impl/persistence/RetriedTaskInfo.java similarity index 86% rename from impl/persistence/api/src/main/java/io/serverlessworkflow/impl/persistence/RetriedTaskInfo.java rename to impl/persistence/api/src/main/java/org/openworkflow/sdk/impl/persistence/RetriedTaskInfo.java index 5894fdd9a..9fa3cd809 100644 --- a/impl/persistence/api/src/main/java/io/serverlessworkflow/impl/persistence/RetriedTaskInfo.java +++ b/impl/persistence/api/src/main/java/org/openworkflow/sdk/impl/persistence/RetriedTaskInfo.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.persistence; +package org.openworkflow.sdk.impl.persistence; import java.util.Map; diff --git a/impl/persistence/api/src/main/java/io/serverlessworkflow/impl/persistence/StoreAllStrategyCorrelationInfo.java b/impl/persistence/api/src/main/java/org/openworkflow/sdk/impl/persistence/StoreAllStrategyCorrelationInfo.java similarity index 88% rename from impl/persistence/api/src/main/java/io/serverlessworkflow/impl/persistence/StoreAllStrategyCorrelationInfo.java rename to impl/persistence/api/src/main/java/org/openworkflow/sdk/impl/persistence/StoreAllStrategyCorrelationInfo.java index 17d4b9cde..d3af07a4d 100644 --- a/impl/persistence/api/src/main/java/io/serverlessworkflow/impl/persistence/StoreAllStrategyCorrelationInfo.java +++ b/impl/persistence/api/src/main/java/org/openworkflow/sdk/impl/persistence/StoreAllStrategyCorrelationInfo.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,14 +13,14 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.persistence; +package org.openworkflow.sdk.impl.persistence; import io.cloudevents.CloudEvent; -import io.serverlessworkflow.impl.WorkflowDefinition; -import io.serverlessworkflow.impl.events.EventRegistrationBuilder; import java.util.Collection; import java.util.Map; import java.util.function.Function; +import org.openworkflow.sdk.impl.WorkflowDefinition; +import org.openworkflow.sdk.impl.events.EventRegistrationBuilder; import org.slf4j.Logger; import org.slf4j.LoggerFactory; diff --git a/impl/persistence/api/src/main/java/io/serverlessworkflow/impl/persistence/StoreAllStrategyCorrelationInfoFactory.java b/impl/persistence/api/src/main/java/org/openworkflow/sdk/impl/persistence/StoreAllStrategyCorrelationInfoFactory.java similarity index 77% rename from impl/persistence/api/src/main/java/io/serverlessworkflow/impl/persistence/StoreAllStrategyCorrelationInfoFactory.java rename to impl/persistence/api/src/main/java/org/openworkflow/sdk/impl/persistence/StoreAllStrategyCorrelationInfoFactory.java index a0ae93ca7..65a7fbccf 100644 --- a/impl/persistence/api/src/main/java/io/serverlessworkflow/impl/persistence/StoreAllStrategyCorrelationInfoFactory.java +++ b/impl/persistence/api/src/main/java/org/openworkflow/sdk/impl/persistence/StoreAllStrategyCorrelationInfoFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,11 +13,11 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.persistence; +package org.openworkflow.sdk.impl.persistence; -import io.serverlessworkflow.impl.WorkflowDefinition; -import io.serverlessworkflow.impl.scheduler.AllStrategyCorrelationInfo; -import io.serverlessworkflow.impl.scheduler.AllStrategyCorrelationInfoFactory; +import org.openworkflow.sdk.impl.WorkflowDefinition; +import org.openworkflow.sdk.impl.scheduler.AllStrategyCorrelationInfo; +import org.openworkflow.sdk.impl.scheduler.AllStrategyCorrelationInfoFactory; class StoreAllStrategyCorrelationInfoFactory implements AllStrategyCorrelationInfoFactory { diff --git a/impl/persistence/api/src/main/java/io/serverlessworkflow/impl/persistence/TransactedPersistenceInstanceWriter.java b/impl/persistence/api/src/main/java/org/openworkflow/sdk/impl/persistence/TransactedPersistenceInstanceWriter.java similarity index 88% rename from impl/persistence/api/src/main/java/io/serverlessworkflow/impl/persistence/TransactedPersistenceInstanceWriter.java rename to impl/persistence/api/src/main/java/org/openworkflow/sdk/impl/persistence/TransactedPersistenceInstanceWriter.java index 67650c482..6e4100e94 100644 --- a/impl/persistence/api/src/main/java/io/serverlessworkflow/impl/persistence/TransactedPersistenceInstanceWriter.java +++ b/impl/persistence/api/src/main/java/org/openworkflow/sdk/impl/persistence/TransactedPersistenceInstanceWriter.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,12 +13,12 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.persistence; +package org.openworkflow.sdk.impl.persistence; -import io.serverlessworkflow.impl.WorkflowContextData; -import io.serverlessworkflow.impl.WorkflowDefinitionData; import java.util.concurrent.CompletableFuture; import java.util.function.Consumer; +import org.openworkflow.sdk.impl.WorkflowContextData; +import org.openworkflow.sdk.impl.WorkflowDefinitionData; public abstract class TransactedPersistenceInstanceWriter extends AbstractPersistenceInstanceWriter { diff --git a/impl/persistence/api/src/main/java/io/serverlessworkflow/impl/persistence/WorkflowPersistenceInstance.java b/impl/persistence/api/src/main/java/org/openworkflow/sdk/impl/persistence/WorkflowPersistenceInstance.java similarity index 88% rename from impl/persistence/api/src/main/java/io/serverlessworkflow/impl/persistence/WorkflowPersistenceInstance.java rename to impl/persistence/api/src/main/java/org/openworkflow/sdk/impl/persistence/WorkflowPersistenceInstance.java index d582bba09..11504edd4 100644 --- a/impl/persistence/api/src/main/java/io/serverlessworkflow/impl/persistence/WorkflowPersistenceInstance.java +++ b/impl/persistence/api/src/main/java/org/openworkflow/sdk/impl/persistence/WorkflowPersistenceInstance.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,22 +13,22 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.persistence; +package org.openworkflow.sdk.impl.persistence; -import io.serverlessworkflow.api.types.TryTask; -import io.serverlessworkflow.impl.TaskContext; -import io.serverlessworkflow.impl.WorkflowContext; -import io.serverlessworkflow.impl.WorkflowDefinition; -import io.serverlessworkflow.impl.WorkflowInstance; -import io.serverlessworkflow.impl.WorkflowModel; -import io.serverlessworkflow.impl.WorkflowMutableInstance; -import io.serverlessworkflow.impl.WorkflowStatus; -import io.serverlessworkflow.impl.executors.TransitionInfo; import java.util.HashSet; import java.util.Optional; import java.util.Set; import java.util.concurrent.CompletableFuture; import java.util.function.Supplier; +import org.openworkflow.sdk.api.types.TryTask; +import org.openworkflow.sdk.impl.TaskContext; +import org.openworkflow.sdk.impl.WorkflowContext; +import org.openworkflow.sdk.impl.WorkflowDefinition; +import org.openworkflow.sdk.impl.WorkflowInstance; +import org.openworkflow.sdk.impl.WorkflowModel; +import org.openworkflow.sdk.impl.WorkflowMutableInstance; +import org.openworkflow.sdk.impl.WorkflowStatus; +import org.openworkflow.sdk.impl.executors.TransitionInfo; public class WorkflowPersistenceInstance extends WorkflowMutableInstance { diff --git a/impl/persistence/api/src/main/java/io/serverlessworkflow/impl/persistence/WorkflowPersistenceListener.java b/impl/persistence/api/src/main/java/org/openworkflow/sdk/impl/persistence/WorkflowPersistenceListener.java similarity index 74% rename from impl/persistence/api/src/main/java/io/serverlessworkflow/impl/persistence/WorkflowPersistenceListener.java rename to impl/persistence/api/src/main/java/org/openworkflow/sdk/impl/persistence/WorkflowPersistenceListener.java index e31f2943d..eb5d9f0b7 100644 --- a/impl/persistence/api/src/main/java/io/serverlessworkflow/impl/persistence/WorkflowPersistenceListener.java +++ b/impl/persistence/api/src/main/java/org/openworkflow/sdk/impl/persistence/WorkflowPersistenceListener.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,19 +13,19 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.persistence; +package org.openworkflow.sdk.impl.persistence; -import io.serverlessworkflow.impl.lifecycle.TaskCompletedEvent; -import io.serverlessworkflow.impl.lifecycle.TaskRetriedEvent; -import io.serverlessworkflow.impl.lifecycle.TaskStartedEvent; -import io.serverlessworkflow.impl.lifecycle.WorkflowCancelledEvent; -import io.serverlessworkflow.impl.lifecycle.WorkflowCompletedEvent; -import io.serverlessworkflow.impl.lifecycle.WorkflowExecutionCompletableListener; -import io.serverlessworkflow.impl.lifecycle.WorkflowFailedEvent; -import io.serverlessworkflow.impl.lifecycle.WorkflowResumedEvent; -import io.serverlessworkflow.impl.lifecycle.WorkflowStartedEvent; -import io.serverlessworkflow.impl.lifecycle.WorkflowSuspendedEvent; import java.util.concurrent.CompletableFuture; +import org.openworkflow.sdk.impl.lifecycle.TaskCompletedEvent; +import org.openworkflow.sdk.impl.lifecycle.TaskRetriedEvent; +import org.openworkflow.sdk.impl.lifecycle.TaskStartedEvent; +import org.openworkflow.sdk.impl.lifecycle.WorkflowCancelledEvent; +import org.openworkflow.sdk.impl.lifecycle.WorkflowCompletedEvent; +import org.openworkflow.sdk.impl.lifecycle.WorkflowExecutionCompletableListener; +import org.openworkflow.sdk.impl.lifecycle.WorkflowFailedEvent; +import org.openworkflow.sdk.impl.lifecycle.WorkflowResumedEvent; +import org.openworkflow.sdk.impl.lifecycle.WorkflowStartedEvent; +import org.openworkflow.sdk.impl.lifecycle.WorkflowSuspendedEvent; public class WorkflowPersistenceListener implements WorkflowExecutionCompletableListener { diff --git a/impl/persistence/api/src/main/java/io/serverlessworkflow/impl/persistence/hashing/DefaultHashFactory.java b/impl/persistence/api/src/main/java/org/openworkflow/sdk/impl/persistence/hashing/DefaultHashFactory.java similarity index 90% rename from impl/persistence/api/src/main/java/io/serverlessworkflow/impl/persistence/hashing/DefaultHashFactory.java rename to impl/persistence/api/src/main/java/org/openworkflow/sdk/impl/persistence/hashing/DefaultHashFactory.java index 19c3646c2..7f86d77cc 100644 --- a/impl/persistence/api/src/main/java/io/serverlessworkflow/impl/persistence/hashing/DefaultHashFactory.java +++ b/impl/persistence/api/src/main/java/org/openworkflow/sdk/impl/persistence/hashing/DefaultHashFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,17 +13,17 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.persistence.hashing; +package org.openworkflow.sdk.impl.persistence.hashing; import com.github.f4b6a3.ulid.Ulid; import com.github.f4b6a3.ulid.UlidFactory; -import io.serverlessworkflow.impl.marshaller.WorkflowInputBuffer; -import io.serverlessworkflow.impl.persistence.hashing.HashMappingCoordinator.BytesWithFlag; import java.util.List; import java.util.Map; import java.util.Optional; import java.util.function.Consumer; import java.util.function.Function; +import org.openworkflow.sdk.impl.marshaller.WorkflowInputBuffer; +import org.openworkflow.sdk.impl.persistence.hashing.HashMappingCoordinator.BytesWithFlag; public class DefaultHashFactory implements HashFactory { diff --git a/impl/persistence/api/src/main/java/io/serverlessworkflow/impl/persistence/hashing/DefaultHashIndex.java b/impl/persistence/api/src/main/java/org/openworkflow/sdk/impl/persistence/hashing/DefaultHashIndex.java similarity index 90% rename from impl/persistence/api/src/main/java/io/serverlessworkflow/impl/persistence/hashing/DefaultHashIndex.java rename to impl/persistence/api/src/main/java/org/openworkflow/sdk/impl/persistence/hashing/DefaultHashIndex.java index c3feb02c8..c8d949cc3 100644 --- a/impl/persistence/api/src/main/java/io/serverlessworkflow/impl/persistence/hashing/DefaultHashIndex.java +++ b/impl/persistence/api/src/main/java/org/openworkflow/sdk/impl/persistence/hashing/DefaultHashIndex.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.persistence.hashing; +package org.openworkflow.sdk.impl.persistence.hashing; import com.github.f4b6a3.ulid.Ulid; import java.util.Objects; diff --git a/impl/persistence/api/src/main/java/io/serverlessworkflow/impl/persistence/hashing/HashFactory.java b/impl/persistence/api/src/main/java/org/openworkflow/sdk/impl/persistence/hashing/HashFactory.java similarity index 85% rename from impl/persistence/api/src/main/java/io/serverlessworkflow/impl/persistence/hashing/HashFactory.java rename to impl/persistence/api/src/main/java/org/openworkflow/sdk/impl/persistence/hashing/HashFactory.java index 947095473..27e5c6a95 100644 --- a/impl/persistence/api/src/main/java/io/serverlessworkflow/impl/persistence/hashing/HashFactory.java +++ b/impl/persistence/api/src/main/java/org/openworkflow/sdk/impl/persistence/hashing/HashFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,14 +13,14 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.persistence.hashing; +package org.openworkflow.sdk.impl.persistence.hashing; -import io.serverlessworkflow.impl.marshaller.WorkflowInputBuffer; import java.util.List; import java.util.Map; import java.util.Optional; import java.util.function.Consumer; import java.util.function.Function; +import org.openworkflow.sdk.impl.marshaller.WorkflowInputBuffer; public interface HashFactory extends AutoCloseable { diff --git a/impl/persistence/api/src/main/java/io/serverlessworkflow/impl/persistence/hashing/HashIndex.java b/impl/persistence/api/src/main/java/org/openworkflow/sdk/impl/persistence/hashing/HashIndex.java similarity index 83% rename from impl/persistence/api/src/main/java/io/serverlessworkflow/impl/persistence/hashing/HashIndex.java rename to impl/persistence/api/src/main/java/org/openworkflow/sdk/impl/persistence/hashing/HashIndex.java index 885efba2f..94c3039d5 100644 --- a/impl/persistence/api/src/main/java/io/serverlessworkflow/impl/persistence/hashing/HashIndex.java +++ b/impl/persistence/api/src/main/java/org/openworkflow/sdk/impl/persistence/hashing/HashIndex.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.persistence.hashing; +package org.openworkflow.sdk.impl.persistence.hashing; public interface HashIndex { diff --git a/impl/persistence/api/src/main/java/io/serverlessworkflow/impl/persistence/hashing/HashItem.java b/impl/persistence/api/src/main/java/org/openworkflow/sdk/impl/persistence/hashing/HashItem.java similarity index 80% rename from impl/persistence/api/src/main/java/io/serverlessworkflow/impl/persistence/hashing/HashItem.java rename to impl/persistence/api/src/main/java/org/openworkflow/sdk/impl/persistence/hashing/HashItem.java index cedea8a96..2d2c8fc41 100644 --- a/impl/persistence/api/src/main/java/io/serverlessworkflow/impl/persistence/hashing/HashItem.java +++ b/impl/persistence/api/src/main/java/org/openworkflow/sdk/impl/persistence/hashing/HashItem.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,9 +13,9 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.persistence.hashing; +package org.openworkflow.sdk.impl.persistence.hashing; -import io.serverlessworkflow.impl.marshaller.WorkflowOutputBuffer; +import org.openworkflow.sdk.impl.marshaller.WorkflowOutputBuffer; public interface HashItem { final byte HASHING_DISABLED = 0; diff --git a/impl/persistence/api/src/main/java/io/serverlessworkflow/impl/persistence/hashing/HashMappingCoordinator.java b/impl/persistence/api/src/main/java/org/openworkflow/sdk/impl/persistence/hashing/HashMappingCoordinator.java similarity index 97% rename from impl/persistence/api/src/main/java/io/serverlessworkflow/impl/persistence/hashing/HashMappingCoordinator.java rename to impl/persistence/api/src/main/java/org/openworkflow/sdk/impl/persistence/hashing/HashMappingCoordinator.java index bda83e74a..da2de21ee 100644 --- a/impl/persistence/api/src/main/java/io/serverlessworkflow/impl/persistence/hashing/HashMappingCoordinator.java +++ b/impl/persistence/api/src/main/java/org/openworkflow/sdk/impl/persistence/hashing/HashMappingCoordinator.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.persistence.hashing; +package org.openworkflow.sdk.impl.persistence.hashing; import java.util.ArrayList; import java.util.Arrays; diff --git a/impl/persistence/api/src/main/java/io/serverlessworkflow/impl/persistence/hashing/HashMappingInfo.java b/impl/persistence/api/src/main/java/org/openworkflow/sdk/impl/persistence/hashing/HashMappingInfo.java similarity index 83% rename from impl/persistence/api/src/main/java/io/serverlessworkflow/impl/persistence/hashing/HashMappingInfo.java rename to impl/persistence/api/src/main/java/org/openworkflow/sdk/impl/persistence/hashing/HashMappingInfo.java index 10e445fb5..128f75c8b 100644 --- a/impl/persistence/api/src/main/java/io/serverlessworkflow/impl/persistence/hashing/HashMappingInfo.java +++ b/impl/persistence/api/src/main/java/org/openworkflow/sdk/impl/persistence/hashing/HashMappingInfo.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,6 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.persistence.hashing; +package org.openworkflow.sdk.impl.persistence.hashing; public record HashMappingInfo(HashItem item, HashIndex index, byte[] bytes) {} diff --git a/impl/persistence/api/src/main/java/io/serverlessworkflow/impl/persistence/hashing/IntegerHashItem.java b/impl/persistence/api/src/main/java/org/openworkflow/sdk/impl/persistence/hashing/IntegerHashItem.java similarity index 81% rename from impl/persistence/api/src/main/java/io/serverlessworkflow/impl/persistence/hashing/IntegerHashItem.java rename to impl/persistence/api/src/main/java/org/openworkflow/sdk/impl/persistence/hashing/IntegerHashItem.java index c554a8ad8..157231895 100644 --- a/impl/persistence/api/src/main/java/io/serverlessworkflow/impl/persistence/hashing/IntegerHashItem.java +++ b/impl/persistence/api/src/main/java/org/openworkflow/sdk/impl/persistence/hashing/IntegerHashItem.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,11 +13,11 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.persistence.hashing; +package org.openworkflow.sdk.impl.persistence.hashing; -import io.serverlessworkflow.impl.marshaller.WorkflowInputBuffer; -import io.serverlessworkflow.impl.marshaller.WorkflowOutputBuffer; import java.util.Arrays; +import org.openworkflow.sdk.impl.marshaller.WorkflowInputBuffer; +import org.openworkflow.sdk.impl.marshaller.WorkflowOutputBuffer; public class IntegerHashItem implements HashItem { diff --git a/impl/persistence/api/src/main/java/io/serverlessworkflow/impl/persistence/hashing/LRUCache.java b/impl/persistence/api/src/main/java/org/openworkflow/sdk/impl/persistence/hashing/LRUCache.java similarity index 99% rename from impl/persistence/api/src/main/java/io/serverlessworkflow/impl/persistence/hashing/LRUCache.java rename to impl/persistence/api/src/main/java/org/openworkflow/sdk/impl/persistence/hashing/LRUCache.java index 03e952ed4..c3a368af1 100644 --- a/impl/persistence/api/src/main/java/io/serverlessworkflow/impl/persistence/hashing/LRUCache.java +++ b/impl/persistence/api/src/main/java/org/openworkflow/sdk/impl/persistence/hashing/LRUCache.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.persistence.hashing; +package org.openworkflow.sdk.impl.persistence.hashing; import java.util.AbstractCollection; import java.util.AbstractSet; diff --git a/impl/persistence/api/src/main/java/io/serverlessworkflow/impl/persistence/hashing/MD5HashItem.java b/impl/persistence/api/src/main/java/org/openworkflow/sdk/impl/persistence/hashing/MD5HashItem.java similarity index 87% rename from impl/persistence/api/src/main/java/io/serverlessworkflow/impl/persistence/hashing/MD5HashItem.java rename to impl/persistence/api/src/main/java/org/openworkflow/sdk/impl/persistence/hashing/MD5HashItem.java index 753d37f7b..d92eb5197 100644 --- a/impl/persistence/api/src/main/java/io/serverlessworkflow/impl/persistence/hashing/MD5HashItem.java +++ b/impl/persistence/api/src/main/java/org/openworkflow/sdk/impl/persistence/hashing/MD5HashItem.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,12 +13,12 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.persistence.hashing; +package org.openworkflow.sdk.impl.persistence.hashing; -import io.serverlessworkflow.impl.marshaller.WorkflowInputBuffer; -import io.serverlessworkflow.impl.marshaller.WorkflowOutputBuffer; import java.security.MessageDigest; import java.security.NoSuchAlgorithmException; +import org.openworkflow.sdk.impl.marshaller.WorkflowInputBuffer; +import org.openworkflow.sdk.impl.marshaller.WorkflowOutputBuffer; public class MD5HashItem implements HashItem { diff --git a/impl/persistence/api/src/main/java/io/serverlessworkflow/impl/persistence/metadata/MetaTransient.java b/impl/persistence/api/src/main/java/org/openworkflow/sdk/impl/persistence/metadata/MetaTransient.java similarity index 87% rename from impl/persistence/api/src/main/java/io/serverlessworkflow/impl/persistence/metadata/MetaTransient.java rename to impl/persistence/api/src/main/java/org/openworkflow/sdk/impl/persistence/metadata/MetaTransient.java index 21ec7c828..183445996 100644 --- a/impl/persistence/api/src/main/java/io/serverlessworkflow/impl/persistence/metadata/MetaTransient.java +++ b/impl/persistence/api/src/main/java/org/openworkflow/sdk/impl/persistence/metadata/MetaTransient.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.persistence.metadata; +package org.openworkflow.sdk.impl.persistence.metadata; import static java.lang.annotation.ElementType.TYPE; import static java.lang.annotation.RetentionPolicy.RUNTIME; diff --git a/impl/persistence/api/src/main/java/io/serverlessworkflow/impl/persistence/metadata/PersistenceMetaUtils.java b/impl/persistence/api/src/main/java/org/openworkflow/sdk/impl/persistence/metadata/PersistenceMetaUtils.java similarity index 87% rename from impl/persistence/api/src/main/java/io/serverlessworkflow/impl/persistence/metadata/PersistenceMetaUtils.java rename to impl/persistence/api/src/main/java/org/openworkflow/sdk/impl/persistence/metadata/PersistenceMetaUtils.java index d5fede7a9..09025e84a 100644 --- a/impl/persistence/api/src/main/java/io/serverlessworkflow/impl/persistence/metadata/PersistenceMetaUtils.java +++ b/impl/persistence/api/src/main/java/org/openworkflow/sdk/impl/persistence/metadata/PersistenceMetaUtils.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,13 +13,13 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.persistence.metadata; +package org.openworkflow.sdk.impl.persistence.metadata; -import io.serverlessworkflow.impl.WorkflowInstanceData; import java.util.Map; import java.util.Map.Entry; import java.util.stream.Collectors; import java.util.stream.Stream; +import org.openworkflow.sdk.impl.WorkflowInstanceData; public class PersistenceMetaUtils { diff --git a/impl/persistence/api/src/test/java/io/serverlessworkflow/impl/persistence/hashing/HashMappingCoordinatorTest.java b/impl/persistence/api/src/test/java/org/openworkflow/sdk/impl/persistence/hashing/HashMappingCoordinatorTest.java similarity index 98% rename from impl/persistence/api/src/test/java/io/serverlessworkflow/impl/persistence/hashing/HashMappingCoordinatorTest.java rename to impl/persistence/api/src/test/java/org/openworkflow/sdk/impl/persistence/hashing/HashMappingCoordinatorTest.java index 08226b4de..9cd0c9d42 100644 --- a/impl/persistence/api/src/test/java/io/serverlessworkflow/impl/persistence/hashing/HashMappingCoordinatorTest.java +++ b/impl/persistence/api/src/test/java/org/openworkflow/sdk/impl/persistence/hashing/HashMappingCoordinatorTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,11 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.persistence.hashing; +package org.openworkflow.sdk.impl.persistence.hashing; import static org.assertj.core.api.Assertions.*; -import io.serverlessworkflow.impl.marshaller.WorkflowOutputBuffer; import java.util.HashMap; import java.util.List; import java.util.Map; @@ -26,6 +25,7 @@ import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.DisplayName; import org.junit.jupiter.api.Test; +import org.openworkflow.sdk.impl.marshaller.WorkflowOutputBuffer; /** * Integration tests for HashMappingCoordinator verifying the complete lifecycle: pin during diff --git a/impl/persistence/api/src/test/java/io/serverlessworkflow/impl/persistence/hashing/LRUCacheTest.java b/impl/persistence/api/src/test/java/org/openworkflow/sdk/impl/persistence/hashing/LRUCacheTest.java similarity index 99% rename from impl/persistence/api/src/test/java/io/serverlessworkflow/impl/persistence/hashing/LRUCacheTest.java rename to impl/persistence/api/src/test/java/org/openworkflow/sdk/impl/persistence/hashing/LRUCacheTest.java index 2361be008..093324b4f 100644 --- a/impl/persistence/api/src/test/java/io/serverlessworkflow/impl/persistence/hashing/LRUCacheTest.java +++ b/impl/persistence/api/src/test/java/org/openworkflow/sdk/impl/persistence/hashing/LRUCacheTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.persistence.hashing; +package org.openworkflow.sdk.impl.persistence.hashing; import static org.assertj.core.api.Assertions.*; diff --git a/impl/persistence/bigmap/pom.xml b/impl/persistence/bigmap/pom.xml index 9ad508a10..8dcc8cdbf 100644 --- a/impl/persistence/bigmap/pom.xml +++ b/impl/persistence/bigmap/pom.xml @@ -1,16 +1,16 @@ 4.0.0 - io.serverlessworkflow - serverlessworkflow-persistence + org.openworkflow.sdk + openworkflow-persistence 8.0.0-SNAPSHOT - serverlessworkflow-persistence-big-map - Serverless Workflow :: Impl :: Persistence:: BigMap + openworkflow-persistence-big-map + Open Workflow :: Impl :: Persistence:: BigMap - io.serverlessworkflow - serverlessworkflow-persistence-api + org.openworkflow.sdk + openworkflow-persistence-api \ No newline at end of file diff --git a/impl/persistence/bigmap/src/main/java/io/serverlessworkflow/impl/persistence/bigmap/BigMapInstanceTransaction.java b/impl/persistence/bigmap/src/main/java/org/openworkflow/sdk/impl/persistence/bigmap/BigMapInstanceTransaction.java similarity index 90% rename from impl/persistence/bigmap/src/main/java/io/serverlessworkflow/impl/persistence/bigmap/BigMapInstanceTransaction.java rename to impl/persistence/bigmap/src/main/java/org/openworkflow/sdk/impl/persistence/bigmap/BigMapInstanceTransaction.java index 635d392e0..944584316 100644 --- a/impl/persistence/bigmap/src/main/java/io/serverlessworkflow/impl/persistence/bigmap/BigMapInstanceTransaction.java +++ b/impl/persistence/bigmap/src/main/java/org/openworkflow/sdk/impl/persistence/bigmap/BigMapInstanceTransaction.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,26 +13,26 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.persistence.bigmap; +package org.openworkflow.sdk.impl.persistence.bigmap; import io.cloudevents.CloudEvent; -import io.serverlessworkflow.impl.TaskContext; -import io.serverlessworkflow.impl.TaskContextData; -import io.serverlessworkflow.impl.WorkflowContextData; -import io.serverlessworkflow.impl.WorkflowDefinition; -import io.serverlessworkflow.impl.WorkflowDefinitionData; -import io.serverlessworkflow.impl.WorkflowInstanceData; -import io.serverlessworkflow.impl.WorkflowStatus; -import io.serverlessworkflow.impl.persistence.PersistenceInstanceInfo; -import io.serverlessworkflow.impl.persistence.PersistenceInstanceTransaction; -import io.serverlessworkflow.impl.persistence.PersistenceTaskInfo; -import io.serverlessworkflow.impl.persistence.PersistenceWorkflowInfo; import java.util.Collection; import java.util.Map; import java.util.Map.Entry; import java.util.Optional; import java.util.stream.Collectors; import java.util.stream.Stream; +import org.openworkflow.sdk.impl.TaskContext; +import org.openworkflow.sdk.impl.TaskContextData; +import org.openworkflow.sdk.impl.WorkflowContextData; +import org.openworkflow.sdk.impl.WorkflowDefinition; +import org.openworkflow.sdk.impl.WorkflowDefinitionData; +import org.openworkflow.sdk.impl.WorkflowInstanceData; +import org.openworkflow.sdk.impl.WorkflowStatus; +import org.openworkflow.sdk.impl.persistence.PersistenceInstanceInfo; +import org.openworkflow.sdk.impl.persistence.PersistenceInstanceTransaction; +import org.openworkflow.sdk.impl.persistence.PersistenceTaskInfo; +import org.openworkflow.sdk.impl.persistence.PersistenceWorkflowInfo; public abstract class BigMapInstanceTransaction implements PersistenceInstanceTransaction { diff --git a/impl/persistence/bigmap/src/main/java/io/serverlessworkflow/impl/persistence/bigmap/BytesMapInstanceTransaction.java b/impl/persistence/bigmap/src/main/java/org/openworkflow/sdk/impl/persistence/bigmap/BytesMapInstanceTransaction.java similarity index 90% rename from impl/persistence/bigmap/src/main/java/io/serverlessworkflow/impl/persistence/bigmap/BytesMapInstanceTransaction.java rename to impl/persistence/bigmap/src/main/java/org/openworkflow/sdk/impl/persistence/bigmap/BytesMapInstanceTransaction.java index 7c1060ae6..7ea1e9b13 100644 --- a/impl/persistence/bigmap/src/main/java/io/serverlessworkflow/impl/persistence/bigmap/BytesMapInstanceTransaction.java +++ b/impl/persistence/bigmap/src/main/java/org/openworkflow/sdk/impl/persistence/bigmap/BytesMapInstanceTransaction.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,33 +13,11 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.persistence.bigmap; +package org.openworkflow.sdk.impl.persistence.bigmap; import io.cloudevents.CloudEvent; import io.cloudevents.SpecVersion; import io.cloudevents.core.builder.CloudEventBuilder; -import io.serverlessworkflow.impl.TaskContext; -import io.serverlessworkflow.impl.WorkflowContextData; -import io.serverlessworkflow.impl.WorkflowInstanceData; -import io.serverlessworkflow.impl.WorkflowModel; -import io.serverlessworkflow.impl.WorkflowStatus; -import io.serverlessworkflow.impl.executors.AbstractTaskExecutor; -import io.serverlessworkflow.impl.executors.TransitionInfo; -import io.serverlessworkflow.impl.marshaller.MarshallingUtils; -import io.serverlessworkflow.impl.marshaller.TaskStatus; -import io.serverlessworkflow.impl.marshaller.WorkflowBufferFactory; -import io.serverlessworkflow.impl.marshaller.WorkflowInputBuffer; -import io.serverlessworkflow.impl.marshaller.WorkflowOutputBuffer; -import io.serverlessworkflow.impl.persistence.CompletedTaskInfo; -import io.serverlessworkflow.impl.persistence.PersistenceInstanceInfo; -import io.serverlessworkflow.impl.persistence.PersistenceTaskInfo; -import io.serverlessworkflow.impl.persistence.RetriedTaskInfo; -import io.serverlessworkflow.impl.persistence.hashing.HashFactory; -import io.serverlessworkflow.impl.persistence.hashing.HashIndex; -import io.serverlessworkflow.impl.persistence.hashing.HashItem; -import io.serverlessworkflow.impl.persistence.hashing.HashMappingCoordinator; -import io.serverlessworkflow.impl.persistence.hashing.HashMappingInfo; -import io.serverlessworkflow.impl.persistence.metadata.PersistenceMetaUtils; import java.io.ByteArrayInputStream; import java.io.ByteArrayOutputStream; import java.io.IOException; @@ -49,6 +27,28 @@ import java.util.HashMap; import java.util.List; import java.util.Map; +import org.openworkflow.sdk.impl.TaskContext; +import org.openworkflow.sdk.impl.WorkflowContextData; +import org.openworkflow.sdk.impl.WorkflowInstanceData; +import org.openworkflow.sdk.impl.WorkflowModel; +import org.openworkflow.sdk.impl.WorkflowStatus; +import org.openworkflow.sdk.impl.executors.AbstractTaskExecutor; +import org.openworkflow.sdk.impl.executors.TransitionInfo; +import org.openworkflow.sdk.impl.marshaller.MarshallingUtils; +import org.openworkflow.sdk.impl.marshaller.TaskStatus; +import org.openworkflow.sdk.impl.marshaller.WorkflowBufferFactory; +import org.openworkflow.sdk.impl.marshaller.WorkflowInputBuffer; +import org.openworkflow.sdk.impl.marshaller.WorkflowOutputBuffer; +import org.openworkflow.sdk.impl.persistence.CompletedTaskInfo; +import org.openworkflow.sdk.impl.persistence.PersistenceInstanceInfo; +import org.openworkflow.sdk.impl.persistence.PersistenceTaskInfo; +import org.openworkflow.sdk.impl.persistence.RetriedTaskInfo; +import org.openworkflow.sdk.impl.persistence.hashing.HashFactory; +import org.openworkflow.sdk.impl.persistence.hashing.HashIndex; +import org.openworkflow.sdk.impl.persistence.hashing.HashItem; +import org.openworkflow.sdk.impl.persistence.hashing.HashMappingCoordinator; +import org.openworkflow.sdk.impl.persistence.hashing.HashMappingInfo; +import org.openworkflow.sdk.impl.persistence.metadata.PersistenceMetaUtils; public abstract class BytesMapInstanceTransaction extends BigMapInstanceTransaction { diff --git a/impl/persistence/mvstore/README.md b/impl/persistence/mvstore/README.md index c20058ca6..ed1e8a362 100644 --- a/impl/persistence/mvstore/README.md +++ b/impl/persistence/mvstore/README.md @@ -1,6 +1,6 @@ -[![Gitpod ready-to-code](https://img.shields.io/badge/Gitpod-ready--to--code-blue?logo=gitpod)](https://gitpod.io/#https://github.com/serverlessworkflow/sdk-java) +[![Gitpod ready-to-code](https://img.shields.io/badge/Gitpod-ready--to--code-blue?logo=gitpod)](https://gitpod.io/#https://github.com/open-workflow-specification/sdk-java) -# Serverless Workflow Specification — Java SDK (Reference Implementation)- Persistence - MVStore +# Open Workflow Specification — Java SDK (Reference Implementation)- Persistence - MVStore This document explains how to enable persistence using MVStore as underlying persistent mechanism. It is assumed that the reader is familiar with [standard workflow execution mechanism](../../README.md). diff --git a/impl/persistence/mvstore/pom.xml b/impl/persistence/mvstore/pom.xml index 4b7cdc7cd..12977c5e6 100644 --- a/impl/persistence/mvstore/pom.xml +++ b/impl/persistence/mvstore/pom.xml @@ -1,24 +1,24 @@ 4.0.0 - io.serverlessworkflow - serverlessworkflow-persistence + org.openworkflow.sdk + openworkflow-persistence 8.0.0-SNAPSHOT - serverlessworkflow-persistence-mvstore - Serverless Workflow :: Impl :: Persistence:: MVStore + openworkflow-persistence-mvstore + Open Workflow :: Impl :: Persistence:: MVStore com.h2database h2-mvstore - io.serverlessworkflow - serverlessworkflow-persistence-big-map + org.openworkflow.sdk + openworkflow-persistence-big-map - io.serverlessworkflow - serverlessworkflow-persistence-tests + org.openworkflow.sdk + openworkflow-persistence-tests org.slf4j diff --git a/impl/persistence/mvstore/src/main/java/io/serverlessworkflow/impl/persistence/mvstore/MVStorePersistenceStore.java b/impl/persistence/mvstore/src/main/java/org/openworkflow/sdk/impl/persistence/mvstore/MVStorePersistenceStore.java similarity index 74% rename from impl/persistence/mvstore/src/main/java/io/serverlessworkflow/impl/persistence/mvstore/MVStorePersistenceStore.java rename to impl/persistence/mvstore/src/main/java/org/openworkflow/sdk/impl/persistence/mvstore/MVStorePersistenceStore.java index 292942bc7..1ac7605fb 100644 --- a/impl/persistence/mvstore/src/main/java/io/serverlessworkflow/impl/persistence/mvstore/MVStorePersistenceStore.java +++ b/impl/persistence/mvstore/src/main/java/org/openworkflow/sdk/impl/persistence/mvstore/MVStorePersistenceStore.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,17 +13,17 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.persistence.mvstore; +package org.openworkflow.sdk.impl.persistence.mvstore; -import io.serverlessworkflow.impl.WorkflowUtils; -import io.serverlessworkflow.impl.marshaller.DefaultBufferFactory; -import io.serverlessworkflow.impl.marshaller.WorkflowBufferFactory; -import io.serverlessworkflow.impl.persistence.PersistenceInstanceStore; -import io.serverlessworkflow.impl.persistence.bigmap.BigMapInstanceTransaction; -import io.serverlessworkflow.impl.persistence.hashing.DefaultHashFactory; -import io.serverlessworkflow.impl.persistence.hashing.HashFactory; import org.h2.mvstore.MVStore; import org.h2.mvstore.tx.TransactionStore; +import org.openworkflow.sdk.impl.WorkflowUtils; +import org.openworkflow.sdk.impl.marshaller.DefaultBufferFactory; +import org.openworkflow.sdk.impl.marshaller.WorkflowBufferFactory; +import org.openworkflow.sdk.impl.persistence.PersistenceInstanceStore; +import org.openworkflow.sdk.impl.persistence.bigmap.BigMapInstanceTransaction; +import org.openworkflow.sdk.impl.persistence.hashing.DefaultHashFactory; +import org.openworkflow.sdk.impl.persistence.hashing.HashFactory; public class MVStorePersistenceStore implements PersistenceInstanceStore { private final TransactionStore transactionStore; diff --git a/impl/persistence/mvstore/src/main/java/io/serverlessworkflow/impl/persistence/mvstore/MVStoreTransaction.java b/impl/persistence/mvstore/src/main/java/org/openworkflow/sdk/impl/persistence/mvstore/MVStoreTransaction.java similarity index 88% rename from impl/persistence/mvstore/src/main/java/io/serverlessworkflow/impl/persistence/mvstore/MVStoreTransaction.java rename to impl/persistence/mvstore/src/main/java/org/openworkflow/sdk/impl/persistence/mvstore/MVStoreTransaction.java index ae63f4fce..4b7543205 100644 --- a/impl/persistence/mvstore/src/main/java/io/serverlessworkflow/impl/persistence/mvstore/MVStoreTransaction.java +++ b/impl/persistence/mvstore/src/main/java/org/openworkflow/sdk/impl/persistence/mvstore/MVStoreTransaction.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,19 +13,19 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.persistence.mvstore; - -import io.serverlessworkflow.api.types.Document; -import io.serverlessworkflow.api.types.Workflow; -import io.serverlessworkflow.impl.WorkflowDefinitionData; -import io.serverlessworkflow.impl.marshaller.WorkflowBufferFactory; -import io.serverlessworkflow.impl.persistence.bigmap.BytesMapInstanceTransaction; -import io.serverlessworkflow.impl.persistence.hashing.HashFactory; +package org.openworkflow.sdk.impl.persistence.mvstore; + import java.util.Map; import org.h2.mvstore.MVStore; import org.h2.mvstore.tx.Transaction; import org.h2.mvstore.tx.TransactionMap; import org.h2.mvstore.tx.TransactionStore; +import org.openworkflow.sdk.api.types.Document; +import org.openworkflow.sdk.api.types.Workflow; +import org.openworkflow.sdk.impl.WorkflowDefinitionData; +import org.openworkflow.sdk.impl.marshaller.WorkflowBufferFactory; +import org.openworkflow.sdk.impl.persistence.bigmap.BytesMapInstanceTransaction; +import org.openworkflow.sdk.impl.persistence.hashing.HashFactory; public class MVStoreTransaction extends BytesMapInstanceTransaction { private static final String ID_SEPARATOR = "-"; diff --git a/impl/persistence/mvstore/src/test/java/io/serverlessworkflow/impl/persistence/mvstore/HashingMVStorePersistenceTest.java b/impl/persistence/mvstore/src/test/java/org/openworkflow/sdk/impl/persistence/mvstore/HashingMVStorePersistenceTest.java similarity index 77% rename from impl/persistence/mvstore/src/test/java/io/serverlessworkflow/impl/persistence/mvstore/HashingMVStorePersistenceTest.java rename to impl/persistence/mvstore/src/test/java/org/openworkflow/sdk/impl/persistence/mvstore/HashingMVStorePersistenceTest.java index 0217940de..5c5d98dc4 100644 --- a/impl/persistence/mvstore/src/test/java/io/serverlessworkflow/impl/persistence/mvstore/HashingMVStorePersistenceTest.java +++ b/impl/persistence/mvstore/src/test/java/org/openworkflow/sdk/impl/persistence/mvstore/HashingMVStorePersistenceTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,10 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.persistence.mvstore; +package org.openworkflow.sdk.impl.persistence.mvstore; -import io.serverlessworkflow.impl.persistence.hashing.DefaultHashFactory; -import io.serverlessworkflow.impl.persistence.hashing.HashFactory; +import org.openworkflow.sdk.impl.persistence.hashing.DefaultHashFactory; +import org.openworkflow.sdk.impl.persistence.hashing.HashFactory; public class HashingMVStorePersistenceTest extends MVStorePersistenceStoreTest { diff --git a/impl/persistence/mvstore/src/test/java/io/serverlessworkflow/impl/persistence/mvstore/MD5MVStorePersistenceTest.java b/impl/persistence/mvstore/src/test/java/org/openworkflow/sdk/impl/persistence/mvstore/MD5MVStorePersistenceTest.java similarity index 77% rename from impl/persistence/mvstore/src/test/java/io/serverlessworkflow/impl/persistence/mvstore/MD5MVStorePersistenceTest.java rename to impl/persistence/mvstore/src/test/java/org/openworkflow/sdk/impl/persistence/mvstore/MD5MVStorePersistenceTest.java index 6dca19f1a..ee00ce210 100644 --- a/impl/persistence/mvstore/src/test/java/io/serverlessworkflow/impl/persistence/mvstore/MD5MVStorePersistenceTest.java +++ b/impl/persistence/mvstore/src/test/java/org/openworkflow/sdk/impl/persistence/mvstore/MD5MVStorePersistenceTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,10 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.persistence.mvstore; +package org.openworkflow.sdk.impl.persistence.mvstore; -import io.serverlessworkflow.impl.persistence.hashing.DefaultHashFactory; -import io.serverlessworkflow.impl.persistence.hashing.HashFactory; +import org.openworkflow.sdk.impl.persistence.hashing.DefaultHashFactory; +import org.openworkflow.sdk.impl.persistence.hashing.HashFactory; public class MD5MVStorePersistenceTest extends MVStorePersistenceStoreTest { diff --git a/impl/persistence/mvstore/src/test/java/io/serverlessworkflow/impl/persistence/mvstore/MVStoreCorrelationTest.java b/impl/persistence/mvstore/src/test/java/org/openworkflow/sdk/impl/persistence/mvstore/MVStoreCorrelationTest.java similarity index 78% rename from impl/persistence/mvstore/src/test/java/io/serverlessworkflow/impl/persistence/mvstore/MVStoreCorrelationTest.java rename to impl/persistence/mvstore/src/test/java/org/openworkflow/sdk/impl/persistence/mvstore/MVStoreCorrelationTest.java index 62a28c1b3..2abf07633 100644 --- a/impl/persistence/mvstore/src/test/java/io/serverlessworkflow/impl/persistence/mvstore/MVStoreCorrelationTest.java +++ b/impl/persistence/mvstore/src/test/java/org/openworkflow/sdk/impl/persistence/mvstore/MVStoreCorrelationTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,14 +13,14 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.persistence.mvstore; +package org.openworkflow.sdk.impl.persistence.mvstore; -import io.serverlessworkflow.impl.persistence.PersistenceInstanceStore; -import io.serverlessworkflow.impl.persistence.test.AbstractStoreCorrelationPersistenceTest; import java.io.IOException; import java.nio.file.Files; import java.nio.file.Path; import org.junit.jupiter.api.AfterEach; +import org.openworkflow.sdk.impl.persistence.PersistenceInstanceStore; +import org.openworkflow.sdk.impl.persistence.test.AbstractStoreCorrelationPersistenceTest; public class MVStoreCorrelationTest extends AbstractStoreCorrelationPersistenceTest { diff --git a/impl/persistence/mvstore/src/test/java/io/serverlessworkflow/impl/persistence/mvstore/MVStorePersistenceStoreTest.java b/impl/persistence/mvstore/src/test/java/org/openworkflow/sdk/impl/persistence/mvstore/MVStorePersistenceStoreTest.java similarity index 73% rename from impl/persistence/mvstore/src/test/java/io/serverlessworkflow/impl/persistence/mvstore/MVStorePersistenceStoreTest.java rename to impl/persistence/mvstore/src/test/java/org/openworkflow/sdk/impl/persistence/mvstore/MVStorePersistenceStoreTest.java index adfb7048e..05b1d998b 100644 --- a/impl/persistence/mvstore/src/test/java/io/serverlessworkflow/impl/persistence/mvstore/MVStorePersistenceStoreTest.java +++ b/impl/persistence/mvstore/src/test/java/org/openworkflow/sdk/impl/persistence/mvstore/MVStorePersistenceStoreTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,17 +13,17 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.persistence.mvstore; +package org.openworkflow.sdk.impl.persistence.mvstore; -import io.serverlessworkflow.impl.marshaller.DefaultBufferFactory; -import io.serverlessworkflow.impl.persistence.PersistenceInstanceStore; -import io.serverlessworkflow.impl.persistence.hashing.DefaultHashFactory; -import io.serverlessworkflow.impl.persistence.hashing.HashFactory; -import io.serverlessworkflow.impl.persistence.test.AbstractPersistenceTest; import java.io.IOException; import java.nio.file.Files; import java.nio.file.Path; import org.junit.jupiter.api.AfterEach; +import org.openworkflow.sdk.impl.marshaller.DefaultBufferFactory; +import org.openworkflow.sdk.impl.persistence.PersistenceInstanceStore; +import org.openworkflow.sdk.impl.persistence.hashing.DefaultHashFactory; +import org.openworkflow.sdk.impl.persistence.hashing.HashFactory; +import org.openworkflow.sdk.impl.persistence.test.AbstractPersistenceTest; class MVStorePersistenceStoreTest extends AbstractPersistenceTest { diff --git a/impl/persistence/pom.xml b/impl/persistence/pom.xml index 1dbe8e3ba..704ed22d5 100644 --- a/impl/persistence/pom.xml +++ b/impl/persistence/pom.xml @@ -1,12 +1,12 @@ 4.0.0 - io.serverlessworkflow - serverlessworkflow-impl + org.openworkflow.sdk + openworkflow-impl 8.0.0-SNAPSHOT - serverlessworkflow-persistence - Serverless Workflow :: Impl :: Persistence + openworkflow-persistence + Open Workflow :: Impl :: Persistence pom mvstore diff --git a/impl/persistence/tests/pom.xml b/impl/persistence/tests/pom.xml index 636ee1e0d..b6113a905 100644 --- a/impl/persistence/tests/pom.xml +++ b/impl/persistence/tests/pom.xml @@ -1,12 +1,12 @@ 4.0.0 - io.serverlessworkflow - serverlessworkflow-persistence + org.openworkflow.sdk + openworkflow-persistence 8.0.0-SNAPSHOT - serverlessworkflow-persistence-tests - Serverless Workflow :: Impl :: Persistence:: Tests + openworkflow-persistence-tests + Open Workflow :: Impl :: Persistence:: Tests org.junit.jupiter @@ -39,16 +39,16 @@ compile - io.serverlessworkflow - serverlessworkflow-persistence-api + org.openworkflow.sdk + openworkflow-persistence-api - io.serverlessworkflow - serverlessworkflow-impl-jackson + org.openworkflow.sdk + openworkflow-impl-jackson - io.serverlessworkflow - serverlessworkflow-api + org.openworkflow.sdk + openworkflow-api \ No newline at end of file diff --git a/impl/persistence/tests/src/main/java/io/serverlessworkflow/impl/persistence/test/AbstractCorrelationPersistenceTest.java b/impl/persistence/tests/src/main/java/org/openworkflow/sdk/impl/persistence/test/AbstractCorrelationPersistenceTest.java similarity index 80% rename from impl/persistence/tests/src/main/java/io/serverlessworkflow/impl/persistence/test/AbstractCorrelationPersistenceTest.java rename to impl/persistence/tests/src/main/java/org/openworkflow/sdk/impl/persistence/test/AbstractCorrelationPersistenceTest.java index 4b4ea53ed..728a141f6 100644 --- a/impl/persistence/tests/src/main/java/io/serverlessworkflow/impl/persistence/test/AbstractCorrelationPersistenceTest.java +++ b/impl/persistence/tests/src/main/java/org/openworkflow/sdk/impl/persistence/test/AbstractCorrelationPersistenceTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,24 +13,15 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.persistence.test; +package org.openworkflow.sdk.impl.persistence.test; -import static io.serverlessworkflow.api.WorkflowReader.readWorkflowFromClasspath; import static org.assertj.core.api.Assertions.assertThat; import static org.awaitility.Awaitility.await; +import static org.openworkflow.sdk.api.WorkflowReader.readWorkflowFromClasspath; import io.cloudevents.CloudEvent; import io.cloudevents.core.builder.CloudEventBuilder; import io.cloudevents.jackson.JsonCloudEventData; -import io.serverlessworkflow.impl.WorkflowApplication; -import io.serverlessworkflow.impl.WorkflowDefinition; -import io.serverlessworkflow.impl.WorkflowInstance; -import io.serverlessworkflow.impl.WorkflowStatus; -import io.serverlessworkflow.impl.events.InMemoryEvents; -import io.serverlessworkflow.impl.jackson.JsonUtils; -import io.serverlessworkflow.impl.persistence.AsyncPersistenceExecutor; -import io.serverlessworkflow.impl.persistence.PersistenceExecutor; -import io.serverlessworkflow.impl.scheduler.AllStrategyCorrelationInfoFactory; import java.io.IOException; import java.net.URI; import java.time.Duration; @@ -39,6 +30,15 @@ import org.junit.jupiter.api.AfterEach; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; +import org.openworkflow.sdk.impl.WorkflowApplication; +import org.openworkflow.sdk.impl.WorkflowDefinition; +import org.openworkflow.sdk.impl.WorkflowInstance; +import org.openworkflow.sdk.impl.WorkflowStatus; +import org.openworkflow.sdk.impl.events.InMemoryEvents; +import org.openworkflow.sdk.impl.jackson.JsonUtils; +import org.openworkflow.sdk.impl.persistence.AsyncPersistenceExecutor; +import org.openworkflow.sdk.impl.persistence.PersistenceExecutor; +import org.openworkflow.sdk.impl.scheduler.AllStrategyCorrelationInfoFactory; public abstract class AbstractCorrelationPersistenceTest { diff --git a/impl/persistence/tests/src/main/java/io/serverlessworkflow/impl/persistence/test/AbstractHandlerPersistenceTest.java b/impl/persistence/tests/src/main/java/org/openworkflow/sdk/impl/persistence/test/AbstractHandlerPersistenceTest.java similarity index 85% rename from impl/persistence/tests/src/main/java/io/serverlessworkflow/impl/persistence/test/AbstractHandlerPersistenceTest.java rename to impl/persistence/tests/src/main/java/org/openworkflow/sdk/impl/persistence/test/AbstractHandlerPersistenceTest.java index 339656712..62dca3e04 100644 --- a/impl/persistence/tests/src/main/java/io/serverlessworkflow/impl/persistence/test/AbstractHandlerPersistenceTest.java +++ b/impl/persistence/tests/src/main/java/org/openworkflow/sdk/impl/persistence/test/AbstractHandlerPersistenceTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,34 +13,14 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.persistence.test; +package org.openworkflow.sdk.impl.persistence.test; -import static io.serverlessworkflow.api.WorkflowReader.readWorkflowFromClasspath; import static org.assertj.core.api.Assertions.assertThat; import static org.mockito.Mockito.mock; import static org.mockito.Mockito.verify; import static org.mockito.Mockito.when; +import static org.openworkflow.sdk.api.WorkflowReader.readWorkflowFromClasspath; -import io.serverlessworkflow.api.types.TaskBase; -import io.serverlessworkflow.api.types.TryTask; -import io.serverlessworkflow.impl.TaskContext; -import io.serverlessworkflow.impl.TaskContextData; -import io.serverlessworkflow.impl.WorkflowApplication; -import io.serverlessworkflow.impl.WorkflowContext; -import io.serverlessworkflow.impl.WorkflowContextData; -import io.serverlessworkflow.impl.WorkflowDefinition; -import io.serverlessworkflow.impl.WorkflowInstance; -import io.serverlessworkflow.impl.WorkflowInstanceData; -import io.serverlessworkflow.impl.WorkflowModel; -import io.serverlessworkflow.impl.WorkflowMutablePosition; -import io.serverlessworkflow.impl.WorkflowPosition; -import io.serverlessworkflow.impl.WorkflowUtils; -import io.serverlessworkflow.impl.executors.TransitionInfo; -import io.serverlessworkflow.impl.persistence.PersistenceInstanceHandlers; -import io.serverlessworkflow.impl.persistence.WorkflowPersistenceInstance; -import io.serverlessworkflow.impl.persistence.hashing.DefaultHashFactory; -import io.serverlessworkflow.impl.persistence.hashing.HashFactory; -import io.serverlessworkflow.impl.persistence.metadata.MetaTransient; import java.io.IOException; import java.time.Duration; import java.time.Instant; @@ -53,6 +33,26 @@ import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; import org.mockito.ArgumentCaptor; +import org.openworkflow.sdk.api.types.TaskBase; +import org.openworkflow.sdk.api.types.TryTask; +import org.openworkflow.sdk.impl.TaskContext; +import org.openworkflow.sdk.impl.TaskContextData; +import org.openworkflow.sdk.impl.WorkflowApplication; +import org.openworkflow.sdk.impl.WorkflowContext; +import org.openworkflow.sdk.impl.WorkflowContextData; +import org.openworkflow.sdk.impl.WorkflowDefinition; +import org.openworkflow.sdk.impl.WorkflowInstance; +import org.openworkflow.sdk.impl.WorkflowInstanceData; +import org.openworkflow.sdk.impl.WorkflowModel; +import org.openworkflow.sdk.impl.WorkflowMutablePosition; +import org.openworkflow.sdk.impl.WorkflowPosition; +import org.openworkflow.sdk.impl.WorkflowUtils; +import org.openworkflow.sdk.impl.executors.TransitionInfo; +import org.openworkflow.sdk.impl.persistence.PersistenceInstanceHandlers; +import org.openworkflow.sdk.impl.persistence.WorkflowPersistenceInstance; +import org.openworkflow.sdk.impl.persistence.hashing.DefaultHashFactory; +import org.openworkflow.sdk.impl.persistence.hashing.HashFactory; +import org.openworkflow.sdk.impl.persistence.metadata.MetaTransient; public abstract class AbstractHandlerPersistenceTest { diff --git a/impl/persistence/tests/src/main/java/io/serverlessworkflow/impl/persistence/test/AbstractOperationsCorrelationPersistenceTest.java b/impl/persistence/tests/src/main/java/org/openworkflow/sdk/impl/persistence/test/AbstractOperationsCorrelationPersistenceTest.java similarity index 72% rename from impl/persistence/tests/src/main/java/io/serverlessworkflow/impl/persistence/test/AbstractOperationsCorrelationPersistenceTest.java rename to impl/persistence/tests/src/main/java/org/openworkflow/sdk/impl/persistence/test/AbstractOperationsCorrelationPersistenceTest.java index 57699082f..47f02ae1b 100644 --- a/impl/persistence/tests/src/main/java/io/serverlessworkflow/impl/persistence/test/AbstractOperationsCorrelationPersistenceTest.java +++ b/impl/persistence/tests/src/main/java/org/openworkflow/sdk/impl/persistence/test/AbstractOperationsCorrelationPersistenceTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,11 +13,11 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.persistence.test; +package org.openworkflow.sdk.impl.persistence.test; -import io.serverlessworkflow.impl.persistence.PersistenceAllStrategyCorrelationInfoFactories; -import io.serverlessworkflow.impl.persistence.PersistenceInstanceOperations; -import io.serverlessworkflow.impl.scheduler.AllStrategyCorrelationInfoFactory; +import org.openworkflow.sdk.impl.persistence.PersistenceAllStrategyCorrelationInfoFactories; +import org.openworkflow.sdk.impl.persistence.PersistenceInstanceOperations; +import org.openworkflow.sdk.impl.scheduler.AllStrategyCorrelationInfoFactory; public abstract class AbstractOperationsCorrelationPersistenceTest extends AbstractCorrelationPersistenceTest { diff --git a/impl/persistence/tests/src/main/java/io/serverlessworkflow/impl/persistence/test/AbstractPersistenceTest.java b/impl/persistence/tests/src/main/java/org/openworkflow/sdk/impl/persistence/test/AbstractPersistenceTest.java similarity index 71% rename from impl/persistence/tests/src/main/java/io/serverlessworkflow/impl/persistence/test/AbstractPersistenceTest.java rename to impl/persistence/tests/src/main/java/org/openworkflow/sdk/impl/persistence/test/AbstractPersistenceTest.java index f791c3174..f685eafb5 100644 --- a/impl/persistence/tests/src/main/java/io/serverlessworkflow/impl/persistence/test/AbstractPersistenceTest.java +++ b/impl/persistence/tests/src/main/java/org/openworkflow/sdk/impl/persistence/test/AbstractPersistenceTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,11 +13,11 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.persistence.test; +package org.openworkflow.sdk.impl.persistence.test; -import io.serverlessworkflow.impl.persistence.DefaultPersistenceInstanceHandlers; -import io.serverlessworkflow.impl.persistence.PersistenceInstanceHandlers; -import io.serverlessworkflow.impl.persistence.PersistenceInstanceStore; +import org.openworkflow.sdk.impl.persistence.DefaultPersistenceInstanceHandlers; +import org.openworkflow.sdk.impl.persistence.PersistenceInstanceHandlers; +import org.openworkflow.sdk.impl.persistence.PersistenceInstanceStore; public abstract class AbstractPersistenceTest extends AbstractHandlerPersistenceTest { diff --git a/impl/persistence/tests/src/main/java/io/serverlessworkflow/impl/persistence/test/AbstractStoreCorrelationPersistenceTest.java b/impl/persistence/tests/src/main/java/org/openworkflow/sdk/impl/persistence/test/AbstractStoreCorrelationPersistenceTest.java similarity index 72% rename from impl/persistence/tests/src/main/java/io/serverlessworkflow/impl/persistence/test/AbstractStoreCorrelationPersistenceTest.java rename to impl/persistence/tests/src/main/java/org/openworkflow/sdk/impl/persistence/test/AbstractStoreCorrelationPersistenceTest.java index 80c479bd3..9dd30d683 100644 --- a/impl/persistence/tests/src/main/java/io/serverlessworkflow/impl/persistence/test/AbstractStoreCorrelationPersistenceTest.java +++ b/impl/persistence/tests/src/main/java/org/openworkflow/sdk/impl/persistence/test/AbstractStoreCorrelationPersistenceTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,11 +13,11 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.persistence.test; +package org.openworkflow.sdk.impl.persistence.test; -import io.serverlessworkflow.impl.persistence.PersistenceAllStrategyCorrelationInfoFactories; -import io.serverlessworkflow.impl.persistence.PersistenceInstanceStore; -import io.serverlessworkflow.impl.scheduler.AllStrategyCorrelationInfoFactory; +import org.openworkflow.sdk.impl.persistence.PersistenceAllStrategyCorrelationInfoFactories; +import org.openworkflow.sdk.impl.persistence.PersistenceInstanceStore; +import org.openworkflow.sdk.impl.scheduler.AllStrategyCorrelationInfoFactory; public abstract class AbstractStoreCorrelationPersistenceTest extends AbstractCorrelationPersistenceTest { diff --git a/impl/pom.xml b/impl/pom.xml index 74df45035..b7808023f 100644 --- a/impl/pom.xml +++ b/impl/pom.xml @@ -1,12 +1,12 @@ 4.0.0 - io.serverlessworkflow - serverlessworkflow-parent + org.openworkflow.sdk + openworkflow-parent 8.0.0-SNAPSHOT - serverlessworkflow-impl - Serverless Workflow :: Impl + openworkflow-impl + Open Workflow :: Impl pom 2.5.252 @@ -23,116 +23,116 @@ - io.serverlessworkflow - serverlessworkflow-impl-core + org.openworkflow.sdk + openworkflow-impl-core ${project.version} - io.serverlessworkflow - serverlessworkflow-impl-http + org.openworkflow.sdk + openworkflow-impl-http ${project.version} - io.serverlessworkflow - serverlessworkflow-impl-template-resolver + org.openworkflow.sdk + openworkflow-impl-template-resolver ${project.version} - io.serverlessworkflow - serverlessworkflow-impl-json + org.openworkflow.sdk + openworkflow-impl-json ${project.version} - io.serverlessworkflow - serverlessworkflow-impl-jq + org.openworkflow.sdk + openworkflow-impl-jq ${project.version} - io.serverlessworkflow - serverlessworkflow-impl-model + org.openworkflow.sdk + openworkflow-impl-model ${project.version} - io.serverlessworkflow - serverlessworkflow-impl-validation + org.openworkflow.sdk + openworkflow-impl-validation ${project.version} - io.serverlessworkflow - serverlessworkflow-impl-function + org.openworkflow.sdk + openworkflow-impl-function ${project.version} - io.serverlessworkflow - serverlessworkflow-impl-lifecycle-events + org.openworkflow.sdk + openworkflow-impl-lifecycle-events ${project.version} - io.serverlessworkflow - serverlessworkflow-persistence-api + org.openworkflow.sdk + openworkflow-persistence-api ${project.version} - io.serverlessworkflow - serverlessworkflow-persistence-big-map + org.openworkflow.sdk + openworkflow-persistence-big-map ${project.version} - io.serverlessworkflow - serverlessworkflow-persistence-tests + org.openworkflow.sdk + openworkflow-persistence-tests ${project.version} test - io.serverlessworkflow - serverlessworkflow-persistence-mvstore + org.openworkflow.sdk + openworkflow-persistence-mvstore ${project.version} - io.serverlessworkflow - serverlessworkflow-impl-jackson-jwt + org.openworkflow.sdk + openworkflow-impl-jackson-jwt ${project.version} - io.serverlessworkflow - serverlessworkflow-impl-jackson + org.openworkflow.sdk + openworkflow-impl-jackson ${project.version} - io.serverlessworkflow - serverlessworkflow-impl-openapi-base + org.openworkflow.sdk + openworkflow-impl-openapi-base ${project.version} - io.serverlessworkflow - serverlessworkflow-impl-openapi-base + org.openworkflow.sdk + openworkflow-impl-openapi-base ${project.version} test-jar test - io.serverlessworkflow - serverlessworkflow-impl-openapi + org.openworkflow.sdk + openworkflow-impl-openapi ${project.version} - io.serverlessworkflow - serverlessworkflow-impl-container + org.openworkflow.sdk + openworkflow-impl-container ${project.version} - io.serverlessworkflow - serverlessworkflow-impl-grpc + org.openworkflow.sdk + openworkflow-impl-grpc ${project.version} - io.serverlessworkflow - serverlessworkflow-impl-a2a + org.openworkflow.sdk + openworkflow-impl-a2a ${project.version} - io.serverlessworkflow - serverlessworkflow-impl-cron + org.openworkflow.sdk + openworkflow-impl-cron ${project.version} @@ -168,13 +168,13 @@ ${version.com.h2database} - io.serverlessworkflow - serverlessworkflow-impl-script-js + org.openworkflow.sdk + openworkflow-impl-script-js ${project.version} - io.serverlessworkflow - serverlessworkflow-impl-script-python + org.openworkflow.sdk + openworkflow-impl-script-python ${project.version} diff --git a/impl/python/pom.xml b/impl/python/pom.xml index 13d7c4d2b..162df6552 100644 --- a/impl/python/pom.xml +++ b/impl/python/pom.xml @@ -1,16 +1,16 @@ 4.0.0 - io.serverlessworkflow - serverlessworkflow-impl + org.openworkflow.sdk + openworkflow-impl 8.0.0-SNAPSHOT - serverlessworkflow-impl-script-python - Serverless Workflow :: Impl :: Script Python + openworkflow-impl-script-python + Open Workflow :: Impl :: Script Python - io.serverlessworkflow - serverlessworkflow-impl-core + org.openworkflow.sdk + openworkflow-impl-core \ No newline at end of file diff --git a/impl/python/src/main/java/io/serverlessworkflow/impl/executors/script/python/PythonScriptTaskRunner.java b/impl/python/src/main/java/org/openworkflow/sdk/impl/executors/script/python/PythonScriptTaskRunner.java similarity index 78% rename from impl/python/src/main/java/io/serverlessworkflow/impl/executors/script/python/PythonScriptTaskRunner.java rename to impl/python/src/main/java/org/openworkflow/sdk/impl/executors/script/python/PythonScriptTaskRunner.java index d7129090f..1a307d901 100644 --- a/impl/python/src/main/java/io/serverlessworkflow/impl/executors/script/python/PythonScriptTaskRunner.java +++ b/impl/python/src/main/java/org/openworkflow/sdk/impl/executors/script/python/PythonScriptTaskRunner.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,16 +13,16 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.executors.script.python; +package org.openworkflow.sdk.impl.executors.script.python; -import io.serverlessworkflow.impl.TaskContext; -import io.serverlessworkflow.impl.WorkflowContext; -import io.serverlessworkflow.impl.WorkflowModel; -import io.serverlessworkflow.impl.scripts.ScriptContext; -import io.serverlessworkflow.impl.scripts.ScriptLanguageId; -import io.serverlessworkflow.impl.scripts.ScriptRunner; -import io.serverlessworkflow.impl.scripts.ScriptUtils; import java.util.List; +import org.openworkflow.sdk.impl.TaskContext; +import org.openworkflow.sdk.impl.WorkflowContext; +import org.openworkflow.sdk.impl.WorkflowModel; +import org.openworkflow.sdk.impl.scripts.ScriptContext; +import org.openworkflow.sdk.impl.scripts.ScriptLanguageId; +import org.openworkflow.sdk.impl.scripts.ScriptRunner; +import org.openworkflow.sdk.impl.scripts.ScriptUtils; import org.slf4j.Logger; import org.slf4j.LoggerFactory; diff --git a/impl/python/src/main/resources/META-INF/services/io.serverlessworkflow.impl.scripts.ScriptRunner b/impl/python/src/main/resources/META-INF/services/io.serverlessworkflow.impl.scripts.ScriptRunner deleted file mode 100644 index 347fa2061..000000000 --- a/impl/python/src/main/resources/META-INF/services/io.serverlessworkflow.impl.scripts.ScriptRunner +++ /dev/null @@ -1 +0,0 @@ -io.serverlessworkflow.impl.executors.script.python.PythonScriptTaskRunner \ No newline at end of file diff --git a/impl/python/src/main/resources/META-INF/services/org.openworkflow.sdk.impl.scripts.ScriptRunner b/impl/python/src/main/resources/META-INF/services/org.openworkflow.sdk.impl.scripts.ScriptRunner new file mode 100644 index 000000000..dac9a1791 --- /dev/null +++ b/impl/python/src/main/resources/META-INF/services/org.openworkflow.sdk.impl.scripts.ScriptRunner @@ -0,0 +1 @@ +org.openworkflow.sdk.impl.executors.script.python.PythonScriptTaskRunner \ No newline at end of file diff --git a/impl/template/pom.xml b/impl/template/pom.xml index 1f57b2d7e..2fc12c832 100644 --- a/impl/template/pom.xml +++ b/impl/template/pom.xml @@ -2,13 +2,13 @@ 4.0.0 - io.serverlessworkflow - serverlessworkflow-impl + org.openworkflow.sdk + openworkflow-impl 8.0.0-SNAPSHOT - serverlessworkflow-impl-template-resolver - Serverless Workflow :: Impl :: Template :: Jersey + openworkflow-impl-template-resolver + Open Workflow :: Impl :: Template :: Jersey @@ -16,8 +16,8 @@ jakarta.ws.rs-api - io.serverlessworkflow - serverlessworkflow-impl-core + org.openworkflow.sdk + openworkflow-impl-core \ No newline at end of file diff --git a/impl/template/src/main/java/io/serverlessworkflow/impl/template/JaxrsURITemplateResolver.java b/impl/template/src/main/java/org/openworkflow/sdk/impl/template/JaxrsURITemplateResolver.java similarity index 75% rename from impl/template/src/main/java/io/serverlessworkflow/impl/template/JaxrsURITemplateResolver.java rename to impl/template/src/main/java/org/openworkflow/sdk/impl/template/JaxrsURITemplateResolver.java index a205211a5..f2a365282 100644 --- a/impl/template/src/main/java/io/serverlessworkflow/impl/template/JaxrsURITemplateResolver.java +++ b/impl/template/src/main/java/org/openworkflow/sdk/impl/template/JaxrsURITemplateResolver.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,15 +13,15 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.template; +package org.openworkflow.sdk.impl.template; -import io.serverlessworkflow.impl.TaskContext; -import io.serverlessworkflow.impl.WorkflowContext; -import io.serverlessworkflow.impl.WorkflowModel; -import io.serverlessworkflow.impl.resources.URITemplateResolver; import jakarta.ws.rs.core.UriBuilder; import java.net.URI; import java.util.Collections; +import org.openworkflow.sdk.impl.TaskContext; +import org.openworkflow.sdk.impl.WorkflowContext; +import org.openworkflow.sdk.impl.WorkflowModel; +import org.openworkflow.sdk.impl.resources.URITemplateResolver; public class JaxrsURITemplateResolver implements URITemplateResolver { @Override diff --git a/impl/template/src/main/resources/META-INF/services/io.serverlessworkflow.impl.resources.URITemplateResolver b/impl/template/src/main/resources/META-INF/services/io.serverlessworkflow.impl.resources.URITemplateResolver deleted file mode 100644 index 365f2746e..000000000 --- a/impl/template/src/main/resources/META-INF/services/io.serverlessworkflow.impl.resources.URITemplateResolver +++ /dev/null @@ -1 +0,0 @@ -io.serverlessworkflow.impl.template.JaxrsURITemplateResolver \ No newline at end of file diff --git a/impl/template/src/main/resources/META-INF/services/org.openworkflow.sdk.impl.resources.URITemplateResolver b/impl/template/src/main/resources/META-INF/services/org.openworkflow.sdk.impl.resources.URITemplateResolver new file mode 100644 index 000000000..932a83d34 --- /dev/null +++ b/impl/template/src/main/resources/META-INF/services/org.openworkflow.sdk.impl.resources.URITemplateResolver @@ -0,0 +1 @@ +org.openworkflow.sdk.impl.template.JaxrsURITemplateResolver \ No newline at end of file diff --git a/impl/test/pom.xml b/impl/test/pom.xml index 7c8fcbd88..771b3f7f6 100644 --- a/impl/test/pom.xml +++ b/impl/test/pom.xml @@ -1,70 +1,70 @@ 4.0.0 - io.serverlessworkflow - serverlessworkflow-impl + org.openworkflow.sdk + openworkflow-impl 8.0.0-SNAPSHOT - serverlessworkflow-impl-test - Serverless Workflow :: Impl :: Test + openworkflow-impl-test + Open Workflow :: Impl :: Test - io.serverlessworkflow - serverlessworkflow-impl-jackson + org.openworkflow.sdk + openworkflow-impl-jackson - io.serverlessworkflow - serverlessworkflow-api + org.openworkflow.sdk + openworkflow-api - io.serverlessworkflow - serverlessworkflow-fluent-spec + org.openworkflow.sdk + openworkflow-fluent-spec ${project.version} test - io.serverlessworkflow - serverlessworkflow-persistence-mvstore + org.openworkflow.sdk + openworkflow-persistence-mvstore - io.serverlessworkflow - serverlessworkflow-impl-http + org.openworkflow.sdk + openworkflow-impl-http - io.serverlessworkflow - serverlessworkflow-impl-jackson-jwt + org.openworkflow.sdk + openworkflow-impl-jackson-jwt - io.serverlessworkflow - serverlessworkflow-impl-script-js + org.openworkflow.sdk + openworkflow-impl-script-js - io.serverlessworkflow - serverlessworkflow-impl-script-python + org.openworkflow.sdk + openworkflow-impl-script-python - io.serverlessworkflow - serverlessworkflow-impl-a2a + org.openworkflow.sdk + openworkflow-impl-a2a org.glassfish.jersey.media jersey-media-json-jackson - io.serverlessworkflow - serverlessworkflow-impl-openapi + org.openworkflow.sdk + openworkflow-impl-openapi - io.serverlessworkflow - serverlessworkflow-impl-container + org.openworkflow.sdk + openworkflow-impl-container - io.serverlessworkflow - serverlessworkflow-impl-grpc + org.openworkflow.sdk + openworkflow-impl-grpc - io.serverlessworkflow - serverlessworkflow-impl-cron + org.openworkflow.sdk + openworkflow-impl-cron org.glassfish.jersey.core @@ -174,7 +174,7 @@ java - io.serverlessworkflow.impl.test.DBGenerator + org.openworkflow.sdk.impl.test.DBGenerator diff --git a/impl/test/src/test/java/io/serverlessworkflow/impl/auth/OAuthRequestBuilderTest.java b/impl/test/src/test/java/org/openworkflow/sdk/impl/auth/OAuthRequestBuilderTest.java similarity index 84% rename from impl/test/src/test/java/io/serverlessworkflow/impl/auth/OAuthRequestBuilderTest.java rename to impl/test/src/test/java/org/openworkflow/sdk/impl/auth/OAuthRequestBuilderTest.java index 2992032f4..6f20d6c0c 100644 --- a/impl/test/src/test/java/io/serverlessworkflow/impl/auth/OAuthRequestBuilderTest.java +++ b/impl/test/src/test/java/org/openworkflow/sdk/impl/auth/OAuthRequestBuilderTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,20 +13,20 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.auth; +package org.openworkflow.sdk.impl.auth; -import static io.serverlessworkflow.api.types.OAuth2AuthenticationData.OAuth2AuthenticationDataGrant.CLIENT_CREDENTIALS; import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertFalse; import static org.junit.jupiter.api.Assertions.assertTrue; +import static org.openworkflow.sdk.api.types.OAuth2AuthenticationData.OAuth2AuthenticationDataGrant.CLIENT_CREDENTIALS; -import io.serverlessworkflow.api.types.OAuth2AuthenticationDataClient; -import io.serverlessworkflow.api.types.OAuth2AuthenticationPropertiesEndpoints; -import io.serverlessworkflow.api.types.OAuth2ConnectAuthenticationProperties; -import io.serverlessworkflow.api.types.UriTemplate; -import io.serverlessworkflow.impl.WorkflowApplication; import java.net.URI; import org.junit.jupiter.api.Test; +import org.openworkflow.sdk.api.types.OAuth2AuthenticationDataClient; +import org.openworkflow.sdk.api.types.OAuth2AuthenticationPropertiesEndpoints; +import org.openworkflow.sdk.api.types.OAuth2ConnectAuthenticationProperties; +import org.openworkflow.sdk.api.types.UriTemplate; +import org.openworkflow.sdk.impl.WorkflowApplication; class OAuthRequestBuilderTest { diff --git a/impl/test/src/test/java/io/serverlessworkflow/impl/test/A2AExecutorTest.java b/impl/test/src/test/java/org/openworkflow/sdk/impl/test/A2AExecutorTest.java similarity index 97% rename from impl/test/src/test/java/io/serverlessworkflow/impl/test/A2AExecutorTest.java rename to impl/test/src/test/java/org/openworkflow/sdk/impl/test/A2AExecutorTest.java index 136083cbc..8ba055b83 100644 --- a/impl/test/src/test/java/io/serverlessworkflow/impl/test/A2AExecutorTest.java +++ b/impl/test/src/test/java/org/openworkflow/sdk/impl/test/A2AExecutorTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,15 +13,12 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.test; +package org.openworkflow.sdk.impl.test; -import static io.serverlessworkflow.api.WorkflowReader.readWorkflowFromClasspath; import static org.assertj.core.api.Assertions.assertThat; import static org.assertj.core.api.Assertions.assertThatThrownBy; +import static org.openworkflow.sdk.api.WorkflowReader.readWorkflowFromClasspath; -import io.serverlessworkflow.impl.WorkflowApplication; -import io.serverlessworkflow.impl.WorkflowDefinition; -import io.serverlessworkflow.impl.WorkflowException; import java.io.IOException; import java.util.concurrent.ExecutionException; import java.util.concurrent.TimeUnit; @@ -32,6 +29,9 @@ import org.junit.jupiter.api.AfterEach; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; +import org.openworkflow.sdk.impl.WorkflowApplication; +import org.openworkflow.sdk.impl.WorkflowDefinition; +import org.openworkflow.sdk.impl.WorkflowException; class A2AExecutorTest { diff --git a/impl/test/src/test/java/io/serverlessworkflow/impl/test/AccessTokenProvider.java b/impl/test/src/test/java/org/openworkflow/sdk/impl/test/AccessTokenProvider.java similarity index 94% rename from impl/test/src/test/java/io/serverlessworkflow/impl/test/AccessTokenProvider.java rename to impl/test/src/test/java/org/openworkflow/sdk/impl/test/AccessTokenProvider.java index 6d8570ec4..389a559d5 100644 --- a/impl/test/src/test/java/io/serverlessworkflow/impl/test/AccessTokenProvider.java +++ b/impl/test/src/test/java/org/openworkflow/sdk/impl/test/AccessTokenProvider.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.test; +package org.openworkflow.sdk.impl.test; import com.fasterxml.jackson.databind.ObjectMapper; import java.nio.charset.StandardCharsets; diff --git a/impl/test/src/test/java/io/serverlessworkflow/impl/test/BasicAuthHttpTest.java b/impl/test/src/test/java/org/openworkflow/sdk/impl/test/BasicAuthHttpTest.java similarity index 87% rename from impl/test/src/test/java/io/serverlessworkflow/impl/test/BasicAuthHttpTest.java rename to impl/test/src/test/java/org/openworkflow/sdk/impl/test/BasicAuthHttpTest.java index d0d627e8b..eb009f440 100644 --- a/impl/test/src/test/java/io/serverlessworkflow/impl/test/BasicAuthHttpTest.java +++ b/impl/test/src/test/java/org/openworkflow/sdk/impl/test/BasicAuthHttpTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,15 +13,11 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.test; +package org.openworkflow.sdk.impl.test; -import static io.serverlessworkflow.api.WorkflowReader.readWorkflowFromClasspath; import static org.assertj.core.api.Assertions.assertThat; +import static org.openworkflow.sdk.api.WorkflowReader.readWorkflowFromClasspath; -import io.serverlessworkflow.api.types.Workflow; -import io.serverlessworkflow.impl.WorkflowApplication; -import io.serverlessworkflow.impl.WorkflowInstance; -import io.serverlessworkflow.impl.jackson.JsonUtils; import java.io.IOException; import java.util.Base64; import java.util.Map; @@ -33,6 +29,10 @@ import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.params.ParameterizedTest; import org.junit.jupiter.params.provider.ValueSource; +import org.openworkflow.sdk.api.types.Workflow; +import org.openworkflow.sdk.impl.WorkflowApplication; +import org.openworkflow.sdk.impl.WorkflowInstance; +import org.openworkflow.sdk.impl.jackson.JsonUtils; public class BasicAuthHttpTest { private static WorkflowApplication app; diff --git a/impl/test/src/test/java/io/serverlessworkflow/impl/test/CancelMetadataTest.java b/impl/test/src/test/java/org/openworkflow/sdk/impl/test/CancelMetadataTest.java similarity index 92% rename from impl/test/src/test/java/io/serverlessworkflow/impl/test/CancelMetadataTest.java rename to impl/test/src/test/java/org/openworkflow/sdk/impl/test/CancelMetadataTest.java index 737479a66..7856780ae 100644 --- a/impl/test/src/test/java/io/serverlessworkflow/impl/test/CancelMetadataTest.java +++ b/impl/test/src/test/java/org/openworkflow/sdk/impl/test/CancelMetadataTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,29 +13,11 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.test; +package org.openworkflow.sdk.impl.test; import static org.assertj.core.api.Assertions.assertThat; import static org.awaitility.Awaitility.await; -import io.serverlessworkflow.api.WorkflowReader; -import io.serverlessworkflow.impl.WorkflowApplication; -import io.serverlessworkflow.impl.WorkflowDefinition; -import io.serverlessworkflow.impl.WorkflowInstance; -import io.serverlessworkflow.impl.WorkflowModel; -import io.serverlessworkflow.impl.WorkflowStatus; -import io.serverlessworkflow.impl.lifecycle.EventType; -import io.serverlessworkflow.impl.lifecycle.TaskCancelledEvent; -import io.serverlessworkflow.impl.lifecycle.TaskCompletedEvent; -import io.serverlessworkflow.impl.lifecycle.TaskFailedEvent; -import io.serverlessworkflow.impl.lifecycle.WorkflowCancelledEvent; -import io.serverlessworkflow.impl.lifecycle.WorkflowCompletedEvent; -import io.serverlessworkflow.impl.lifecycle.WorkflowEvent; -import io.serverlessworkflow.impl.lifecycle.WorkflowExecutionCompletableListener; -import io.serverlessworkflow.impl.lifecycle.WorkflowExecutionListener; -import io.serverlessworkflow.impl.lifecycle.WorkflowFailedEvent; -import io.serverlessworkflow.impl.lifecycle.WorkflowStartedEvent; -import io.serverlessworkflow.impl.lifecycle.WorkflowStatusEvent; import java.io.IOException; import java.time.Duration; import java.util.Map; @@ -55,6 +37,24 @@ import org.junit.jupiter.params.ParameterizedTest; import org.junit.jupiter.params.provider.Arguments; import org.junit.jupiter.params.provider.MethodSource; +import org.openworkflow.sdk.api.WorkflowReader; +import org.openworkflow.sdk.impl.WorkflowApplication; +import org.openworkflow.sdk.impl.WorkflowDefinition; +import org.openworkflow.sdk.impl.WorkflowInstance; +import org.openworkflow.sdk.impl.WorkflowModel; +import org.openworkflow.sdk.impl.WorkflowStatus; +import org.openworkflow.sdk.impl.lifecycle.EventType; +import org.openworkflow.sdk.impl.lifecycle.TaskCancelledEvent; +import org.openworkflow.sdk.impl.lifecycle.TaskCompletedEvent; +import org.openworkflow.sdk.impl.lifecycle.TaskFailedEvent; +import org.openworkflow.sdk.impl.lifecycle.WorkflowCancelledEvent; +import org.openworkflow.sdk.impl.lifecycle.WorkflowCompletedEvent; +import org.openworkflow.sdk.impl.lifecycle.WorkflowEvent; +import org.openworkflow.sdk.impl.lifecycle.WorkflowExecutionCompletableListener; +import org.openworkflow.sdk.impl.lifecycle.WorkflowExecutionListener; +import org.openworkflow.sdk.impl.lifecycle.WorkflowFailedEvent; +import org.openworkflow.sdk.impl.lifecycle.WorkflowStartedEvent; +import org.openworkflow.sdk.impl.lifecycle.WorkflowStatusEvent; /** * Instance metadata must still be available to listeners when {@code onWorkflowCancelled} is diff --git a/impl/test/src/test/java/io/serverlessworkflow/impl/test/ContainerTest.java b/impl/test/src/test/java/org/openworkflow/sdk/impl/test/ContainerTest.java similarity index 96% rename from impl/test/src/test/java/io/serverlessworkflow/impl/test/ContainerTest.java rename to impl/test/src/test/java/org/openworkflow/sdk/impl/test/ContainerTest.java index 70471a2bb..83d6b6f67 100644 --- a/impl/test/src/test/java/io/serverlessworkflow/impl/test/ContainerTest.java +++ b/impl/test/src/test/java/org/openworkflow/sdk/impl/test/ContainerTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,13 +13,13 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.test; +package org.openworkflow.sdk.impl.test; -import static io.serverlessworkflow.api.WorkflowReader.readWorkflowFromClasspath; import static org.awaitility.Awaitility.await; import static org.junit.jupiter.api.Assertions.assertFalse; import static org.junit.jupiter.api.Assertions.assertNotNull; import static org.junit.jupiter.api.Assertions.assertTrue; +import static org.openworkflow.sdk.api.WorkflowReader.readWorkflowFromClasspath; import com.github.dockerjava.api.DockerClient; import com.github.dockerjava.api.command.InspectContainerResponse; @@ -31,8 +31,6 @@ import com.github.dockerjava.core.DockerClientImpl; import com.github.dockerjava.core.command.LogContainerResultCallback; import com.github.dockerjava.httpclient5.ApacheDockerHttpClient; -import io.serverlessworkflow.api.types.Workflow; -import io.serverlessworkflow.impl.WorkflowApplication; import java.io.ByteArrayOutputStream; import java.io.IOException; import java.time.Duration; @@ -42,6 +40,8 @@ import org.junit.jupiter.api.BeforeAll; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.condition.DisabledIf; +import org.openworkflow.sdk.api.types.Workflow; +import org.openworkflow.sdk.impl.WorkflowApplication; import org.slf4j.Logger; import org.slf4j.LoggerFactory; diff --git a/impl/test/src/test/java/io/serverlessworkflow/impl/test/CoreTaskTypesTest.java b/impl/test/src/test/java/org/openworkflow/sdk/impl/test/CoreTaskTypesTest.java similarity index 94% rename from impl/test/src/test/java/io/serverlessworkflow/impl/test/CoreTaskTypesTest.java rename to impl/test/src/test/java/org/openworkflow/sdk/impl/test/CoreTaskTypesTest.java index 4f55205bf..04608745d 100644 --- a/impl/test/src/test/java/io/serverlessworkflow/impl/test/CoreTaskTypesTest.java +++ b/impl/test/src/test/java/org/openworkflow/sdk/impl/test/CoreTaskTypesTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,25 +13,15 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.test; +package org.openworkflow.sdk.impl.test; -import static io.serverlessworkflow.api.WorkflowReader.readWorkflowFromClasspath; -import static io.serverlessworkflow.fluent.spec.dsl.DSL.*; import static org.assertj.core.api.Assertions.assertThat; import static org.assertj.core.api.Assertions.catchThrowableOfType; +import static org.openworkflow.sdk.api.WorkflowReader.readWorkflowFromClasspath; +import static org.openworkflow.sdk.fluent.spec.dsl.DSL.*; import com.fasterxml.jackson.databind.JsonNode; import com.fasterxml.jackson.databind.node.ArrayNode; -import io.serverlessworkflow.api.types.FlowDirectiveEnum; -import io.serverlessworkflow.api.types.Workflow; -import io.serverlessworkflow.fluent.spec.SetTaskBuilder; -import io.serverlessworkflow.fluent.spec.WorkflowBuilder; -import io.serverlessworkflow.impl.WorkflowApplication; -import io.serverlessworkflow.impl.WorkflowDefinitionId; -import io.serverlessworkflow.impl.WorkflowException; -import io.serverlessworkflow.impl.WorkflowInstance; -import io.serverlessworkflow.impl.WorkflowModel; -import io.serverlessworkflow.impl.jackson.JsonUtils; import java.io.IOException; import java.net.URI; import java.time.Instant; @@ -44,6 +34,16 @@ import org.junit.jupiter.params.ParameterizedTest; import org.junit.jupiter.params.provider.Arguments; import org.junit.jupiter.params.provider.MethodSource; +import org.openworkflow.sdk.api.types.FlowDirectiveEnum; +import org.openworkflow.sdk.api.types.Workflow; +import org.openworkflow.sdk.fluent.spec.SetTaskBuilder; +import org.openworkflow.sdk.fluent.spec.WorkflowBuilder; +import org.openworkflow.sdk.impl.WorkflowApplication; +import org.openworkflow.sdk.impl.WorkflowDefinitionId; +import org.openworkflow.sdk.impl.WorkflowException; +import org.openworkflow.sdk.impl.WorkflowInstance; +import org.openworkflow.sdk.impl.WorkflowModel; +import org.openworkflow.sdk.impl.jackson.JsonUtils; @SuppressWarnings("unchecked") class CoreTaskTypesTest { @@ -410,7 +410,7 @@ void testRaiseInline(String sourceName, Workflow workflow) { assertThat(ex.getCause()).isInstanceOf(WorkflowException.class); WorkflowException wex = (WorkflowException) ex.getCause(); assertThat(wex.getWorkflowError().type()) - .isEqualTo("https://serverlessworkflow.io/errors/not-implemented"); + .isEqualTo("https://open-workflow-specification.org/1.0.0/errors/not-implemented"); assertThat(wex.getWorkflowError().status()).isEqualTo(500); assertThat(wex.getWorkflowError().title()).isEqualTo("Not Implemented"); } @@ -427,7 +427,10 @@ private static Workflow raiseInlineWorkflow() { doTasks( raise( "notImplemented", - error(URI.create("https://serverlessworkflow.io/errors/not-implemented"), 500) + error( + URI.create( + "https://open-workflow-specification.org/1.0.0/errors/not-implemented"), + 500) .title("Not Implemented") .detail( "${ \"The workflow '\\( $workflow.definition.document.name ):\\( $workflow.definition.document.version )' is a work in progress and cannot be run yet\" }")))) @@ -447,7 +450,7 @@ void testRaiseReusable(String sourceName, Workflow workflow) { assertThat(ex.getCause()).isInstanceOf(WorkflowException.class); WorkflowException wex = (WorkflowException) ex.getCause(); assertThat(wex.getWorkflowError().type()) - .isEqualTo("https://serverlessworkflow.io/errors/not-implemented"); + .isEqualTo("https://open-workflow-specification.org/1.0.0/errors/not-implemented"); assertThat(wex.getWorkflowError().status()).isEqualTo(500); assertThat(wex.getWorkflowError().title()).isEqualTo("Not Implemented"); } @@ -468,7 +471,8 @@ private static Workflow raiseReusableWorkflow() { e.error( "notImplemented", err -> - err.type("https://serverlessworkflow.io/errors/not-implemented") + err.type( + "https://open-workflow-specification.org/1.0.0/errors/not-implemented") .status(500) .title("Not Implemented") .detail( diff --git a/impl/test/src/test/java/io/serverlessworkflow/impl/test/CorrelationTest.java b/impl/test/src/test/java/org/openworkflow/sdk/impl/test/CorrelationTest.java similarity index 94% rename from impl/test/src/test/java/io/serverlessworkflow/impl/test/CorrelationTest.java rename to impl/test/src/test/java/org/openworkflow/sdk/impl/test/CorrelationTest.java index 25cc1b86e..7445f42b1 100644 --- a/impl/test/src/test/java/io/serverlessworkflow/impl/test/CorrelationTest.java +++ b/impl/test/src/test/java/org/openworkflow/sdk/impl/test/CorrelationTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,24 +13,16 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.test; +package org.openworkflow.sdk.impl.test; -import static io.serverlessworkflow.api.WorkflowReader.readWorkflowFromClasspath; -import static io.serverlessworkflow.fluent.spec.dsl.DSL.*; import static org.assertj.core.api.Assertions.assertThat; import static org.awaitility.Awaitility.await; +import static org.openworkflow.sdk.api.WorkflowReader.readWorkflowFromClasspath; +import static org.openworkflow.sdk.fluent.spec.dsl.DSL.*; import io.cloudevents.CloudEvent; import io.cloudevents.core.builder.CloudEventBuilder; import io.cloudevents.jackson.JsonCloudEventData; -import io.serverlessworkflow.api.types.Workflow; -import io.serverlessworkflow.fluent.spec.WorkflowBuilder; -import io.serverlessworkflow.impl.WorkflowApplication; -import io.serverlessworkflow.impl.WorkflowDefinition; -import io.serverlessworkflow.impl.WorkflowInstance; -import io.serverlessworkflow.impl.WorkflowModel; -import io.serverlessworkflow.impl.WorkflowStatus; -import io.serverlessworkflow.impl.jackson.JsonUtils; import java.io.IOException; import java.net.URI; import java.time.Duration; @@ -45,6 +37,14 @@ import org.junit.jupiter.params.ParameterizedTest; import org.junit.jupiter.params.provider.Arguments; import org.junit.jupiter.params.provider.MethodSource; +import org.openworkflow.sdk.api.types.Workflow; +import org.openworkflow.sdk.fluent.spec.WorkflowBuilder; +import org.openworkflow.sdk.impl.WorkflowApplication; +import org.openworkflow.sdk.impl.WorkflowDefinition; +import org.openworkflow.sdk.impl.WorkflowInstance; +import org.openworkflow.sdk.impl.WorkflowModel; +import org.openworkflow.sdk.impl.WorkflowStatus; +import org.openworkflow.sdk.impl.jackson.JsonUtils; class CorrelationTest { diff --git a/impl/test/src/test/java/io/serverlessworkflow/impl/test/CustomAuthProviderFactoryOverrideTest.java b/impl/test/src/test/java/org/openworkflow/sdk/impl/test/CustomAuthProviderFactoryOverrideTest.java similarity index 85% rename from impl/test/src/test/java/io/serverlessworkflow/impl/test/CustomAuthProviderFactoryOverrideTest.java rename to impl/test/src/test/java/org/openworkflow/sdk/impl/test/CustomAuthProviderFactoryOverrideTest.java index d454b954e..0747221e5 100644 --- a/impl/test/src/test/java/io/serverlessworkflow/impl/test/CustomAuthProviderFactoryOverrideTest.java +++ b/impl/test/src/test/java/org/openworkflow/sdk/impl/test/CustomAuthProviderFactoryOverrideTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,22 +13,12 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.test; +package org.openworkflow.sdk.impl.test; -import static io.serverlessworkflow.api.WorkflowReader.readWorkflowFromClasspath; import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertTrue; +import static org.openworkflow.sdk.api.WorkflowReader.readWorkflowFromClasspath; -import io.serverlessworkflow.api.types.EndpointConfiguration; -import io.serverlessworkflow.api.types.ReferenceableAuthenticationPolicy; -import io.serverlessworkflow.api.types.Workflow; -import io.serverlessworkflow.impl.TaskContext; -import io.serverlessworkflow.impl.WorkflowApplication; -import io.serverlessworkflow.impl.WorkflowContext; -import io.serverlessworkflow.impl.WorkflowDefinition; -import io.serverlessworkflow.impl.WorkflowModel; -import io.serverlessworkflow.impl.auth.AuthProvider; -import io.serverlessworkflow.impl.auth.AuthProviderFactory; import java.io.IOException; import java.net.URI; import java.util.Map; @@ -41,6 +31,16 @@ import org.junit.jupiter.api.AfterEach; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; +import org.openworkflow.sdk.api.types.EndpointConfiguration; +import org.openworkflow.sdk.api.types.ReferenceableAuthenticationPolicy; +import org.openworkflow.sdk.api.types.Workflow; +import org.openworkflow.sdk.impl.TaskContext; +import org.openworkflow.sdk.impl.WorkflowApplication; +import org.openworkflow.sdk.impl.WorkflowContext; +import org.openworkflow.sdk.impl.WorkflowDefinition; +import org.openworkflow.sdk.impl.WorkflowModel; +import org.openworkflow.sdk.impl.auth.AuthProvider; +import org.openworkflow.sdk.impl.auth.AuthProviderFactory; public class CustomAuthProviderFactoryOverrideTest { diff --git a/impl/test/src/test/java/io/serverlessworkflow/impl/test/CustomFunctionTest.java b/impl/test/src/test/java/org/openworkflow/sdk/impl/test/CustomFunctionTest.java similarity index 86% rename from impl/test/src/test/java/io/serverlessworkflow/impl/test/CustomFunctionTest.java rename to impl/test/src/test/java/org/openworkflow/sdk/impl/test/CustomFunctionTest.java index f21107a10..a675180cf 100644 --- a/impl/test/src/test/java/io/serverlessworkflow/impl/test/CustomFunctionTest.java +++ b/impl/test/src/test/java/org/openworkflow/sdk/impl/test/CustomFunctionTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,15 +13,12 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.test; +package org.openworkflow.sdk.impl.test; -import static io.serverlessworkflow.api.WorkflowReader.readWorkflowFromClasspath; import static org.assertj.core.api.Assertions.assertThat; import static org.assertj.core.api.Assertions.assertThatThrownBy; +import static org.openworkflow.sdk.api.WorkflowReader.readWorkflowFromClasspath; -import io.serverlessworkflow.impl.WorkflowApplication; -import io.serverlessworkflow.impl.WorkflowException; -import io.serverlessworkflow.impl.test.junit.DisabledIfPythonUnavailable; import java.io.IOException; import java.util.Map; import org.junit.jupiter.api.AfterAll; @@ -29,6 +26,9 @@ import org.junit.jupiter.api.Test; import org.junit.jupiter.params.ParameterizedTest; import org.junit.jupiter.params.provider.ValueSource; +import org.openworkflow.sdk.impl.WorkflowApplication; +import org.openworkflow.sdk.impl.WorkflowException; +import org.openworkflow.sdk.impl.test.junit.DisabledIfPythonUnavailable; public class CustomFunctionTest { diff --git a/impl/test/src/test/java/io/serverlessworkflow/impl/test/DBGenerator.java b/impl/test/src/test/java/org/openworkflow/sdk/impl/test/DBGenerator.java similarity index 72% rename from impl/test/src/test/java/io/serverlessworkflow/impl/test/DBGenerator.java rename to impl/test/src/test/java/org/openworkflow/sdk/impl/test/DBGenerator.java index d8273b3c4..dc2d05a30 100644 --- a/impl/test/src/test/java/io/serverlessworkflow/impl/test/DBGenerator.java +++ b/impl/test/src/test/java/org/openworkflow/sdk/impl/test/DBGenerator.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,22 +13,22 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.test; +package org.openworkflow.sdk.impl.test; -import static io.serverlessworkflow.api.WorkflowReader.readWorkflowFromClasspath; +import static org.openworkflow.sdk.api.WorkflowReader.readWorkflowFromClasspath; -import io.serverlessworkflow.impl.WorkflowApplication; -import io.serverlessworkflow.impl.WorkflowDefinition; -import io.serverlessworkflow.impl.WorkflowInstance; -import io.serverlessworkflow.impl.lifecycle.TraceExecutionListener; -import io.serverlessworkflow.impl.persistence.DefaultPersistenceInstanceHandlers; -import io.serverlessworkflow.impl.persistence.PersistenceApplicationBuilder; -import io.serverlessworkflow.impl.persistence.PersistenceInstanceHandlers; -import io.serverlessworkflow.impl.persistence.mvstore.MVStorePersistenceStore; import java.io.IOException; import java.nio.file.Files; import java.nio.file.Path; import java.util.Map; +import org.openworkflow.sdk.impl.WorkflowApplication; +import org.openworkflow.sdk.impl.WorkflowDefinition; +import org.openworkflow.sdk.impl.WorkflowInstance; +import org.openworkflow.sdk.impl.lifecycle.TraceExecutionListener; +import org.openworkflow.sdk.impl.persistence.DefaultPersistenceInstanceHandlers; +import org.openworkflow.sdk.impl.persistence.PersistenceApplicationBuilder; +import org.openworkflow.sdk.impl.persistence.PersistenceInstanceHandlers; +import org.openworkflow.sdk.impl.persistence.mvstore.MVStorePersistenceStore; import org.slf4j.Logger; import org.slf4j.LoggerFactory; diff --git a/impl/test/src/test/java/io/serverlessworkflow/impl/test/DateTimeDescriptorTest.java b/impl/test/src/test/java/org/openworkflow/sdk/impl/test/DateTimeDescriptorTest.java similarity index 81% rename from impl/test/src/test/java/io/serverlessworkflow/impl/test/DateTimeDescriptorTest.java rename to impl/test/src/test/java/org/openworkflow/sdk/impl/test/DateTimeDescriptorTest.java index 09e4af565..1982a803b 100644 --- a/impl/test/src/test/java/io/serverlessworkflow/impl/test/DateTimeDescriptorTest.java +++ b/impl/test/src/test/java/org/openworkflow/sdk/impl/test/DateTimeDescriptorTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,15 +13,15 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.test; +package org.openworkflow.sdk.impl.test; import static org.assertj.core.api.Assertions.assertThat; import com.fasterxml.jackson.databind.JsonNode; -import io.serverlessworkflow.impl.expressions.DateTimeDescriptor; -import io.serverlessworkflow.impl.jackson.JsonUtils; import java.time.Instant; import org.junit.jupiter.api.Test; +import org.openworkflow.sdk.impl.expressions.DateTimeDescriptor; +import org.openworkflow.sdk.impl.jackson.JsonUtils; class DateTimeDescriptorTest { diff --git a/impl/test/src/test/java/io/serverlessworkflow/impl/test/DigestAuthHttpTest.java b/impl/test/src/test/java/org/openworkflow/sdk/impl/test/DigestAuthHttpTest.java similarity index 88% rename from impl/test/src/test/java/io/serverlessworkflow/impl/test/DigestAuthHttpTest.java rename to impl/test/src/test/java/org/openworkflow/sdk/impl/test/DigestAuthHttpTest.java index 559e2640b..47cc48efd 100644 --- a/impl/test/src/test/java/io/serverlessworkflow/impl/test/DigestAuthHttpTest.java +++ b/impl/test/src/test/java/org/openworkflow/sdk/impl/test/DigestAuthHttpTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,17 +13,12 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.test; +package org.openworkflow.sdk.impl.test; -import static io.serverlessworkflow.api.WorkflowReader.readWorkflowFromClasspath; import static org.assertj.core.api.Assertions.assertThat; import static org.mockito.Mockito.mockStatic; +import static org.openworkflow.sdk.api.WorkflowReader.readWorkflowFromClasspath; -import io.serverlessworkflow.api.types.Workflow; -import io.serverlessworkflow.impl.WorkflowApplication; -import io.serverlessworkflow.impl.WorkflowInstance; -import io.serverlessworkflow.impl.jackson.JsonUtils; -import io.serverlessworkflow.impl.utils.RandomFactory; import java.io.IOException; import java.util.Map; import java.util.Random; @@ -36,6 +31,11 @@ import org.junit.jupiter.api.Test; import org.mockito.MockedStatic; import org.mockito.Mockito; +import org.openworkflow.sdk.api.types.Workflow; +import org.openworkflow.sdk.impl.WorkflowApplication; +import org.openworkflow.sdk.impl.WorkflowInstance; +import org.openworkflow.sdk.impl.jackson.JsonUtils; +import org.openworkflow.sdk.impl.utils.RandomFactory; public class DigestAuthHttpTest { private static WorkflowApplication app; diff --git a/impl/test/src/test/java/io/serverlessworkflow/impl/test/EmitExecutorTest.java b/impl/test/src/test/java/org/openworkflow/sdk/impl/test/EmitExecutorTest.java similarity index 93% rename from impl/test/src/test/java/io/serverlessworkflow/impl/test/EmitExecutorTest.java rename to impl/test/src/test/java/org/openworkflow/sdk/impl/test/EmitExecutorTest.java index 27c457eb8..3ae7c5798 100644 --- a/impl/test/src/test/java/io/serverlessworkflow/impl/test/EmitExecutorTest.java +++ b/impl/test/src/test/java/org/openworkflow/sdk/impl/test/EmitExecutorTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,18 +13,13 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.test; +package org.openworkflow.sdk.impl.test; -import static io.serverlessworkflow.api.WorkflowReader.readWorkflowFromClasspath; import static org.assertj.core.api.Assertions.assertThat; import static org.assertj.core.api.Assertions.assertThatThrownBy; +import static org.openworkflow.sdk.api.WorkflowReader.readWorkflowFromClasspath; import io.cloudevents.CloudEvent; -import io.serverlessworkflow.api.types.Workflow; -import io.serverlessworkflow.fluent.spec.EventPropertiesBuilder; -import io.serverlessworkflow.fluent.spec.WorkflowBuilder; -import io.serverlessworkflow.impl.WorkflowApplication; -import io.serverlessworkflow.impl.events.InMemoryEvents; import java.io.IOException; import java.net.URI; import java.time.OffsetDateTime; @@ -35,6 +30,11 @@ import java.util.function.UnaryOperator; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; +import org.openworkflow.sdk.api.types.Workflow; +import org.openworkflow.sdk.fluent.spec.EventPropertiesBuilder; +import org.openworkflow.sdk.fluent.spec.WorkflowBuilder; +import org.openworkflow.sdk.impl.WorkflowApplication; +import org.openworkflow.sdk.impl.events.InMemoryEvents; class EmitExecutorTest { diff --git a/impl/test/src/test/java/io/serverlessworkflow/impl/test/EventDefinitionTest.java b/impl/test/src/test/java/org/openworkflow/sdk/impl/test/EventDefinitionTest.java similarity index 94% rename from impl/test/src/test/java/io/serverlessworkflow/impl/test/EventDefinitionTest.java rename to impl/test/src/test/java/org/openworkflow/sdk/impl/test/EventDefinitionTest.java index 70f5103b2..72db5bd60 100644 --- a/impl/test/src/test/java/io/serverlessworkflow/impl/test/EventDefinitionTest.java +++ b/impl/test/src/test/java/org/openworkflow/sdk/impl/test/EventDefinitionTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.test; +package org.openworkflow.sdk.impl.test; import static org.assertj.core.api.Assertions.assertThat; @@ -21,13 +21,6 @@ import com.fasterxml.jackson.databind.ObjectMapper; import com.fasterxml.jackson.databind.node.ArrayNode; import com.fasterxml.jackson.databind.node.ObjectNode; -import io.serverlessworkflow.api.WorkflowReader; -import io.serverlessworkflow.impl.WorkflowApplication; -import io.serverlessworkflow.impl.WorkflowDefinition; -import io.serverlessworkflow.impl.WorkflowInstance; -import io.serverlessworkflow.impl.WorkflowModel; -import io.serverlessworkflow.impl.WorkflowStatus; -import io.serverlessworkflow.impl.jackson.JsonUtils; import java.io.IOException; import java.time.Instant; import java.time.temporal.ChronoUnit; @@ -39,6 +32,13 @@ import org.junit.jupiter.params.ParameterizedTest; import org.junit.jupiter.params.provider.Arguments; import org.junit.jupiter.params.provider.MethodSource; +import org.openworkflow.sdk.api.WorkflowReader; +import org.openworkflow.sdk.impl.WorkflowApplication; +import org.openworkflow.sdk.impl.WorkflowDefinition; +import org.openworkflow.sdk.impl.WorkflowInstance; +import org.openworkflow.sdk.impl.WorkflowModel; +import org.openworkflow.sdk.impl.WorkflowStatus; +import org.openworkflow.sdk.impl.jackson.JsonUtils; public class EventDefinitionTest { diff --git a/impl/test/src/test/java/io/serverlessworkflow/impl/test/ForTaskMissingInTest.java b/impl/test/src/test/java/org/openworkflow/sdk/impl/test/ForTaskMissingInTest.java similarity index 83% rename from impl/test/src/test/java/io/serverlessworkflow/impl/test/ForTaskMissingInTest.java rename to impl/test/src/test/java/org/openworkflow/sdk/impl/test/ForTaskMissingInTest.java index 88c3a7a9b..2c7199254 100644 --- a/impl/test/src/test/java/io/serverlessworkflow/impl/test/ForTaskMissingInTest.java +++ b/impl/test/src/test/java/org/openworkflow/sdk/impl/test/ForTaskMissingInTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,14 +13,14 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.test; +package org.openworkflow.sdk.impl.test; -import static io.serverlessworkflow.fluent.spec.dsl.DSL.*; import static org.assertj.core.api.Assertions.assertThatThrownBy; +import static org.openworkflow.sdk.fluent.spec.dsl.DSL.*; -import io.serverlessworkflow.api.types.Workflow; -import io.serverlessworkflow.fluent.spec.WorkflowBuilder; import org.junit.jupiter.api.Test; +import org.openworkflow.sdk.api.types.Workflow; +import org.openworkflow.sdk.fluent.spec.WorkflowBuilder; class ForTaskMissingInTest { diff --git a/impl/test/src/test/java/io/serverlessworkflow/impl/test/ForkWaitTest.java b/impl/test/src/test/java/org/openworkflow/sdk/impl/test/ForkWaitTest.java similarity index 86% rename from impl/test/src/test/java/io/serverlessworkflow/impl/test/ForkWaitTest.java rename to impl/test/src/test/java/org/openworkflow/sdk/impl/test/ForkWaitTest.java index 488d595c4..88c200f48 100644 --- a/impl/test/src/test/java/io/serverlessworkflow/impl/test/ForkWaitTest.java +++ b/impl/test/src/test/java/org/openworkflow/sdk/impl/test/ForkWaitTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,20 +13,12 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.test; +package org.openworkflow.sdk.impl.test; -import static io.serverlessworkflow.api.WorkflowReader.readWorkflowFromClasspath; import static org.assertj.core.api.Assertions.assertThat; import static org.awaitility.Awaitility.await; +import static org.openworkflow.sdk.api.WorkflowReader.readWorkflowFromClasspath; -import io.serverlessworkflow.api.types.Workflow; -import io.serverlessworkflow.fluent.spec.WorkflowBuilder; -import io.serverlessworkflow.fluent.spec.dsl.DSL; -import io.serverlessworkflow.impl.WorkflowApplication; -import io.serverlessworkflow.impl.WorkflowDefinitionId; -import io.serverlessworkflow.impl.WorkflowInstance; -import io.serverlessworkflow.impl.WorkflowModel; -import io.serverlessworkflow.impl.WorkflowStatus; import java.io.IOException; import java.time.Duration; import java.util.Collection; @@ -39,6 +31,14 @@ import org.junit.jupiter.params.ParameterizedTest; import org.junit.jupiter.params.provider.Arguments; import org.junit.jupiter.params.provider.MethodSource; +import org.openworkflow.sdk.api.types.Workflow; +import org.openworkflow.sdk.fluent.spec.WorkflowBuilder; +import org.openworkflow.sdk.fluent.spec.dsl.DSL; +import org.openworkflow.sdk.impl.WorkflowApplication; +import org.openworkflow.sdk.impl.WorkflowDefinitionId; +import org.openworkflow.sdk.impl.WorkflowInstance; +import org.openworkflow.sdk.impl.WorkflowModel; +import org.openworkflow.sdk.impl.WorkflowStatus; class ForkWaitTest { diff --git a/impl/test/src/test/java/io/serverlessworkflow/impl/test/HTTPWorkflowDefinitionTest.java b/impl/test/src/test/java/org/openworkflow/sdk/impl/test/HTTPWorkflowDefinitionTest.java similarity index 95% rename from impl/test/src/test/java/io/serverlessworkflow/impl/test/HTTPWorkflowDefinitionTest.java rename to impl/test/src/test/java/org/openworkflow/sdk/impl/test/HTTPWorkflowDefinitionTest.java index e21f53e1e..5f916e236 100644 --- a/impl/test/src/test/java/io/serverlessworkflow/impl/test/HTTPWorkflowDefinitionTest.java +++ b/impl/test/src/test/java/org/openworkflow/sdk/impl/test/HTTPWorkflowDefinitionTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,18 +13,13 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.test; +package org.openworkflow.sdk.impl.test; -import static io.serverlessworkflow.api.WorkflowReader.readWorkflowFromClasspath; import static org.assertj.core.api.Assertions.assertThat; import static org.assertj.core.api.Assertions.catchThrowableOfType; import static org.junit.jupiter.api.Assertions.assertDoesNotThrow; +import static org.openworkflow.sdk.api.WorkflowReader.readWorkflowFromClasspath; -import io.serverlessworkflow.impl.WorkflowApplication; -import io.serverlessworkflow.impl.WorkflowError; -import io.serverlessworkflow.impl.WorkflowException; -import io.serverlessworkflow.impl.WorkflowModel; -import io.serverlessworkflow.types.Errors; import java.io.IOException; import java.nio.charset.StandardCharsets; import java.util.Map; @@ -41,6 +36,11 @@ import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; +import org.openworkflow.sdk.impl.WorkflowApplication; +import org.openworkflow.sdk.impl.WorkflowError; +import org.openworkflow.sdk.impl.WorkflowException; +import org.openworkflow.sdk.impl.WorkflowModel; +import org.openworkflow.sdk.types.Errors; import org.slf4j.Logger; import org.slf4j.LoggerFactory; @@ -463,7 +463,7 @@ void testOptionsCall() throws IOException, InterruptedException { @Test @Disabled( value = - "See the following discussion: https://github.com/serverlessworkflow/sdk-java/pull/1013/files#r2562919102 and https://github.com/serverlessworkflow/sdk-java/issues/1024") + "See the following discussion: https://github.com/open-workflow-specification/sdk-java/pull/1013/files#r2562919102 and https://github.com/open-workflow-specification/sdk-java/issues/1024") void testPatchCall() throws IOException, InterruptedException { mockServer.enqueue(new MockResponse(204, Headers.of(), "")); appl.workflowDefinition(readWorkflowFromClasspath("workflows-samples/call-http-patch.yaml")) @@ -481,7 +481,7 @@ void testPatchCall() throws IOException, InterruptedException { @Test @Disabled( - "See the following discussion: https://github.com/serverlessworkflow/sdk-java/pull/1013/files#r2566152233 and https://github.com/serverlessworkflow/sdk-java/issues/1024#issue-3680971320") + "See the following discussion: https://github.com/open-workflow-specification/sdk-java/pull/1013/files#r2566152233 and https://github.com/open-workflow-specification/sdk-java/issues/1024#issue-3680971320") void testRedirect_should_throws_when_redirect_is_false_and_response_status_is_not_2xx() { mockServer.enqueue( new MockResponse(301, Headers.of("Location", "http://localhost:9876/redirected"), "")); diff --git a/impl/test/src/test/java/io/serverlessworkflow/impl/test/LifeCycleEventsTest.java b/impl/test/src/test/java/org/openworkflow/sdk/impl/test/LifeCycleEventsTest.java similarity index 76% rename from impl/test/src/test/java/io/serverlessworkflow/impl/test/LifeCycleEventsTest.java rename to impl/test/src/test/java/org/openworkflow/sdk/impl/test/LifeCycleEventsTest.java index a3df1c0c1..5135f1847 100644 --- a/impl/test/src/test/java/io/serverlessworkflow/impl/test/LifeCycleEventsTest.java +++ b/impl/test/src/test/java/org/openworkflow/sdk/impl/test/LifeCycleEventsTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,38 +13,15 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.test; +package org.openworkflow.sdk.impl.test; -import static io.serverlessworkflow.impl.LifecycleEvents.APPLICATION_ID_EXTENSION; import static org.assertj.core.api.Assertions.assertThat; import static org.assertj.core.api.Assertions.catchThrowableOfType; import static org.awaitility.Awaitility.await; +import static org.openworkflow.sdk.impl.LifecycleEvents.APPLICATION_ID_EXTENSION; import io.cloudevents.CloudEvent; import io.cloudevents.core.data.PojoCloudEventData; -import io.serverlessworkflow.api.WorkflowReader; -import io.serverlessworkflow.api.types.Workflow; -import io.serverlessworkflow.fluent.spec.WorkflowBuilder; -import io.serverlessworkflow.fluent.spec.dsl.DSL; -import io.serverlessworkflow.impl.WorkflowApplication; -import io.serverlessworkflow.impl.WorkflowDefinition; -import io.serverlessworkflow.impl.WorkflowDefinitionId; -import io.serverlessworkflow.impl.WorkflowError; -import io.serverlessworkflow.impl.WorkflowInstance; -import io.serverlessworkflow.impl.WorkflowModel; -import io.serverlessworkflow.impl.WorkflowStatus; -import io.serverlessworkflow.impl.events.InMemoryEvents; -import io.serverlessworkflow.impl.lifecycle.ce.AbstractLifeCyclePublisher; -import io.serverlessworkflow.impl.lifecycle.ce.InputOutputLifeCycleCloudEventFactory; -import io.serverlessworkflow.impl.lifecycle.ce.TaskCancelledCEData; -import io.serverlessworkflow.impl.lifecycle.ce.TaskCompletedCEDataWithOutput; -import io.serverlessworkflow.impl.lifecycle.ce.TaskStartedCEData; -import io.serverlessworkflow.impl.lifecycle.ce.WorkflowCancelledCEData; -import io.serverlessworkflow.impl.lifecycle.ce.WorkflowCompletedCEDataWithOutput; -import io.serverlessworkflow.impl.lifecycle.ce.WorkflowFailedCEData; -import io.serverlessworkflow.impl.lifecycle.ce.WorkflowResumedCEData; -import io.serverlessworkflow.impl.lifecycle.ce.WorkflowStartedCEData; -import io.serverlessworkflow.impl.lifecycle.ce.WorkflowSuspendedCEData; import java.io.IOException; import java.time.Duration; import java.util.Collection; @@ -65,6 +42,29 @@ import org.junit.jupiter.params.ParameterizedTest; import org.junit.jupiter.params.provider.Arguments; import org.junit.jupiter.params.provider.MethodSource; +import org.openworkflow.sdk.api.WorkflowReader; +import org.openworkflow.sdk.api.types.Workflow; +import org.openworkflow.sdk.fluent.spec.WorkflowBuilder; +import org.openworkflow.sdk.fluent.spec.dsl.DSL; +import org.openworkflow.sdk.impl.WorkflowApplication; +import org.openworkflow.sdk.impl.WorkflowDefinition; +import org.openworkflow.sdk.impl.WorkflowDefinitionId; +import org.openworkflow.sdk.impl.WorkflowError; +import org.openworkflow.sdk.impl.WorkflowInstance; +import org.openworkflow.sdk.impl.WorkflowModel; +import org.openworkflow.sdk.impl.WorkflowStatus; +import org.openworkflow.sdk.impl.events.InMemoryEvents; +import org.openworkflow.sdk.impl.lifecycle.ce.AbstractLifeCyclePublisher; +import org.openworkflow.sdk.impl.lifecycle.ce.InputOutputLifeCycleCloudEventFactory; +import org.openworkflow.sdk.impl.lifecycle.ce.TaskCancelledCEData; +import org.openworkflow.sdk.impl.lifecycle.ce.TaskCompletedCEDataWithOutput; +import org.openworkflow.sdk.impl.lifecycle.ce.TaskStartedCEData; +import org.openworkflow.sdk.impl.lifecycle.ce.WorkflowCancelledCEData; +import org.openworkflow.sdk.impl.lifecycle.ce.WorkflowCompletedCEDataWithOutput; +import org.openworkflow.sdk.impl.lifecycle.ce.WorkflowFailedCEData; +import org.openworkflow.sdk.impl.lifecycle.ce.WorkflowResumedCEData; +import org.openworkflow.sdk.impl.lifecycle.ce.WorkflowStartedCEData; +import org.openworkflow.sdk.impl.lifecycle.ce.WorkflowSuspendedCEData; class LifeCycleEventsTest { @@ -108,15 +108,14 @@ void simpleWorkflow() throws IOException { .join(); assertThat(model.asMap()).hasValueSatisfying(m -> assertThat(m).hasSize(3)); WorkflowStartedCEData workflowStartedEvent = - assertPojoInCE("io.serverlessworkflow.workflow.started.v1", WorkflowStartedCEData.class); + assertPojoInCE("org.openworkflow.workflow.started.v1", WorkflowStartedCEData.class); TaskStartedCEData taskStartedEvent = - assertPojoInCE("io.serverlessworkflow.task.started.v1", TaskStartedCEData.class); + assertPojoInCE("org.openworkflow.task.started.v1", TaskStartedCEData.class); TaskCompletedCEDataWithOutput taskCompletedEvent = - assertPojoInCE( - "io.serverlessworkflow.task.completed.v1", TaskCompletedCEDataWithOutput.class); + assertPojoInCE("org.openworkflow.task.completed.v1", TaskCompletedCEDataWithOutput.class); WorkflowCompletedCEDataWithOutput workflowCompletedEvent = assertPojoInCE( - "io.serverlessworkflow.workflow.completed.v1", WorkflowCompletedCEDataWithOutput.class); + "org.openworkflow.workflow.completed.v1", WorkflowCompletedCEDataWithOutput.class); assertThat(workflowCompletedEvent.output()).isEqualTo(model.asJavaObject()); assertThat(workflowStartedEvent.startedAt()).isBefore(workflowCompletedEvent.completedAt()); assertThat(taskCompletedEvent.output()).isEqualTo(model.asJavaObject()); @@ -133,7 +132,7 @@ void testApplicationIdExtension() throws IOException { .instance(Map.of()) .start() .join(); - assertPojoInCE("io.serverlessworkflow.workflow.completed.v1", Object.class); + assertPojoInCE("org.openworkflow.workflow.completed.v1", Object.class); assertThat(appl.id()).isNotBlank(); assertThat(publishedEvents) .isNotEmpty() @@ -170,10 +169,9 @@ private void doTestSuspendResumeNotWait(Workflow workflow) .isEqualTo(Map.of("name", "Javierito")); assertThat(instance.status()).isEqualTo(WorkflowStatus.COMPLETED); WorkflowSuspendedCEData workflowSuspendedEvent = - assertPojoInCE( - "io.serverlessworkflow.workflow.suspended.v1", WorkflowSuspendedCEData.class); + assertPojoInCE("org.openworkflow.workflow.suspended.v1", WorkflowSuspendedCEData.class); WorkflowResumedCEData workflowResumedEvent = - assertPojoInCE("io.serverlessworkflow.workflow.resumed.v1", WorkflowResumedCEData.class); + assertPojoInCE("org.openworkflow.workflow.resumed.v1", WorkflowResumedCEData.class); assertThat(workflowSuspendedEvent.suspendedAt()) .isBeforeOrEqualTo(workflowResumedEvent.resumedAt()); } @@ -192,8 +190,8 @@ private void doTestCancel(Workflow workflow) { assertThat(catchThrowableOfType(ExecutionException.class, () -> future.get().asMap())) .isNotNull(); assertThat(instance.status()).isEqualTo(WorkflowStatus.CANCELLED); - assertPojoInCE("io.serverlessworkflow.task.cancelled.v1", TaskCancelledCEData.class); - assertPojoInCE("io.serverlessworkflow.workflow.cancelled.v1", WorkflowCancelledCEData.class); + assertPojoInCE("org.openworkflow.task.cancelled.v1", TaskCancelledCEData.class); + assertPojoInCE("org.openworkflow.workflow.cancelled.v1", WorkflowCancelledCEData.class); } @ParameterizedTest(name = "{0}") @@ -224,9 +222,9 @@ void testError() throws IOException { () -> appl.workflowDefinition(workflow).instance(Map.of()).start().join())) .isNotNull(); WorkflowError error = - assertPojoInCE("io.serverlessworkflow.workflow.faulted.v1", WorkflowFailedCEData.class) - .error(); - assertThat(error.type()).isEqualTo("https://serverlessworkflow.io/errors/not-implemented"); + assertPojoInCE("org.openworkflow.workflow.faulted.v1", WorkflowFailedCEData.class).error(); + assertThat(error.type()) + .isEqualTo("https://open-workflow-specification.org/1.0.0/errors/not-implemented"); assertThat(error.title()).isEqualTo("Not Implemented"); assertThat(error.status()).isEqualTo(500); assertThat(error.detail()).contains("raise-not-implemented"); diff --git a/impl/test/src/test/java/io/serverlessworkflow/impl/test/MvStorePersistenceTest.java b/impl/test/src/test/java/org/openworkflow/sdk/impl/test/MvStorePersistenceTest.java similarity index 85% rename from impl/test/src/test/java/io/serverlessworkflow/impl/test/MvStorePersistenceTest.java rename to impl/test/src/test/java/org/openworkflow/sdk/impl/test/MvStorePersistenceTest.java index 5d0143f0c..7c57affcd 100644 --- a/impl/test/src/test/java/io/serverlessworkflow/impl/test/MvStorePersistenceTest.java +++ b/impl/test/src/test/java/org/openworkflow/sdk/impl/test/MvStorePersistenceTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,20 +13,11 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.test; +package org.openworkflow.sdk.impl.test; -import static io.serverlessworkflow.api.WorkflowReader.readWorkflowFromClasspath; import static org.assertj.core.api.Assertions.assertThat; +import static org.openworkflow.sdk.api.WorkflowReader.readWorkflowFromClasspath; -import io.serverlessworkflow.impl.WorkflowApplication; -import io.serverlessworkflow.impl.WorkflowDefinition; -import io.serverlessworkflow.impl.WorkflowInstance; -import io.serverlessworkflow.impl.WorkflowStatus; -import io.serverlessworkflow.impl.lifecycle.TraceExecutionListener; -import io.serverlessworkflow.impl.persistence.DefaultPersistenceInstanceHandlers; -import io.serverlessworkflow.impl.persistence.PersistenceApplicationBuilder; -import io.serverlessworkflow.impl.persistence.PersistenceInstanceHandlers; -import io.serverlessworkflow.impl.persistence.mvstore.MVStorePersistenceStore; import java.io.IOException; import java.nio.file.Files; import java.nio.file.Path; @@ -38,6 +29,15 @@ import java.util.stream.Stream; import org.awaitility.Awaitility; import org.junit.jupiter.api.Test; +import org.openworkflow.sdk.impl.WorkflowApplication; +import org.openworkflow.sdk.impl.WorkflowDefinition; +import org.openworkflow.sdk.impl.WorkflowInstance; +import org.openworkflow.sdk.impl.WorkflowStatus; +import org.openworkflow.sdk.impl.lifecycle.TraceExecutionListener; +import org.openworkflow.sdk.impl.persistence.DefaultPersistenceInstanceHandlers; +import org.openworkflow.sdk.impl.persistence.PersistenceApplicationBuilder; +import org.openworkflow.sdk.impl.persistence.PersistenceInstanceHandlers; +import org.openworkflow.sdk.impl.persistence.mvstore.MVStorePersistenceStore; public class MvStorePersistenceTest { diff --git a/impl/test/src/test/java/io/serverlessworkflow/impl/test/OAuthHTTPWorkflowDefinitionTest.java b/impl/test/src/test/java/org/openworkflow/sdk/impl/test/OAuthHTTPWorkflowDefinitionTest.java similarity index 99% rename from impl/test/src/test/java/io/serverlessworkflow/impl/test/OAuthHTTPWorkflowDefinitionTest.java rename to impl/test/src/test/java/org/openworkflow/sdk/impl/test/OAuthHTTPWorkflowDefinitionTest.java index a6adf32c0..5a5702c1f 100644 --- a/impl/test/src/test/java/io/serverlessworkflow/impl/test/OAuthHTTPWorkflowDefinitionTest.java +++ b/impl/test/src/test/java/org/openworkflow/sdk/impl/test/OAuthHTTPWorkflowDefinitionTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,17 +13,15 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.test; +package org.openworkflow.sdk.impl.test; -import static io.serverlessworkflow.api.WorkflowReader.readWorkflowFromClasspath; -import static io.serverlessworkflow.impl.test.AccessTokenProvider.fakeAccessToken; import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertFalse; import static org.junit.jupiter.api.Assertions.assertTrue; +import static org.openworkflow.sdk.api.WorkflowReader.readWorkflowFromClasspath; +import static org.openworkflow.sdk.impl.test.AccessTokenProvider.fakeAccessToken; import com.fasterxml.jackson.databind.ObjectMapper; -import io.serverlessworkflow.api.types.Workflow; -import io.serverlessworkflow.impl.WorkflowApplication; import java.io.IOException; import java.net.URLDecoder; import java.nio.charset.StandardCharsets; @@ -36,6 +34,8 @@ import org.junit.jupiter.api.BeforeAll; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; +import org.openworkflow.sdk.api.types.Workflow; +import org.openworkflow.sdk.impl.WorkflowApplication; public class OAuthHTTPWorkflowDefinitionTest { diff --git a/impl/test/src/test/java/io/serverlessworkflow/impl/test/OAuthUtilsTest.java b/impl/test/src/test/java/org/openworkflow/sdk/impl/test/OAuthUtilsTest.java similarity index 82% rename from impl/test/src/test/java/io/serverlessworkflow/impl/test/OAuthUtilsTest.java rename to impl/test/src/test/java/org/openworkflow/sdk/impl/test/OAuthUtilsTest.java index 69dbf7f20..25200005f 100644 --- a/impl/test/src/test/java/io/serverlessworkflow/impl/test/OAuthUtilsTest.java +++ b/impl/test/src/test/java/org/openworkflow/sdk/impl/test/OAuthUtilsTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,26 +13,26 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.test; +package org.openworkflow.sdk.impl.test; import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertNull; import static org.junit.jupiter.api.Assertions.assertTrue; -import io.serverlessworkflow.api.types.AuthenticationPolicyUnion; -import io.serverlessworkflow.api.types.BasicAuthenticationPolicy; -import io.serverlessworkflow.api.types.OAuth2AuthenticationData; -import io.serverlessworkflow.api.types.OAuth2AuthenticationPolicy; -import io.serverlessworkflow.api.types.OAuth2AuthenticationPolicyConfiguration; -import io.serverlessworkflow.api.types.OAuth2ConnectAuthenticationProperties; -import io.serverlessworkflow.api.types.OpenIdConnectAuthenticationPolicy; -import io.serverlessworkflow.api.types.OpenIdConnectAuthenticationPolicyConfiguration; -import io.serverlessworkflow.api.types.SecretBasedAuthenticationPolicy; -import io.serverlessworkflow.impl.auth.OAuthPolicyData; -import io.serverlessworkflow.impl.auth.OAuthScheme; -import io.serverlessworkflow.impl.auth.OAuthUtils; import java.util.Optional; import org.junit.jupiter.api.Test; +import org.openworkflow.sdk.api.types.AuthenticationPolicyUnion; +import org.openworkflow.sdk.api.types.BasicAuthenticationPolicy; +import org.openworkflow.sdk.api.types.OAuth2AuthenticationData; +import org.openworkflow.sdk.api.types.OAuth2AuthenticationPolicy; +import org.openworkflow.sdk.api.types.OAuth2AuthenticationPolicyConfiguration; +import org.openworkflow.sdk.api.types.OAuth2ConnectAuthenticationProperties; +import org.openworkflow.sdk.api.types.OpenIdConnectAuthenticationPolicy; +import org.openworkflow.sdk.api.types.OpenIdConnectAuthenticationPolicyConfiguration; +import org.openworkflow.sdk.api.types.SecretBasedAuthenticationPolicy; +import org.openworkflow.sdk.impl.auth.OAuthPolicyData; +import org.openworkflow.sdk.impl.auth.OAuthScheme; +import org.openworkflow.sdk.impl.auth.OAuthUtils; public class OAuthUtilsTest { diff --git a/impl/test/src/test/java/io/serverlessworkflow/impl/test/OpenAPITest.java b/impl/test/src/test/java/org/openworkflow/sdk/impl/test/OpenAPITest.java similarity index 96% rename from impl/test/src/test/java/io/serverlessworkflow/impl/test/OpenAPITest.java rename to impl/test/src/test/java/org/openworkflow/sdk/impl/test/OpenAPITest.java index e7e9a3310..9f923656c 100644 --- a/impl/test/src/test/java/io/serverlessworkflow/impl/test/OpenAPITest.java +++ b/impl/test/src/test/java/org/openworkflow/sdk/impl/test/OpenAPITest.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,18 +13,14 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.test; +package org.openworkflow.sdk.impl.test; -import static io.serverlessworkflow.api.WorkflowReader.readWorkflowFromClasspath; import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertInstanceOf; import static org.junit.jupiter.api.Assertions.assertThrows; import static org.junit.jupiter.api.Assertions.assertTrue; +import static org.openworkflow.sdk.api.WorkflowReader.readWorkflowFromClasspath; -import io.serverlessworkflow.api.types.Workflow; -import io.serverlessworkflow.impl.WorkflowApplication; -import io.serverlessworkflow.impl.WorkflowDefinition; -import io.serverlessworkflow.impl.WorkflowException; import java.io.IOException; import java.io.InputStream; import java.util.Date; @@ -39,6 +35,10 @@ import org.junit.jupiter.api.BeforeAll; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; +import org.openworkflow.sdk.api.types.Workflow; +import org.openworkflow.sdk.impl.WorkflowApplication; +import org.openworkflow.sdk.impl.WorkflowDefinition; +import org.openworkflow.sdk.impl.WorkflowException; public class OpenAPITest { diff --git a/impl/test/src/test/java/io/serverlessworkflow/impl/test/OpenIDCHTTPWorkflowDefinitionTest.java b/impl/test/src/test/java/org/openworkflow/sdk/impl/test/OpenIDCHTTPWorkflowDefinitionTest.java similarity index 98% rename from impl/test/src/test/java/io/serverlessworkflow/impl/test/OpenIDCHTTPWorkflowDefinitionTest.java rename to impl/test/src/test/java/org/openworkflow/sdk/impl/test/OpenIDCHTTPWorkflowDefinitionTest.java index 878004950..5c1cf395d 100644 --- a/impl/test/src/test/java/io/serverlessworkflow/impl/test/OpenIDCHTTPWorkflowDefinitionTest.java +++ b/impl/test/src/test/java/org/openworkflow/sdk/impl/test/OpenIDCHTTPWorkflowDefinitionTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,16 +13,14 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.test; +package org.openworkflow.sdk.impl.test; -import static io.serverlessworkflow.api.WorkflowReader.readWorkflowFromClasspath; -import static io.serverlessworkflow.impl.test.AccessTokenProvider.fakeAccessToken; import static org.junit.Assert.assertEquals; import static org.junit.jupiter.api.Assertions.assertTrue; +import static org.openworkflow.sdk.api.WorkflowReader.readWorkflowFromClasspath; +import static org.openworkflow.sdk.impl.test.AccessTokenProvider.fakeAccessToken; import com.fasterxml.jackson.databind.ObjectMapper; -import io.serverlessworkflow.api.types.Workflow; -import io.serverlessworkflow.impl.WorkflowApplication; import java.io.IOException; import java.util.Map; import okhttp3.mockwebserver.MockResponse; @@ -33,6 +31,8 @@ import org.junit.jupiter.api.BeforeAll; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; +import org.openworkflow.sdk.api.types.Workflow; +import org.openworkflow.sdk.impl.WorkflowApplication; public class OpenIDCHTTPWorkflowDefinitionTest { diff --git a/impl/test/src/test/java/io/serverlessworkflow/impl/test/ResolvePolicyTest.java b/impl/test/src/test/java/org/openworkflow/sdk/impl/test/ResolvePolicyTest.java similarity index 82% rename from impl/test/src/test/java/io/serverlessworkflow/impl/test/ResolvePolicyTest.java rename to impl/test/src/test/java/org/openworkflow/sdk/impl/test/ResolvePolicyTest.java index 7bd45b303..3a2e18904 100644 --- a/impl/test/src/test/java/io/serverlessworkflow/impl/test/ResolvePolicyTest.java +++ b/impl/test/src/test/java/org/openworkflow/sdk/impl/test/ResolvePolicyTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,23 +13,23 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.test; +package org.openworkflow.sdk.impl.test; import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertTrue; -import io.serverlessworkflow.api.types.AuthenticationPolicyReference; -import io.serverlessworkflow.api.types.AuthenticationPolicyUnion; -import io.serverlessworkflow.api.types.BearerAuthenticationPolicy; -import io.serverlessworkflow.api.types.BearerAuthenticationPolicyConfiguration; -import io.serverlessworkflow.api.types.BearerAuthenticationProperties; -import io.serverlessworkflow.api.types.ReferenceableAuthenticationPolicy; -import io.serverlessworkflow.api.types.Use; -import io.serverlessworkflow.api.types.UseAuthentications; -import io.serverlessworkflow.api.types.Workflow; -import io.serverlessworkflow.impl.auth.OAuthUtils; import java.util.Optional; import org.junit.jupiter.api.Test; +import org.openworkflow.sdk.api.types.AuthenticationPolicyReference; +import org.openworkflow.sdk.api.types.AuthenticationPolicyUnion; +import org.openworkflow.sdk.api.types.BearerAuthenticationPolicy; +import org.openworkflow.sdk.api.types.BearerAuthenticationPolicyConfiguration; +import org.openworkflow.sdk.api.types.BearerAuthenticationProperties; +import org.openworkflow.sdk.api.types.ReferenceableAuthenticationPolicy; +import org.openworkflow.sdk.api.types.Use; +import org.openworkflow.sdk.api.types.UseAuthentications; +import org.openworkflow.sdk.api.types.Workflow; +import org.openworkflow.sdk.impl.auth.OAuthUtils; public class ResolvePolicyTest { diff --git a/impl/test/src/test/java/io/serverlessworkflow/impl/test/RetryTimeoutTest.java b/impl/test/src/test/java/org/openworkflow/sdk/impl/test/RetryTimeoutTest.java similarity index 94% rename from impl/test/src/test/java/io/serverlessworkflow/impl/test/RetryTimeoutTest.java rename to impl/test/src/test/java/org/openworkflow/sdk/impl/test/RetryTimeoutTest.java index b59974d5b..a8d0860d4 100644 --- a/impl/test/src/test/java/io/serverlessworkflow/impl/test/RetryTimeoutTest.java +++ b/impl/test/src/test/java/org/openworkflow/sdk/impl/test/RetryTimeoutTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,22 +13,13 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.test; +package org.openworkflow.sdk.impl.test; -import static io.serverlessworkflow.api.WorkflowReader.readWorkflowFromClasspath; import static org.assertj.core.api.Assertions.assertThat; import static org.assertj.core.api.Assertions.assertThatThrownBy; +import static org.openworkflow.sdk.api.WorkflowReader.readWorkflowFromClasspath; import com.fasterxml.jackson.databind.JsonNode; -import io.serverlessworkflow.impl.TaskContextData; -import io.serverlessworkflow.impl.WorkflowApplication; -import io.serverlessworkflow.impl.WorkflowException; -import io.serverlessworkflow.impl.WorkflowModel; -import io.serverlessworkflow.impl.jackson.JsonUtils; -import io.serverlessworkflow.impl.lifecycle.TaskCompletedEvent; -import io.serverlessworkflow.impl.lifecycle.TaskEvent; -import io.serverlessworkflow.impl.lifecycle.TaskRetriedEvent; -import io.serverlessworkflow.impl.lifecycle.WorkflowExecutionListener; import java.io.IOException; import java.time.Duration; import java.util.Map; @@ -43,6 +34,15 @@ import org.junit.jupiter.api.Test; import org.junit.jupiter.params.ParameterizedTest; import org.junit.jupiter.params.provider.ValueSource; +import org.openworkflow.sdk.impl.TaskContextData; +import org.openworkflow.sdk.impl.WorkflowApplication; +import org.openworkflow.sdk.impl.WorkflowException; +import org.openworkflow.sdk.impl.WorkflowModel; +import org.openworkflow.sdk.impl.jackson.JsonUtils; +import org.openworkflow.sdk.impl.lifecycle.TaskCompletedEvent; +import org.openworkflow.sdk.impl.lifecycle.TaskEvent; +import org.openworkflow.sdk.impl.lifecycle.TaskRetriedEvent; +import org.openworkflow.sdk.impl.lifecycle.WorkflowExecutionListener; public class RetryTimeoutTest { diff --git a/impl/test/src/test/java/io/serverlessworkflow/impl/test/RunScriptJavaScriptTest.java b/impl/test/src/test/java/org/openworkflow/sdk/impl/test/RunScriptJavaScriptTest.java similarity index 93% rename from impl/test/src/test/java/io/serverlessworkflow/impl/test/RunScriptJavaScriptTest.java rename to impl/test/src/test/java/org/openworkflow/sdk/impl/test/RunScriptJavaScriptTest.java index 7ec221c6e..de0a833ef 100644 --- a/impl/test/src/test/java/io/serverlessworkflow/impl/test/RunScriptJavaScriptTest.java +++ b/impl/test/src/test/java/org/openworkflow/sdk/impl/test/RunScriptJavaScriptTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,15 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.test; +package org.openworkflow.sdk.impl.test; import static org.assertj.core.api.Assertions.assertThatThrownBy; -import io.serverlessworkflow.api.WorkflowReader; -import io.serverlessworkflow.api.types.Workflow; -import io.serverlessworkflow.impl.WorkflowApplication; -import io.serverlessworkflow.impl.WorkflowException; -import io.serverlessworkflow.impl.WorkflowModel; import java.io.IOException; import java.util.Map; import okhttp3.mockwebserver.MockResponse; @@ -31,6 +26,11 @@ import org.junit.jupiter.api.AfterEach; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; +import org.openworkflow.sdk.api.WorkflowReader; +import org.openworkflow.sdk.api.types.Workflow; +import org.openworkflow.sdk.impl.WorkflowApplication; +import org.openworkflow.sdk.impl.WorkflowException; +import org.openworkflow.sdk.impl.WorkflowModel; public class RunScriptJavaScriptTest { @@ -91,7 +91,7 @@ void testConsoleLogWithEnvs() throws IOException { softly.assertThat(model.asText()).isPresent(); softly .assertThat(model.asText().get()) - .isEqualTo("Running JavaScript code using Serverless Workflow!"); + .isEqualTo("Running JavaScript code using Open Workflow!"); }); } } diff --git a/impl/test/src/test/java/io/serverlessworkflow/impl/test/RunShellExecutorTest.java b/impl/test/src/test/java/org/openworkflow/sdk/impl/test/RunShellExecutorTest.java similarity index 95% rename from impl/test/src/test/java/io/serverlessworkflow/impl/test/RunShellExecutorTest.java rename to impl/test/src/test/java/org/openworkflow/sdk/impl/test/RunShellExecutorTest.java index a8b4426cf..7248fb7ba 100644 --- a/impl/test/src/test/java/io/serverlessworkflow/impl/test/RunShellExecutorTest.java +++ b/impl/test/src/test/java/org/openworkflow/sdk/impl/test/RunShellExecutorTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,15 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.test; +package org.openworkflow.sdk.impl.test; import static org.assertj.core.api.Assertions.assertThatThrownBy; -import io.serverlessworkflow.api.WorkflowReader; -import io.serverlessworkflow.api.types.Workflow; -import io.serverlessworkflow.impl.WorkflowApplication; -import io.serverlessworkflow.impl.WorkflowModel; -import io.serverlessworkflow.impl.executors.ProcessResult; import java.io.IOException; import java.util.List; import java.util.Map; @@ -31,6 +26,11 @@ import org.junit.jupiter.api.Test; import org.junit.jupiter.api.condition.EnabledOnOs; import org.junit.jupiter.api.condition.OS; +import org.openworkflow.sdk.api.WorkflowReader; +import org.openworkflow.sdk.api.types.Workflow; +import org.openworkflow.sdk.impl.WorkflowApplication; +import org.openworkflow.sdk.impl.WorkflowModel; +import org.openworkflow.sdk.impl.executors.ProcessResult; @EnabledOnOs(value = OS.LINUX) public class RunShellExecutorTest { diff --git a/impl/test/src/test/java/io/serverlessworkflow/impl/test/ScheduleEventConsumerTest.java b/impl/test/src/test/java/org/openworkflow/sdk/impl/test/ScheduleEventConsumerTest.java similarity index 92% rename from impl/test/src/test/java/io/serverlessworkflow/impl/test/ScheduleEventConsumerTest.java rename to impl/test/src/test/java/org/openworkflow/sdk/impl/test/ScheduleEventConsumerTest.java index a28f7a895..b06050aa9 100644 --- a/impl/test/src/test/java/io/serverlessworkflow/impl/test/ScheduleEventConsumerTest.java +++ b/impl/test/src/test/java/org/openworkflow/sdk/impl/test/ScheduleEventConsumerTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,20 +13,15 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.test; +package org.openworkflow.sdk.impl.test; -import static io.serverlessworkflow.api.WorkflowReader.readWorkflowFromClasspath; import static org.assertj.core.api.Assertions.assertThat; import static org.awaitility.Awaitility.await; +import static org.openworkflow.sdk.api.WorkflowReader.readWorkflowFromClasspath; import io.cloudevents.CloudEvent; import io.cloudevents.core.builder.CloudEventBuilder; import io.cloudevents.jackson.JsonCloudEventData; -import io.serverlessworkflow.impl.WorkflowApplication; -import io.serverlessworkflow.impl.WorkflowDefinition; -import io.serverlessworkflow.impl.WorkflowInstance; -import io.serverlessworkflow.impl.WorkflowStatus; -import io.serverlessworkflow.impl.jackson.JsonUtils; import java.io.IOException; import java.net.URI; import java.time.Duration; @@ -37,6 +32,11 @@ import org.junit.jupiter.api.AfterEach; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; +import org.openworkflow.sdk.impl.WorkflowApplication; +import org.openworkflow.sdk.impl.WorkflowDefinition; +import org.openworkflow.sdk.impl.WorkflowInstance; +import org.openworkflow.sdk.impl.WorkflowStatus; +import org.openworkflow.sdk.impl.jackson.JsonUtils; class ScheduleEventConsumerTest { diff --git a/impl/test/src/test/java/io/serverlessworkflow/impl/test/SchedulerTest.java b/impl/test/src/test/java/org/openworkflow/sdk/impl/test/SchedulerTest.java similarity index 88% rename from impl/test/src/test/java/io/serverlessworkflow/impl/test/SchedulerTest.java rename to impl/test/src/test/java/org/openworkflow/sdk/impl/test/SchedulerTest.java index 5465af62b..c86be088e 100644 --- a/impl/test/src/test/java/io/serverlessworkflow/impl/test/SchedulerTest.java +++ b/impl/test/src/test/java/org/openworkflow/sdk/impl/test/SchedulerTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,15 +13,12 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.test; +package org.openworkflow.sdk.impl.test; -import static io.serverlessworkflow.api.WorkflowReader.readWorkflowFromClasspath; import static org.assertj.core.api.Assertions.assertThat; import static org.awaitility.Awaitility.await; +import static org.openworkflow.sdk.api.WorkflowReader.readWorkflowFromClasspath; -import io.serverlessworkflow.impl.WorkflowApplication; -import io.serverlessworkflow.impl.WorkflowDefinition; -import io.serverlessworkflow.impl.WorkflowInstance; import java.io.IOException; import java.time.Duration; import java.util.Map; @@ -30,6 +27,9 @@ import org.junit.jupiter.api.BeforeAll; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; +import org.openworkflow.sdk.impl.WorkflowApplication; +import org.openworkflow.sdk.impl.WorkflowDefinition; +import org.openworkflow.sdk.impl.WorkflowInstance; class SchedulerTest { diff --git a/impl/test/src/test/java/io/serverlessworkflow/impl/test/SecretExpressionTest.java b/impl/test/src/test/java/org/openworkflow/sdk/impl/test/SecretExpressionTest.java similarity index 90% rename from impl/test/src/test/java/io/serverlessworkflow/impl/test/SecretExpressionTest.java rename to impl/test/src/test/java/org/openworkflow/sdk/impl/test/SecretExpressionTest.java index c2e19b457..8c51d2f4f 100644 --- a/impl/test/src/test/java/io/serverlessworkflow/impl/test/SecretExpressionTest.java +++ b/impl/test/src/test/java/org/openworkflow/sdk/impl/test/SecretExpressionTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,15 +13,12 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.test; +package org.openworkflow.sdk.impl.test; -import static io.serverlessworkflow.api.WorkflowReader.readWorkflowFromClasspath; import static org.assertj.core.api.Assertions.assertThat; import static org.assertj.core.api.Assertions.assertThatThrownBy; +import static org.openworkflow.sdk.api.WorkflowReader.readWorkflowFromClasspath; -import io.serverlessworkflow.api.types.Workflow; -import io.serverlessworkflow.impl.WorkflowApplication; -import io.serverlessworkflow.impl.WorkflowException; import java.io.IOException; import java.util.Map; import org.junit.jupiter.api.BeforeAll; @@ -30,6 +27,9 @@ import org.junit.jupiter.api.parallel.ExecutionMode; import org.junit.jupiter.api.parallel.ResourceLock; import org.junit.jupiter.api.parallel.Resources; +import org.openworkflow.sdk.api.types.Workflow; +import org.openworkflow.sdk.impl.WorkflowApplication; +import org.openworkflow.sdk.impl.WorkflowException; public class SecretExpressionTest { diff --git a/impl/test/src/test/java/io/serverlessworkflow/impl/test/SubWorkflowTest.java b/impl/test/src/test/java/org/openworkflow/sdk/impl/test/SubWorkflowTest.java similarity index 94% rename from impl/test/src/test/java/io/serverlessworkflow/impl/test/SubWorkflowTest.java rename to impl/test/src/test/java/org/openworkflow/sdk/impl/test/SubWorkflowTest.java index 380fb52dd..9778564f1 100644 --- a/impl/test/src/test/java/io/serverlessworkflow/impl/test/SubWorkflowTest.java +++ b/impl/test/src/test/java/org/openworkflow/sdk/impl/test/SubWorkflowTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,19 +13,19 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.test; +package org.openworkflow.sdk.impl.test; -import static io.serverlessworkflow.api.WorkflowReader.readWorkflowFromClasspath; import static org.hamcrest.MatcherAssert.assertThat; import static org.hamcrest.Matchers.equalTo; import static org.hamcrest.Matchers.is; +import static org.openworkflow.sdk.api.WorkflowReader.readWorkflowFromClasspath; -import io.serverlessworkflow.api.types.Workflow; -import io.serverlessworkflow.fluent.spec.WorkflowBuilder; -import io.serverlessworkflow.fluent.spec.dsl.DSL; -import io.serverlessworkflow.impl.WorkflowApplication; import java.util.Map; import org.junit.jupiter.api.Test; +import org.openworkflow.sdk.api.types.Workflow; +import org.openworkflow.sdk.fluent.spec.WorkflowBuilder; +import org.openworkflow.sdk.fluent.spec.dsl.DSL; +import org.openworkflow.sdk.impl.WorkflowApplication; public class SubWorkflowTest { diff --git a/impl/test/src/test/java/io/serverlessworkflow/impl/test/TaskCounterPerInstanceListener.java b/impl/test/src/test/java/org/openworkflow/sdk/impl/test/TaskCounterPerInstanceListener.java similarity index 80% rename from impl/test/src/test/java/io/serverlessworkflow/impl/test/TaskCounterPerInstanceListener.java rename to impl/test/src/test/java/org/openworkflow/sdk/impl/test/TaskCounterPerInstanceListener.java index bfd44f2c3..299a5a9f7 100644 --- a/impl/test/src/test/java/io/serverlessworkflow/impl/test/TaskCounterPerInstanceListener.java +++ b/impl/test/src/test/java/org/openworkflow/sdk/impl/test/TaskCounterPerInstanceListener.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,15 +13,15 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.test; +package org.openworkflow.sdk.impl.test; -import io.serverlessworkflow.impl.lifecycle.TaskCompletedEvent; -import io.serverlessworkflow.impl.lifecycle.TaskRetriedEvent; -import io.serverlessworkflow.impl.lifecycle.TaskStartedEvent; -import io.serverlessworkflow.impl.lifecycle.WorkflowEvent; -import io.serverlessworkflow.impl.lifecycle.WorkflowExecutionListener; import java.util.Map; import java.util.concurrent.ConcurrentHashMap; +import org.openworkflow.sdk.impl.lifecycle.TaskCompletedEvent; +import org.openworkflow.sdk.impl.lifecycle.TaskRetriedEvent; +import org.openworkflow.sdk.impl.lifecycle.TaskStartedEvent; +import org.openworkflow.sdk.impl.lifecycle.WorkflowEvent; +import org.openworkflow.sdk.impl.lifecycle.WorkflowExecutionListener; public class TaskCounterPerInstanceListener implements WorkflowExecutionListener { diff --git a/impl/test/src/test/java/io/serverlessworkflow/impl/test/UndefinedAuthReferenceTest.java b/impl/test/src/test/java/org/openworkflow/sdk/impl/test/UndefinedAuthReferenceTest.java similarity index 87% rename from impl/test/src/test/java/io/serverlessworkflow/impl/test/UndefinedAuthReferenceTest.java rename to impl/test/src/test/java/org/openworkflow/sdk/impl/test/UndefinedAuthReferenceTest.java index 95c81d739..18e94425e 100644 --- a/impl/test/src/test/java/io/serverlessworkflow/impl/test/UndefinedAuthReferenceTest.java +++ b/impl/test/src/test/java/org/openworkflow/sdk/impl/test/UndefinedAuthReferenceTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,16 +13,16 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.test; +package org.openworkflow.sdk.impl.test; import static org.assertj.core.api.Assertions.assertThatThrownBy; -import io.serverlessworkflow.api.types.Workflow; -import io.serverlessworkflow.fluent.spec.WorkflowBuilder; -import io.serverlessworkflow.fluent.spec.dsl.DSL; -import io.serverlessworkflow.impl.WorkflowApplication; import java.net.URI; import org.junit.jupiter.api.Test; +import org.openworkflow.sdk.api.types.Workflow; +import org.openworkflow.sdk.fluent.spec.WorkflowBuilder; +import org.openworkflow.sdk.fluent.spec.dsl.DSL; +import org.openworkflow.sdk.impl.WorkflowApplication; class UndefinedAuthReferenceTest { diff --git a/impl/test/src/test/java/io/serverlessworkflow/impl/test/WaitExecutorTest.java b/impl/test/src/test/java/org/openworkflow/sdk/impl/test/WaitExecutorTest.java similarity index 94% rename from impl/test/src/test/java/io/serverlessworkflow/impl/test/WaitExecutorTest.java rename to impl/test/src/test/java/org/openworkflow/sdk/impl/test/WaitExecutorTest.java index 2c110dbf1..ae734e641 100644 --- a/impl/test/src/test/java/io/serverlessworkflow/impl/test/WaitExecutorTest.java +++ b/impl/test/src/test/java/org/openworkflow/sdk/impl/test/WaitExecutorTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,21 +13,13 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.test; +package org.openworkflow.sdk.impl.test; -import static io.serverlessworkflow.api.WorkflowReader.readWorkflowFromClasspath; import static org.assertj.core.api.Assertions.assertThat; import static org.assertj.core.api.Assertions.assertThatThrownBy; import static org.awaitility.Awaitility.await; +import static org.openworkflow.sdk.api.WorkflowReader.readWorkflowFromClasspath; -import io.serverlessworkflow.api.types.TimeoutAfter; -import io.serverlessworkflow.api.types.Workflow; -import io.serverlessworkflow.fluent.spec.WorkflowBuilder; -import io.serverlessworkflow.fluent.spec.dsl.DSL; -import io.serverlessworkflow.impl.WorkflowApplication; -import io.serverlessworkflow.impl.WorkflowInstance; -import io.serverlessworkflow.impl.WorkflowModel; -import io.serverlessworkflow.impl.WorkflowStatus; import java.io.IOException; import java.time.Duration; import java.time.format.DateTimeParseException; @@ -37,6 +29,14 @@ import org.junit.jupiter.api.BeforeAll; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; +import org.openworkflow.sdk.api.types.TimeoutAfter; +import org.openworkflow.sdk.api.types.Workflow; +import org.openworkflow.sdk.fluent.spec.WorkflowBuilder; +import org.openworkflow.sdk.fluent.spec.dsl.DSL; +import org.openworkflow.sdk.impl.WorkflowApplication; +import org.openworkflow.sdk.impl.WorkflowInstance; +import org.openworkflow.sdk.impl.WorkflowModel; +import org.openworkflow.sdk.impl.WorkflowStatus; class WaitExecutorTest { diff --git a/impl/test/src/test/java/io/serverlessworkflow/impl/test/WorkflowDefinitionTest.java b/impl/test/src/test/java/org/openworkflow/sdk/impl/test/WorkflowDefinitionTest.java similarity index 92% rename from impl/test/src/test/java/io/serverlessworkflow/impl/test/WorkflowDefinitionTest.java rename to impl/test/src/test/java/org/openworkflow/sdk/impl/test/WorkflowDefinitionTest.java index 22cb487e9..8a45eeae6 100644 --- a/impl/test/src/test/java/io/serverlessworkflow/impl/test/WorkflowDefinitionTest.java +++ b/impl/test/src/test/java/org/openworkflow/sdk/impl/test/WorkflowDefinitionTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,21 +13,15 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.test; +package org.openworkflow.sdk.impl.test; -import static io.serverlessworkflow.api.WorkflowReader.readWorkflowFromClasspath; -import static io.serverlessworkflow.api.WorkflowReader.validation; import static org.assertj.core.api.Assertions.assertThat; import static org.assertj.core.api.Assertions.catchThrowableOfType; +import static org.openworkflow.sdk.api.WorkflowReader.readWorkflowFromClasspath; +import static org.openworkflow.sdk.api.WorkflowReader.validation; import com.fasterxml.jackson.databind.JsonNode; import com.fasterxml.jackson.databind.node.ArrayNode; -import io.serverlessworkflow.impl.WorkflowApplication; -import io.serverlessworkflow.impl.WorkflowDefinition; -import io.serverlessworkflow.impl.WorkflowException; -import io.serverlessworkflow.impl.WorkflowInstance; -import io.serverlessworkflow.impl.WorkflowModel; -import io.serverlessworkflow.impl.jackson.JsonUtils; import java.io.IOException; import java.time.Instant; import java.util.Arrays; @@ -40,6 +34,12 @@ import org.junit.jupiter.params.ParameterizedTest; import org.junit.jupiter.params.provider.Arguments; import org.junit.jupiter.params.provider.MethodSource; +import org.openworkflow.sdk.impl.WorkflowApplication; +import org.openworkflow.sdk.impl.WorkflowDefinition; +import org.openworkflow.sdk.impl.WorkflowException; +import org.openworkflow.sdk.impl.WorkflowInstance; +import org.openworkflow.sdk.impl.WorkflowModel; +import org.openworkflow.sdk.impl.jackson.JsonUtils; public class WorkflowDefinitionTest { @@ -206,7 +206,7 @@ private static JsonNode createObjectNode( private static void checkWorkflowException(WorkflowException ex) { assertThat(ex.getWorkflowError().type()) - .isEqualTo("https://serverlessworkflow.io/errors/not-implemented"); + .isEqualTo("https://open-workflow-specification.org/1.0.0/errors/not-implemented"); assertThat(ex.getWorkflowError().status()).isEqualTo(500); assertThat(ex.getWorkflowError().title()).isEqualTo("Not Implemented"); assertThat(ex.getWorkflowError().detail()).contains("raise-not-implemented"); diff --git a/impl/test/src/test/java/io/serverlessworkflow/impl/test/WorkflowExecutionListenerOutputTest.java b/impl/test/src/test/java/org/openworkflow/sdk/impl/test/WorkflowExecutionListenerOutputTest.java similarity index 81% rename from impl/test/src/test/java/io/serverlessworkflow/impl/test/WorkflowExecutionListenerOutputTest.java rename to impl/test/src/test/java/org/openworkflow/sdk/impl/test/WorkflowExecutionListenerOutputTest.java index 792d6d601..fcc5e09a7 100644 --- a/impl/test/src/test/java/io/serverlessworkflow/impl/test/WorkflowExecutionListenerOutputTest.java +++ b/impl/test/src/test/java/org/openworkflow/sdk/impl/test/WorkflowExecutionListenerOutputTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,19 +13,19 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.test; +package org.openworkflow.sdk.impl.test; -import static io.serverlessworkflow.api.WorkflowReader.readWorkflowFromClasspath; import static org.assertj.core.api.Assertions.assertThat; +import static org.openworkflow.sdk.api.WorkflowReader.readWorkflowFromClasspath; -import io.serverlessworkflow.impl.WorkflowApplication; -import io.serverlessworkflow.impl.WorkflowModel; -import io.serverlessworkflow.impl.lifecycle.WorkflowCompletedEvent; -import io.serverlessworkflow.impl.lifecycle.WorkflowExecutionListener; import java.io.IOException; import java.util.Map; import java.util.concurrent.atomic.AtomicReference; import org.junit.jupiter.api.Test; +import org.openworkflow.sdk.impl.WorkflowApplication; +import org.openworkflow.sdk.impl.WorkflowModel; +import org.openworkflow.sdk.impl.lifecycle.WorkflowCompletedEvent; +import org.openworkflow.sdk.impl.lifecycle.WorkflowExecutionListener; /** * Verifies that {@code event.output()} in {@code onWorkflowCompleted} carries the workflow's final @@ -33,7 +33,7 @@ * the hook — it is populated directly from the task result before the event is published. * *

{@code instanceData().output()} is intentionally absent from {@link - * io.serverlessworkflow.impl.WorkflowInstanceData}: it is a blocking join on the workflow future + * org.openworkflow.sdk.impl.WorkflowInstanceData}: it is a blocking join on the workflow future * intended for callers outside the event chain (e.g. after {@code instance.start().join()}). */ class WorkflowExecutionListenerOutputTest { diff --git a/impl/test/src/test/java/io/serverlessworkflow/impl/test/WorkflowInstanceIdTest.java b/impl/test/src/test/java/org/openworkflow/sdk/impl/test/WorkflowInstanceIdTest.java similarity index 80% rename from impl/test/src/test/java/io/serverlessworkflow/impl/test/WorkflowInstanceIdTest.java rename to impl/test/src/test/java/org/openworkflow/sdk/impl/test/WorkflowInstanceIdTest.java index 76583affd..63cff98e9 100644 --- a/impl/test/src/test/java/io/serverlessworkflow/impl/test/WorkflowInstanceIdTest.java +++ b/impl/test/src/test/java/org/openworkflow/sdk/impl/test/WorkflowInstanceIdTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,17 +13,17 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.test; +package org.openworkflow.sdk.impl.test; -import static io.serverlessworkflow.api.WorkflowReader.readWorkflowFromClasspath; import static org.assertj.core.api.Assertions.assertThat; +import static org.openworkflow.sdk.api.WorkflowReader.readWorkflowFromClasspath; -import io.serverlessworkflow.impl.WorkflowApplication; -import io.serverlessworkflow.impl.WorkflowDefinition; -import io.serverlessworkflow.impl.WorkflowInstance; import java.io.IOException; import java.util.Map; import org.junit.jupiter.api.Test; +import org.openworkflow.sdk.impl.WorkflowApplication; +import org.openworkflow.sdk.impl.WorkflowDefinition; +import org.openworkflow.sdk.impl.WorkflowInstance; public class WorkflowInstanceIdTest { diff --git a/impl/test/src/test/java/io/serverlessworkflow/impl/test/grpc/GrpcBiDirectionalStreamingTest.java b/impl/test/src/test/java/org/openworkflow/sdk/impl/test/grpc/GrpcBiDirectionalStreamingTest.java similarity index 84% rename from impl/test/src/test/java/io/serverlessworkflow/impl/test/grpc/GrpcBiDirectionalStreamingTest.java rename to impl/test/src/test/java/org/openworkflow/sdk/impl/test/grpc/GrpcBiDirectionalStreamingTest.java index f4e426ef3..2a44e00d9 100644 --- a/impl/test/src/test/java/io/serverlessworkflow/impl/test/grpc/GrpcBiDirectionalStreamingTest.java +++ b/impl/test/src/test/java/org/openworkflow/sdk/impl/test/grpc/GrpcBiDirectionalStreamingTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,23 +13,14 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.test.grpc; +package org.openworkflow.sdk.impl.test.grpc; -import static io.serverlessworkflow.api.WorkflowReader.readWorkflowFromClasspath; -import static io.serverlessworkflow.fluent.spec.dsl.DSL.*; import static org.assertj.core.api.Assertions.assertThat; +import static org.openworkflow.sdk.api.WorkflowReader.readWorkflowFromClasspath; +import static org.openworkflow.sdk.fluent.spec.dsl.DSL.*; import io.grpc.Server; import io.grpc.ServerBuilder; -import io.serverlessworkflow.api.WorkflowReader; -import io.serverlessworkflow.api.types.Workflow; -import io.serverlessworkflow.fluent.spec.WorkflowBuilder; -import io.serverlessworkflow.impl.WorkflowApplication; -import io.serverlessworkflow.impl.WorkflowDefinition; -import io.serverlessworkflow.impl.WorkflowDefinitionId; -import io.serverlessworkflow.impl.WorkflowModel; -import io.serverlessworkflow.impl.test.grpc.handlers.ContributorBiDiStreamingHandler; -import io.serverlessworkflow.impl.test.junit.DisabledIfProtocUnavailable; import java.io.IOException; import java.util.Collection; import java.util.Map; @@ -42,6 +33,15 @@ import org.junit.jupiter.params.ParameterizedTest; import org.junit.jupiter.params.provider.Arguments; import org.junit.jupiter.params.provider.MethodSource; +import org.openworkflow.sdk.api.WorkflowReader; +import org.openworkflow.sdk.api.types.Workflow; +import org.openworkflow.sdk.fluent.spec.WorkflowBuilder; +import org.openworkflow.sdk.impl.WorkflowApplication; +import org.openworkflow.sdk.impl.WorkflowDefinition; +import org.openworkflow.sdk.impl.WorkflowDefinitionId; +import org.openworkflow.sdk.impl.WorkflowModel; +import org.openworkflow.sdk.impl.test.grpc.handlers.ContributorBiDiStreamingHandler; +import org.openworkflow.sdk.impl.test.junit.DisabledIfProtocUnavailable; @DisabledIfProtocUnavailable public class GrpcBiDirectionalStreamingTest { diff --git a/impl/test/src/test/java/io/serverlessworkflow/impl/test/grpc/GrpcClientStreamingTest.java b/impl/test/src/test/java/org/openworkflow/sdk/impl/test/grpc/GrpcClientStreamingTest.java similarity index 83% rename from impl/test/src/test/java/io/serverlessworkflow/impl/test/grpc/GrpcClientStreamingTest.java rename to impl/test/src/test/java/org/openworkflow/sdk/impl/test/grpc/GrpcClientStreamingTest.java index 0a0e98f9f..29433f433 100644 --- a/impl/test/src/test/java/io/serverlessworkflow/impl/test/grpc/GrpcClientStreamingTest.java +++ b/impl/test/src/test/java/org/openworkflow/sdk/impl/test/grpc/GrpcClientStreamingTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,22 +13,14 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.test.grpc; +package org.openworkflow.sdk.impl.test.grpc; -import static io.serverlessworkflow.api.WorkflowReader.readWorkflowFromClasspath; -import static io.serverlessworkflow.fluent.spec.dsl.DSL.*; import static org.assertj.core.api.Assertions.assertThat; +import static org.openworkflow.sdk.api.WorkflowReader.readWorkflowFromClasspath; +import static org.openworkflow.sdk.fluent.spec.dsl.DSL.*; import io.grpc.Server; import io.grpc.ServerBuilder; -import io.serverlessworkflow.api.WorkflowReader; -import io.serverlessworkflow.api.types.Workflow; -import io.serverlessworkflow.fluent.spec.WorkflowBuilder; -import io.serverlessworkflow.impl.WorkflowApplication; -import io.serverlessworkflow.impl.WorkflowDefinition; -import io.serverlessworkflow.impl.WorkflowDefinitionId; -import io.serverlessworkflow.impl.test.grpc.handlers.ContributorClientStreamingHandler; -import io.serverlessworkflow.impl.test.junit.DisabledIfProtocUnavailable; import java.io.IOException; import java.util.List; import java.util.Map; @@ -41,6 +33,14 @@ import org.junit.jupiter.params.ParameterizedTest; import org.junit.jupiter.params.provider.Arguments; import org.junit.jupiter.params.provider.MethodSource; +import org.openworkflow.sdk.api.WorkflowReader; +import org.openworkflow.sdk.api.types.Workflow; +import org.openworkflow.sdk.fluent.spec.WorkflowBuilder; +import org.openworkflow.sdk.impl.WorkflowApplication; +import org.openworkflow.sdk.impl.WorkflowDefinition; +import org.openworkflow.sdk.impl.WorkflowDefinitionId; +import org.openworkflow.sdk.impl.test.grpc.handlers.ContributorClientStreamingHandler; +import org.openworkflow.sdk.impl.test.junit.DisabledIfProtocUnavailable; @DisabledIfProtocUnavailable public class GrpcClientStreamingTest { diff --git a/impl/test/src/test/java/io/serverlessworkflow/impl/test/grpc/GrpcServerStreamingTest.java b/impl/test/src/test/java/org/openworkflow/sdk/impl/test/grpc/GrpcServerStreamingTest.java similarity index 84% rename from impl/test/src/test/java/io/serverlessworkflow/impl/test/grpc/GrpcServerStreamingTest.java rename to impl/test/src/test/java/org/openworkflow/sdk/impl/test/grpc/GrpcServerStreamingTest.java index 9d871d507..c5dc89aff 100644 --- a/impl/test/src/test/java/io/serverlessworkflow/impl/test/grpc/GrpcServerStreamingTest.java +++ b/impl/test/src/test/java/org/openworkflow/sdk/impl/test/grpc/GrpcServerStreamingTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,23 +13,14 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.test.grpc; +package org.openworkflow.sdk.impl.test.grpc; -import static io.serverlessworkflow.api.WorkflowReader.readWorkflowFromClasspath; -import static io.serverlessworkflow.fluent.spec.dsl.DSL.*; import static org.assertj.core.api.Assertions.assertThat; +import static org.openworkflow.sdk.api.WorkflowReader.readWorkflowFromClasspath; +import static org.openworkflow.sdk.fluent.spec.dsl.DSL.*; import io.grpc.Server; import io.grpc.ServerBuilder; -import io.serverlessworkflow.api.WorkflowReader; -import io.serverlessworkflow.api.types.Workflow; -import io.serverlessworkflow.fluent.spec.WorkflowBuilder; -import io.serverlessworkflow.impl.WorkflowApplication; -import io.serverlessworkflow.impl.WorkflowDefinition; -import io.serverlessworkflow.impl.WorkflowDefinitionId; -import io.serverlessworkflow.impl.WorkflowModel; -import io.serverlessworkflow.impl.test.grpc.handlers.ContributorServerStreamingHandler; -import io.serverlessworkflow.impl.test.junit.DisabledIfProtocUnavailable; import java.io.IOException; import java.util.Collection; import java.util.Map; @@ -43,6 +34,15 @@ import org.junit.jupiter.params.ParameterizedTest; import org.junit.jupiter.params.provider.Arguments; import org.junit.jupiter.params.provider.MethodSource; +import org.openworkflow.sdk.api.WorkflowReader; +import org.openworkflow.sdk.api.types.Workflow; +import org.openworkflow.sdk.fluent.spec.WorkflowBuilder; +import org.openworkflow.sdk.impl.WorkflowApplication; +import org.openworkflow.sdk.impl.WorkflowDefinition; +import org.openworkflow.sdk.impl.WorkflowDefinitionId; +import org.openworkflow.sdk.impl.WorkflowModel; +import org.openworkflow.sdk.impl.test.grpc.handlers.ContributorServerStreamingHandler; +import org.openworkflow.sdk.impl.test.junit.DisabledIfProtocUnavailable; @DisabledIfProtocUnavailable public class GrpcServerStreamingTest { diff --git a/impl/test/src/test/java/io/serverlessworkflow/impl/test/grpc/GrpcUnaryArgsExprTest.java b/impl/test/src/test/java/org/openworkflow/sdk/impl/test/grpc/GrpcUnaryArgsExprTest.java similarity index 82% rename from impl/test/src/test/java/io/serverlessworkflow/impl/test/grpc/GrpcUnaryArgsExprTest.java rename to impl/test/src/test/java/org/openworkflow/sdk/impl/test/grpc/GrpcUnaryArgsExprTest.java index b2ea54884..0fe96fb34 100644 --- a/impl/test/src/test/java/io/serverlessworkflow/impl/test/grpc/GrpcUnaryArgsExprTest.java +++ b/impl/test/src/test/java/org/openworkflow/sdk/impl/test/grpc/GrpcUnaryArgsExprTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,23 +13,14 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.test.grpc; +package org.openworkflow.sdk.impl.test.grpc; -import static io.serverlessworkflow.api.WorkflowReader.readWorkflowFromClasspath; -import static io.serverlessworkflow.fluent.spec.dsl.DSL.*; import static org.assertj.core.api.Assertions.assertThat; +import static org.openworkflow.sdk.api.WorkflowReader.readWorkflowFromClasspath; +import static org.openworkflow.sdk.fluent.spec.dsl.DSL.*; import io.grpc.Server; import io.grpc.ServerBuilder; -import io.serverlessworkflow.api.WorkflowReader; -import io.serverlessworkflow.api.types.Workflow; -import io.serverlessworkflow.fluent.spec.WorkflowBuilder; -import io.serverlessworkflow.impl.WorkflowApplication; -import io.serverlessworkflow.impl.WorkflowDefinition; -import io.serverlessworkflow.impl.WorkflowDefinitionId; -import io.serverlessworkflow.impl.jackson.JsonUtils; -import io.serverlessworkflow.impl.test.grpc.handlers.ContributorUnaryArgsExprHandler; -import io.serverlessworkflow.impl.test.junit.DisabledIfProtocUnavailable; import java.io.IOException; import java.util.Map; import java.util.concurrent.TimeUnit; @@ -41,6 +32,15 @@ import org.junit.jupiter.params.ParameterizedTest; import org.junit.jupiter.params.provider.Arguments; import org.junit.jupiter.params.provider.MethodSource; +import org.openworkflow.sdk.api.WorkflowReader; +import org.openworkflow.sdk.api.types.Workflow; +import org.openworkflow.sdk.fluent.spec.WorkflowBuilder; +import org.openworkflow.sdk.impl.WorkflowApplication; +import org.openworkflow.sdk.impl.WorkflowDefinition; +import org.openworkflow.sdk.impl.WorkflowDefinitionId; +import org.openworkflow.sdk.impl.jackson.JsonUtils; +import org.openworkflow.sdk.impl.test.grpc.handlers.ContributorUnaryArgsExprHandler; +import org.openworkflow.sdk.impl.test.junit.DisabledIfProtocUnavailable; @DisabledIfProtocUnavailable public class GrpcUnaryArgsExprTest { diff --git a/impl/test/src/test/java/io/serverlessworkflow/impl/test/grpc/GrpcUnaryTest.java b/impl/test/src/test/java/org/openworkflow/sdk/impl/test/grpc/GrpcUnaryTest.java similarity index 84% rename from impl/test/src/test/java/io/serverlessworkflow/impl/test/grpc/GrpcUnaryTest.java rename to impl/test/src/test/java/org/openworkflow/sdk/impl/test/grpc/GrpcUnaryTest.java index 498f7c951..57e8ed5ef 100644 --- a/impl/test/src/test/java/io/serverlessworkflow/impl/test/grpc/GrpcUnaryTest.java +++ b/impl/test/src/test/java/org/openworkflow/sdk/impl/test/grpc/GrpcUnaryTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,23 +13,14 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.test.grpc; +package org.openworkflow.sdk.impl.test.grpc; -import static io.serverlessworkflow.api.WorkflowReader.readWorkflowFromClasspath; -import static io.serverlessworkflow.fluent.spec.dsl.DSL.*; import static org.assertj.core.api.Assertions.assertThat; +import static org.openworkflow.sdk.api.WorkflowReader.readWorkflowFromClasspath; +import static org.openworkflow.sdk.fluent.spec.dsl.DSL.*; import io.grpc.Server; import io.grpc.ServerBuilder; -import io.serverlessworkflow.api.WorkflowReader; -import io.serverlessworkflow.api.types.Workflow; -import io.serverlessworkflow.fluent.spec.WorkflowBuilder; -import io.serverlessworkflow.impl.WorkflowApplication; -import io.serverlessworkflow.impl.WorkflowDefinition; -import io.serverlessworkflow.impl.WorkflowDefinitionId; -import io.serverlessworkflow.impl.jackson.JsonUtils; -import io.serverlessworkflow.impl.test.grpc.handlers.PersonUnaryHandler; -import io.serverlessworkflow.impl.test.junit.DisabledIfProtocUnavailable; import java.io.IOException; import java.util.Map; import java.util.concurrent.TimeUnit; @@ -41,6 +32,15 @@ import org.junit.jupiter.params.ParameterizedTest; import org.junit.jupiter.params.provider.Arguments; import org.junit.jupiter.params.provider.MethodSource; +import org.openworkflow.sdk.api.WorkflowReader; +import org.openworkflow.sdk.api.types.Workflow; +import org.openworkflow.sdk.fluent.spec.WorkflowBuilder; +import org.openworkflow.sdk.impl.WorkflowApplication; +import org.openworkflow.sdk.impl.WorkflowDefinition; +import org.openworkflow.sdk.impl.WorkflowDefinitionId; +import org.openworkflow.sdk.impl.jackson.JsonUtils; +import org.openworkflow.sdk.impl.test.grpc.handlers.PersonUnaryHandler; +import org.openworkflow.sdk.impl.test.junit.DisabledIfProtocUnavailable; @DisabledIfProtocUnavailable public class GrpcUnaryTest { diff --git a/impl/test/src/test/java/io/serverlessworkflow/impl/test/grpc/handlers/ContributorBiDiStreamingHandler.java b/impl/test/src/test/java/org/openworkflow/sdk/impl/test/grpc/handlers/ContributorBiDiStreamingHandler.java similarity index 82% rename from impl/test/src/test/java/io/serverlessworkflow/impl/test/grpc/handlers/ContributorBiDiStreamingHandler.java rename to impl/test/src/test/java/org/openworkflow/sdk/impl/test/grpc/handlers/ContributorBiDiStreamingHandler.java index 7ee446fe8..8dd205673 100644 --- a/impl/test/src/test/java/io/serverlessworkflow/impl/test/grpc/handlers/ContributorBiDiStreamingHandler.java +++ b/impl/test/src/test/java/org/openworkflow/sdk/impl/test/grpc/handlers/ContributorBiDiStreamingHandler.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,11 +13,11 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.test.grpc.handlers; +package org.openworkflow.sdk.impl.test.grpc.handlers; import io.grpc.stub.StreamObserver; -import io.serverlessworkflow.impl.executors.grpc.contributors.BiDirectionalStreamingGrpc.BiDirectionalStreamingImplBase; -import io.serverlessworkflow.impl.executors.grpc.contributors.Contributors; +import org.openworkflow.sdk.impl.executors.grpc.contributors.BiDirectionalStreamingGrpc.BiDirectionalStreamingImplBase; +import org.openworkflow.sdk.impl.executors.grpc.contributors.Contributors; public class ContributorBiDiStreamingHandler extends BiDirectionalStreamingImplBase { diff --git a/impl/test/src/test/java/io/serverlessworkflow/impl/test/grpc/handlers/ContributorClientStreamingHandler.java b/impl/test/src/test/java/org/openworkflow/sdk/impl/test/grpc/handlers/ContributorClientStreamingHandler.java similarity index 88% rename from impl/test/src/test/java/io/serverlessworkflow/impl/test/grpc/handlers/ContributorClientStreamingHandler.java rename to impl/test/src/test/java/org/openworkflow/sdk/impl/test/grpc/handlers/ContributorClientStreamingHandler.java index cdf5900f3..d3819ff54 100644 --- a/impl/test/src/test/java/io/serverlessworkflow/impl/test/grpc/handlers/ContributorClientStreamingHandler.java +++ b/impl/test/src/test/java/org/openworkflow/sdk/impl/test/grpc/handlers/ContributorClientStreamingHandler.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,15 +13,15 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.test.grpc.handlers; +package org.openworkflow.sdk.impl.test.grpc.handlers; import io.grpc.stub.StreamObserver; -import io.serverlessworkflow.impl.executors.grpc.contributors.ClientStreamingGrpc.ClientStreamingImplBase; -import io.serverlessworkflow.impl.executors.grpc.contributors.Contributors; import java.util.Map; import java.util.Set; import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.atomic.LongAdder; +import org.openworkflow.sdk.impl.executors.grpc.contributors.ClientStreamingGrpc.ClientStreamingImplBase; +import org.openworkflow.sdk.impl.executors.grpc.contributors.Contributors; public class ContributorClientStreamingHandler extends ClientStreamingImplBase { diff --git a/impl/test/src/test/java/io/serverlessworkflow/impl/test/grpc/handlers/ContributorServerStreamingHandler.java b/impl/test/src/test/java/org/openworkflow/sdk/impl/test/grpc/handlers/ContributorServerStreamingHandler.java similarity index 79% rename from impl/test/src/test/java/io/serverlessworkflow/impl/test/grpc/handlers/ContributorServerStreamingHandler.java rename to impl/test/src/test/java/org/openworkflow/sdk/impl/test/grpc/handlers/ContributorServerStreamingHandler.java index 53979739c..2ae9c42d1 100644 --- a/impl/test/src/test/java/io/serverlessworkflow/impl/test/grpc/handlers/ContributorServerStreamingHandler.java +++ b/impl/test/src/test/java/org/openworkflow/sdk/impl/test/grpc/handlers/ContributorServerStreamingHandler.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,11 +13,11 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.test.grpc.handlers; +package org.openworkflow.sdk.impl.test.grpc.handlers; import io.grpc.stub.StreamObserver; -import io.serverlessworkflow.impl.executors.grpc.contributors.Contributors; -import io.serverlessworkflow.impl.executors.grpc.contributors.ServerStreamingGrpc.ServerStreamingImplBase; +import org.openworkflow.sdk.impl.executors.grpc.contributors.Contributors; +import org.openworkflow.sdk.impl.executors.grpc.contributors.ServerStreamingGrpc.ServerStreamingImplBase; public class ContributorServerStreamingHandler extends ServerStreamingImplBase { diff --git a/impl/test/src/test/java/io/serverlessworkflow/impl/test/grpc/handlers/ContributorUnaryArgsExprHandler.java b/impl/test/src/test/java/org/openworkflow/sdk/impl/test/grpc/handlers/ContributorUnaryArgsExprHandler.java similarity index 77% rename from impl/test/src/test/java/io/serverlessworkflow/impl/test/grpc/handlers/ContributorUnaryArgsExprHandler.java rename to impl/test/src/test/java/org/openworkflow/sdk/impl/test/grpc/handlers/ContributorUnaryArgsExprHandler.java index 1ac2f2ebe..66a081e2f 100644 --- a/impl/test/src/test/java/io/serverlessworkflow/impl/test/grpc/handlers/ContributorUnaryArgsExprHandler.java +++ b/impl/test/src/test/java/org/openworkflow/sdk/impl/test/grpc/handlers/ContributorUnaryArgsExprHandler.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,12 +13,12 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.test.grpc.handlers; +package org.openworkflow.sdk.impl.test.grpc.handlers; -import static io.serverlessworkflow.impl.executors.grpc.contributors.UnaryArgsExprGrpc.UnaryArgsExprImplBase; +import static org.openworkflow.sdk.impl.executors.grpc.contributors.UnaryArgsExprGrpc.UnaryArgsExprImplBase; import io.grpc.stub.StreamObserver; -import io.serverlessworkflow.impl.executors.grpc.contributors.Contributors; +import org.openworkflow.sdk.impl.executors.grpc.contributors.Contributors; public class ContributorUnaryArgsExprHandler extends UnaryArgsExprImplBase { diff --git a/impl/test/src/test/java/io/serverlessworkflow/impl/test/grpc/handlers/PersonUnaryHandler.java b/impl/test/src/test/java/org/openworkflow/sdk/impl/test/grpc/handlers/PersonUnaryHandler.java similarity index 89% rename from impl/test/src/test/java/io/serverlessworkflow/impl/test/grpc/handlers/PersonUnaryHandler.java rename to impl/test/src/test/java/org/openworkflow/sdk/impl/test/grpc/handlers/PersonUnaryHandler.java index e72f46138..11450d6f8 100644 --- a/impl/test/src/test/java/io/serverlessworkflow/impl/test/grpc/handlers/PersonUnaryHandler.java +++ b/impl/test/src/test/java/org/openworkflow/sdk/impl/test/grpc/handlers/PersonUnaryHandler.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.test.grpc.handlers; +package org.openworkflow.sdk.impl.test.grpc.handlers; import io.grpc.stub.StreamObserver; import person.PersonGrpc.PersonImplBase; diff --git a/impl/test/src/test/java/io/serverlessworkflow/impl/test/junit/BinaryCheckUtil.java b/impl/test/src/test/java/org/openworkflow/sdk/impl/test/junit/BinaryCheckUtil.java similarity index 93% rename from impl/test/src/test/java/io/serverlessworkflow/impl/test/junit/BinaryCheckUtil.java rename to impl/test/src/test/java/org/openworkflow/sdk/impl/test/junit/BinaryCheckUtil.java index 47f3f7f95..6ae46d198 100644 --- a/impl/test/src/test/java/io/serverlessworkflow/impl/test/junit/BinaryCheckUtil.java +++ b/impl/test/src/test/java/org/openworkflow/sdk/impl/test/junit/BinaryCheckUtil.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.test.junit; +package org.openworkflow.sdk.impl.test.junit; import java.io.IOException; import java.util.concurrent.ConcurrentHashMap; diff --git a/impl/test/src/test/java/io/serverlessworkflow/impl/test/junit/DisabledIfProtocUnavailable.java b/impl/test/src/test/java/org/openworkflow/sdk/impl/test/junit/DisabledIfProtocUnavailable.java similarity index 88% rename from impl/test/src/test/java/io/serverlessworkflow/impl/test/junit/DisabledIfProtocUnavailable.java rename to impl/test/src/test/java/org/openworkflow/sdk/impl/test/junit/DisabledIfProtocUnavailable.java index 5b91e3a9d..107c5760a 100644 --- a/impl/test/src/test/java/io/serverlessworkflow/impl/test/junit/DisabledIfProtocUnavailable.java +++ b/impl/test/src/test/java/org/openworkflow/sdk/impl/test/junit/DisabledIfProtocUnavailable.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.test.junit; +package org.openworkflow.sdk.impl.test.junit; import java.lang.annotation.ElementType; import java.lang.annotation.Retention; diff --git a/impl/test/src/test/java/io/serverlessworkflow/impl/test/junit/DisabledIfPythonUnavailable.java b/impl/test/src/test/java/org/openworkflow/sdk/impl/test/junit/DisabledIfPythonUnavailable.java similarity index 88% rename from impl/test/src/test/java/io/serverlessworkflow/impl/test/junit/DisabledIfPythonUnavailable.java rename to impl/test/src/test/java/org/openworkflow/sdk/impl/test/junit/DisabledIfPythonUnavailable.java index dcaa116e1..86ab111a5 100644 --- a/impl/test/src/test/java/io/serverlessworkflow/impl/test/junit/DisabledIfPythonUnavailable.java +++ b/impl/test/src/test/java/org/openworkflow/sdk/impl/test/junit/DisabledIfPythonUnavailable.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.test.junit; +package org.openworkflow.sdk.impl.test.junit; import java.lang.annotation.ElementType; import java.lang.annotation.Retention; diff --git a/impl/test/src/test/java/io/serverlessworkflow/impl/test/junit/ProtocCheckCondition.java b/impl/test/src/test/java/org/openworkflow/sdk/impl/test/junit/ProtocCheckCondition.java similarity index 90% rename from impl/test/src/test/java/io/serverlessworkflow/impl/test/junit/ProtocCheckCondition.java rename to impl/test/src/test/java/org/openworkflow/sdk/impl/test/junit/ProtocCheckCondition.java index e4ff9b98d..61fa3be7c 100644 --- a/impl/test/src/test/java/io/serverlessworkflow/impl/test/junit/ProtocCheckCondition.java +++ b/impl/test/src/test/java/org/openworkflow/sdk/impl/test/junit/ProtocCheckCondition.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,9 +13,9 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.test.junit; +package org.openworkflow.sdk.impl.test.junit; -import static io.serverlessworkflow.impl.test.junit.BinaryCheckUtil.isBinaryAvailable; +import static org.openworkflow.sdk.impl.test.junit.BinaryCheckUtil.isBinaryAvailable; import com.github.os72.protocjar.Protoc; import org.junit.jupiter.api.extension.ConditionEvaluationResult; diff --git a/impl/test/src/test/java/io/serverlessworkflow/impl/test/junit/PythonCheckCondition.java b/impl/test/src/test/java/org/openworkflow/sdk/impl/test/junit/PythonCheckCondition.java similarity index 87% rename from impl/test/src/test/java/io/serverlessworkflow/impl/test/junit/PythonCheckCondition.java rename to impl/test/src/test/java/org/openworkflow/sdk/impl/test/junit/PythonCheckCondition.java index 66f789fc6..0e016077e 100644 --- a/impl/test/src/test/java/io/serverlessworkflow/impl/test/junit/PythonCheckCondition.java +++ b/impl/test/src/test/java/org/openworkflow/sdk/impl/test/junit/PythonCheckCondition.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,9 +13,9 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.test.junit; +package org.openworkflow.sdk.impl.test.junit; -import static io.serverlessworkflow.impl.test.junit.BinaryCheckUtil.isBinaryAvailable; +import static org.openworkflow.sdk.impl.test.junit.BinaryCheckUtil.isBinaryAvailable; import org.junit.jupiter.api.extension.ConditionEvaluationResult; import org.junit.jupiter.api.extension.ExecutionCondition; diff --git a/impl/test/src/test/resources/workflows-samples/call-custom-function-cataloged-global.yaml b/impl/test/src/test/resources/workflows-samples/call-custom-function-cataloged-global.yaml index 534465d45..57709633a 100644 --- a/impl/test/src/test/resources/workflows-samples/call-custom-function-cataloged-global.yaml +++ b/impl/test/src/test/resources/workflows-samples/call-custom-function-cataloged-global.yaml @@ -6,7 +6,7 @@ document: use: catalogs: global: - endpoint: https://github.com/serverlessworkflow/catalog + endpoint: https://github.com/open-workflow-specification/catalog do: - log: call: log:1.0.0@global diff --git a/impl/test/src/test/resources/workflows-samples/call-custom-function-cataloged.yaml b/impl/test/src/test/resources/workflows-samples/call-custom-function-cataloged.yaml index 80a3a4dce..34d19acfa 100644 --- a/impl/test/src/test/resources/workflows-samples/call-custom-function-cataloged.yaml +++ b/impl/test/src/test/resources/workflows-samples/call-custom-function-cataloged.yaml @@ -5,7 +5,7 @@ document: version: '0.1.0' do: - log: - call: https://raw.githubusercontent.com/serverlessworkflow/catalog/refs/heads/main/functions/log/1.0.0/function.yaml + call: https://raw.githubusercontent.com/open-workflow-specification/catalog/refs/heads/main/functions/log/1.0.0/function.yaml with: message: Hello, world! level: information diff --git a/impl/test/src/test/resources/workflows-samples/call-http-endpoint-interpolation.yaml b/impl/test/src/test/resources/workflows-samples/call-http-endpoint-interpolation.yaml index ef32465d6..508492908 100644 --- a/impl/test/src/test/resources/workflows-samples/call-http-endpoint-interpolation.yaml +++ b/impl/test/src/test/resources/workflows-samples/call-http-endpoint-interpolation.yaml @@ -16,5 +16,5 @@ do: catch: errors: with: - type: https://serverlessworkflow.io/spec/1.0.0/errors/communication + type: https://open-workflow-specification.org/1.0.0/errors/communication status: 404 \ No newline at end of file diff --git a/impl/test/src/test/resources/workflows-samples/call-http-find-by-status.yaml b/impl/test/src/test/resources/workflows-samples/call-http-find-by-status.yaml index 30cdafba9..878000fe5 100644 --- a/impl/test/src/test/resources/workflows-samples/call-http-find-by-status.yaml +++ b/impl/test/src/test/resources/workflows-samples/call-http-find-by-status.yaml @@ -17,5 +17,5 @@ do: catch: errors: with: - type: https://serverlessworkflow.io/spec/1.0.0/errors/communication + type: https://open-workflow-specification.org/1.0.0/errors/communication status: 404 \ No newline at end of file diff --git a/impl/test/src/test/resources/workflows-samples/call-http-get.yaml b/impl/test/src/test/resources/workflows-samples/call-http-get.yaml index 3654e03f4..35bffca07 100644 --- a/impl/test/src/test/resources/workflows-samples/call-http-get.yaml +++ b/impl/test/src/test/resources/workflows-samples/call-http-get.yaml @@ -17,5 +17,5 @@ do: catch: errors: with: - type: https://serverlessworkflow.io/spec/1.0.0/errors/communication + type: https://open-workflow-specification.org/1.0.0/errors/communication status: 404 \ No newline at end of file diff --git a/impl/test/src/test/resources/workflows-samples/grpc/proto/contributors.proto b/impl/test/src/test/resources/workflows-samples/grpc/proto/contributors.proto index a7cb71e09..26e0e390d 100644 --- a/impl/test/src/test/resources/workflows-samples/grpc/proto/contributors.proto +++ b/impl/test/src/test/resources/workflows-samples/grpc/proto/contributors.proto @@ -1,6 +1,6 @@ syntax = "proto2"; -package io.serverlessworkflow.impl.executors.grpc.contributors; +package org.openworkflow.sdk.impl.executors.grpc.contributors; message AddContributionRequest { required string github = 1; diff --git a/impl/test/src/test/resources/workflows-samples/listen-to-one-timeout.yaml b/impl/test/src/test/resources/workflows-samples/listen-to-one-timeout.yaml index 2f3845a99..ea11d3ecb 100644 --- a/impl/test/src/test/resources/workflows-samples/listen-to-one-timeout.yaml +++ b/impl/test/src/test/resources/workflows-samples/listen-to-one-timeout.yaml @@ -17,7 +17,7 @@ do: catch: errors: with: - type: https://serverlessworkflow.io/spec/1.0.0/errors/timeout + type: https://open-workflow-specification.org/1.0.0/errors/timeout status: 408 do: - setMessage: diff --git a/impl/test/src/test/resources/workflows-samples/nested-try-catch-retry-inline.yaml b/impl/test/src/test/resources/workflows-samples/nested-try-catch-retry-inline.yaml index 27261f193..e3a443f13 100644 --- a/impl/test/src/test/resources/workflows-samples/nested-try-catch-retry-inline.yaml +++ b/impl/test/src/test/resources/workflows-samples/nested-try-catch-retry-inline.yaml @@ -17,7 +17,7 @@ do: catch: errors: with: - type: https://serverlessworkflow.io/spec/1.0.0/errors/communication + type: https://open-workflow-specification.org/1.0.0/errors/communication status: 404 retry: delay: ${"PT\(.delay)S"} @@ -29,7 +29,7 @@ do: catch: errors: with: - type: https://serverlessworkflow.io/spec/1.0.0/errors/communication + type: https://open-workflow-specification.org/1.0.0/errors/communication retry: delay: ${"PT\(.delay)S"} backoff: diff --git a/impl/test/src/test/resources/workflows-samples/raise-inline.yaml b/impl/test/src/test/resources/workflows-samples/raise-inline.yaml index b4bcac88b..f873dc630 100644 --- a/impl/test/src/test/resources/workflows-samples/raise-inline.yaml +++ b/impl/test/src/test/resources/workflows-samples/raise-inline.yaml @@ -7,7 +7,7 @@ do: - notImplemented: raise: error: - type: https://serverlessworkflow.io/errors/not-implemented + type: https://open-workflow-specification.org/1.0.0/errors/not-implemented status: 500 title: Not Implemented detail: ${ "The workflow '\( $workflow.definition.document.name ):\( $workflow.definition.document.version )' is a work in progress and cannot be run yet" } \ No newline at end of file diff --git a/impl/test/src/test/resources/workflows-samples/raise-reusable.yaml b/impl/test/src/test/resources/workflows-samples/raise-reusable.yaml index 6955bd05a..42d4165ca 100644 --- a/impl/test/src/test/resources/workflows-samples/raise-reusable.yaml +++ b/impl/test/src/test/resources/workflows-samples/raise-reusable.yaml @@ -6,7 +6,7 @@ document: use: errors: notImplemented: - type: https://serverlessworkflow.io/errors/not-implemented + type: https://open-workflow-specification.org/1.0.0/errors/not-implemented status: 500 title: Not Implemented detail: ${ "The workflow '\( $workflow.definition.document.name ):\( $workflow.definition.document.version )' is a work in progress and cannot be run yet" } diff --git a/impl/test/src/test/resources/workflows-samples/run-script/console-log-envs.yaml b/impl/test/src/test/resources/workflows-samples/run-script/console-log-envs.yaml index 36684b2b2..aa7c0790e 100644 --- a/impl/test/src/test/resources/workflows-samples/run-script/console-log-envs.yaml +++ b/impl/test/src/test/resources/workflows-samples/run-script/console-log-envs.yaml @@ -9,6 +9,6 @@ do: script: language: js code: > - console.log(`Running ${process.env.LANGUAGE} code using Serverless Workflow!`); + console.log(`Running ${process.env.LANGUAGE} code using Open Workflow!`); environment: LANGUAGE: JavaScript \ No newline at end of file diff --git a/impl/test/src/test/resources/workflows-samples/try-catch-match-then.yaml b/impl/test/src/test/resources/workflows-samples/try-catch-match-then.yaml index 551e94123..98d6b0d72 100644 --- a/impl/test/src/test/resources/workflows-samples/try-catch-match-then.yaml +++ b/impl/test/src/test/resources/workflows-samples/try-catch-match-then.yaml @@ -17,7 +17,7 @@ do: - failWontHappen: raise: error: - type: https://serverlessworkflow.io/errors/runtime + type: https://open-workflow-specification.org/1.0.0/errors/runtime status: 500 - endGracefully: set: diff --git a/impl/test/src/test/resources/workflows-samples/try-catch-retry-attempt-duration-overall.yaml b/impl/test/src/test/resources/workflows-samples/try-catch-retry-attempt-duration-overall.yaml index 1d7a0cdf3..c5a403f5a 100644 --- a/impl/test/src/test/resources/workflows-samples/try-catch-retry-attempt-duration-overall.yaml +++ b/impl/test/src/test/resources/workflows-samples/try-catch-retry-attempt-duration-overall.yaml @@ -15,7 +15,7 @@ do: catch: errors: with: - type: https://serverlessworkflow.io/spec/1.0.0/errors/timeout + type: https://open-workflow-specification.org/1.0.0/errors/timeout status: 408 retry: delay: diff --git a/impl/test/src/test/resources/workflows-samples/try-catch-retry-attempt-duration-retry.yaml b/impl/test/src/test/resources/workflows-samples/try-catch-retry-attempt-duration-retry.yaml index 3973e9ecb..c2e604666 100644 --- a/impl/test/src/test/resources/workflows-samples/try-catch-retry-attempt-duration-retry.yaml +++ b/impl/test/src/test/resources/workflows-samples/try-catch-retry-attempt-duration-retry.yaml @@ -15,7 +15,7 @@ do: catch: errors: with: - type: https://serverlessworkflow.io/spec/1.0.0/errors/timeout + type: https://open-workflow-specification.org/1.0.0/errors/timeout status: 408 retry: delay: diff --git a/impl/test/src/test/resources/workflows-samples/try-catch-retry-attempt-duration.yaml b/impl/test/src/test/resources/workflows-samples/try-catch-retry-attempt-duration.yaml index 97d1e1cd5..43eaee604 100644 --- a/impl/test/src/test/resources/workflows-samples/try-catch-retry-attempt-duration.yaml +++ b/impl/test/src/test/resources/workflows-samples/try-catch-retry-attempt-duration.yaml @@ -15,7 +15,7 @@ do: catch: errors: with: - type: https://serverlessworkflow.io/spec/1.0.0/errors/communication + type: https://open-workflow-specification.org/1.0.0/errors/communication status: 404 retry: delay: diff --git a/impl/test/src/test/resources/workflows-samples/try-catch-retry-inline-then.yaml b/impl/test/src/test/resources/workflows-samples/try-catch-retry-inline-then.yaml index 5f5df7d98..34367d1f2 100644 --- a/impl/test/src/test/resources/workflows-samples/try-catch-retry-inline-then.yaml +++ b/impl/test/src/test/resources/workflows-samples/try-catch-retry-inline-then.yaml @@ -15,7 +15,7 @@ do: catch: errors: with: - type: https://serverlessworkflow.io/spec/1.0.0/errors/communication + type: https://open-workflow-specification.org/1.0.0/errors/communication status: 404 then: endGracefully @@ -30,7 +30,7 @@ do: - failWontHappen: raise: error: - type: https://serverlessworkflow.io/errors/runtime + type: https://open-workflow-specification.org/1.0.0/errors/runtime status: 500 - endGracefully: set: diff --git a/impl/test/src/test/resources/workflows-samples/try-catch-retry-inline.yaml b/impl/test/src/test/resources/workflows-samples/try-catch-retry-inline.yaml index cb541db0e..54f778985 100644 --- a/impl/test/src/test/resources/workflows-samples/try-catch-retry-inline.yaml +++ b/impl/test/src/test/resources/workflows-samples/try-catch-retry-inline.yaml @@ -15,7 +15,7 @@ do: catch: errors: with: - type: https://serverlessworkflow.io/spec/1.0.0/errors/communication + type: https://open-workflow-specification.org/1.0.0/errors/communication status: 404 retry: delay: ${"PT\(.delay)S"} diff --git a/impl/test/src/test/resources/workflows-samples/try-catch-retry-reusable.yaml b/impl/test/src/test/resources/workflows-samples/try-catch-retry-reusable.yaml index fe041512f..afc17b680 100644 --- a/impl/test/src/test/resources/workflows-samples/try-catch-retry-reusable.yaml +++ b/impl/test/src/test/resources/workflows-samples/try-catch-retry-reusable.yaml @@ -25,7 +25,7 @@ do: catch: errors: with: - type: https://serverlessworkflow.io/spec/1.0.0/errors/communication + type: https://open-workflow-specification.org/1.0.0/errors/communication status: 404 retry: default \ No newline at end of file diff --git a/impl/validation/pom.xml b/impl/validation/pom.xml index 32d830b25..d22575295 100644 --- a/impl/validation/pom.xml +++ b/impl/validation/pom.xml @@ -1,28 +1,28 @@ 4.0.0 - io.serverlessworkflow - serverlessworkflow-impl + org.openworkflow.sdk + openworkflow-impl 8.0.0-SNAPSHOT - serverlessworkflow-impl-validation - Serverless Workflow :: Impl :: Jackson:: Validation + openworkflow-impl-validation + Open Workflow :: Impl :: Validation com.networknt json-schema-validator - io.serverlessworkflow - serverlessworkflow-api + org.openworkflow.sdk + openworkflow-api - io.serverlessworkflow - serverlessworkflow-impl-core + org.openworkflow.sdk + openworkflow-impl-core - io.serverlessworkflow - serverlessworkflow-impl-json + org.openworkflow.sdk + openworkflow-impl-json \ No newline at end of file diff --git a/impl/validation/src/main/java/io/serverlessworkflow/impl/jackson/schema/JsonSchemaValidator.java b/impl/validation/src/main/java/org/openworkflow/sdk/impl/jackson/schema/JsonSchemaValidator.java similarity index 89% rename from impl/validation/src/main/java/io/serverlessworkflow/impl/jackson/schema/JsonSchemaValidator.java rename to impl/validation/src/main/java/org/openworkflow/sdk/impl/jackson/schema/JsonSchemaValidator.java index be8f6053a..2e01b2400 100644 --- a/impl/validation/src/main/java/io/serverlessworkflow/impl/jackson/schema/JsonSchemaValidator.java +++ b/impl/validation/src/main/java/org/openworkflow/sdk/impl/jackson/schema/JsonSchemaValidator.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,17 +13,17 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.jackson.schema; +package org.openworkflow.sdk.impl.jackson.schema; import com.fasterxml.jackson.databind.JsonNode; import com.networknt.schema.Error; import com.networknt.schema.Schema; import com.networknt.schema.SchemaRegistry; import com.networknt.schema.SpecificationVersion; -import io.serverlessworkflow.impl.schema.AbstractSchemaValidator; import java.util.Collection; import java.util.Optional; import java.util.stream.Collectors; +import org.openworkflow.sdk.impl.schema.AbstractSchemaValidator; public class JsonSchemaValidator extends AbstractSchemaValidator { diff --git a/impl/validation/src/main/java/io/serverlessworkflow/impl/jackson/schema/JsonSchemaValidatorFactory.java b/impl/validation/src/main/java/org/openworkflow/sdk/impl/jackson/schema/JsonSchemaValidatorFactory.java similarity index 73% rename from impl/validation/src/main/java/io/serverlessworkflow/impl/jackson/schema/JsonSchemaValidatorFactory.java rename to impl/validation/src/main/java/org/openworkflow/sdk/impl/jackson/schema/JsonSchemaValidatorFactory.java index fa504b80f..e7de1cbe5 100644 --- a/impl/validation/src/main/java/io/serverlessworkflow/impl/jackson/schema/JsonSchemaValidatorFactory.java +++ b/impl/validation/src/main/java/org/openworkflow/sdk/impl/jackson/schema/JsonSchemaValidatorFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,18 +13,18 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl.jackson.schema; +package org.openworkflow.sdk.impl.jackson.schema; import com.fasterxml.jackson.databind.ObjectMapper; -import io.serverlessworkflow.api.WorkflowFormat; -import io.serverlessworkflow.api.types.SchemaInline; -import io.serverlessworkflow.impl.jackson.JsonUtils; -import io.serverlessworkflow.impl.resources.ExternalResourceHandler; -import io.serverlessworkflow.impl.schema.SchemaValidator; -import io.serverlessworkflow.impl.schema.SchemaValidatorFactory; import java.io.IOException; import java.io.InputStream; import java.io.UncheckedIOException; +import org.openworkflow.sdk.api.WorkflowFormat; +import org.openworkflow.sdk.api.types.SchemaInline; +import org.openworkflow.sdk.impl.jackson.JsonUtils; +import org.openworkflow.sdk.impl.resources.ExternalResourceHandler; +import org.openworkflow.sdk.impl.schema.SchemaValidator; +import org.openworkflow.sdk.impl.schema.SchemaValidatorFactory; public class JsonSchemaValidatorFactory implements SchemaValidatorFactory { diff --git a/impl/validation/src/main/resources/META-INF/services/io.serverlessworkflow.impl.schema.SchemaValidatorFactory b/impl/validation/src/main/resources/META-INF/services/io.serverlessworkflow.impl.schema.SchemaValidatorFactory deleted file mode 100644 index 9480ce16f..000000000 --- a/impl/validation/src/main/resources/META-INF/services/io.serverlessworkflow.impl.schema.SchemaValidatorFactory +++ /dev/null @@ -1 +0,0 @@ -io.serverlessworkflow.impl.jackson.schema.JsonSchemaValidatorFactory \ No newline at end of file diff --git a/impl/validation/src/main/resources/META-INF/services/org.openworkflow.sdk.impl.schema.SchemaValidatorFactory b/impl/validation/src/main/resources/META-INF/services/org.openworkflow.sdk.impl.schema.SchemaValidatorFactory new file mode 100644 index 000000000..c1354eba0 --- /dev/null +++ b/impl/validation/src/main/resources/META-INF/services/org.openworkflow.sdk.impl.schema.SchemaValidatorFactory @@ -0,0 +1 @@ +org.openworkflow.sdk.impl.jackson.schema.JsonSchemaValidatorFactory \ No newline at end of file diff --git a/mermaid/README.md b/mermaid/README.md index bed729ed4..0e1287a76 100644 --- a/mermaid/README.md +++ b/mermaid/README.md @@ -1,6 +1,6 @@ -# CNCF Serverless Workflow SDK Java — Mermaid Exporter +# CNCF Open Workflow SDK Java — Mermaid Exporter -Generate **Mermaid** diagrams for [Serverless Workflow](https://serverlessworkflow.io/) definitions. +Generate **Mermaid** diagrams for [Open Workflow](https://github.com/open-workflow-specification/sdk-java) definitions. This library turns a `Workflow` into a Mermaid **flowchart**, with sensible shapes and wiring for common DSL constructs, and can optionally export **SVG/PNG** via a lightweight HTTP helper. --- @@ -32,8 +32,8 @@ Add the dependency to the module where you want to render diagrams. ```xml - io.serverlessworkflow - serverlessworkflow-mermaid + org.openworkflow.sdk + openworkflow-mermaid YOUR_VERSION ``` @@ -44,12 +44,12 @@ Add the dependency to the module where you want to render diagrams.

Gradle (Kotlin) ```kotlin -implementation("io.serverlessworkflow:serverlessworkflow-mermaid:YOUR_VERSION") +implementation("org.openworkflow.sdk:openworkflow-mermaid:YOUR_VERSION") ``` -> This library depends on `serverlessworkflow-api` to read/construct workflows. +> This library depends on `openworkflow-api` to read/construct workflows. --- @@ -58,8 +58,8 @@ implementation("io.serverlessworkflow:serverlessworkflow-mermaid:YOUR_VERSION") ### 1) From a `Workflow` instance ```java -import io.serverlessworkflow.api.types.Workflow; -import io.serverlessworkflow.mermaid.Mermaid; +import org.openworkflow.sdk.api.types.Workflow; +import org.openworkflow.sdk.mermaid.Mermaid; Workflow wf = /* build or load your workflow */; String mermaid = new Mermaid().from(wf); @@ -70,7 +70,7 @@ System.out.println(mermaid); ### 2) From a YAML on the classpath ```java -import io.serverlessworkflow.mermaid.Mermaid; +import org.openworkflow.sdk.mermaid.Mermaid; String mermaid = new Mermaid().from("workflows/sample.yaml"); ``` @@ -99,8 +99,8 @@ Use the built-in `MermaidInk` helper (HTTP call to mermaid.ink): ```java import java.nio.file.Path; -import io.serverlessworkflow.mermaid.Mermaid; -import io.serverlessworkflow.mermaid.MermaidInk; +import org.openworkflow.sdk.mermaid.Mermaid; +import org.openworkflow.sdk.mermaid.MermaidInk; String mermaid = new Mermaid().from("workflows/sample.yaml"); diff --git a/mermaid/pom.xml b/mermaid/pom.xml index 69eb9966b..11fe8eaa5 100644 --- a/mermaid/pom.xml +++ b/mermaid/pom.xml @@ -2,13 +2,13 @@ 4.0.0 - io.serverlessworkflow - serverlessworkflow-parent + org.openworkflow.sdk + openworkflow-parent 8.0.0-SNAPSHOT - serverlessworkflow-mermaid - Serverless Workflow :: Mermaid + openworkflow-mermaid + Open Workflow :: Mermaid Export a Workflow Definition as a Mermaid Flowchart @@ -19,12 +19,12 @@ - io.serverlessworkflow - serverlessworkflow-types + org.openworkflow.sdk + openworkflow-types - io.serverlessworkflow - serverlessworkflow-api + org.openworkflow.sdk + openworkflow-api @@ -54,8 +54,8 @@ test
- io.serverlessworkflow - serverlessworkflow-impl-test + org.openworkflow.sdk + openworkflow-impl-test ${project.version} tests test diff --git a/mermaid/src/main/java/io/serverlessworkflow/mermaid/CallNode.java b/mermaid/src/main/java/org/openworkflow/sdk/mermaid/CallNode.java similarity index 91% rename from mermaid/src/main/java/io/serverlessworkflow/mermaid/CallNode.java rename to mermaid/src/main/java/org/openworkflow/sdk/mermaid/CallNode.java index c9a6bdbdb..8e21e954c 100644 --- a/mermaid/src/main/java/io/serverlessworkflow/mermaid/CallNode.java +++ b/mermaid/src/main/java/org/openworkflow/sdk/mermaid/CallNode.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,11 +13,11 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.mermaid; +package org.openworkflow.sdk.mermaid; -import io.serverlessworkflow.api.types.CallHTTP; -import io.serverlessworkflow.api.types.CallTask; -import io.serverlessworkflow.api.types.TaskItem; +import org.openworkflow.sdk.api.types.CallHTTP; +import org.openworkflow.sdk.api.types.CallTask; +import org.openworkflow.sdk.api.types.TaskItem; public class CallNode extends TaskNode { diff --git a/mermaid/src/main/java/io/serverlessworkflow/mermaid/DefaultNodeRenderer.java b/mermaid/src/main/java/org/openworkflow/sdk/mermaid/DefaultNodeRenderer.java similarity index 93% rename from mermaid/src/main/java/io/serverlessworkflow/mermaid/DefaultNodeRenderer.java rename to mermaid/src/main/java/org/openworkflow/sdk/mermaid/DefaultNodeRenderer.java index 3bd71e79c..dcabb0ea6 100644 --- a/mermaid/src/main/java/io/serverlessworkflow/mermaid/DefaultNodeRenderer.java +++ b/mermaid/src/main/java/org/openworkflow/sdk/mermaid/DefaultNodeRenderer.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.mermaid; +package org.openworkflow.sdk.mermaid; public class DefaultNodeRenderer implements NodeRenderer { diff --git a/mermaid/src/main/java/io/serverlessworkflow/mermaid/Edge.java b/mermaid/src/main/java/org/openworkflow/sdk/mermaid/Edge.java similarity index 95% rename from mermaid/src/main/java/io/serverlessworkflow/mermaid/Edge.java rename to mermaid/src/main/java/org/openworkflow/sdk/mermaid/Edge.java index 7d86d4107..0bc7007ba 100644 --- a/mermaid/src/main/java/io/serverlessworkflow/mermaid/Edge.java +++ b/mermaid/src/main/java/org/openworkflow/sdk/mermaid/Edge.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.mermaid; +package org.openworkflow.sdk.mermaid; import java.util.Objects; diff --git a/mermaid/src/main/java/io/serverlessworkflow/mermaid/EmitNode.java b/mermaid/src/main/java/org/openworkflow/sdk/mermaid/EmitNode.java similarity index 83% rename from mermaid/src/main/java/io/serverlessworkflow/mermaid/EmitNode.java rename to mermaid/src/main/java/org/openworkflow/sdk/mermaid/EmitNode.java index d355a4678..0f4e93be0 100644 --- a/mermaid/src/main/java/io/serverlessworkflow/mermaid/EmitNode.java +++ b/mermaid/src/main/java/org/openworkflow/sdk/mermaid/EmitNode.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,10 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.mermaid; +package org.openworkflow.sdk.mermaid; -import io.serverlessworkflow.api.types.EmitTask; -import io.serverlessworkflow.api.types.TaskItem; +import org.openworkflow.sdk.api.types.EmitTask; +import org.openworkflow.sdk.api.types.TaskItem; public class EmitNode extends TaskNode { diff --git a/mermaid/src/main/java/io/serverlessworkflow/mermaid/EndpointStringify.java b/mermaid/src/main/java/org/openworkflow/sdk/mermaid/EndpointStringify.java similarity index 91% rename from mermaid/src/main/java/io/serverlessworkflow/mermaid/EndpointStringify.java rename to mermaid/src/main/java/org/openworkflow/sdk/mermaid/EndpointStringify.java index dfd6bb485..8dd541ad1 100644 --- a/mermaid/src/main/java/io/serverlessworkflow/mermaid/EndpointStringify.java +++ b/mermaid/src/main/java/org/openworkflow/sdk/mermaid/EndpointStringify.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,17 +13,17 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.mermaid; - -import io.serverlessworkflow.api.types.AuthenticationPolicy; -import io.serverlessworkflow.api.types.AuthenticationPolicyReference; -import io.serverlessworkflow.api.types.AuthenticationPolicyUnion; -import io.serverlessworkflow.api.types.Endpoint; -import io.serverlessworkflow.api.types.EndpointConfiguration; -import io.serverlessworkflow.api.types.EndpointUri; -import io.serverlessworkflow.api.types.ReferenceableAuthenticationPolicy; -import io.serverlessworkflow.api.types.UriTemplate; +package org.openworkflow.sdk.mermaid; + import java.net.URI; +import org.openworkflow.sdk.api.types.AuthenticationPolicy; +import org.openworkflow.sdk.api.types.AuthenticationPolicyReference; +import org.openworkflow.sdk.api.types.AuthenticationPolicyUnion; +import org.openworkflow.sdk.api.types.Endpoint; +import org.openworkflow.sdk.api.types.EndpointConfiguration; +import org.openworkflow.sdk.api.types.EndpointUri; +import org.openworkflow.sdk.api.types.ReferenceableAuthenticationPolicy; +import org.openworkflow.sdk.api.types.UriTemplate; public final class EndpointStringify { diff --git a/mermaid/src/main/java/io/serverlessworkflow/mermaid/ForNode.java b/mermaid/src/main/java/org/openworkflow/sdk/mermaid/ForNode.java similarity index 90% rename from mermaid/src/main/java/io/serverlessworkflow/mermaid/ForNode.java rename to mermaid/src/main/java/org/openworkflow/sdk/mermaid/ForNode.java index 5a1f56741..19e1170f2 100644 --- a/mermaid/src/main/java/io/serverlessworkflow/mermaid/ForNode.java +++ b/mermaid/src/main/java/org/openworkflow/sdk/mermaid/ForNode.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,10 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.mermaid; +package org.openworkflow.sdk.mermaid; -import io.serverlessworkflow.api.types.ForTask; -import io.serverlessworkflow.api.types.TaskItem; +import org.openworkflow.sdk.api.types.ForTask; +import org.openworkflow.sdk.api.types.TaskItem; public class ForNode extends TaskSubgraphNode { diff --git a/mermaid/src/main/java/io/serverlessworkflow/mermaid/ForkNode.java b/mermaid/src/main/java/org/openworkflow/sdk/mermaid/ForkNode.java similarity index 91% rename from mermaid/src/main/java/io/serverlessworkflow/mermaid/ForkNode.java rename to mermaid/src/main/java/org/openworkflow/sdk/mermaid/ForkNode.java index d3d5dc27a..5e2e1399c 100644 --- a/mermaid/src/main/java/io/serverlessworkflow/mermaid/ForkNode.java +++ b/mermaid/src/main/java/org/openworkflow/sdk/mermaid/ForkNode.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,13 +13,13 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.mermaid; +package org.openworkflow.sdk.mermaid; -import io.serverlessworkflow.api.types.ForkTask; -import io.serverlessworkflow.api.types.TaskItem; import java.util.LinkedHashMap; import java.util.List; import java.util.Map; +import org.openworkflow.sdk.api.types.ForkTask; +import org.openworkflow.sdk.api.types.TaskItem; public class ForkNode extends TaskSubgraphNode { diff --git a/mermaid/src/main/java/io/serverlessworkflow/mermaid/Ids.java b/mermaid/src/main/java/org/openworkflow/sdk/mermaid/Ids.java similarity index 93% rename from mermaid/src/main/java/io/serverlessworkflow/mermaid/Ids.java rename to mermaid/src/main/java/org/openworkflow/sdk/mermaid/Ids.java index 424d65881..45867d87b 100644 --- a/mermaid/src/main/java/io/serverlessworkflow/mermaid/Ids.java +++ b/mermaid/src/main/java/org/openworkflow/sdk/mermaid/Ids.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,14 +13,14 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.mermaid; +package org.openworkflow.sdk.mermaid; -import io.serverlessworkflow.api.types.TaskItem; import java.nio.charset.StandardCharsets; import java.security.MessageDigest; import java.text.Normalizer; import java.util.concurrent.ThreadLocalRandom; import java.util.concurrent.atomic.AtomicInteger; +import org.openworkflow.sdk.api.types.TaskItem; public final class Ids { private final String salt = Integer.toString(ThreadLocalRandom.current().nextInt(), 36); diff --git a/mermaid/src/main/java/io/serverlessworkflow/mermaid/IteratorNode.java b/mermaid/src/main/java/org/openworkflow/sdk/mermaid/IteratorNode.java similarity index 89% rename from mermaid/src/main/java/io/serverlessworkflow/mermaid/IteratorNode.java rename to mermaid/src/main/java/org/openworkflow/sdk/mermaid/IteratorNode.java index fc40dcb28..ecc714bda 100644 --- a/mermaid/src/main/java/io/serverlessworkflow/mermaid/IteratorNode.java +++ b/mermaid/src/main/java/org/openworkflow/sdk/mermaid/IteratorNode.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,9 +13,9 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.mermaid; +package org.openworkflow.sdk.mermaid; -import io.serverlessworkflow.api.types.SubscriptionIterator; +import org.openworkflow.sdk.api.types.SubscriptionIterator; public class IteratorNode extends SubgraphNode { diff --git a/mermaid/src/main/java/io/serverlessworkflow/mermaid/ListenNode.java b/mermaid/src/main/java/org/openworkflow/sdk/mermaid/ListenNode.java similarity index 92% rename from mermaid/src/main/java/io/serverlessworkflow/mermaid/ListenNode.java rename to mermaid/src/main/java/org/openworkflow/sdk/mermaid/ListenNode.java index b4be12cac..502b018e5 100644 --- a/mermaid/src/main/java/io/serverlessworkflow/mermaid/ListenNode.java +++ b/mermaid/src/main/java/org/openworkflow/sdk/mermaid/ListenNode.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,13 +13,13 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.mermaid; +package org.openworkflow.sdk.mermaid; -import io.serverlessworkflow.api.types.ListenTask; -import io.serverlessworkflow.api.types.ListenTo; -import io.serverlessworkflow.api.types.TaskItem; import java.util.ArrayList; import java.util.List; +import org.openworkflow.sdk.api.types.ListenTask; +import org.openworkflow.sdk.api.types.ListenTo; +import org.openworkflow.sdk.api.types.TaskItem; public class ListenNode extends TaskSubgraphNode { diff --git a/mermaid/src/main/java/io/serverlessworkflow/mermaid/Mermaid.java b/mermaid/src/main/java/org/openworkflow/sdk/mermaid/Mermaid.java similarity index 88% rename from mermaid/src/main/java/io/serverlessworkflow/mermaid/Mermaid.java rename to mermaid/src/main/java/org/openworkflow/sdk/mermaid/Mermaid.java index befc2bcaa..72e451009 100644 --- a/mermaid/src/main/java/io/serverlessworkflow/mermaid/Mermaid.java +++ b/mermaid/src/main/java/org/openworkflow/sdk/mermaid/Mermaid.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,12 +13,12 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.mermaid; +package org.openworkflow.sdk.mermaid; -import io.serverlessworkflow.api.WorkflowReader; -import io.serverlessworkflow.api.types.Workflow; import java.io.IOException; import java.util.Map; +import org.openworkflow.sdk.api.WorkflowReader; +import org.openworkflow.sdk.api.types.Workflow; /** Main entrypoint to generate a Mermaid representation of a Workflow definition. */ public class Mermaid { diff --git a/mermaid/src/main/java/io/serverlessworkflow/mermaid/MermaidGraph.java b/mermaid/src/main/java/org/openworkflow/sdk/mermaid/MermaidGraph.java similarity index 90% rename from mermaid/src/main/java/io/serverlessworkflow/mermaid/MermaidGraph.java rename to mermaid/src/main/java/org/openworkflow/sdk/mermaid/MermaidGraph.java index 39385bc4f..3367d5e40 100644 --- a/mermaid/src/main/java/io/serverlessworkflow/mermaid/MermaidGraph.java +++ b/mermaid/src/main/java/org/openworkflow/sdk/mermaid/MermaidGraph.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,16 +13,16 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.mermaid; +package org.openworkflow.sdk.mermaid; -import io.serverlessworkflow.api.types.CallTask; -import io.serverlessworkflow.api.types.FlowDirective; -import io.serverlessworkflow.api.types.FlowDirectiveEnum; -import io.serverlessworkflow.api.types.TaskBase; -import io.serverlessworkflow.api.types.TaskItem; import java.util.LinkedHashMap; import java.util.List; import java.util.Map; +import org.openworkflow.sdk.api.types.CallTask; +import org.openworkflow.sdk.api.types.FlowDirective; +import org.openworkflow.sdk.api.types.FlowDirectiveEnum; +import org.openworkflow.sdk.api.types.TaskBase; +import org.openworkflow.sdk.api.types.TaskItem; final class MermaidGraph { diff --git a/mermaid/src/main/java/io/serverlessworkflow/mermaid/MermaidInk.java b/mermaid/src/main/java/org/openworkflow/sdk/mermaid/MermaidInk.java similarity index 95% rename from mermaid/src/main/java/io/serverlessworkflow/mermaid/MermaidInk.java rename to mermaid/src/main/java/org/openworkflow/sdk/mermaid/MermaidInk.java index 64a45c74c..f0375b31f 100644 --- a/mermaid/src/main/java/io/serverlessworkflow/mermaid/MermaidInk.java +++ b/mermaid/src/main/java/org/openworkflow/sdk/mermaid/MermaidInk.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.mermaid; +package org.openworkflow.sdk.mermaid; import java.io.ByteArrayOutputStream; import java.io.IOException; diff --git a/mermaid/src/main/java/io/serverlessworkflow/mermaid/MermaidRenderer.java b/mermaid/src/main/java/org/openworkflow/sdk/mermaid/MermaidRenderer.java similarity index 87% rename from mermaid/src/main/java/io/serverlessworkflow/mermaid/MermaidRenderer.java rename to mermaid/src/main/java/org/openworkflow/sdk/mermaid/MermaidRenderer.java index 07f6c2f6a..860ce2fe9 100644 --- a/mermaid/src/main/java/io/serverlessworkflow/mermaid/MermaidRenderer.java +++ b/mermaid/src/main/java/org/openworkflow/sdk/mermaid/MermaidRenderer.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.mermaid; +package org.openworkflow.sdk.mermaid; import java.util.Map; diff --git a/mermaid/src/main/java/io/serverlessworkflow/mermaid/Node.java b/mermaid/src/main/java/org/openworkflow/sdk/mermaid/Node.java similarity index 96% rename from mermaid/src/main/java/io/serverlessworkflow/mermaid/Node.java rename to mermaid/src/main/java/org/openworkflow/sdk/mermaid/Node.java index 00e0916fc..5fd8950a6 100644 --- a/mermaid/src/main/java/io/serverlessworkflow/mermaid/Node.java +++ b/mermaid/src/main/java/org/openworkflow/sdk/mermaid/Node.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.mermaid; +package org.openworkflow.sdk.mermaid; import java.io.Serializable; import java.util.Collections; diff --git a/mermaid/src/main/java/io/serverlessworkflow/mermaid/NodeBuilder.java b/mermaid/src/main/java/org/openworkflow/sdk/mermaid/NodeBuilder.java similarity index 82% rename from mermaid/src/main/java/io/serverlessworkflow/mermaid/NodeBuilder.java rename to mermaid/src/main/java/org/openworkflow/sdk/mermaid/NodeBuilder.java index b71d3a349..61b818a1a 100644 --- a/mermaid/src/main/java/io/serverlessworkflow/mermaid/NodeBuilder.java +++ b/mermaid/src/main/java/org/openworkflow/sdk/mermaid/NodeBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,21 +13,21 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.mermaid; +package org.openworkflow.sdk.mermaid; -import io.serverlessworkflow.api.types.CallTask; -import io.serverlessworkflow.api.types.DoTask; -import io.serverlessworkflow.api.types.EmitTask; -import io.serverlessworkflow.api.types.ForTask; -import io.serverlessworkflow.api.types.ForkTask; -import io.serverlessworkflow.api.types.ListenTask; -import io.serverlessworkflow.api.types.RaiseTask; -import io.serverlessworkflow.api.types.RunTask; -import io.serverlessworkflow.api.types.SetTask; -import io.serverlessworkflow.api.types.SwitchTask; -import io.serverlessworkflow.api.types.TaskItem; -import io.serverlessworkflow.api.types.TryTask; -import io.serverlessworkflow.api.types.WaitTask; +import org.openworkflow.sdk.api.types.CallTask; +import org.openworkflow.sdk.api.types.DoTask; +import org.openworkflow.sdk.api.types.EmitTask; +import org.openworkflow.sdk.api.types.ForTask; +import org.openworkflow.sdk.api.types.ForkTask; +import org.openworkflow.sdk.api.types.ListenTask; +import org.openworkflow.sdk.api.types.RaiseTask; +import org.openworkflow.sdk.api.types.RunTask; +import org.openworkflow.sdk.api.types.SetTask; +import org.openworkflow.sdk.api.types.SwitchTask; +import org.openworkflow.sdk.api.types.TaskItem; +import org.openworkflow.sdk.api.types.TryTask; +import org.openworkflow.sdk.api.types.WaitTask; public final class NodeBuilder { diff --git a/mermaid/src/main/java/io/serverlessworkflow/mermaid/NodeRenderer.java b/mermaid/src/main/java/org/openworkflow/sdk/mermaid/NodeRenderer.java similarity index 89% rename from mermaid/src/main/java/io/serverlessworkflow/mermaid/NodeRenderer.java rename to mermaid/src/main/java/org/openworkflow/sdk/mermaid/NodeRenderer.java index 67d52a246..92e46b5fb 100644 --- a/mermaid/src/main/java/io/serverlessworkflow/mermaid/NodeRenderer.java +++ b/mermaid/src/main/java/org/openworkflow/sdk/mermaid/NodeRenderer.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.mermaid; +package org.openworkflow.sdk.mermaid; public interface NodeRenderer { diff --git a/mermaid/src/main/java/io/serverlessworkflow/mermaid/NodeType.java b/mermaid/src/main/java/org/openworkflow/sdk/mermaid/NodeType.java similarity index 90% rename from mermaid/src/main/java/io/serverlessworkflow/mermaid/NodeType.java rename to mermaid/src/main/java/org/openworkflow/sdk/mermaid/NodeType.java index 8a243cdb7..29b088281 100644 --- a/mermaid/src/main/java/io/serverlessworkflow/mermaid/NodeType.java +++ b/mermaid/src/main/java/org/openworkflow/sdk/mermaid/NodeType.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.mermaid; +package org.openworkflow.sdk.mermaid; public enum NodeType { RECT("rect"), diff --git a/mermaid/src/main/java/io/serverlessworkflow/mermaid/RaiseNode.java b/mermaid/src/main/java/org/openworkflow/sdk/mermaid/RaiseNode.java similarity index 85% rename from mermaid/src/main/java/io/serverlessworkflow/mermaid/RaiseNode.java rename to mermaid/src/main/java/org/openworkflow/sdk/mermaid/RaiseNode.java index bc32f4b13..4c28329e6 100644 --- a/mermaid/src/main/java/io/serverlessworkflow/mermaid/RaiseNode.java +++ b/mermaid/src/main/java/org/openworkflow/sdk/mermaid/RaiseNode.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,9 +13,9 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.mermaid; +package org.openworkflow.sdk.mermaid; -import io.serverlessworkflow.api.types.TaskItem; +import org.openworkflow.sdk.api.types.TaskItem; public class RaiseNode extends TaskNode { diff --git a/mermaid/src/main/java/io/serverlessworkflow/mermaid/RunNode.java b/mermaid/src/main/java/org/openworkflow/sdk/mermaid/RunNode.java similarity index 89% rename from mermaid/src/main/java/io/serverlessworkflow/mermaid/RunNode.java rename to mermaid/src/main/java/org/openworkflow/sdk/mermaid/RunNode.java index 31d26f530..404f7d253 100644 --- a/mermaid/src/main/java/io/serverlessworkflow/mermaid/RunNode.java +++ b/mermaid/src/main/java/org/openworkflow/sdk/mermaid/RunNode.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,10 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.mermaid; +package org.openworkflow.sdk.mermaid; -import io.serverlessworkflow.api.types.RunTask; -import io.serverlessworkflow.api.types.TaskItem; +import org.openworkflow.sdk.api.types.RunTask; +import org.openworkflow.sdk.api.types.TaskItem; public class RunNode extends TaskNode { diff --git a/mermaid/src/main/java/io/serverlessworkflow/mermaid/SubgraphNode.java b/mermaid/src/main/java/org/openworkflow/sdk/mermaid/SubgraphNode.java similarity index 88% rename from mermaid/src/main/java/io/serverlessworkflow/mermaid/SubgraphNode.java rename to mermaid/src/main/java/org/openworkflow/sdk/mermaid/SubgraphNode.java index b38c3c39f..e5ca3ce8b 100644 --- a/mermaid/src/main/java/io/serverlessworkflow/mermaid/SubgraphNode.java +++ b/mermaid/src/main/java/org/openworkflow/sdk/mermaid/SubgraphNode.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.mermaid; +package org.openworkflow.sdk.mermaid; public class SubgraphNode extends Node { diff --git a/mermaid/src/main/java/io/serverlessworkflow/mermaid/SubgraphNodeRenderer.java b/mermaid/src/main/java/org/openworkflow/sdk/mermaid/SubgraphNodeRenderer.java similarity index 92% rename from mermaid/src/main/java/io/serverlessworkflow/mermaid/SubgraphNodeRenderer.java rename to mermaid/src/main/java/org/openworkflow/sdk/mermaid/SubgraphNodeRenderer.java index 2054a4f9e..96123a74b 100644 --- a/mermaid/src/main/java/io/serverlessworkflow/mermaid/SubgraphNodeRenderer.java +++ b/mermaid/src/main/java/org/openworkflow/sdk/mermaid/SubgraphNodeRenderer.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.mermaid; +package org.openworkflow.sdk.mermaid; public class SubgraphNodeRenderer extends DefaultNodeRenderer implements NodeRenderer { diff --git a/mermaid/src/main/java/io/serverlessworkflow/mermaid/SwitchNode.java b/mermaid/src/main/java/org/openworkflow/sdk/mermaid/SwitchNode.java similarity index 90% rename from mermaid/src/main/java/io/serverlessworkflow/mermaid/SwitchNode.java rename to mermaid/src/main/java/org/openworkflow/sdk/mermaid/SwitchNode.java index 0d3989256..9d7188006 100644 --- a/mermaid/src/main/java/io/serverlessworkflow/mermaid/SwitchNode.java +++ b/mermaid/src/main/java/org/openworkflow/sdk/mermaid/SwitchNode.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,10 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.mermaid; +package org.openworkflow.sdk.mermaid; -import io.serverlessworkflow.api.types.SwitchItem; -import io.serverlessworkflow.api.types.TaskItem; +import org.openworkflow.sdk.api.types.SwitchItem; +import org.openworkflow.sdk.api.types.TaskItem; public class SwitchNode extends TaskNode { diff --git a/mermaid/src/main/java/io/serverlessworkflow/mermaid/TaskNode.java b/mermaid/src/main/java/org/openworkflow/sdk/mermaid/TaskNode.java similarity index 83% rename from mermaid/src/main/java/io/serverlessworkflow/mermaid/TaskNode.java rename to mermaid/src/main/java/org/openworkflow/sdk/mermaid/TaskNode.java index 0afc21dde..2e9016980 100644 --- a/mermaid/src/main/java/io/serverlessworkflow/mermaid/TaskNode.java +++ b/mermaid/src/main/java/org/openworkflow/sdk/mermaid/TaskNode.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,9 +13,9 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.mermaid; +package org.openworkflow.sdk.mermaid; -import io.serverlessworkflow.api.types.TaskItem; +import org.openworkflow.sdk.api.types.TaskItem; public class TaskNode extends Node { diff --git a/mermaid/src/main/java/io/serverlessworkflow/mermaid/TaskSubgraphNode.java b/mermaid/src/main/java/org/openworkflow/sdk/mermaid/TaskSubgraphNode.java similarity index 87% rename from mermaid/src/main/java/io/serverlessworkflow/mermaid/TaskSubgraphNode.java rename to mermaid/src/main/java/org/openworkflow/sdk/mermaid/TaskSubgraphNode.java index 1f9239c8c..1eb3bcdef 100644 --- a/mermaid/src/main/java/io/serverlessworkflow/mermaid/TaskSubgraphNode.java +++ b/mermaid/src/main/java/org/openworkflow/sdk/mermaid/TaskSubgraphNode.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,10 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.mermaid; +package org.openworkflow.sdk.mermaid; -import io.serverlessworkflow.api.types.TaskItem; import java.util.List; +import org.openworkflow.sdk.api.types.TaskItem; public class TaskSubgraphNode extends TaskNode { diff --git a/mermaid/src/main/java/io/serverlessworkflow/mermaid/TryCatchNode.java b/mermaid/src/main/java/org/openworkflow/sdk/mermaid/TryCatchNode.java similarity index 90% rename from mermaid/src/main/java/io/serverlessworkflow/mermaid/TryCatchNode.java rename to mermaid/src/main/java/org/openworkflow/sdk/mermaid/TryCatchNode.java index 9f7155dd5..8a10718e4 100644 --- a/mermaid/src/main/java/io/serverlessworkflow/mermaid/TryCatchNode.java +++ b/mermaid/src/main/java/org/openworkflow/sdk/mermaid/TryCatchNode.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,9 +13,9 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.mermaid; +package org.openworkflow.sdk.mermaid; -import io.serverlessworkflow.api.types.TaskItem; +import org.openworkflow.sdk.api.types.TaskItem; public class TryCatchNode extends TaskSubgraphNode { diff --git a/mermaid/src/main/java/io/serverlessworkflow/mermaid/WaitNode.java b/mermaid/src/main/java/org/openworkflow/sdk/mermaid/WaitNode.java similarity index 92% rename from mermaid/src/main/java/io/serverlessworkflow/mermaid/WaitNode.java rename to mermaid/src/main/java/org/openworkflow/sdk/mermaid/WaitNode.java index 08301ed54..1f60f08c3 100644 --- a/mermaid/src/main/java/io/serverlessworkflow/mermaid/WaitNode.java +++ b/mermaid/src/main/java/org/openworkflow/sdk/mermaid/WaitNode.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,12 +13,12 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.mermaid; +package org.openworkflow.sdk.mermaid; -import io.serverlessworkflow.api.types.DurationInline; -import io.serverlessworkflow.api.types.TaskItem; -import io.serverlessworkflow.api.types.TimeoutAfter; import java.util.Objects; +import org.openworkflow.sdk.api.types.DurationInline; +import org.openworkflow.sdk.api.types.TaskItem; +import org.openworkflow.sdk.api.types.TimeoutAfter; public class WaitNode extends TaskNode { diff --git a/mermaid/src/test/java/io/serverlessworkflow/mermaid/ClasspathYamlFinder.java b/mermaid/src/test/java/org/openworkflow/sdk/mermaid/ClasspathYamlFinder.java similarity index 97% rename from mermaid/src/test/java/io/serverlessworkflow/mermaid/ClasspathYamlFinder.java rename to mermaid/src/test/java/org/openworkflow/sdk/mermaid/ClasspathYamlFinder.java index 1eed70f52..a40729c8e 100644 --- a/mermaid/src/test/java/io/serverlessworkflow/mermaid/ClasspathYamlFinder.java +++ b/mermaid/src/test/java/org/openworkflow/sdk/mermaid/ClasspathYamlFinder.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.mermaid; +package org.openworkflow.sdk.mermaid; import java.io.File; import java.io.IOException; diff --git a/mermaid/src/test/java/io/serverlessworkflow/mermaid/MermaidSmokeTest.java b/mermaid/src/test/java/org/openworkflow/sdk/mermaid/MermaidSmokeTest.java similarity index 83% rename from mermaid/src/test/java/io/serverlessworkflow/mermaid/MermaidSmokeTest.java rename to mermaid/src/test/java/org/openworkflow/sdk/mermaid/MermaidSmokeTest.java index f616f32c5..e695f90d5 100644 --- a/mermaid/src/test/java/io/serverlessworkflow/mermaid/MermaidSmokeTest.java +++ b/mermaid/src/test/java/org/openworkflow/sdk/mermaid/MermaidSmokeTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,15 +13,15 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.mermaid; +package org.openworkflow.sdk.mermaid; import static org.assertj.core.api.Assertions.assertThat; -import io.serverlessworkflow.api.WorkflowReader; import java.io.IOException; import java.util.stream.Stream; import org.junit.jupiter.params.ParameterizedTest; import org.junit.jupiter.params.provider.MethodSource; +import org.openworkflow.sdk.api.WorkflowReader; class MermaidSmokeTest { @@ -34,7 +34,7 @@ static Stream yamlSamples() throws IOException { throw new IllegalStateException( """ No YAML resources found on the test classpath. - - Is serverlessworkflow-impl-test built and its *-tests.jar on the test classpath? + - Is openworkflow-impl-test built and its *-tests.jar on the test classpath? - Are YAMLs under src/test/resources in that module? - Path inside JAR may differ from '/'. """); @@ -46,7 +46,7 @@ static Stream yamlSamples() throws IOException { @MethodSource("yamlSamples") void rendersBasicMermaidStructure(String resourcePath) throws Exception { var wf = WorkflowReader.readWorkflowFromClasspath(resourcePath); - var mermaid = new io.serverlessworkflow.mermaid.Mermaid().from(wf); + var mermaid = new org.openworkflow.sdk.mermaid.Mermaid().from(wf); assertThat(mermaid).isNotBlank().contains("flowchart TD"); } } diff --git a/pom.xml b/pom.xml index b05e1a208..844fee035 100644 --- a/pom.xml +++ b/pom.xml @@ -2,19 +2,19 @@ 4.0.0 - io.serverlessworkflow - serverlessworkflow-parent + org.openworkflow.sdk + openworkflow-parent 8.0.0-SNAPSHOT pom - Serverless Workflow :: Parent - https://serverlessworkflow.io/sdk-java/ - Java SDK for Serverless Workflow Specification + Open Workflow :: Parent + https://github.com/open-workflow-specification/sdk-java + Java SDK for Open Workflow Specification 2020 serverless-workflow - Serverless Workflow Specification Authors + Open Workflow Specification Authors CNCF @@ -30,9 +30,9 @@ - scm:git:git@github.com:serverlessworkflow/sdk-java.git - scm:git:git@github.com:serverlessworkflow/sdk-java.git - https://github.com/serverlessworkflow/sdk-java + scm:git:git@github.com:open-workflow-specification/sdk-java.git + scm:git:git@github.com:open-workflow-specification/sdk-java.git + https://github.com/open-workflow-specification/sdk-java HEAD @@ -165,23 +165,23 @@ test - io.serverlessworkflow - serverlessworkflow-api + org.openworkflow.sdk + openworkflow-api ${project.version} - io.serverlessworkflow - serverlessworkflow-types + org.openworkflow.sdk + openworkflow-types ${project.version} - io.serverlessworkflow - serverlessworkflow-serialization + org.openworkflow.sdk + openworkflow-serialization ${project.version} - io.serverlessworkflow - serverlessworkflow-annotations + org.openworkflow.sdk + openworkflow-annotations ${project.version} @@ -385,7 +385,7 @@ 4.0.0 - io.serverlessworkflow - serverlessworkflow-parent + org.openworkflow.sdk + openworkflow-parent 8.0.0-SNAPSHOT - serverlessworkflow-serialization - Serverless Workflow :: Serialization + openworkflow-serialization + Open Workflow :: Serialization - io.serverlessworkflow - serverlessworkflow-annotations + org.openworkflow.sdk + openworkflow-annotations ${project.version} diff --git a/serialization/src/main/java/io/serverlessworkflow/serialization/DeserializeHelper.java b/serialization/src/main/java/org/openworkflow/sdk/serialization/DeserializeHelper.java similarity index 95% rename from serialization/src/main/java/io/serverlessworkflow/serialization/DeserializeHelper.java rename to serialization/src/main/java/org/openworkflow/sdk/serialization/DeserializeHelper.java index 4291ca5b8..c58e6c120 100644 --- a/serialization/src/main/java/io/serverlessworkflow/serialization/DeserializeHelper.java +++ b/serialization/src/main/java/org/openworkflow/sdk/serialization/DeserializeHelper.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,19 +13,19 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.serialization; +package org.openworkflow.sdk.serialization; import com.fasterxml.jackson.core.JsonParser; import com.fasterxml.jackson.core.JsonProcessingException; import com.fasterxml.jackson.core.TreeNode; import com.fasterxml.jackson.databind.JsonMappingException; -import io.serverlessworkflow.annotations.OneOfSetter; import jakarta.validation.ConstraintViolationException; import java.io.IOException; import java.lang.reflect.InvocationTargetException; import java.lang.reflect.Method; import java.util.ArrayList; import java.util.Collection; +import org.openworkflow.sdk.annotations.OneOfSetter; public class DeserializeHelper { diff --git a/serialization/src/main/java/io/serverlessworkflow/serialization/SerializeHelper.java b/serialization/src/main/java/org/openworkflow/sdk/serialization/SerializeHelper.java similarity index 82% rename from serialization/src/main/java/io/serverlessworkflow/serialization/SerializeHelper.java rename to serialization/src/main/java/org/openworkflow/sdk/serialization/SerializeHelper.java index 47ab1a5e2..34a850107 100644 --- a/serialization/src/main/java/io/serverlessworkflow/serialization/SerializeHelper.java +++ b/serialization/src/main/java/org/openworkflow/sdk/serialization/SerializeHelper.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,11 +13,11 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.serialization; +package org.openworkflow.sdk.serialization; import com.fasterxml.jackson.core.JsonGenerator; -import io.serverlessworkflow.annotations.OneOfValueProvider; import java.io.IOException; +import org.openworkflow.sdk.annotations.OneOfValueProvider; public class SerializeHelper { public static void serializeOneOf(JsonGenerator jgen, OneOfValueProvider item) diff --git a/types/pom.xml b/types/pom.xml index 22ad894c9..2018ab162 100644 --- a/types/pom.xml +++ b/types/pom.xml @@ -1,16 +1,16 @@ 4.0.0 - io.serverlessworkflow - serverlessworkflow-parent + org.openworkflow.sdk + openworkflow-parent 8.0.0-SNAPSHOT - Serverless Workflow :: Types - serverlessworkflow-types + Open Workflow :: Types + openworkflow-types - io.serverlessworkflow - serverlessworkflow-annotations + org.openworkflow.sdk + openworkflow-annotations jakarta.validation @@ -29,7 +29,7 @@ https://raw.githubusercontent.com/serverlessworkflow/specification/main/schema/workflow.yaml --> yamlschema - io.serverlessworkflow.api.types + org.openworkflow.sdk.api.types ${project.build.directory}/generated-sources/src/main/java true true @@ -46,13 +46,13 @@ true none true - io.serverlessworkflow.generator.UnreferencedFactory - io.serverlessworkflow.generator.CustomAnnotator + org.openworkflow.sdk.generator.UnreferencedFactory + org.openworkflow.sdk.generator.CustomAnnotator - io.serverlessworkflow - serverless-workflow-types-generator + org.openworkflow.sdk + openworkflow-types-generator ${project.version} diff --git a/types/src/main/java/io/serverlessworkflow/types/Defaults.java b/types/src/main/java/org/openworkflow/sdk/types/Defaults.java similarity index 87% rename from types/src/main/java/io/serverlessworkflow/types/Defaults.java rename to types/src/main/java/org/openworkflow/sdk/types/Defaults.java index d7668ef83..f1ed54db5 100644 --- a/types/src/main/java/io/serverlessworkflow/types/Defaults.java +++ b/types/src/main/java/org/openworkflow/sdk/types/Defaults.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.types; +package org.openworkflow.sdk.types; public class Defaults { diff --git a/types/src/main/java/io/serverlessworkflow/types/Errors.java b/types/src/main/java/org/openworkflow/sdk/types/Errors.java similarity index 88% rename from types/src/main/java/io/serverlessworkflow/types/Errors.java rename to types/src/main/java/org/openworkflow/sdk/types/Errors.java index 7097d7db4..a0d308fe6 100644 --- a/types/src/main/java/io/serverlessworkflow/types/Errors.java +++ b/types/src/main/java/org/openworkflow/sdk/types/Errors.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-Present The Serverless Workflow Specification Authors + * Copyright 2020-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.types; +package org.openworkflow.sdk.types; import java.net.URI; import java.util.Objects; @@ -24,7 +24,7 @@ * Standard error types with a configurable spec version. * * @see DSL + * href="https://github.com/open-workflow-specification/specification/blob/main/dsl-reference.md#standard-error-types">DSL * Reference - Standard Error Types */ public final class Errors { @@ -35,7 +35,7 @@ private Errors() {} new AtomicReference<>(() -> "1.0.0"); private static final AtomicReference BASE_PATTERN = - new AtomicReference<>("https://serverlessworkflow.io/spec/%s/errors/"); + new AtomicReference<>("https://open-workflow-specification.org/%s/errors/"); public static void setSpecVersion(String version) { Objects.requireNonNull(version, "version"); @@ -90,6 +90,7 @@ public String toString() { public static final Standard AUTHENTICATION = new Standard("authentication", 401); public static final Standard AUTHORIZATION = new Standard("authorization", 403); public static final Standard DATA = new Standard("data", 422); + public static final Standard EXPRESSION = new Standard("expression", 400); public static final Standard TIMEOUT = new Standard("timeout", 408); public static final Standard NOT_IMPLEMENTED = new Standard("not-implemented", 501); public static final Standard VALIDATION = new Standard("validation", 400);