From cdadb02110f0126870a32d0b1ba97d1adfe564df Mon Sep 17 00:00:00 2001 From: Francisco Javier Tirado Sarti Date: Fri, 9 Oct 2026 14:01:02 +0200 Subject: [PATCH 1/3] [Fix #1676] Renaming io.serverlesworkflow to org.openworkflow Signed-off-by: Francisco Javier Tirado Sarti --- .github/ISSUE_TEMPLATE/bug-report.md | 2 +- .github/ISSUE_TEMPLATE/enhancement.md | 2 +- .github/ISSUE_TEMPLATE/question.md | 2 +- README.md | 8 +- annotations/pom.xml | 8 +- .../annotations/AdditionalProperties.java | 4 +- .../annotations/ExclusiveUnion.java | 4 +- .../annotations/InclusiveUnion.java | 4 +- .../openworkflow}/annotations/Item.java | 4 +- .../openworkflow}/annotations/ItemKey.java | 4 +- .../openworkflow}/annotations/ItemValue.java | 4 +- .../annotations/OneOfSetter.java | 4 +- .../annotations/OneOfValueProvider.java | 4 +- api/pom.xml | 24 ++-- .../openworkflow}/api/DirectReader.java | 6 +- .../api/ObjectMapperFactory.java | 12 +- .../openworkflow}/api/ValidationReader.java | 6 +- .../openworkflow}/api/WorkflowFormat.java | 4 +- .../openworkflow}/api/WorkflowReader.java | 6 +- .../api/WorkflowReaderOperations.java | 6 +- .../openworkflow}/api/WorkflowWriter.java | 6 +- ...eanDeserializerModifierWithValidation.java | 4 +- .../BeanDeserializerWithValidation.java | 4 +- .../serialization/URIDeserializer.java | 4 +- .../serialization/URISerializer.java | 4 +- .../openworkflow}/api/ApiTest.java | 28 ++--- .../openworkflow}/api/FeaturesTest.java | 16 +-- bom/pom.xml | 8 +- examples/events/pom.xml | 12 +- .../src/main/java/events/EventExample.java | 10 +- examples/pom.xml | 20 ++-- examples/simpleGet/pom.xml | 18 +-- .../openworkflow}/impl/BlockingExample.java | 6 +- .../impl/NotBlockingExample.java | 6 +- fluent/README.md | 50 ++++----- fluent/pom.xml | 8 +- fluent/spec/pom.xml | 12 +- .../fluent/spec/AbstractEmitTaskBuilder.java | 10 +- ...stractEventConsumptionStrategyBuilder.java | 18 +-- .../spec/AbstractEventFilterBuilder.java | 8 +- .../spec/AbstractEventPropertiesBuilder.java | 14 +-- .../fluent/spec/AbstractForkTaskBuilder.java | 18 +-- .../spec/AbstractListenTaskBuilder.java | 20 ++-- .../fluent/spec/BaseDoTaskBuilder.java | 6 +- .../fluent/spec/BaseRaiseTaskBuilder.java | 24 ++-- .../fluent/spec/BaseTaskItemListBuilder.java | 8 +- .../fluent/spec/BaseTryTaskBuilder.java | 42 +++---- .../fluent/spec/BaseWorkflowBuilder.java | 28 ++--- .../BasicAuthenticationPolicyBuilder.java | 12 +- .../BearerAuthenticationPolicyBuilder.java | 12 +- .../fluent/spec/CallGrpcTaskBuilder.java | 10 +- .../fluent/spec/CallHttpTaskBuilder.java | 10 +- .../fluent/spec/CallOpenAPITaskBuilder.java | 12 +- .../DigestAuthenticationPolicyBuilder.java | 12 +- .../fluent/spec/DoTaskBuilder.java | 6 +- .../fluent/spec/DocumentBuilder.java | 10 +- .../fluent/spec/DurationInlineBuilder.java | 6 +- .../fluent/spec/EmitTaskBuilder.java | 4 +- .../spec/EventConsumptionStrategyBuilder.java | 14 +-- .../fluent/spec/EventFilterBuilder.java | 4 +- .../fluent/spec/EventPropertiesBuilder.java | 4 +- .../fluent/spec/ExportBuilder.java | 18 +-- .../fluent/spec/ForEachTaskBuilder.java | 14 +-- .../fluent/spec/ForkTaskBuilder.java | 6 +- .../fluent/spec/InputBuilder.java | 20 ++-- .../fluent/spec/ListenTaskBuilder.java | 4 +- .../fluent/spec/ListenToBuilder.java | 14 +-- .../spec/ListenToConfigurerBuilder.java | 4 +- .../OAuth2AuthenticationPolicyBuilder.java | 10 +- .../fluent/spec/OIDCBuilder.java | 20 ++-- ...nIdConnectAuthenticationPolicyBuilder.java | 8 +- .../fluent/spec/OutputBuilder.java | 18 +-- .../fluent/spec/RaiseTaskBuilder.java | 4 +- ...erenceableAuthenticationPolicyBuilder.java | 10 +- .../fluent/spec/ScheduleBuilder.java | 8 +- .../fluent/spec/SetTaskBuilder.java | 10 +- .../spec/SubscriptionIteratorBuilder.java | 10 +- .../fluent/spec/SwitchTaskBuilder.java | 10 +- .../fluent/spec/TaskBaseBuilder.java | 28 ++--- .../fluent/spec/TaskItemListBuilder.java | 14 +-- .../fluent/spec/TaskMetadataBuilder.java | 6 +- .../fluent/spec/TimeoutBuilder.java | 8 +- .../fluent/spec/TryTaskBuilder.java | 4 +- .../fluent/spec/UriTemplateBuilder.java | 6 +- .../spec/UseAuthenticationsBuilder.java | 12 +- .../openworkflow}/fluent/spec/UseBuilder.java | 28 ++--- .../fluent/spec/WaitTaskBuilder.java | 10 +- .../fluent/spec/WorkflowBuilder.java | 8 +- .../fluent/spec/WorkflowTaskBuilder.java | 14 +-- .../configurers/AuthenticationConfigurer.java | 6 +- .../spec/configurers/CallGrpcConfigurer.java | 6 +- .../spec/configurers/CallHttpConfigurer.java | 6 +- .../configurers/CallOpenAPIConfigurer.java | 6 +- .../spec/configurers/EmitConfigurer.java | 6 +- .../EventPropertiesConfigurer.java | 6 +- .../spec/configurers/ForEachConfigurer.java | 8 +- .../spec/configurers/ListenConfigurer.java | 6 +- .../spec/configurers/RaiseConfigurer.java | 6 +- .../spec/configurers/RetryConfigurer.java | 6 +- .../spec/configurers/SetConfigurer.java | 6 +- .../spec/configurers/SwitchConfigurer.java | 6 +- .../spec/configurers/TasksConfigurer.java | 6 +- .../spec/configurers/TryCatchConfigurer.java | 8 +- .../spec/configurers/TryConfigurer.java | 8 +- .../spec/configurers/UseConfigurer.java | 6 +- .../spec/configurers/WorkflowConfigurer.java | 6 +- .../spec/dsl/AbstractEventFilterSpec.java | 10 +- .../fluent/spec/dsl/BaseCallHttpSpec.java | 8 +- .../fluent/spec/dsl/BaseListenSpec.java | 10 +- .../fluent/spec/dsl/CallGrpcSpec.java | 12 +- .../fluent/spec/dsl/CallHttpSpec.java | 10 +- .../fluent/spec/dsl/CallOpenAPISpec.java | 14 +-- .../openworkflow}/fluent/spec/dsl/DSL.java | 66 +++++------ .../fluent/spec/dsl/EmitSpec.java | 10 +- .../spec/dsl/EventEmitPropertiesSpec.java | 6 +- .../fluent/spec/dsl/EventFilterSpec.java | 8 +- .../fluent/spec/dsl/EventPropertiesSpec.java | 6 +- .../spec/dsl/ExprEventEmitPropertiesSpec.java | 6 +- .../fluent/spec/dsl/ExprEventFilterSpec.java | 6 +- .../fluent/spec/dsl/ListenSpec.java | 16 +-- .../fluent/spec/dsl/RaiseSpec.java | 8 +- .../fluent/spec/dsl/RetrySpec.java | 10 +- .../fluent/spec/dsl/SwitchSpec.java | 12 +- .../fluent/spec/dsl/TryCatchSpec.java | 14 +-- .../fluent/spec/dsl/TrySpec.java | 12 +- .../fluent/spec/dsl/UseSpec.java | 10 +- .../fluent/spec/dsl/WorkflowSpec.java | 10 +- .../fluent/spec/spi/CallGrpcFluent.java | 6 +- .../fluent/spec/spi/CallGrpcTaskFluent.java | 30 ++--- .../fluent/spec/spi/CallHttpFluent.java | 6 +- .../fluent/spec/spi/CallHttpTaskFluent.java | 34 +++--- .../fluent/spec/spi/CallOpenAPIFluent.java | 6 +- .../spec/spi/CallOpenAPITaskFluent.java | 26 ++--- .../fluent/spec/spi/DoFluent.java | 32 +++--- .../fluent/spec/spi/EmitFluent.java | 6 +- .../fluent/spec/spi/EndpointUtil.java | 14 +-- .../spi/EventConsumptionStrategyFluent.java | 8 +- .../fluent/spec/spi/ForEachFluent.java | 6 +- .../fluent/spec/spi/ForEachTaskFluent.java | 10 +- .../fluent/spec/spi/ForkFluent.java | 6 +- .../fluent/spec/spi/ForkTaskFluent.java | 10 +- .../fluent/spec/spi/IteratorFluent.java | 6 +- .../fluent/spec/spi/ListenFluent.java | 6 +- .../fluent/spec/spi/OutputFluent.java | 8 +- .../fluent/spec/spi/RaiseFluent.java | 6 +- .../fluent/spec/spi/SetFluent.java | 6 +- .../spec/spi/SubscriptionIteratorFluent.java | 6 +- .../fluent/spec/spi/SwitchFluent.java | 6 +- .../fluent/spec/spi/SwitchTaskFluent.java | 14 +-- .../spec/spi/TaskTransformationHandlers.java | 6 +- .../spec/spi/TransformationHandlers.java | 8 +- .../fluent/spec/spi/TryCatchFluent.java | 6 +- .../fluent/spec/spi/WaitFluent.java | 6 +- .../fluent/spec/spi/WorkflowFluent.java | 6 +- .../fluent/spec/spi/WorkflowTaskFluent.java | 12 +- .../fluent/spec/InputBuilderTest.java | 6 +- .../fluent/spec/ScheduleBuilderTest.java | 10 +- .../spec/TaskItemDefaultNamingTest.java | 18 +-- .../spec/UseAuthenticationsBuilderTest.java | 12 +- .../fluent/spec/WorkflowBuilderTest.java | 90 +++++++-------- .../fluent/spec/dsl/CallGrpcDslTest.java | 16 +-- .../fluent/spec/dsl/CallHttpAuthDslTest.java | 26 ++--- .../spec/dsl/CallHttpDslExtensionsTest.java | 14 +-- .../fluent/spec/dsl/CallOpenApiDslTest.java | 16 +-- .../fluent/spec/dsl/DSLScheduleTest.java | 24 ++-- .../fluent/spec/dsl/DSLTest.java | 46 ++++---- .../fluent/spec/dsl/DSLTimeoutTest.java | 18 +-- .../fluent/spec/dsl/DSLWaitTest.java | 14 +-- .../fluent/spec/dsl/TryCatchDslTest.java | 28 ++--- generators/jackson/pom.xml | 14 +-- .../graalvm/ReflectNativeFileHandler.java | 4 +- .../generator/jackson/GeneratorUtils.java | 8 +- .../generator/jackson/JacksonMixInPojo.java | 18 +-- generators/pom.xml | 8 +- generators/types/pom.xml | 10 +- .../generator/AllAnyOneOfSchemaRule.java | 12 +- .../generator/CustomAnnotator.java | 6 +- .../generator/EmptyObjectTypeRule.java | 4 +- .../generator/GeneratorUtils.java | 4 +- .../openworkflow}/generator/JTypeWrapper.java | 8 +- .../generator/RefNameHelper.java | 4 +- .../generator/UnevaluatedPropertiesRule.java | 10 +- .../generator/UnreferencedFactory.java | 4 +- impl/README.md | 78 ++++++------- impl/a2a/pom.xml | 12 +- .../executors/a2a/A2AExceptionHandler.java | 8 +- .../impl/executors/a2a/A2AExecutor.java | 14 +-- .../executors/a2a/A2AExecutorBuilder.java | 26 ++--- .../executors/a2a/A2ARequestDispatcher.java | 10 +- .../impl/executors/a2a/A2AUtils.java | 20 ++-- .../executors/a2a/CancelTaskDispatcher.java | 12 +- .../impl/executors/a2a/GetTaskDispatcher.java | 12 +- .../executors/a2a/ListTaskDispatcher.java | 18 +-- .../impl/executors/a2a/MessageConsumer.java | 10 +- .../executors/a2a/MessageConsumerFactory.java | 10 +- .../impl/executors/a2a/MessageDispatcher.java | 16 +-- .../executors/a2a/MessageSendConsumer.java | 8 +- .../executors/a2a/MessageStreamConsumer.java | 12 +- ...orkflow.impl.executors.CallableTaskBuilder | 1 - ...orkflow.impl.executors.CallableTaskBuilder | 1 + impl/container/pom.xml | 16 +-- .../executors/CommandPropertySetter.java | 20 ++-- .../ContainerEnvironmentPropertySetter.java | 18 +-- .../executors/ContainerPropertySetter.java | 10 +- .../container/executors/ContainerRunner.java | 22 ++-- .../executors/LifetimePropertySetter.java | 14 +-- .../executors/NamePropertySetter.java | 20 ++-- .../executors/PortsPropertySetter.java | 12 +- .../RunContainerExecutorBuilder.java | 26 ++--- .../executors/VolumesPropertySetter.java | 18 +-- ...orkflow.impl.executors.RunnableTaskBuilder | 1 - ...orkflow.impl.executors.RunnableTaskBuilder | 1 + impl/core/pom.xml | 12 +- .../impl/AbstractWorkflowModel.java | 4 +- .../impl/AuthorizationDescriptor.java | 4 +- .../impl/CollectionConversionUtils.java | 4 +- .../impl/CompositeExpressionFactory.java | 10 +- .../impl/DefaultExecutorServiceFactory.java | 4 +- .../impl/ExecutorServiceFactory.java | 4 +- .../openworkflow}/impl/FunctionReader.java | 8 +- .../openworkflow}/impl/LifecycleEvents.java | 32 +++--- .../impl/LifecycleEventsUtils.java | 6 +- ...onotonicUlidWorkflowInstanceIdFactory.java | 4 +- .../openworkflow}/impl/NamedObject.java | 4 +- .../impl/QueueWorkflowPosition.java | 4 +- .../impl/RuntimeDescriptorFactory.java | 6 +- .../openworkflow}/impl/SchedulerListener.java | 12 +- .../openworkflow}/impl/ServicePriority.java | 4 +- .../impl/StringBufferWorkflowPosition.java | 4 +- .../openworkflow}/impl/TaskContext.java | 8 +- .../openworkflow}/impl/TaskContextData.java | 6 +- .../impl/WorkflowApplication.java | 90 +++++++-------- .../openworkflow}/impl/WorkflowContext.java | 4 +- .../impl/WorkflowContextData.java | 4 +- .../openworkflow}/impl/WorkflowDecorator.java | 4 +- .../impl/WorkflowDefinition.java | 40 +++---- .../impl/WorkflowDefinitionData.java | 6 +- .../impl/WorkflowDefinitionId.java | 10 +- .../openworkflow}/impl/WorkflowError.java | 10 +- .../openworkflow}/impl/WorkflowException.java | 4 +- .../openworkflow}/impl/WorkflowFilter.java | 4 +- .../openworkflow}/impl/WorkflowInstance.java | 4 +- .../impl/WorkflowInstanceData.java | 4 +- .../impl/WorkflowInstanceIdFactory.java | 4 +- .../openworkflow}/impl/WorkflowModel.java | 4 +- .../impl/WorkflowModelCollection.java | 4 +- .../impl/WorkflowModelFactory.java | 4 +- .../impl/WorkflowMutableInstance.java | 28 ++--- .../impl/WorkflowMutablePosition.java | 4 +- .../openworkflow}/impl/WorkflowPosition.java | 4 +- .../impl/WorkflowPositionFactory.java | 4 +- .../openworkflow}/impl/WorkflowPredicate.java | 4 +- .../openworkflow}/impl/WorkflowStatus.java | 4 +- .../openworkflow}/impl/WorkflowUtils.java | 42 +++---- .../impl/WorkflowValueResolver.java | 4 +- .../additional/ConstantAdditionalObject.java | 8 +- .../NamedWorkflowAdditionalObject.java | 6 +- .../additional/SuppliedAdditionalObject.java | 8 +- .../additional/WorkflowAdditionalObject.java | 8 +- .../impl/auth/AbstractAuthRequestBuilder.java | 50 ++++----- .../impl/auth/AccessTokenProvider.java | 10 +- .../impl/auth/AccessTokenProviderFactory.java | 6 +- .../openworkflow}/impl/auth/AuthProvider.java | 10 +- .../impl/auth/AuthProviderFactory.java | 10 +- .../impl/auth/AuthRequestBuilder.java | 6 +- .../openworkflow}/impl/auth/AuthUtils.java | 4 +- .../impl/auth/BasicAuthProvider.java | 28 ++--- .../impl/auth/BearerAuthProvider.java | 28 ++--- .../impl/auth/ClientSecretBasic.java | 22 ++-- .../impl/auth/ClientSecretHandler.java | 16 +-- .../impl/auth/ClientSecretPost.java | 22 ++-- .../impl/auth/CommonOAuthProvider.java | 24 ++-- .../impl/auth/DefaultAuthProviderFactory.java | 22 ++-- .../impl/auth/DigestAuthProvider.java | 32 +++--- .../impl/auth/HttpRequestInfo.java | 6 +- .../impl/auth/HttpRequestInfoBuilder.java | 10 +- .../openworkflow}/impl/auth/JWT.java | 4 +- .../openworkflow}/impl/auth/JWTConverter.java | 6 +- .../impl/auth/JwtClientAssertion.java | 30 ++--- .../impl/auth/OAuth2AuthProvider.java | 8 +- .../impl/auth/OAuthPolicyData.java | 10 +- .../impl/auth/OAuthRequestBuilder.java | 18 +-- .../openworkflow}/impl/auth/OAuthScheme.java | 4 +- .../openworkflow}/impl/auth/OAuthUtils.java | 20 ++-- .../impl/auth/OpenIdAuthProvider.java | 8 +- .../impl/auth/OpenIdRequestBuilder.java | 12 +- .../impl/auth/TokenIntrospection.java | 4 +- .../impl/config/AbstractConfigManager.java | 4 +- .../impl/config/ConfigManager.java | 6 +- .../impl/config/ConfigSecretManager.java | 4 +- .../impl/config/SecretManager.java | 6 +- .../config/SystemPropertyConfigManager.java | 4 +- .../impl/events/AbstractTypeConsumer.java | 20 ++-- .../impl/events/CloudEventAttrPredicate.java | 8 +- .../impl/events/CloudEventPredicate.java | 8 +- .../events/CloudEventPredicateFactory.java | 10 +- .../impl/events/CloudEventUtils.java | 6 +- .../impl/events/CorrelationPredicate.java | 18 +-- .../events/DefaultCloudEventPredicate.java | 28 ++--- .../DefaultCloudEventPredicateFactory.java | 8 +- .../impl/events/EmitSourceResolver.java | 12 +- .../impl/events/EmittedEventDecorator.java | 6 +- .../impl/events/EventConsumer.java | 14 +-- .../impl/events/EventPublisher.java | 4 +- .../impl/events/EventRegistration.java | 4 +- .../impl/events/EventRegistrationBuilder.java | 4 +- .../EventRegistrationBuilderCollection.java | 4 +- .../events/EventRegistrationBuilderInfo.java | 22 ++-- .../impl/events/EventRegistrationInfo.java | 8 +- .../impl/events/InMemoryEvents.java | 8 +- .../events/ModelAwareCloudEventPredicate.java | 10 +- .../impl/events/TypeEventRegistration.java | 8 +- .../events/TypeEventRegistrationBuilder.java | 4 +- .../impl/executors/AbstractTaskExecutor.java | 66 +++++------ .../CallFunctionExecutorBuilder.java | 28 ++--- .../impl/executors/CallTaskExecutor.java | 16 +-- .../impl/executors/CallableTask.java | 10 +- .../impl/executors/CallableTaskBuilder.java | 12 +- .../impl/executors/CallableTaskFactory.java | 4 +- .../executors/CallableTaskProxyBuilder.java | 8 +- .../executors/DefaultTaskExecutorFactory.java | 40 +++---- .../impl/executors/DoExecutor.java | 18 +-- .../impl/executors/EmitExecutor.java | 40 +++---- .../impl/executors/ForExecutor.java | 26 ++--- .../impl/executors/ForkExecutor.java | 18 +-- .../impl/executors/ListenExecutor.java | 42 +++---- .../impl/executors/ProcessResult.java | 4 +- .../impl/executors/RaiseExecutor.java | 40 +++---- .../impl/executors/RegularTaskExecutor.java | 16 +-- .../impl/executors/RunScriptExecutor.java | 24 ++-- .../executors/RunScriptExecutorBuilder.java | 24 ++-- .../impl/executors/RunShellExecutor.java | 18 +-- .../executors/RunShellExecutorBuilder.java | 14 +-- .../impl/executors/RunTaskExecutor.java | 18 +-- .../impl/executors/RunWorkflowExecutor.java | 16 +-- .../executors/RunWorkflowExecutorBuilder.java | 18 +-- .../impl/executors/RunnableTaskBuilder.java | 10 +- .../impl/executors/SetExecutor.java | 24 ++-- .../impl/executors/SwitchExecutor.java | 24 ++-- .../impl/executors/TaskExecutor.java | 12 +- .../impl/executors/TaskExecutorBuilder.java | 6 +- .../impl/executors/TaskExecutorFactory.java | 14 +-- .../impl/executors/TaskExecutorHelper.java | 18 +-- .../impl/executors/TransitionInfo.java | 4 +- .../impl/executors/TransitionInfoBuilder.java | 4 +- .../impl/executors/TryExecutor.java | 56 +++++----- .../impl/executors/WaitExecutor.java | 22 ++-- .../retry/AbstractRetryIntervalFunction.java | 20 ++-- .../retry/ConstantRetryIntervalFunction.java | 10 +- .../executors/retry/DefaultRetryExecutor.java | 14 +-- .../ExponentialRetryIntervalFunction.java | 10 +- .../retry/LinearRetryIntervalFunction.java | 10 +- .../impl/executors/retry/RetryExecutor.java | 10 +- .../retry/RetryIntervalFunction.java | 10 +- .../AbstractExpressionFactory.java | 10 +- .../expressions/AbstractProxyCollection.java | 4 +- .../impl/expressions/DateTimeDescriptor.java | 4 +- .../expressions/ExpressionDescriptor.java | 4 +- .../impl/expressions/ExpressionFactory.java | 14 +-- .../impl/expressions/ExpressionUtils.java | 4 +- .../ExpressionValidationException.java | 4 +- .../impl/expressions/ObjectExpression.java | 10 +- .../expressions/ObjectExpressionFactory.java | 18 +-- .../impl/expressions/ProxyCollection.java | 4 +- .../impl/expressions/ProxyIterator.java | 4 +- .../impl/expressions/ProxyMap.java | 4 +- .../impl/expressions/RuntimeDescriptor.java | 4 +- .../impl/expressions/TaskDescriptor.java | 10 +- .../impl/expressions/WorkflowDescriptor.java | 12 +- .../impl/lifecycle/EventType.java | 6 +- .../impl/lifecycle/TaskCancelledEvent.java | 8 +- .../impl/lifecycle/TaskCompletedEvent.java | 8 +- .../impl/lifecycle/TaskEvent.java | 8 +- .../impl/lifecycle/TaskFailedEvent.java | 8 +- .../impl/lifecycle/TaskResumedEvent.java | 8 +- .../impl/lifecycle/TaskRetriedEvent.java | 8 +- .../impl/lifecycle/TaskStartedEvent.java | 8 +- .../impl/lifecycle/TaskSuspendedEvent.java | 8 +- .../lifecycle/TraceExecutionListener.java | 4 +- .../lifecycle/WorkflowCancelledEvent.java | 6 +- .../lifecycle/WorkflowCompletedEvent.java | 8 +- .../impl/lifecycle/WorkflowEvent.java | 6 +- .../WorkflowExecutionCompletableListener.java | 6 +- .../lifecycle/WorkflowExecutionListener.java | 6 +- .../WorkflowExecutionListenerAdapter.java | 4 +- .../impl/lifecycle/WorkflowFailedEvent.java | 6 +- .../impl/lifecycle/WorkflowResumedEvent.java | 6 +- .../impl/lifecycle/WorkflowStartedEvent.java | 6 +- .../impl/lifecycle/WorkflowStatusEvent.java | 8 +- .../lifecycle/WorkflowSuspendedEvent.java | 6 +- .../ce/AbstractLifeCyclePublisher.java | 72 ++++++------ .../ce/DefaultLifeCycleCloudEventFactory.java | 32 +++--- ...InputOutputLifeCycleCloudEventFactory.java | 12 +- .../impl/lifecycle/ce/TaskCEData.java | 10 +- .../lifecycle/ce/TaskCancelledCEData.java | 6 +- .../lifecycle/ce/TaskCompletedCEData.java | 6 +- .../ce/TaskCompletedCEDataWithOutput.java | 6 +- .../impl/lifecycle/ce/TaskFailedCEData.java | 8 +- .../impl/lifecycle/ce/TaskResumedCEData.java | 6 +- .../impl/lifecycle/ce/TaskRetriedCEData.java | 6 +- .../impl/lifecycle/ce/TaskStartedCEData.java | 6 +- .../ce/TaskStartedCEDataWithInput.java | 6 +- .../lifecycle/ce/TaskSuspendedCEData.java | 6 +- .../impl/lifecycle/ce/WorkflowCEData.java | 8 +- .../lifecycle/ce/WorkflowCancelledCEData.java | 6 +- .../lifecycle/ce/WorkflowCompletedCEData.java | 6 +- .../ce/WorkflowCompletedCEDataWithOutput.java | 6 +- .../ce/WorkflowDefinitionCEData.java | 8 +- .../lifecycle/ce/WorkflowFailedCEData.java | 8 +- .../WorkflowLifeCycleCloudEventFactory.java | 32 +++--- .../lifecycle/ce/WorkflowResumedCEData.java | 6 +- .../lifecycle/ce/WorkflowStartedCEData.java | 6 +- .../ce/WorkflowStartedCEDataWithInput.java | 6 +- .../ce/WorkflowStatusCEDataEvent.java | 8 +- .../lifecycle/ce/WorkflowSuspendedCEData.java | 6 +- .../impl/marshaller/AbstractInputBuffer.java | 10 +- .../impl/marshaller/AbstractOutputBuffer.java | 6 +- .../marshaller/CustomObjectMarshaller.java | 6 +- .../impl/marshaller/DefaultBufferFactory.java | 4 +- .../impl/marshaller/DefaultInputBuffer.java | 4 +- .../impl/marshaller/DefaultOutputBuffer.java | 4 +- .../impl/marshaller/MarshallingUtils.java | 6 +- .../impl/marshaller/TaskStatus.java | 4 +- .../openworkflow}/impl/marshaller/Type.java | 4 +- .../marshaller/WorkflowBufferFactory.java | 4 +- .../impl/marshaller/WorkflowInputBuffer.java | 4 +- .../impl/marshaller/WorkflowOutputBuffer.java | 4 +- .../impl/resources/CachedResource.java | 4 +- .../impl/resources/ClasspathResource.java | 4 +- .../impl/resources/DefaultResourceLoader.java | 6 +- .../DefaultResourceLoaderFactory.java | 6 +- .../resources/ExternalResourceHandler.java | 4 +- .../impl/resources/FileResource.java | 4 +- .../impl/resources/GitHubHelper.java | 4 +- .../impl/resources/HttpResource.java | 6 +- .../impl/resources/ResourceLoader.java | 32 +++--- .../impl/resources/ResourceLoaderFactory.java | 6 +- .../impl/resources/ResourceLoaderUtils.java | 4 +- .../impl/resources/URITemplateResolver.java | 12 +- .../scheduler/AllStrategyCorrelationInfo.java | 8 +- .../AllStrategyCorrelationInfoFactory.java | 6 +- .../impl/scheduler/Cancellable.java | 4 +- .../impl/scheduler/CronResolver.java | 4 +- .../impl/scheduler/CronResolverFactory.java | 6 +- .../scheduler/DefaultWorkflowScheduler.java | 8 +- .../scheduler/EventWorkflowScheduler.java | 10 +- .../ExecutorServiceWorkflowScheduler.java | 6 +- .../InMemoryAllStrategyCorrelationInfo.java | 6 +- .../scheduler/ScheduledEventConsumer.java | 22 ++-- .../scheduler/ScheduledInstanceRunnable.java | 10 +- .../ScheduledServiceCancellable.java | 4 +- .../impl/scheduler/WorkflowScheduler.java | 10 +- .../impl/schema/AbstractSchemaValidator.java | 10 +- .../impl/schema/SchemaValidator.java | 8 +- .../impl/schema/SchemaValidatorFactory.java | 10 +- .../impl/scripts/ScriptContext.java | 6 +- .../impl/scripts/ScriptLanguageId.java | 4 +- .../impl/scripts/ScriptRunner.java | 14 +-- .../impl/scripts/ScriptUtils.java | 18 +-- .../impl/scripts/StreamSuppliers.java | 4 +- .../impl/utils/RandomFactory.java | 4 +- .../reflect-config.json | 46 ++++---- ...orkflow.impl.executors.CallableTaskBuilder | 1 - ...orkflow.impl.executors.RunnableTaskBuilder | 3 - ...orkflow.impl.executors.CallableTaskBuilder | 1 + ...orkflow.impl.executors.RunnableTaskBuilder | 3 + .../openworkflow}/impl/LowestPriority.java | 4 +- .../impl/LowestPriorityListener.java | 6 +- .../openworkflow}/impl/MediumPriority.java | 4 +- .../impl/MediumPriorityListener.java | 6 +- .../impl/ServicePriorityTest.java | 4 +- .../openworkflow}/impl/TopPriority.java | 4 +- .../impl/TopPriorityListener.java | 6 +- .../impl/WorkflowAdditionalObjectTest.java | 8 +- .../impl/WorkflowListenerTest.java | 6 +- .../openworkflow}/impl/WorkflowUtilsTest.java | 4 +- .../openworkflow}/impl/auth/JWTTest.java | 4 +- .../impl/marshaller/Employee.java | 4 +- .../impl/marshaller/MarshallingUtilsTest.java | 4 +- .../impl/marshaller/NonSerializableClass.java | 4 +- .../openworkflow}/impl/marshaller/Person.java | 4 +- .../impl/marshaller/SerializableClass.java | 4 +- .../impl/marshaller/Student.java | 4 +- ...io.serverlessworkflow.impl.ServicePriority | 3 - .../org.openworkflow.impl.ServicePriority | 3 + impl/cron/pom.xml | 12 +- .../impl/cron/CronUtilsResolver.java | 6 +- .../impl/cron/CronUtilsResolverFactory.java | 8 +- ...orkflow.impl.scheduler.CronResolverFactory | 1 - ...orkflow.impl.scheduler.CronResolverFactory | 1 + impl/function/pom.xml | 18 +-- .../function/JacksonFunctionReader.java | 12 +- .../io.serverlessworkflow.impl.FunctionReader | 1 - .../org.openworkflow.impl.FunctionReader | 1 + impl/grpc/pom.xml | 16 +-- .../grpc/CollectionStreamObserver.java | 10 +- .../executors/grpc/FileDescriptorReader.java | 6 +- .../impl/executors/grpc/GrpcExecutor.java | 16 +-- .../executors/grpc/GrpcExecutorBuilder.java | 22 ++-- .../executors/grpc/ItemStreamObserver.java | 10 +- .../executors/grpc/ModelStreamObserver.java | 16 +-- .../executors/grpc/ProtobufMessageUtils.java | 10 +- ...orkflow.impl.executors.CallableTaskBuilder | 1 - ...orkflow.impl.executors.CallableTaskBuilder | 1 + impl/http/pom.xml | 12 +- .../http/AbstractRequestExecutor.java | 20 ++-- .../http/CallableTaskHttpExecutorBuilder.java | 24 ++-- .../executors/http/HttpClientResolver.java | 10 +- .../executors/http/HttpConverterResolver.java | 8 +- .../impl/executors/http/HttpExecutor.java | 16 +-- .../executors/http/HttpExecutorBuilder.java | 20 ++-- .../executors/http/HttpModelConverter.java | 8 +- .../executors/http/HttpRequestDecorator.java | 6 +- .../impl/executors/http/RequestExecutor.java | 10 +- .../http/WithBodyRequestExecutor.java | 18 +-- .../http/WithoutBodyRequestExecutor.java | 12 +- .../http/auth/JaxRSAccessTokenProvider.java | 26 ++--- .../auth/JaxRSAccessTokenProviderFactory.java | 12 +- ...kflow.impl.auth.AccessTokenProviderFactory | 1 - ...orkflow.impl.executors.CallableTaskBuilder | 1 - ...kflow.impl.auth.AccessTokenProviderFactory | 1 + ...orkflow.impl.executors.CallableTaskBuilder | 1 + impl/jackson/pom.xml | 38 +++---- impl/javascript/pom.xml | 12 +- .../script/js/JavaScriptScriptTaskRunner.java | 20 ++-- ...rverlessworkflow.impl.scripts.ScriptRunner | 1 - ...org.openworkflow.impl.scripts.ScriptRunner | 1 + impl/jq/pom.xml | 14 +-- .../impl/expressions/jq/JQExpression.java | 28 ++--- .../expressions/jq/JQExpressionFactory.java | 12 +- ...orkflow.impl.expressions.ExpressionFactory | 1 - ...orkflow.impl.expressions.ExpressionFactory | 1 + .../jq/JQExpressionFactoryTest.java | 16 +-- impl/json-utils/pom.xml | 12 +- .../impl/jackson/FunctionBaseJsonNode.java | 4 +- .../impl/jackson/FunctionJsonNode.java | 4 +- .../impl/jackson/JacksonCloudEventUtils.java | 4 +- .../openworkflow}/impl/jackson/JsonUtils.java | 6 +- .../impl/jackson/MergeUtils.java | 4 +- .../impl/jackson/ObjectMapperFactory.java | 6 +- .../jackson/ObjectMapperFactoryProvider.java | 6 +- .../jackson/JacksonCloudEventUtilsTest.java | 4 +- .../impl/jackson/JsonUtilsStaticInitTest.java | 4 +- impl/jwt-impl/pom.xml | 16 +-- .../jackson/JacksonModelConverterFactory.java | 14 +-- .../oauth/jackson/JacksonJWTConverter.java | 10 +- ...l.additional.NamedWorkflowAdditionalObject | 1 - ....serverlessworkflow.impl.auth.JWTConverter | 1 - ...l.additional.NamedWorkflowAdditionalObject | 1 + .../org.openworkflow.impl.auth.JWTConverter | 1 + .../impl/http/jwt/JacksonJWTImplTest.java | 8 +- impl/lifecycleevent/pom.xml | 18 +-- .../events/JacksonLifeCyclePublisher.java | 8 +- ...w.impl.lifecycle.WorkflowExecutionListener | 1 - ...w.impl.lifecycle.WorkflowExecutionListener | 1 + .../events/JacksonLifeCyclePublisherTest.java | 88 +++++++-------- impl/model/pom.xml | 14 +-- .../jackson/AbstractJacksonMarshaller.java | 12 +- .../impl/model/jackson/JacksonModel.java | 10 +- .../model/jackson/JacksonModelCollection.java | 12 +- .../JacksonModelCollectionDeserializer.java | 4 +- .../JacksonModelCollectionMarshaller.java | 4 +- .../JacksonModelCollectionSerializer.java | 4 +- .../jackson/JacksonModelDeserializer.java | 4 +- .../model/jackson/JacksonModelFactory.java | 14 +-- .../model/jackson/JacksonModelMarshaller.java | 6 +- .../model/jackson/JacksonModelSerializer.java | 4 +- .../jackson/JacksonObjectMarshaller.java | 4 +- .../reflect-config.json | 8 +- ...rverlessworkflow.impl.WorkflowModelFactory | 1 - ...low.impl.marshaller.CustomObjectMarshaller | 3 - ...org.openworkflow.impl.WorkflowModelFactory | 1 + ...low.impl.marshaller.CustomObjectMarshaller | 3 + .../impl/model/jackson/Employee.java | 4 +- .../JacksonModelSerializationTest.java | 14 +-- .../impl/model/jackson/JacksonModelTest.java | 10 +- impl/openapi-jackson/pom.xml | 20 ++-- .../jackson/JacksonUnifiedOpenAPIMixIn.java | 4 +- .../JacksonUnifiedOpenAPIMixInModule.java | 6 +- .../jackson/JacksonUnifiedOpenAPIReader.java | 12 +- .../JacksonUnifiedOpenAPIReaderFactory.java | 10 +- .../reflect-config.json | 24 ++-- .../com.fasterxml.jackson.databind.Module | 2 +- ...l.additional.NamedWorkflowAdditionalObject | 1 - ...l.additional.NamedWorkflowAdditionalObject | 1 + .../jackson/JacksonOpenAPIProcessorTest.java | 8 +- impl/openapi/pom.xml | 16 +-- .../executors/openapi/OpenAPIExecutor.java | 22 ++-- .../openapi/OpenAPIExecutorBuilder.java | 22 ++-- .../executors/openapi/OpenAPIProcessor.java | 4 +- .../openapi/OperationDefinition.java | 4 +- .../openapi/OperationPathResolver.java | 16 +-- .../openapi/ParameterDefinition.java | 4 +- .../executors/openapi/UnifiedOpenAPI.java | 4 +- .../openapi/UnifiedOpenAPIReader.java | 6 +- ...orkflow.impl.executors.CallableTaskBuilder | 1 - ...orkflow.impl.executors.CallableTaskBuilder | 1 + .../openapi/OpenAPIProcessorTest.java | 8 +- impl/persistence/README.md | 2 +- impl/persistence/api/pom.xml | 12 +- .../AbstractAllStrategyCorrelationInfo.java | 12 +- .../AbstractAsyncPersistenceExecutor.java | 6 +- .../AbstractPersistenceInstanceReader.java | 8 +- .../AbstractPersistenceInstanceWriter.java | 10 +- .../persistence/AsyncPersistenceExecutor.java | 4 +- .../impl/persistence/CompletedTaskInfo.java | 6 +- .../persistence/CorrelationOperations.java | 4 +- .../DefaultPersistenceInstanceHandlers.java | 6 +- .../DefaultPersistenceInstanceReader.java | 8 +- .../DefaultPersistenceInstanceWriter.java | 6 +- .../OperationAllStrategyCorrelationInfo.java | 8 +- ...tionAllStrategyCorrelationInfoFactory.java | 10 +- ...ceAllStrategyCorrelationInfoFactories.java | 6 +- .../PersistenceApplicationBuilder.java | 8 +- .../impl/persistence/PersistenceExecutor.java | 6 +- .../PersistenceInstanceHandlers.java | 6 +- .../persistence/PersistenceInstanceInfo.java | 6 +- .../PersistenceInstanceOperations.java | 12 +- .../PersistenceInstanceReader.java | 8 +- .../persistence/PersistenceInstanceStore.java | 4 +- .../PersistenceInstanceTransaction.java | 6 +- .../PersistenceInstanceWriter.java | 8 +- .../impl/persistence/PersistenceTaskInfo.java | 4 +- .../persistence/PersistenceWorkflowInfo.java | 8 +- .../impl/persistence/RetriedTaskInfo.java | 4 +- .../StoreAllStrategyCorrelationInfo.java | 8 +- ...toreAllStrategyCorrelationInfoFactory.java | 10 +- .../TransactedPersistenceInstanceWriter.java | 8 +- .../WorkflowPersistenceInstance.java | 22 ++-- .../WorkflowPersistenceListener.java | 24 ++-- .../hashing/DefaultHashFactory.java | 8 +- .../persistence/hashing/DefaultHashIndex.java | 4 +- .../impl/persistence/hashing/HashFactory.java | 6 +- .../impl/persistence/hashing/HashIndex.java | 4 +- .../impl/persistence/hashing/HashItem.java | 6 +- .../hashing/HashMappingCoordinator.java | 4 +- .../persistence/hashing/HashMappingInfo.java | 4 +- .../persistence/hashing/IntegerHashItem.java | 8 +- .../impl/persistence/hashing/LRUCache.java | 4 +- .../impl/persistence/hashing/MD5HashItem.java | 8 +- .../persistence/metadata/MetaTransient.java | 4 +- .../metadata/PersistenceMetaUtils.java | 6 +- .../hashing/HashMappingCoordinatorTest.java | 6 +- .../persistence/hashing/LRUCacheTest.java | 4 +- impl/persistence/bigmap/pom.xml | 12 +- .../bigmap/BigMapInstanceTransaction.java | 26 ++--- .../bigmap/BytesMapInstanceTransaction.java | 48 ++++---- impl/persistence/mvstore/README.md | 2 +- impl/persistence/mvstore/pom.xml | 16 +-- .../mvstore/MVStorePersistenceStore.java | 18 +-- .../mvstore/MVStoreTransaction.java | 18 +-- .../HashingMVStorePersistenceTest.java | 8 +- .../mvstore/MD5MVStorePersistenceTest.java | 8 +- .../mvstore/MVStoreCorrelationTest.java | 8 +- .../mvstore/MVStorePersistenceStoreTest.java | 14 +-- impl/persistence/pom.xml | 8 +- impl/persistence/tests/pom.xml | 20 ++-- .../AbstractCorrelationPersistenceTest.java | 24 ++-- .../test/AbstractHandlerPersistenceTest.java | 46 ++++---- ...tOperationsCorrelationPersistenceTest.java | 10 +- .../test/AbstractPersistenceTest.java | 10 +- ...stractStoreCorrelationPersistenceTest.java | 10 +- impl/pom.xml | 104 +++++++++--------- impl/python/pom.xml | 12 +- .../script/python/PythonScriptTaskRunner.java | 18 +-- ...rverlessworkflow.impl.scripts.ScriptRunner | 1 - ...org.openworkflow.impl.scripts.ScriptRunner | 1 + impl/template/pom.xml | 12 +- .../template/JaxrsURITemplateResolver.java | 12 +- ...orkflow.impl.resources.URITemplateResolver | 1 - ...orkflow.impl.resources.URITemplateResolver | 1 + impl/test/pom.xml | 62 +++++------ .../impl/auth/OAuthRequestBuilderTest.java | 16 +-- .../impl/test/A2AExecutorTest.java | 12 +- .../impl/test/AccessTokenProvider.java | 4 +- .../impl/test/BasicAuthHttpTest.java | 14 +-- .../impl/test/CancelMetadataTest.java | 40 +++---- .../impl/test/ContainerTest.java | 10 +- .../impl/test/CoreTaskTypesTest.java | 28 ++--- .../impl/test/CorrelationTest.java | 24 ++-- ...CustomAuthProviderFactoryOverrideTest.java | 26 ++--- .../impl/test/CustomFunctionTest.java | 12 +- .../openworkflow}/impl/test/DBGenerator.java | 22 ++-- .../impl/test/DateTimeDescriptorTest.java | 8 +- .../impl/test/DigestAuthHttpTest.java | 16 +-- .../impl/test/EmitExecutorTest.java | 16 +-- .../impl/test/EventDefinitionTest.java | 18 +-- .../impl/test/ForTaskMissingInTest.java | 10 +- .../openworkflow}/impl/test/ForkWaitTest.java | 22 ++-- .../impl/test/HTTPWorkflowDefinitionTest.java | 16 +-- .../impl/test/LifeCycleEventsTest.java | 75 ++++++------- .../impl/test/MvStorePersistenceTest.java | 24 ++-- .../test/OAuthHTTPWorkflowDefinitionTest.java | 12 +- .../impl/test/OAuthUtilsTest.java | 28 ++--- .../openworkflow}/impl/test/OpenAPITest.java | 14 +-- .../OpenIDCHTTPWorkflowDefinitionTest.java | 12 +- .../impl/test/ResolvePolicyTest.java | 24 ++-- .../impl/test/RetryTimeoutTest.java | 24 ++-- .../impl/test/RunScriptJavaScriptTest.java | 14 +-- .../impl/test/RunShellExecutorTest.java | 14 +-- .../impl/test/ScheduleEventConsumerTest.java | 16 +-- .../impl/test/SchedulerTest.java | 12 +- .../impl/test/SecretExpressionTest.java | 12 +- .../impl/test/SubWorkflowTest.java | 14 +-- .../test/TaskCounterPerInstanceListener.java | 14 +-- .../impl/test/UndefinedAuthReferenceTest.java | 12 +- .../impl/test/WaitExecutorTest.java | 22 ++-- .../impl/test/WorkflowDefinitionTest.java | 20 ++-- .../WorkflowExecutionListenerOutputTest.java | 16 +-- .../impl/test/WorkflowInstanceIdTest.java | 12 +- .../grpc/GrpcBiDirectionalStreamingTest.java | 26 ++--- .../test/grpc/GrpcClientStreamingTest.java | 24 ++-- .../test/grpc/GrpcServerStreamingTest.java | 26 ++--- .../impl/test/grpc/GrpcUnaryArgsExprTest.java | 26 ++--- .../impl/test/grpc/GrpcUnaryTest.java | 26 ++--- .../ContributorBiDiStreamingHandler.java | 8 +- .../ContributorClientStreamingHandler.java | 8 +- .../ContributorServerStreamingHandler.java | 8 +- .../ContributorUnaryArgsExprHandler.java | 8 +- .../grpc/handlers/PersonUnaryHandler.java | 4 +- .../impl/test/junit/BinaryCheckUtil.java | 4 +- .../junit/DisabledIfProtocUnavailable.java | 4 +- .../junit/DisabledIfPythonUnavailable.java | 4 +- .../impl/test/junit/ProtocCheckCondition.java | 6 +- .../impl/test/junit/PythonCheckCondition.java | 6 +- .../grpc/proto/contributors.proto | 2 +- .../workflows-samples/validation_test.yaml | 21 ++++ impl/validation/pom.xml | 18 +-- .../jackson/schema/JsonSchemaValidator.java | 6 +- .../schema/JsonSchemaValidatorFactory.java | 16 +-- ...orkflow.impl.schema.SchemaValidatorFactory | 1 - ...orkflow.impl.schema.SchemaValidatorFactory | 1 + mermaid/README.md | 22 ++-- mermaid/pom.xml | 20 ++-- .../openworkflow}/mermaid/CallNode.java | 10 +- .../mermaid/DefaultNodeRenderer.java | 4 +- .../openworkflow}/mermaid/Edge.java | 4 +- .../openworkflow}/mermaid/EmitNode.java | 8 +- .../mermaid/EndpointStringify.java | 22 ++-- .../openworkflow}/mermaid/ForNode.java | 8 +- .../openworkflow}/mermaid/ForkNode.java | 8 +- .../openworkflow}/mermaid/Ids.java | 6 +- .../openworkflow}/mermaid/IteratorNode.java | 6 +- .../openworkflow}/mermaid/ListenNode.java | 10 +- .../openworkflow}/mermaid/Mermaid.java | 8 +- .../openworkflow}/mermaid/MermaidGraph.java | 14 +-- .../openworkflow}/mermaid/MermaidInk.java | 4 +- .../mermaid/MermaidRenderer.java | 4 +- .../openworkflow}/mermaid/Node.java | 4 +- .../openworkflow}/mermaid/NodeBuilder.java | 30 ++--- .../openworkflow}/mermaid/NodeRenderer.java | 4 +- .../openworkflow}/mermaid/NodeType.java | 4 +- .../openworkflow}/mermaid/RaiseNode.java | 6 +- .../openworkflow}/mermaid/RunNode.java | 8 +- .../openworkflow}/mermaid/SubgraphNode.java | 4 +- .../mermaid/SubgraphNodeRenderer.java | 4 +- .../openworkflow}/mermaid/SwitchNode.java | 8 +- .../openworkflow}/mermaid/TaskNode.java | 6 +- .../mermaid/TaskSubgraphNode.java | 6 +- .../openworkflow}/mermaid/TryCatchNode.java | 6 +- .../openworkflow}/mermaid/WaitNode.java | 10 +- .../mermaid/ClasspathYamlFinder.java | 4 +- .../mermaid/MermaidSmokeTest.java | 8 +- pom.xml | 36 +++--- serialization/pom.xml | 12 +- .../serialization/DeserializeHelper.java | 6 +- .../serialization/SerializeHelper.java | 6 +- types/pom.xml | 20 ++-- .../openworkflow}/types/Defaults.java | 4 +- .../openworkflow}/types/Errors.java | 4 +- 770 files changed, 4373 insertions(+), 4369 deletions(-) rename annotations/src/main/java/{io/serverlessworkflow => org/openworkflow}/annotations/AdditionalProperties.java (87%) rename annotations/src/main/java/{io/serverlessworkflow => org/openworkflow}/annotations/ExclusiveUnion.java (88%) rename annotations/src/main/java/{io/serverlessworkflow => org/openworkflow}/annotations/InclusiveUnion.java (88%) rename annotations/src/main/java/{io/serverlessworkflow => org/openworkflow}/annotations/Item.java (87%) rename annotations/src/main/java/{io/serverlessworkflow => org/openworkflow}/annotations/ItemKey.java (87%) rename annotations/src/main/java/{io/serverlessworkflow => org/openworkflow}/annotations/ItemValue.java (87%) rename annotations/src/main/java/{io/serverlessworkflow => org/openworkflow}/annotations/OneOfSetter.java (88%) rename annotations/src/main/java/{io/serverlessworkflow => org/openworkflow}/annotations/OneOfValueProvider.java (84%) rename api/src/main/java/{io/serverlessworkflow => org/openworkflow}/api/DirectReader.java (89%) rename api/src/main/java/{io/serverlessworkflow => org/openworkflow}/api/ObjectMapperFactory.java (86%) rename api/src/main/java/{io/serverlessworkflow => org/openworkflow}/api/ValidationReader.java (94%) rename api/src/main/java/{io/serverlessworkflow => org/openworkflow}/api/WorkflowFormat.java (95%) rename api/src/main/java/{io/serverlessworkflow => org/openworkflow}/api/WorkflowReader.java (98%) rename api/src/main/java/{io/serverlessworkflow => org/openworkflow}/api/WorkflowReaderOperations.java (86%) rename api/src/main/java/{io/serverlessworkflow => org/openworkflow}/api/WorkflowWriter.java (96%) rename api/src/main/java/{io/serverlessworkflow => org/openworkflow}/serialization/BeanDeserializerModifierWithValidation.java (91%) rename api/src/main/java/{io/serverlessworkflow => org/openworkflow}/serialization/BeanDeserializerWithValidation.java (93%) rename api/src/main/java/{io/serverlessworkflow => org/openworkflow}/serialization/URIDeserializer.java (91%) rename api/src/main/java/{io/serverlessworkflow => org/openworkflow}/serialization/URISerializer.java (89%) rename api/src/test/java/{io/serverlessworkflow => org/openworkflow}/api/ApiTest.java (85%) rename api/src/test/java/{io/serverlessworkflow => org/openworkflow}/api/FeaturesTest.java (86%) rename examples/simpleGet/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/BlockingExample.java (88%) rename examples/simpleGet/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/NotBlockingExample.java (88%) rename fluent/spec/src/main/java/{io/serverlessworkflow => org/openworkflow}/fluent/spec/AbstractEmitTaskBuilder.java (83%) rename fluent/spec/src/main/java/{io/serverlessworkflow => org/openworkflow}/fluent/spec/AbstractEventConsumptionStrategyBuilder.java (89%) rename fluent/spec/src/main/java/{io/serverlessworkflow => org/openworkflow}/fluent/spec/AbstractEventFilterBuilder.java (87%) rename fluent/spec/src/main/java/{io/serverlessworkflow => org/openworkflow}/fluent/spec/AbstractEventPropertiesBuilder.java (86%) rename fluent/spec/src/main/java/{io/serverlessworkflow => org/openworkflow}/fluent/spec/AbstractForkTaskBuilder.java (88%) rename fluent/spec/src/main/java/{io/serverlessworkflow => org/openworkflow}/fluent/spec/AbstractListenTaskBuilder.java (86%) rename fluent/spec/src/main/java/{io/serverlessworkflow => org/openworkflow}/fluent/spec/BaseDoTaskBuilder.java (91%) rename fluent/spec/src/main/java/{io/serverlessworkflow => org/openworkflow}/fluent/spec/BaseRaiseTaskBuilder.java (82%) rename fluent/spec/src/main/java/{io/serverlessworkflow => org/openworkflow}/fluent/spec/BaseTaskItemListBuilder.java (94%) rename fluent/spec/src/main/java/{io/serverlessworkflow => org/openworkflow}/fluent/spec/BaseTryTaskBuilder.java (92%) rename fluent/spec/src/main/java/{io/serverlessworkflow => org/openworkflow}/fluent/spec/BaseWorkflowBuilder.java (90%) rename fluent/spec/src/main/java/{io/serverlessworkflow => org/openworkflow}/fluent/spec/BasicAuthenticationPolicyBuilder.java (82%) rename fluent/spec/src/main/java/{io/serverlessworkflow => org/openworkflow}/fluent/spec/BearerAuthenticationPolicyBuilder.java (80%) rename fluent/spec/src/main/java/{io/serverlessworkflow => org/openworkflow}/fluent/spec/CallGrpcTaskBuilder.java (76%) rename fluent/spec/src/main/java/{io/serverlessworkflow => org/openworkflow}/fluent/spec/CallHttpTaskBuilder.java (82%) rename fluent/spec/src/main/java/{io/serverlessworkflow => org/openworkflow}/fluent/spec/CallOpenAPITaskBuilder.java (73%) rename fluent/spec/src/main/java/{io/serverlessworkflow => org/openworkflow}/fluent/spec/DigestAuthenticationPolicyBuilder.java (82%) rename fluent/spec/src/main/java/{io/serverlessworkflow => org/openworkflow}/fluent/spec/DoTaskBuilder.java (95%) rename fluent/spec/src/main/java/{io/serverlessworkflow => org/openworkflow}/fluent/spec/DocumentBuilder.java (91%) rename fluent/spec/src/main/java/{io/serverlessworkflow => org/openworkflow}/fluent/spec/DurationInlineBuilder.java (88%) rename fluent/spec/src/main/java/{io/serverlessworkflow => org/openworkflow}/fluent/spec/EmitTaskBuilder.java (88%) rename fluent/spec/src/main/java/{io/serverlessworkflow => org/openworkflow}/fluent/spec/EventConsumptionStrategyBuilder.java (80%) rename fluent/spec/src/main/java/{io/serverlessworkflow => org/openworkflow}/fluent/spec/EventFilterBuilder.java (88%) rename fluent/spec/src/main/java/{io/serverlessworkflow => org/openworkflow}/fluent/spec/EventPropertiesBuilder.java (86%) rename fluent/spec/src/main/java/{io/serverlessworkflow => org/openworkflow}/fluent/spec/ExportBuilder.java (76%) rename fluent/spec/src/main/java/{io/serverlessworkflow => org/openworkflow}/fluent/spec/ForEachTaskBuilder.java (87%) rename fluent/spec/src/main/java/{io/serverlessworkflow => org/openworkflow}/fluent/spec/ForkTaskBuilder.java (84%) rename fluent/spec/src/main/java/{io/serverlessworkflow => org/openworkflow}/fluent/spec/InputBuilder.java (86%) rename fluent/spec/src/main/java/{io/serverlessworkflow => org/openworkflow}/fluent/spec/ListenTaskBuilder.java (90%) rename fluent/spec/src/main/java/{io/serverlessworkflow => org/openworkflow}/fluent/spec/ListenToBuilder.java (78%) rename fluent/spec/src/main/java/{io/serverlessworkflow => org/openworkflow}/fluent/spec/ListenToConfigurerBuilder.java (95%) rename fluent/spec/src/main/java/{io/serverlessworkflow => org/openworkflow}/fluent/spec/OAuth2AuthenticationPolicyBuilder.java (88%) rename fluent/spec/src/main/java/{io/serverlessworkflow => org/openworkflow}/fluent/spec/OIDCBuilder.java (89%) rename fluent/spec/src/main/java/{io/serverlessworkflow => org/openworkflow}/fluent/spec/OpenIdConnectAuthenticationPolicyBuilder.java (81%) rename fluent/spec/src/main/java/{io/serverlessworkflow => org/openworkflow}/fluent/spec/OutputBuilder.java (77%) rename fluent/spec/src/main/java/{io/serverlessworkflow => org/openworkflow}/fluent/spec/RaiseTaskBuilder.java (86%) rename fluent/spec/src/main/java/{io/serverlessworkflow => org/openworkflow}/fluent/spec/ReferenceableAuthenticationPolicyBuilder.java (91%) rename fluent/spec/src/main/java/{io/serverlessworkflow => org/openworkflow}/fluent/spec/ScheduleBuilder.java (95%) rename fluent/spec/src/main/java/{io/serverlessworkflow => org/openworkflow}/fluent/spec/SetTaskBuilder.java (83%) rename fluent/spec/src/main/java/{io/serverlessworkflow => org/openworkflow}/fluent/spec/SubscriptionIteratorBuilder.java (90%) rename fluent/spec/src/main/java/{io/serverlessworkflow => org/openworkflow}/fluent/spec/SwitchTaskBuilder.java (85%) rename fluent/spec/src/main/java/{io/serverlessworkflow => org/openworkflow}/fluent/spec/TaskBaseBuilder.java (85%) rename fluent/spec/src/main/java/{io/serverlessworkflow => org/openworkflow}/fluent/spec/TaskItemListBuilder.java (94%) rename fluent/spec/src/main/java/{io/serverlessworkflow => org/openworkflow}/fluent/spec/TaskMetadataBuilder.java (90%) rename fluent/spec/src/main/java/{io/serverlessworkflow => org/openworkflow}/fluent/spec/TimeoutBuilder.java (88%) rename fluent/spec/src/main/java/{io/serverlessworkflow => org/openworkflow}/fluent/spec/TryTaskBuilder.java (87%) rename fluent/spec/src/main/java/{io/serverlessworkflow => org/openworkflow}/fluent/spec/UriTemplateBuilder.java (83%) rename fluent/spec/src/main/java/{io/serverlessworkflow => org/openworkflow}/fluent/spec/UseAuthenticationsBuilder.java (88%) rename fluent/spec/src/main/java/{io/serverlessworkflow => org/openworkflow}/fluent/spec/UseBuilder.java (87%) rename fluent/spec/src/main/java/{io/serverlessworkflow => org/openworkflow}/fluent/spec/WaitTaskBuilder.java (89%) rename fluent/spec/src/main/java/{io/serverlessworkflow => org/openworkflow}/fluent/spec/WorkflowBuilder.java (86%) rename fluent/spec/src/main/java/{io/serverlessworkflow => org/openworkflow}/fluent/spec/WorkflowTaskBuilder.java (77%) rename fluent/spec/src/main/java/{io/serverlessworkflow => org/openworkflow}/fluent/spec/configurers/AuthenticationConfigurer.java (77%) rename fluent/spec/src/main/java/{io/serverlessworkflow => org/openworkflow}/fluent/spec/configurers/CallGrpcConfigurer.java (78%) rename fluent/spec/src/main/java/{io/serverlessworkflow => org/openworkflow}/fluent/spec/configurers/CallHttpConfigurer.java (78%) rename fluent/spec/src/main/java/{io/serverlessworkflow => org/openworkflow}/fluent/spec/configurers/CallOpenAPIConfigurer.java (78%) rename fluent/spec/src/main/java/{io/serverlessworkflow => org/openworkflow}/fluent/spec/configurers/EmitConfigurer.java (78%) rename fluent/spec/src/main/java/{io/serverlessworkflow => org/openworkflow}/fluent/spec/configurers/EventPropertiesConfigurer.java (78%) rename fluent/spec/src/main/java/{io/serverlessworkflow => org/openworkflow}/fluent/spec/configurers/ForEachConfigurer.java (74%) rename fluent/spec/src/main/java/{io/serverlessworkflow => org/openworkflow}/fluent/spec/configurers/ListenConfigurer.java (78%) rename fluent/spec/src/main/java/{io/serverlessworkflow => org/openworkflow}/fluent/spec/configurers/RaiseConfigurer.java (78%) rename fluent/spec/src/main/java/{io/serverlessworkflow => org/openworkflow}/fluent/spec/configurers/RetryConfigurer.java (78%) rename fluent/spec/src/main/java/{io/serverlessworkflow => org/openworkflow}/fluent/spec/configurers/SetConfigurer.java (78%) rename fluent/spec/src/main/java/{io/serverlessworkflow => org/openworkflow}/fluent/spec/configurers/SwitchConfigurer.java (78%) rename fluent/spec/src/main/java/{io/serverlessworkflow => org/openworkflow}/fluent/spec/configurers/TasksConfigurer.java (78%) rename fluent/spec/src/main/java/{io/serverlessworkflow => org/openworkflow}/fluent/spec/configurers/TryCatchConfigurer.java (74%) rename fluent/spec/src/main/java/{io/serverlessworkflow => org/openworkflow}/fluent/spec/configurers/TryConfigurer.java (73%) rename fluent/spec/src/main/java/{io/serverlessworkflow => org/openworkflow}/fluent/spec/configurers/UseConfigurer.java (79%) rename fluent/spec/src/main/java/{io/serverlessworkflow => org/openworkflow}/fluent/spec/configurers/WorkflowConfigurer.java (78%) rename fluent/spec/src/main/java/{io/serverlessworkflow => org/openworkflow}/fluent/spec/dsl/AbstractEventFilterSpec.java (84%) rename fluent/spec/src/main/java/{io/serverlessworkflow => org/openworkflow}/fluent/spec/dsl/BaseCallHttpSpec.java (94%) rename fluent/spec/src/main/java/{io/serverlessworkflow => org/openworkflow}/fluent/spec/dsl/BaseListenSpec.java (91%) rename fluent/spec/src/main/java/{io/serverlessworkflow => org/openworkflow}/fluent/spec/dsl/CallGrpcSpec.java (83%) rename fluent/spec/src/main/java/{io/serverlessworkflow => org/openworkflow}/fluent/spec/dsl/CallHttpSpec.java (83%) rename fluent/spec/src/main/java/{io/serverlessworkflow => org/openworkflow}/fluent/spec/dsl/CallOpenAPISpec.java (83%) rename fluent/spec/src/main/java/{io/serverlessworkflow => org/openworkflow}/fluent/spec/dsl/DSL.java (95%) rename fluent/spec/src/main/java/{io/serverlessworkflow => org/openworkflow}/fluent/spec/dsl/EmitSpec.java (74%) rename fluent/spec/src/main/java/{io/serverlessworkflow => org/openworkflow}/fluent/spec/dsl/EventEmitPropertiesSpec.java (88%) rename fluent/spec/src/main/java/{io/serverlessworkflow => org/openworkflow}/fluent/spec/dsl/EventFilterSpec.java (75%) rename fluent/spec/src/main/java/{io/serverlessworkflow => org/openworkflow}/fluent/spec/dsl/EventPropertiesSpec.java (89%) rename fluent/spec/src/main/java/{io/serverlessworkflow => org/openworkflow}/fluent/spec/dsl/ExprEventEmitPropertiesSpec.java (87%) rename fluent/spec/src/main/java/{io/serverlessworkflow => org/openworkflow}/fluent/spec/dsl/ExprEventFilterSpec.java (85%) rename fluent/spec/src/main/java/{io/serverlessworkflow => org/openworkflow}/fluent/spec/dsl/ListenSpec.java (75%) rename fluent/spec/src/main/java/{io/serverlessworkflow => org/openworkflow}/fluent/spec/dsl/RaiseSpec.java (86%) rename fluent/spec/src/main/java/{io/serverlessworkflow => org/openworkflow}/fluent/spec/dsl/RetrySpec.java (90%) rename fluent/spec/src/main/java/{io/serverlessworkflow => org/openworkflow}/fluent/spec/dsl/SwitchSpec.java (86%) rename fluent/spec/src/main/java/{io/serverlessworkflow => org/openworkflow}/fluent/spec/dsl/TryCatchSpec.java (84%) rename fluent/spec/src/main/java/{io/serverlessworkflow => org/openworkflow}/fluent/spec/dsl/TrySpec.java (75%) rename fluent/spec/src/main/java/{io/serverlessworkflow => org/openworkflow}/fluent/spec/dsl/UseSpec.java (82%) rename fluent/spec/src/main/java/{io/serverlessworkflow => org/openworkflow}/fluent/spec/dsl/WorkflowSpec.java (84%) rename fluent/spec/src/main/java/{io/serverlessworkflow => org/openworkflow}/fluent/spec/spi/CallGrpcFluent.java (82%) rename fluent/spec/src/main/java/{io/serverlessworkflow => org/openworkflow}/fluent/spec/spi/CallGrpcTaskFluent.java (83%) rename fluent/spec/src/main/java/{io/serverlessworkflow => org/openworkflow}/fluent/spec/spi/CallHttpFluent.java (82%) rename fluent/spec/src/main/java/{io/serverlessworkflow => org/openworkflow}/fluent/spec/spi/CallHttpTaskFluent.java (89%) rename fluent/spec/src/main/java/{io/serverlessworkflow => org/openworkflow}/fluent/spec/spi/CallOpenAPIFluent.java (82%) rename fluent/spec/src/main/java/{io/serverlessworkflow => org/openworkflow}/fluent/spec/spi/CallOpenAPITaskFluent.java (85%) rename fluent/spec/src/main/java/{io/serverlessworkflow => org/openworkflow}/fluent/spec/spi/DoFluent.java (59%) rename fluent/spec/src/main/java/{io/serverlessworkflow => org/openworkflow}/fluent/spec/spi/EmitFluent.java (82%) rename fluent/spec/src/main/java/{io/serverlessworkflow => org/openworkflow}/fluent/spec/spi/EndpointUtil.java (86%) rename fluent/spec/src/main/java/{io/serverlessworkflow => org/openworkflow}/fluent/spec/spi/EventConsumptionStrategyFluent.java (80%) rename fluent/spec/src/main/java/{io/serverlessworkflow => org/openworkflow}/fluent/spec/spi/ForEachFluent.java (82%) rename fluent/spec/src/main/java/{io/serverlessworkflow => org/openworkflow}/fluent/spec/spi/ForEachTaskFluent.java (74%) rename fluent/spec/src/main/java/{io/serverlessworkflow => org/openworkflow}/fluent/spec/spi/ForkFluent.java (82%) rename fluent/spec/src/main/java/{io/serverlessworkflow => org/openworkflow}/fluent/spec/spi/ForkTaskFluent.java (77%) rename fluent/spec/src/main/java/{io/serverlessworkflow => org/openworkflow}/fluent/spec/spi/IteratorFluent.java (84%) rename fluent/spec/src/main/java/{io/serverlessworkflow => org/openworkflow}/fluent/spec/spi/ListenFluent.java (82%) rename fluent/spec/src/main/java/{io/serverlessworkflow => org/openworkflow}/fluent/spec/spi/OutputFluent.java (77%) rename fluent/spec/src/main/java/{io/serverlessworkflow => org/openworkflow}/fluent/spec/spi/RaiseFluent.java (82%) rename fluent/spec/src/main/java/{io/serverlessworkflow => org/openworkflow}/fluent/spec/spi/SetFluent.java (84%) rename fluent/spec/src/main/java/{io/serverlessworkflow => org/openworkflow}/fluent/spec/spi/SubscriptionIteratorFluent.java (79%) rename fluent/spec/src/main/java/{io/serverlessworkflow => org/openworkflow}/fluent/spec/spi/SwitchFluent.java (82%) rename fluent/spec/src/main/java/{io/serverlessworkflow => org/openworkflow}/fluent/spec/spi/SwitchTaskFluent.java (83%) rename fluent/spec/src/main/java/{io/serverlessworkflow => org/openworkflow}/fluent/spec/spi/TaskTransformationHandlers.java (80%) rename fluent/spec/src/main/java/{io/serverlessworkflow => org/openworkflow}/fluent/spec/spi/TransformationHandlers.java (76%) rename fluent/spec/src/main/java/{io/serverlessworkflow => org/openworkflow}/fluent/spec/spi/TryCatchFluent.java (82%) rename fluent/spec/src/main/java/{io/serverlessworkflow => org/openworkflow}/fluent/spec/spi/WaitFluent.java (82%) rename fluent/spec/src/main/java/{io/serverlessworkflow => org/openworkflow}/fluent/spec/spi/WorkflowFluent.java (83%) rename fluent/spec/src/main/java/{io/serverlessworkflow => org/openworkflow}/fluent/spec/spi/WorkflowTaskFluent.java (84%) rename fluent/spec/src/test/java/{io/serverlessworkflow => org/openworkflow}/fluent/spec/InputBuilderTest.java (98%) rename fluent/spec/src/test/java/{io/serverlessworkflow => org/openworkflow}/fluent/spec/ScheduleBuilderTest.java (90%) rename fluent/spec/src/test/java/{io/serverlessworkflow => org/openworkflow}/fluent/spec/TaskItemDefaultNamingTest.java (97%) rename fluent/spec/src/test/java/{io/serverlessworkflow => org/openworkflow}/fluent/spec/UseAuthenticationsBuilderTest.java (96%) rename fluent/spec/src/test/java/{io/serverlessworkflow => org/openworkflow}/fluent/spec/WorkflowBuilderTest.java (92%) rename fluent/spec/src/test/java/{io/serverlessworkflow => org/openworkflow}/fluent/spec/dsl/CallGrpcDslTest.java (94%) rename fluent/spec/src/test/java/{io/serverlessworkflow => org/openworkflow}/fluent/spec/dsl/CallHttpAuthDslTest.java (93%) rename fluent/spec/src/test/java/{io/serverlessworkflow => org/openworkflow}/fluent/spec/dsl/CallHttpDslExtensionsTest.java (96%) rename fluent/spec/src/test/java/{io/serverlessworkflow => org/openworkflow}/fluent/spec/dsl/CallOpenApiDslTest.java (88%) rename fluent/spec/src/test/java/{io/serverlessworkflow => org/openworkflow}/fluent/spec/dsl/DSLScheduleTest.java (82%) rename fluent/spec/src/test/java/{io/serverlessworkflow => org/openworkflow}/fluent/spec/dsl/DSLTest.java (91%) rename fluent/spec/src/test/java/{io/serverlessworkflow => org/openworkflow}/fluent/spec/dsl/DSLTimeoutTest.java (89%) rename fluent/spec/src/test/java/{io/serverlessworkflow => org/openworkflow}/fluent/spec/dsl/DSLWaitTest.java (93%) rename fluent/spec/src/test/java/{io/serverlessworkflow => org/openworkflow}/fluent/spec/dsl/TryCatchDslTest.java (97%) rename generators/jackson/src/main/java/{io/serverlessworkflow => org/openworkflow}/generator/graalvm/ReflectNativeFileHandler.java (96%) rename generators/jackson/src/main/java/{io/serverlessworkflow => org/openworkflow}/generator/jackson/GeneratorUtils.java (96%) rename generators/jackson/src/main/java/{io/serverlessworkflow => org/openworkflow}/generator/jackson/JacksonMixInPojo.java (95%) rename generators/types/src/main/java/{io/serverlessworkflow => org/openworkflow}/generator/AllAnyOneOfSchemaRule.java (98%) rename generators/types/src/main/java/{io/serverlessworkflow => org/openworkflow}/generator/CustomAnnotator.java (89%) rename generators/types/src/main/java/{io/serverlessworkflow => org/openworkflow}/generator/EmptyObjectTypeRule.java (92%) rename generators/types/src/main/java/{io/serverlessworkflow => org/openworkflow}/generator/GeneratorUtils.java (94%) rename generators/types/src/main/java/{io/serverlessworkflow => org/openworkflow}/generator/JTypeWrapper.java (84%) rename generators/types/src/main/java/{io/serverlessworkflow => org/openworkflow}/generator/RefNameHelper.java (92%) rename generators/types/src/main/java/{io/serverlessworkflow => org/openworkflow}/generator/UnevaluatedPropertiesRule.java (94%) rename generators/types/src/main/java/{io/serverlessworkflow => org/openworkflow}/generator/UnreferencedFactory.java (93%) rename impl/a2a/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/executors/a2a/A2AExceptionHandler.java (83%) rename impl/a2a/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/executors/a2a/A2AExecutor.java (89%) rename impl/a2a/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/executors/a2a/A2AExecutorBuilder.java (81%) rename impl/a2a/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/executors/a2a/A2ARequestDispatcher.java (78%) rename impl/a2a/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/executors/a2a/A2AUtils.java (90%) rename impl/a2a/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/executors/a2a/CancelTaskDispatcher.java (81%) rename impl/a2a/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/executors/a2a/GetTaskDispatcher.java (81%) rename impl/a2a/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/executors/a2a/ListTaskDispatcher.java (81%) rename impl/a2a/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/executors/a2a/MessageConsumer.java (80%) rename impl/a2a/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/executors/a2a/MessageConsumerFactory.java (80%) rename impl/a2a/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/executors/a2a/MessageDispatcher.java (86%) rename impl/a2a/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/executors/a2a/MessageSendConsumer.java (85%) rename impl/a2a/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/executors/a2a/MessageStreamConsumer.java (87%) delete mode 100644 impl/a2a/src/main/resources/META-INF/services/io.serverlessworkflow.impl.executors.CallableTaskBuilder create mode 100644 impl/a2a/src/main/resources/META-INF/services/org.openworkflow.impl.executors.CallableTaskBuilder rename impl/container/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/container/executors/CommandPropertySetter.java (71%) rename impl/container/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/container/executors/ContainerEnvironmentPropertySetter.java (78%) rename impl/container/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/container/executors/ContainerPropertySetter.java (74%) rename impl/container/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/container/executors/ContainerRunner.java (92%) rename impl/container/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/container/executors/LifetimePropertySetter.java (77%) rename impl/container/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/container/executors/NamePropertySetter.java (72%) rename impl/container/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/container/executors/PortsPropertySetter.java (87%) rename impl/container/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/container/executors/RunContainerExecutorBuilder.java (73%) rename impl/container/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/container/executors/VolumesPropertySetter.java (83%) delete mode 100644 impl/container/src/main/resources/META-INF/services/io.serverlessworkflow.impl.executors.RunnableTaskBuilder create mode 100644 impl/container/src/main/resources/META-INF/services/org.openworkflow.impl.executors.RunnableTaskBuilder rename impl/core/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/AbstractWorkflowModel.java (96%) rename impl/core/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/AuthorizationDescriptor.java (85%) rename impl/core/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/CollectionConversionUtils.java (96%) rename impl/core/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/CompositeExpressionFactory.java (91%) rename impl/core/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/DefaultExecutorServiceFactory.java (89%) rename impl/core/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/ExecutorServiceFactory.java (87%) rename impl/core/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/FunctionReader.java (75%) rename impl/core/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/LifecycleEvents.java (58%) rename impl/core/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/LifecycleEventsUtils.java (92%) rename impl/core/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/MonotonicUlidWorkflowInstanceIdFactory.java (91%) rename impl/core/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/NamedObject.java (85%) rename impl/core/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/QueueWorkflowPosition.java (93%) rename impl/core/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/RuntimeDescriptorFactory.java (80%) rename impl/core/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/SchedulerListener.java (85%) rename impl/core/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/ServicePriority.java (88%) rename impl/core/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/StringBufferWorkflowPosition.java (94%) rename impl/core/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/TaskContext.java (96%) rename impl/core/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/TaskContextData.java (85%) rename impl/core/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/WorkflowApplication.java (89%) rename impl/core/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/WorkflowContext.java (93%) rename impl/core/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/WorkflowContextData.java (86%) rename impl/core/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/WorkflowDecorator.java (92%) rename impl/core/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/WorkflowDefinition.java (86%) rename impl/core/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/WorkflowDefinitionData.java (81%) rename impl/core/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/WorkflowDefinitionId.java (85%) rename impl/core/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/WorkflowError.java (93%) rename impl/core/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/WorkflowException.java (90%) rename impl/core/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/WorkflowFilter.java (86%) rename impl/core/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/WorkflowInstance.java (95%) rename impl/core/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/WorkflowInstanceData.java (90%) rename impl/core/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/WorkflowInstanceIdFactory.java (86%) rename impl/core/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/WorkflowModel.java (90%) rename impl/core/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/WorkflowModelCollection.java (92%) rename impl/core/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/WorkflowModelFactory.java (95%) rename impl/core/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/WorkflowMutableInstance.java (95%) rename impl/core/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/WorkflowMutablePosition.java (88%) rename impl/core/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/WorkflowPosition.java (85%) rename impl/core/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/WorkflowPositionFactory.java (86%) rename impl/core/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/WorkflowPredicate.java (86%) rename impl/core/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/WorkflowStatus.java (86%) rename impl/core/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/WorkflowUtils.java (92%) rename impl/core/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/WorkflowValueResolver.java (86%) rename impl/core/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/additional/ConstantAdditionalObject.java (79%) rename impl/core/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/additional/NamedWorkflowAdditionalObject.java (80%) rename impl/core/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/additional/SuppliedAdditionalObject.java (80%) rename impl/core/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/additional/WorkflowAdditionalObject.java (76%) rename impl/core/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/auth/AbstractAuthRequestBuilder.java (80%) rename impl/core/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/auth/AccessTokenProvider.java (74%) rename impl/core/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/auth/AccessTokenProviderFactory.java (82%) rename impl/core/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/auth/AuthProvider.java (75%) rename impl/core/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/auth/AuthProviderFactory.java (75%) rename impl/core/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/auth/AuthRequestBuilder.java (81%) rename impl/core/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/auth/AuthUtils.java (95%) rename impl/core/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/auth/BasicAuthProvider.java (75%) rename impl/core/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/auth/BearerAuthProvider.java (67%) rename impl/core/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/auth/ClientSecretBasic.java (79%) rename impl/core/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/auth/ClientSecretHandler.java (83%) rename impl/core/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/auth/ClientSecretPost.java (78%) rename impl/core/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/auth/CommonOAuthProvider.java (81%) rename impl/core/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/auth/DefaultAuthProviderFactory.java (85%) rename impl/core/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/auth/DigestAuthProvider.java (90%) rename impl/core/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/auth/HttpRequestInfo.java (86%) rename impl/core/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/auth/HttpRequestInfoBuilder.java (91%) rename impl/core/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/auth/JWT.java (95%) rename impl/core/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/auth/JWTConverter.java (83%) rename impl/core/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/auth/JwtClientAssertion.java (82%) rename impl/core/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/auth/OAuth2AuthProvider.java (81%) rename impl/core/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/auth/OAuthPolicyData.java (72%) rename impl/core/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/auth/OAuthRequestBuilder.java (85%) rename impl/core/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/auth/OAuthScheme.java (84%) rename impl/core/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/auth/OAuthUtils.java (77%) rename impl/core/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/auth/OpenIdAuthProvider.java (81%) rename impl/core/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/auth/OpenIdRequestBuilder.java (80%) rename impl/core/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/auth/TokenIntrospection.java (89%) rename impl/core/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/config/AbstractConfigManager.java (95%) rename impl/core/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/config/ConfigManager.java (84%) rename impl/core/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/config/ConfigSecretManager.java (94%) rename impl/core/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/config/SecretManager.java (81%) rename impl/core/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/config/SystemPropertyConfigManager.java (90%) rename impl/core/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/events/AbstractTypeConsumer.java (92%) rename impl/core/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/events/CloudEventAttrPredicate.java (76%) rename impl/core/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/events/CloudEventPredicate.java (77%) rename impl/core/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/events/CloudEventPredicateFactory.java (72%) rename impl/core/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/events/CloudEventUtils.java (88%) rename impl/core/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/events/CorrelationPredicate.java (87%) rename impl/core/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/events/DefaultCloudEventPredicate.java (90%) rename impl/core/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/events/DefaultCloudEventPredicateFactory.java (78%) rename impl/core/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/events/EmitSourceResolver.java (75%) rename impl/core/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/events/EmittedEventDecorator.java (82%) rename impl/core/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/events/EventConsumer.java (76%) rename impl/core/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/events/EventPublisher.java (88%) rename impl/core/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/events/EventRegistration.java (83%) rename impl/core/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/events/EventRegistrationBuilder.java (84%) rename impl/core/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/events/EventRegistrationBuilderCollection.java (86%) rename impl/core/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/events/EventRegistrationBuilderInfo.java (86%) rename impl/core/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/events/EventRegistrationInfo.java (91%) rename impl/core/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/events/InMemoryEvents.java (91%) rename impl/core/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/events/ModelAwareCloudEventPredicate.java (73%) rename impl/core/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/events/TypeEventRegistration.java (89%) rename impl/core/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/events/TypeEventRegistrationBuilder.java (89%) rename impl/core/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/executors/AbstractTaskExecutor.java (86%) rename impl/core/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/executors/CallFunctionExecutorBuilder.java (85%) rename impl/core/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/executors/CallTaskExecutor.java (83%) rename impl/core/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/executors/CallableTask.java (74%) rename impl/core/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/executors/CallableTaskBuilder.java (70%) rename impl/core/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/executors/CallableTaskFactory.java (85%) rename impl/core/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/executors/CallableTaskProxyBuilder.java (77%) rename impl/core/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/executors/DefaultTaskExecutorFactory.java (71%) rename impl/core/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/executors/DoExecutor.java (79%) rename impl/core/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/executors/EmitExecutor.java (88%) rename impl/core/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/executors/ForExecutor.java (82%) rename impl/core/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/executors/ForkExecutor.java (88%) rename impl/core/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/executors/ListenExecutor.java (87%) rename impl/core/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/executors/ProcessResult.java (84%) rename impl/core/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/executors/RaiseExecutor.java (82%) rename impl/core/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/executors/RegularTaskExecutor.java (82%) rename impl/core/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/executors/RunScriptExecutor.java (81%) rename impl/core/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/executors/RunScriptExecutorBuilder.java (81%) rename impl/core/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/executors/RunShellExecutor.java (87%) rename impl/core/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/executors/RunShellExecutorBuilder.java (84%) rename impl/core/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/executors/RunTaskExecutor.java (80%) rename impl/core/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/executors/RunWorkflowExecutor.java (81%) rename impl/core/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/executors/RunWorkflowExecutorBuilder.java (72%) rename impl/core/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/executors/RunnableTaskBuilder.java (73%) rename impl/core/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/executors/SetExecutor.java (74%) rename impl/core/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/executors/SwitchExecutor.java (84%) rename impl/core/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/executors/TaskExecutor.java (73%) rename impl/core/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/executors/TaskExecutorBuilder.java (81%) rename impl/core/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/executors/TaskExecutorFactory.java (67%) rename impl/core/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/executors/TaskExecutorHelper.java (88%) rename impl/core/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/executors/TransitionInfo.java (89%) rename impl/core/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/executors/TransitionInfoBuilder.java (90%) rename impl/core/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/executors/TryExecutor.java (89%) rename impl/core/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/executors/WaitExecutor.java (78%) rename impl/core/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/executors/retry/AbstractRetryIntervalFunction.java (81%) rename impl/core/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/executors/retry/ConstantRetryIntervalFunction.java (76%) rename impl/core/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/executors/retry/DefaultRetryExecutor.java (86%) rename impl/core/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/executors/retry/ExponentialRetryIntervalFunction.java (79%) rename impl/core/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/executors/retry/LinearRetryIntervalFunction.java (76%) rename impl/core/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/executors/retry/RetryExecutor.java (76%) rename impl/core/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/executors/retry/RetryIntervalFunction.java (74%) rename impl/core/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/expressions/AbstractExpressionFactory.java (91%) rename impl/core/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/expressions/AbstractProxyCollection.java (92%) rename impl/core/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/expressions/DateTimeDescriptor.java (90%) rename impl/core/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/expressions/ExpressionDescriptor.java (87%) rename impl/core/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/expressions/ExpressionFactory.java (81%) rename impl/core/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/expressions/ExpressionUtils.java (91%) rename impl/core/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/expressions/ExpressionValidationException.java (87%) rename impl/core/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/expressions/ObjectExpression.java (72%) rename impl/core/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/expressions/ObjectExpressionFactory.java (90%) rename impl/core/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/expressions/ProxyCollection.java (92%) rename impl/core/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/expressions/ProxyIterator.java (90%) rename impl/core/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/expressions/ProxyMap.java (96%) rename impl/core/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/expressions/RuntimeDescriptor.java (84%) rename impl/core/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/expressions/TaskDescriptor.java (79%) rename impl/core/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/expressions/WorkflowDescriptor.java (76%) rename impl/core/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/lifecycle/EventType.java (89%) rename impl/core/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/lifecycle/TaskCancelledEvent.java (78%) rename impl/core/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/lifecycle/TaskCompletedEvent.java (78%) rename impl/core/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/lifecycle/TaskEvent.java (79%) rename impl/core/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/lifecycle/TaskFailedEvent.java (81%) rename impl/core/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/lifecycle/TaskResumedEvent.java (78%) rename impl/core/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/lifecycle/TaskRetriedEvent.java (78%) rename impl/core/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/lifecycle/TaskStartedEvent.java (78%) rename impl/core/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/lifecycle/TaskSuspendedEvent.java (78%) rename impl/core/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/lifecycle/TraceExecutionListener.java (96%) rename impl/core/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/lifecycle/WorkflowCancelledEvent.java (82%) rename impl/core/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/lifecycle/WorkflowCompletedEvent.java (80%) rename impl/core/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/lifecycle/WorkflowEvent.java (85%) rename impl/core/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/lifecycle/WorkflowExecutionCompletableListener.java (93%) rename impl/core/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/lifecycle/WorkflowExecutionListener.java (90%) rename impl/core/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/lifecycle/WorkflowExecutionListenerAdapter.java (97%) rename impl/core/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/lifecycle/WorkflowFailedEvent.java (84%) rename impl/core/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/lifecycle/WorkflowResumedEvent.java (82%) rename impl/core/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/lifecycle/WorkflowStartedEvent.java (82%) rename impl/core/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/lifecycle/WorkflowStatusEvent.java (83%) rename impl/core/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/lifecycle/WorkflowSuspendedEvent.java (82%) rename impl/core/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/lifecycle/ce/AbstractLifeCyclePublisher.java (80%) rename impl/core/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/lifecycle/ce/DefaultLifeCycleCloudEventFactory.java (71%) rename impl/core/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/lifecycle/ce/InputOutputLifeCycleCloudEventFactory.java (75%) rename impl/core/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/lifecycle/ce/TaskCEData.java (85%) rename impl/core/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/lifecycle/ce/TaskCancelledCEData.java (91%) rename impl/core/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/lifecycle/ce/TaskCompletedCEData.java (91%) rename impl/core/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/lifecycle/ce/TaskCompletedCEDataWithOutput.java (89%) rename impl/core/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/lifecycle/ce/TaskFailedCEData.java (90%) rename impl/core/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/lifecycle/ce/TaskResumedCEData.java (91%) rename impl/core/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/lifecycle/ce/TaskRetriedCEData.java (91%) rename impl/core/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/lifecycle/ce/TaskStartedCEData.java (91%) rename impl/core/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/lifecycle/ce/TaskStartedCEDataWithInput.java (88%) rename impl/core/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/lifecycle/ce/TaskSuspendedCEData.java (91%) rename impl/core/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/lifecycle/ce/WorkflowCEData.java (86%) rename impl/core/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/lifecycle/ce/WorkflowCancelledCEData.java (91%) rename impl/core/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/lifecycle/ce/WorkflowCompletedCEData.java (91%) rename impl/core/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/lifecycle/ce/WorkflowCompletedCEDataWithOutput.java (88%) rename impl/core/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/lifecycle/ce/WorkflowDefinitionCEData.java (78%) rename impl/core/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/lifecycle/ce/WorkflowFailedCEData.java (90%) rename impl/core/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/lifecycle/ce/WorkflowLifeCycleCloudEventFactory.java (59%) rename impl/core/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/lifecycle/ce/WorkflowResumedCEData.java (91%) rename impl/core/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/lifecycle/ce/WorkflowStartedCEData.java (91%) rename impl/core/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/lifecycle/ce/WorkflowStartedCEDataWithInput.java (89%) rename impl/core/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/lifecycle/ce/WorkflowStatusCEDataEvent.java (90%) rename impl/core/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/lifecycle/ce/WorkflowSuspendedCEData.java (91%) rename impl/core/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/marshaller/AbstractInputBuffer.java (91%) rename impl/core/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/marshaller/AbstractOutputBuffer.java (96%) rename impl/core/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/marshaller/CustomObjectMarshaller.java (82%) rename impl/core/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/marshaller/DefaultBufferFactory.java (93%) rename impl/core/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/marshaller/DefaultInputBuffer.java (95%) rename impl/core/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/marshaller/DefaultOutputBuffer.java (96%) rename impl/core/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/marshaller/MarshallingUtils.java (98%) rename impl/core/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/marshaller/TaskStatus.java (83%) rename impl/core/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/marshaller/Type.java (86%) rename impl/core/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/marshaller/WorkflowBufferFactory.java (86%) rename impl/core/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/marshaller/WorkflowInputBuffer.java (92%) rename impl/core/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/marshaller/WorkflowOutputBuffer.java (93%) rename impl/core/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/resources/CachedResource.java (84%) rename impl/core/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/resources/ClasspathResource.java (92%) rename impl/core/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/resources/DefaultResourceLoader.java (93%) rename impl/core/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/resources/DefaultResourceLoaderFactory.java (85%) rename impl/core/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/resources/ExternalResourceHandler.java (87%) rename impl/core/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/resources/FileResource.java (93%) rename impl/core/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/resources/GitHubHelper.java (91%) rename impl/core/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/resources/HttpResource.java (93%) rename impl/core/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/resources/ResourceLoader.java (85%) rename impl/core/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/resources/ResourceLoaderFactory.java (80%) rename impl/core/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/resources/ResourceLoaderUtils.java (89%) rename impl/core/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/resources/URITemplateResolver.java (70%) rename impl/core/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/scheduler/AllStrategyCorrelationInfo.java (82%) rename impl/core/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/scheduler/AllStrategyCorrelationInfoFactory.java (80%) rename impl/core/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/scheduler/Cancellable.java (83%) rename impl/core/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/scheduler/CronResolver.java (85%) rename impl/core/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/scheduler/CronResolverFactory.java (79%) rename impl/core/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/scheduler/DefaultWorkflowScheduler.java (92%) rename impl/core/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/scheduler/EventWorkflowScheduler.java (78%) rename impl/core/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/scheduler/ExecutorServiceWorkflowScheduler.java (91%) rename impl/core/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/scheduler/InMemoryAllStrategyCorrelationInfo.java (93%) rename impl/core/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/scheduler/ScheduledEventConsumer.java (83%) rename impl/core/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/scheduler/ScheduledInstanceRunnable.java (88%) rename impl/core/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/scheduler/ScheduledServiceCancellable.java (88%) rename impl/core/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/scheduler/WorkflowScheduler.java (84%) rename impl/core/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/schema/AbstractSchemaValidator.java (85%) rename impl/core/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/schema/SchemaValidator.java (76%) rename impl/core/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/schema/SchemaValidatorFactory.java (72%) rename impl/core/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/scripts/ScriptContext.java (80%) rename impl/core/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/scripts/ScriptLanguageId.java (91%) rename impl/core/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/scripts/ScriptRunner.java (73%) rename impl/core/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/scripts/ScriptUtils.java (83%) rename impl/core/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/scripts/StreamSuppliers.java (95%) rename impl/core/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/utils/RandomFactory.java (86%) delete mode 100644 impl/core/src/main/resources/META-INF/services/io.serverlessworkflow.impl.executors.CallableTaskBuilder delete mode 100644 impl/core/src/main/resources/META-INF/services/io.serverlessworkflow.impl.executors.RunnableTaskBuilder create mode 100644 impl/core/src/main/resources/META-INF/services/org.openworkflow.impl.executors.CallableTaskBuilder create mode 100644 impl/core/src/main/resources/META-INF/services/org.openworkflow.impl.executors.RunnableTaskBuilder rename impl/core/src/test/java/{io/serverlessworkflow => org/openworkflow}/impl/LowestPriority.java (86%) rename impl/core/src/test/java/{io/serverlessworkflow => org/openworkflow}/impl/LowestPriorityListener.java (78%) rename impl/core/src/test/java/{io/serverlessworkflow => org/openworkflow}/impl/MediumPriority.java (85%) rename impl/core/src/test/java/{io/serverlessworkflow => org/openworkflow}/impl/MediumPriorityListener.java (85%) rename impl/core/src/test/java/{io/serverlessworkflow => org/openworkflow}/impl/ServicePriorityTest.java (88%) rename impl/core/src/test/java/{io/serverlessworkflow => org/openworkflow}/impl/TopPriority.java (86%) rename impl/core/src/test/java/{io/serverlessworkflow => org/openworkflow}/impl/TopPriorityListener.java (78%) rename impl/core/src/test/java/{io/serverlessworkflow => org/openworkflow}/impl/WorkflowAdditionalObjectTest.java (93%) rename impl/core/src/test/java/{io/serverlessworkflow => org/openworkflow}/impl/WorkflowListenerTest.java (93%) rename impl/core/src/test/java/{io/serverlessworkflow => org/openworkflow}/impl/WorkflowUtilsTest.java (95%) rename impl/core/src/test/java/{io/serverlessworkflow => org/openworkflow}/impl/auth/JWTTest.java (90%) rename impl/core/src/test/java/{io/serverlessworkflow => org/openworkflow}/impl/marshaller/Employee.java (83%) rename impl/core/src/test/java/{io/serverlessworkflow => org/openworkflow}/impl/marshaller/MarshallingUtilsTest.java (96%) rename impl/core/src/test/java/{io/serverlessworkflow => org/openworkflow}/impl/marshaller/NonSerializableClass.java (83%) rename impl/core/src/test/java/{io/serverlessworkflow => org/openworkflow}/impl/marshaller/Person.java (82%) rename impl/core/src/test/java/{io/serverlessworkflow => org/openworkflow}/impl/marshaller/SerializableClass.java (85%) rename impl/core/src/test/java/{io/serverlessworkflow => org/openworkflow}/impl/marshaller/Student.java (83%) delete mode 100644 impl/core/src/test/resources/META-INF/services/io.serverlessworkflow.impl.ServicePriority create mode 100644 impl/core/src/test/resources/META-INF/services/org.openworkflow.impl.ServicePriority rename impl/cron/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/cron/CronUtilsResolver.java (86%) rename impl/cron/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/cron/CronUtilsResolverFactory.java (82%) delete mode 100644 impl/cron/src/main/resources/META-INF/services/io.serverlessworkflow.impl.scheduler.CronResolverFactory create mode 100644 impl/cron/src/main/resources/META-INF/services/org.openworkflow.impl.scheduler.CronResolverFactory rename impl/function/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/jackson/function/JacksonFunctionReader.java (74%) delete mode 100644 impl/function/src/main/resources/META-INF/services/io.serverlessworkflow.impl.FunctionReader create mode 100644 impl/function/src/main/resources/META-INF/services/org.openworkflow.impl.FunctionReader rename impl/grpc/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/executors/grpc/CollectionStreamObserver.java (78%) rename impl/grpc/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/executors/grpc/FileDescriptorReader.java (97%) rename impl/grpc/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/executors/grpc/GrpcExecutor.java (95%) rename impl/grpc/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/executors/grpc/GrpcExecutorBuilder.java (77%) rename impl/grpc/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/executors/grpc/ItemStreamObserver.java (78%) rename impl/grpc/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/executors/grpc/ModelStreamObserver.java (78%) rename impl/grpc/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/executors/grpc/ProtobufMessageUtils.java (86%) delete mode 100644 impl/grpc/src/main/resources/META-INF/services/io.serverlessworkflow.impl.executors.CallableTaskBuilder create mode 100644 impl/grpc/src/main/resources/META-INF/services/org.openworkflow.impl.executors.CallableTaskBuilder rename impl/http/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/executors/http/AbstractRequestExecutor.java (89%) rename impl/http/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/executors/http/CallableTaskHttpExecutorBuilder.java (76%) rename impl/http/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/executors/http/HttpClientResolver.java (85%) rename impl/http/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/executors/http/HttpConverterResolver.java (85%) rename impl/http/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/executors/http/HttpExecutor.java (87%) rename impl/http/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/executors/http/HttpExecutorBuilder.java (90%) rename impl/http/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/executors/http/HttpModelConverter.java (86%) rename impl/http/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/executors/http/HttpRequestDecorator.java (81%) rename impl/http/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/executors/http/RequestExecutor.java (76%) rename impl/http/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/executors/http/WithBodyRequestExecutor.java (74%) rename impl/http/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/executors/http/WithoutBodyRequestExecutor.java (77%) rename impl/http/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/executors/http/auth/JaxRSAccessTokenProvider.java (87%) rename impl/http/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/executors/http/auth/JaxRSAccessTokenProviderFactory.java (70%) delete mode 100644 impl/http/src/main/resources/META-INF/services/io.serverlessworkflow.impl.auth.AccessTokenProviderFactory delete mode 100644 impl/http/src/main/resources/META-INF/services/io.serverlessworkflow.impl.executors.CallableTaskBuilder create mode 100644 impl/http/src/main/resources/META-INF/services/org.openworkflow.impl.auth.AccessTokenProviderFactory create mode 100644 impl/http/src/main/resources/META-INF/services/org.openworkflow.impl.executors.CallableTaskBuilder rename impl/javascript/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/executors/script/js/JavaScriptScriptTaskRunner.java (82%) delete mode 100644 impl/javascript/src/main/resources/META-INF/services/io.serverlessworkflow.impl.scripts.ScriptRunner create mode 100644 impl/javascript/src/main/resources/META-INF/services/org.openworkflow.impl.scripts.ScriptRunner rename impl/jq/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/expressions/jq/JQExpression.java (83%) rename impl/jq/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/expressions/jq/JQExpressionFactory.java (88%) delete mode 100644 impl/jq/src/main/resources/META-INF/services/io.serverlessworkflow.impl.expressions.ExpressionFactory create mode 100644 impl/jq/src/main/resources/META-INF/services/org.openworkflow.impl.expressions.ExpressionFactory rename impl/jq/src/test/java/{io/serverlessworkflow => org/openworkflow}/impl/expressions/jq/JQExpressionFactoryTest.java (87%) rename impl/json-utils/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/jackson/FunctionBaseJsonNode.java (96%) rename impl/json-utils/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/jackson/FunctionJsonNode.java (89%) rename impl/json-utils/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/jackson/JacksonCloudEventUtils.java (95%) rename impl/json-utils/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/jackson/JsonUtils.java (98%) rename impl/json-utils/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/jackson/MergeUtils.java (96%) rename impl/json-utils/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/jackson/ObjectMapperFactory.java (81%) rename impl/json-utils/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/jackson/ObjectMapperFactoryProvider.java (92%) rename impl/json-utils/src/test/java/{io/serverlessworkflow => org/openworkflow}/impl/jackson/JacksonCloudEventUtilsTest.java (97%) rename impl/json-utils/src/test/java/{io/serverlessworkflow => org/openworkflow}/impl/jackson/JsonUtilsStaticInitTest.java (94%) rename impl/jwt-impl/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/executors/http/jackson/JacksonModelConverterFactory.java (73%) rename impl/jwt-impl/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/executors/http/oauth/jackson/JacksonJWTConverter.java (85%) delete mode 100644 impl/jwt-impl/src/main/resources/META-INF/services/io.serverlessworkflow.impl.additional.NamedWorkflowAdditionalObject delete mode 100644 impl/jwt-impl/src/main/resources/META-INF/services/io.serverlessworkflow.impl.auth.JWTConverter create mode 100644 impl/jwt-impl/src/main/resources/META-INF/services/org.openworkflow.impl.additional.NamedWorkflowAdditionalObject create mode 100644 impl/jwt-impl/src/main/resources/META-INF/services/org.openworkflow.impl.auth.JWTConverter rename impl/jwt-impl/src/test/java/{io/serverlessworkflow => org/openworkflow}/impl/http/jwt/JacksonJWTImplTest.java (95%) rename impl/lifecycleevent/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/jackson/events/JacksonLifeCyclePublisher.java (79%) delete mode 100644 impl/lifecycleevent/src/main/resources/META-INF/services/io.serverlessworkflow.impl.lifecycle.WorkflowExecutionListener create mode 100644 impl/lifecycleevent/src/main/resources/META-INF/services/org.openworkflow.impl.lifecycle.WorkflowExecutionListener rename impl/lifecycleevent/src/test/java/{io/serverlessworkflow => org/openworkflow}/impl/jackson/events/JacksonLifeCyclePublisherTest.java (64%) rename impl/model/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/model/jackson/AbstractJacksonMarshaller.java (77%) rename impl/model/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/model/jackson/JacksonModel.java (94%) rename impl/model/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/model/jackson/JacksonModelCollection.java (92%) rename impl/model/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/model/jackson/JacksonModelCollectionDeserializer.java (91%) rename impl/model/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/model/jackson/JacksonModelCollectionMarshaller.java (86%) rename impl/model/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/model/jackson/JacksonModelCollectionSerializer.java (90%) rename impl/model/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/model/jackson/JacksonModelDeserializer.java (90%) rename impl/model/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/model/jackson/JacksonModelFactory.java (90%) rename impl/model/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/model/jackson/JacksonModelMarshaller.java (83%) rename impl/model/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/model/jackson/JacksonModelSerializer.java (90%) rename impl/model/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/model/jackson/JacksonObjectMarshaller.java (86%) delete mode 100644 impl/model/src/main/resources/META-INF/services/io.serverlessworkflow.impl.WorkflowModelFactory delete mode 100644 impl/model/src/main/resources/META-INF/services/io.serverlessworkflow.impl.marshaller.CustomObjectMarshaller create mode 100644 impl/model/src/main/resources/META-INF/services/org.openworkflow.impl.WorkflowModelFactory create mode 100644 impl/model/src/main/resources/META-INF/services/org.openworkflow.impl.marshaller.CustomObjectMarshaller rename impl/model/src/test/java/{io/serverlessworkflow => org/openworkflow}/impl/model/jackson/Employee.java (83%) rename impl/model/src/test/java/{io/serverlessworkflow => org/openworkflow}/impl/model/jackson/JacksonModelSerializationTest.java (80%) rename impl/model/src/test/java/{io/serverlessworkflow => org/openworkflow}/impl/model/jackson/JacksonModelTest.java (91%) rename impl/openapi-jackson/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/executors/openapi/jackson/JacksonUnifiedOpenAPIMixIn.java (93%) rename impl/openapi-jackson/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/executors/openapi/jackson/JacksonUnifiedOpenAPIMixInModule.java (90%) rename impl/openapi-jackson/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/executors/openapi/jackson/JacksonUnifiedOpenAPIReader.java (72%) rename impl/openapi-jackson/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/executors/openapi/jackson/JacksonUnifiedOpenAPIReaderFactory.java (77%) delete mode 100644 impl/openapi-jackson/src/main/resources/META-INF/services/io.serverlessworkflow.impl.additional.NamedWorkflowAdditionalObject create mode 100644 impl/openapi-jackson/src/main/resources/META-INF/services/org.openworkflow.impl.additional.NamedWorkflowAdditionalObject rename impl/openapi-jackson/src/test/java/{io/serverlessworkflow => org/openworkflow}/impl/executors/openapi/jackson/JacksonOpenAPIProcessorTest.java (76%) rename impl/openapi/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/executors/openapi/OpenAPIExecutor.java (90%) rename impl/openapi/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/executors/openapi/OpenAPIExecutorBuilder.java (70%) rename impl/openapi/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/executors/openapi/OpenAPIProcessor.java (89%) rename impl/openapi/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/executors/openapi/OperationDefinition.java (97%) rename impl/openapi/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/executors/openapi/OperationPathResolver.java (73%) rename impl/openapi/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/executors/openapi/ParameterDefinition.java (84%) rename impl/openapi/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/executors/openapi/UnifiedOpenAPI.java (97%) rename impl/openapi/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/executors/openapi/UnifiedOpenAPIReader.java (79%) delete mode 100644 impl/openapi/src/main/resources/META-INF/services/io.serverlessworkflow.impl.executors.CallableTaskBuilder create mode 100644 impl/openapi/src/main/resources/META-INF/services/org.openworkflow.impl.executors.CallableTaskBuilder rename impl/openapi/src/test/java/{io/serverlessworkflow => org/openworkflow}/impl/executors/openapi/OpenAPIProcessorTest.java (96%) rename impl/persistence/api/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/persistence/AbstractAllStrategyCorrelationInfo.java (95%) rename impl/persistence/api/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/persistence/AbstractAsyncPersistenceExecutor.java (88%) rename impl/persistence/api/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/persistence/AbstractPersistenceInstanceReader.java (85%) rename impl/persistence/api/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/persistence/AbstractPersistenceInstanceWriter.java (92%) rename impl/persistence/api/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/persistence/AsyncPersistenceExecutor.java (89%) rename impl/persistence/api/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/persistence/CompletedTaskInfo.java (88%) rename impl/persistence/api/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/persistence/CorrelationOperations.java (89%) rename impl/persistence/api/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/persistence/DefaultPersistenceInstanceHandlers.java (91%) rename impl/persistence/api/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/persistence/DefaultPersistenceInstanceReader.java (89%) rename impl/persistence/api/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/persistence/DefaultPersistenceInstanceWriter.java (90%) rename impl/persistence/api/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/persistence/OperationAllStrategyCorrelationInfo.java (84%) rename impl/persistence/api/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/persistence/OperationAllStrategyCorrelationInfoFactory.java (78%) rename impl/persistence/api/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/persistence/PersistenceAllStrategyCorrelationInfoFactories.java (84%) rename impl/persistence/api/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/persistence/PersistenceApplicationBuilder.java (85%) rename impl/persistence/api/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/persistence/PersistenceExecutor.java (83%) rename impl/persistence/api/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/persistence/PersistenceInstanceHandlers.java (85%) rename impl/persistence/api/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/persistence/PersistenceInstanceInfo.java (83%) rename impl/persistence/api/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/persistence/PersistenceInstanceOperations.java (80%) rename impl/persistence/api/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/persistence/PersistenceInstanceReader.java (81%) rename impl/persistence/api/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/persistence/PersistenceInstanceStore.java (85%) rename impl/persistence/api/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/persistence/PersistenceInstanceTransaction.java (80%) rename impl/persistence/api/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/persistence/PersistenceInstanceWriter.java (86%) rename impl/persistence/api/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/persistence/PersistenceTaskInfo.java (84%) rename impl/persistence/api/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/persistence/PersistenceWorkflowInfo.java (82%) rename impl/persistence/api/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/persistence/RetriedTaskInfo.java (86%) rename impl/persistence/api/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/persistence/StoreAllStrategyCorrelationInfo.java (88%) rename impl/persistence/api/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/persistence/StoreAllStrategyCorrelationInfoFactory.java (77%) rename impl/persistence/api/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/persistence/TransactedPersistenceInstanceWriter.java (88%) rename impl/persistence/api/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/persistence/WorkflowPersistenceInstance.java (88%) rename impl/persistence/api/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/persistence/WorkflowPersistenceListener.java (74%) rename impl/persistence/api/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/persistence/hashing/DefaultHashFactory.java (90%) rename impl/persistence/api/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/persistence/hashing/DefaultHashIndex.java (90%) rename impl/persistence/api/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/persistence/hashing/HashFactory.java (85%) rename impl/persistence/api/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/persistence/hashing/HashIndex.java (83%) rename impl/persistence/api/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/persistence/hashing/HashItem.java (80%) rename impl/persistence/api/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/persistence/hashing/HashMappingCoordinator.java (97%) rename impl/persistence/api/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/persistence/hashing/HashMappingInfo.java (83%) rename impl/persistence/api/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/persistence/hashing/IntegerHashItem.java (81%) rename impl/persistence/api/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/persistence/hashing/LRUCache.java (99%) rename impl/persistence/api/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/persistence/hashing/MD5HashItem.java (86%) rename impl/persistence/api/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/persistence/metadata/MetaTransient.java (87%) rename impl/persistence/api/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/persistence/metadata/PersistenceMetaUtils.java (87%) rename impl/persistence/api/src/test/java/{io/serverlessworkflow => org/openworkflow}/impl/persistence/hashing/HashMappingCoordinatorTest.java (98%) rename impl/persistence/api/src/test/java/{io/serverlessworkflow => org/openworkflow}/impl/persistence/hashing/LRUCacheTest.java (99%) rename impl/persistence/bigmap/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/persistence/bigmap/BigMapInstanceTransaction.java (90%) rename impl/persistence/bigmap/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/persistence/bigmap/BytesMapInstanceTransaction.java (89%) rename impl/persistence/mvstore/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/persistence/mvstore/MVStorePersistenceStore.java (74%) rename impl/persistence/mvstore/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/persistence/mvstore/MVStoreTransaction.java (88%) rename impl/persistence/mvstore/src/test/java/{io/serverlessworkflow => org/openworkflow}/impl/persistence/mvstore/HashingMVStorePersistenceTest.java (77%) rename impl/persistence/mvstore/src/test/java/{io/serverlessworkflow => org/openworkflow}/impl/persistence/mvstore/MD5MVStorePersistenceTest.java (77%) rename impl/persistence/mvstore/src/test/java/{io/serverlessworkflow => org/openworkflow}/impl/persistence/mvstore/MVStoreCorrelationTest.java (78%) rename impl/persistence/mvstore/src/test/java/{io/serverlessworkflow => org/openworkflow}/impl/persistence/mvstore/MVStorePersistenceStoreTest.java (73%) rename impl/persistence/tests/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/persistence/test/AbstractCorrelationPersistenceTest.java (80%) rename impl/persistence/tests/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/persistence/test/AbstractHandlerPersistenceTest.java (85%) rename impl/persistence/tests/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/persistence/test/AbstractOperationsCorrelationPersistenceTest.java (72%) rename impl/persistence/tests/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/persistence/test/AbstractPersistenceTest.java (71%) rename impl/persistence/tests/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/persistence/test/AbstractStoreCorrelationPersistenceTest.java (72%) rename impl/python/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/executors/script/python/PythonScriptTaskRunner.java (78%) delete mode 100644 impl/python/src/main/resources/META-INF/services/io.serverlessworkflow.impl.scripts.ScriptRunner create mode 100644 impl/python/src/main/resources/META-INF/services/org.openworkflow.impl.scripts.ScriptRunner rename impl/template/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/template/JaxrsURITemplateResolver.java (75%) delete mode 100644 impl/template/src/main/resources/META-INF/services/io.serverlessworkflow.impl.resources.URITemplateResolver create mode 100644 impl/template/src/main/resources/META-INF/services/org.openworkflow.impl.resources.URITemplateResolver rename impl/test/src/test/java/{io/serverlessworkflow => org/openworkflow}/impl/auth/OAuthRequestBuilderTest.java (84%) rename impl/test/src/test/java/{io/serverlessworkflow => org/openworkflow}/impl/test/A2AExecutorTest.java (97%) rename impl/test/src/test/java/{io/serverlessworkflow => org/openworkflow}/impl/test/AccessTokenProvider.java (94%) rename impl/test/src/test/java/{io/serverlessworkflow => org/openworkflow}/impl/test/BasicAuthHttpTest.java (87%) rename impl/test/src/test/java/{io/serverlessworkflow => org/openworkflow}/impl/test/CancelMetadataTest.java (92%) rename impl/test/src/test/java/{io/serverlessworkflow => org/openworkflow}/impl/test/ContainerTest.java (96%) rename impl/test/src/test/java/{io/serverlessworkflow => org/openworkflow}/impl/test/CoreTaskTypesTest.java (96%) rename impl/test/src/test/java/{io/serverlessworkflow => org/openworkflow}/impl/test/CorrelationTest.java (94%) rename impl/test/src/test/java/{io/serverlessworkflow => org/openworkflow}/impl/test/CustomAuthProviderFactoryOverrideTest.java (85%) rename impl/test/src/test/java/{io/serverlessworkflow => org/openworkflow}/impl/test/CustomFunctionTest.java (86%) rename impl/test/src/test/java/{io/serverlessworkflow => org/openworkflow}/impl/test/DBGenerator.java (72%) rename impl/test/src/test/java/{io/serverlessworkflow => org/openworkflow}/impl/test/DateTimeDescriptorTest.java (81%) rename impl/test/src/test/java/{io/serverlessworkflow => org/openworkflow}/impl/test/DigestAuthHttpTest.java (88%) rename impl/test/src/test/java/{io/serverlessworkflow => org/openworkflow}/impl/test/EmitExecutorTest.java (93%) rename impl/test/src/test/java/{io/serverlessworkflow => org/openworkflow}/impl/test/EventDefinitionTest.java (94%) rename impl/test/src/test/java/{io/serverlessworkflow => org/openworkflow}/impl/test/ForTaskMissingInTest.java (83%) rename impl/test/src/test/java/{io/serverlessworkflow => org/openworkflow}/impl/test/ForkWaitTest.java (86%) rename impl/test/src/test/java/{io/serverlessworkflow => org/openworkflow}/impl/test/HTTPWorkflowDefinitionTest.java (97%) rename impl/test/src/test/java/{io/serverlessworkflow => org/openworkflow}/impl/test/LifeCycleEventsTest.java (76%) rename impl/test/src/test/java/{io/serverlessworkflow => org/openworkflow}/impl/test/MvStorePersistenceTest.java (85%) rename impl/test/src/test/java/{io/serverlessworkflow => org/openworkflow}/impl/test/OAuthHTTPWorkflowDefinitionTest.java (99%) rename impl/test/src/test/java/{io/serverlessworkflow => org/openworkflow}/impl/test/OAuthUtilsTest.java (82%) rename impl/test/src/test/java/{io/serverlessworkflow => org/openworkflow}/impl/test/OpenAPITest.java (96%) rename impl/test/src/test/java/{io/serverlessworkflow => org/openworkflow}/impl/test/OpenIDCHTTPWorkflowDefinitionTest.java (98%) rename impl/test/src/test/java/{io/serverlessworkflow => org/openworkflow}/impl/test/ResolvePolicyTest.java (82%) rename impl/test/src/test/java/{io/serverlessworkflow => org/openworkflow}/impl/test/RetryTimeoutTest.java (94%) rename impl/test/src/test/java/{io/serverlessworkflow => org/openworkflow}/impl/test/RunScriptJavaScriptTest.java (94%) rename impl/test/src/test/java/{io/serverlessworkflow => org/openworkflow}/impl/test/RunShellExecutorTest.java (95%) rename impl/test/src/test/java/{io/serverlessworkflow => org/openworkflow}/impl/test/ScheduleEventConsumerTest.java (92%) rename impl/test/src/test/java/{io/serverlessworkflow => org/openworkflow}/impl/test/SchedulerTest.java (88%) rename impl/test/src/test/java/{io/serverlessworkflow => org/openworkflow}/impl/test/SecretExpressionTest.java (90%) rename impl/test/src/test/java/{io/serverlessworkflow => org/openworkflow}/impl/test/SubWorkflowTest.java (94%) rename impl/test/src/test/java/{io/serverlessworkflow => org/openworkflow}/impl/test/TaskCounterPerInstanceListener.java (80%) rename impl/test/src/test/java/{io/serverlessworkflow => org/openworkflow}/impl/test/UndefinedAuthReferenceTest.java (87%) rename impl/test/src/test/java/{io/serverlessworkflow => org/openworkflow}/impl/test/WaitExecutorTest.java (94%) rename impl/test/src/test/java/{io/serverlessworkflow => org/openworkflow}/impl/test/WorkflowDefinitionTest.java (93%) rename impl/test/src/test/java/{io/serverlessworkflow => org/openworkflow}/impl/test/WorkflowExecutionListenerOutputTest.java (81%) rename impl/test/src/test/java/{io/serverlessworkflow => org/openworkflow}/impl/test/WorkflowInstanceIdTest.java (80%) rename impl/test/src/test/java/{io/serverlessworkflow => org/openworkflow}/impl/test/grpc/GrpcBiDirectionalStreamingTest.java (84%) rename impl/test/src/test/java/{io/serverlessworkflow => org/openworkflow}/impl/test/grpc/GrpcClientStreamingTest.java (83%) rename impl/test/src/test/java/{io/serverlessworkflow => org/openworkflow}/impl/test/grpc/GrpcServerStreamingTest.java (84%) rename impl/test/src/test/java/{io/serverlessworkflow => org/openworkflow}/impl/test/grpc/GrpcUnaryArgsExprTest.java (82%) rename impl/test/src/test/java/{io/serverlessworkflow => org/openworkflow}/impl/test/grpc/GrpcUnaryTest.java (84%) rename impl/test/src/test/java/{io/serverlessworkflow => org/openworkflow}/impl/test/grpc/handlers/ContributorBiDiStreamingHandler.java (82%) rename impl/test/src/test/java/{io/serverlessworkflow => org/openworkflow}/impl/test/grpc/handlers/ContributorClientStreamingHandler.java (88%) rename impl/test/src/test/java/{io/serverlessworkflow => org/openworkflow}/impl/test/grpc/handlers/ContributorServerStreamingHandler.java (79%) rename impl/test/src/test/java/{io/serverlessworkflow => org/openworkflow}/impl/test/grpc/handlers/ContributorUnaryArgsExprHandler.java (77%) rename impl/test/src/test/java/{io/serverlessworkflow => org/openworkflow}/impl/test/grpc/handlers/PersonUnaryHandler.java (89%) rename impl/test/src/test/java/{io/serverlessworkflow => org/openworkflow}/impl/test/junit/BinaryCheckUtil.java (93%) rename impl/test/src/test/java/{io/serverlessworkflow => org/openworkflow}/impl/test/junit/DisabledIfProtocUnavailable.java (88%) rename impl/test/src/test/java/{io/serverlessworkflow => org/openworkflow}/impl/test/junit/DisabledIfPythonUnavailable.java (88%) rename impl/test/src/test/java/{io/serverlessworkflow => org/openworkflow}/impl/test/junit/ProtocCheckCondition.java (90%) rename impl/test/src/test/java/{io/serverlessworkflow => org/openworkflow}/impl/test/junit/PythonCheckCondition.java (87%) create mode 100644 impl/test/src/test/resources/workflows-samples/validation_test.yaml rename impl/validation/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/jackson/schema/JsonSchemaValidator.java (89%) rename impl/validation/src/main/java/{io/serverlessworkflow => org/openworkflow}/impl/jackson/schema/JsonSchemaValidatorFactory.java (73%) delete mode 100644 impl/validation/src/main/resources/META-INF/services/io.serverlessworkflow.impl.schema.SchemaValidatorFactory create mode 100644 impl/validation/src/main/resources/META-INF/services/org.openworkflow.impl.schema.SchemaValidatorFactory rename mermaid/src/main/java/{io/serverlessworkflow => org/openworkflow}/mermaid/CallNode.java (91%) rename mermaid/src/main/java/{io/serverlessworkflow => org/openworkflow}/mermaid/DefaultNodeRenderer.java (93%) rename mermaid/src/main/java/{io/serverlessworkflow => org/openworkflow}/mermaid/Edge.java (95%) rename mermaid/src/main/java/{io/serverlessworkflow => org/openworkflow}/mermaid/EmitNode.java (83%) rename mermaid/src/main/java/{io/serverlessworkflow => org/openworkflow}/mermaid/EndpointStringify.java (91%) rename mermaid/src/main/java/{io/serverlessworkflow => org/openworkflow}/mermaid/ForNode.java (90%) rename mermaid/src/main/java/{io/serverlessworkflow => org/openworkflow}/mermaid/ForkNode.java (91%) rename mermaid/src/main/java/{io/serverlessworkflow => org/openworkflow}/mermaid/Ids.java (93%) rename mermaid/src/main/java/{io/serverlessworkflow => org/openworkflow}/mermaid/IteratorNode.java (89%) rename mermaid/src/main/java/{io/serverlessworkflow => org/openworkflow}/mermaid/ListenNode.java (92%) rename mermaid/src/main/java/{io/serverlessworkflow => org/openworkflow}/mermaid/Mermaid.java (88%) rename mermaid/src/main/java/{io/serverlessworkflow => org/openworkflow}/mermaid/MermaidGraph.java (90%) rename mermaid/src/main/java/{io/serverlessworkflow => org/openworkflow}/mermaid/MermaidInk.java (95%) rename mermaid/src/main/java/{io/serverlessworkflow => org/openworkflow}/mermaid/MermaidRenderer.java (87%) rename mermaid/src/main/java/{io/serverlessworkflow => org/openworkflow}/mermaid/Node.java (96%) rename mermaid/src/main/java/{io/serverlessworkflow => org/openworkflow}/mermaid/NodeBuilder.java (82%) rename mermaid/src/main/java/{io/serverlessworkflow => org/openworkflow}/mermaid/NodeRenderer.java (89%) rename mermaid/src/main/java/{io/serverlessworkflow => org/openworkflow}/mermaid/NodeType.java (90%) rename mermaid/src/main/java/{io/serverlessworkflow => org/openworkflow}/mermaid/RaiseNode.java (85%) rename mermaid/src/main/java/{io/serverlessworkflow => org/openworkflow}/mermaid/RunNode.java (89%) rename mermaid/src/main/java/{io/serverlessworkflow => org/openworkflow}/mermaid/SubgraphNode.java (88%) rename mermaid/src/main/java/{io/serverlessworkflow => org/openworkflow}/mermaid/SubgraphNodeRenderer.java (92%) rename mermaid/src/main/java/{io/serverlessworkflow => org/openworkflow}/mermaid/SwitchNode.java (90%) rename mermaid/src/main/java/{io/serverlessworkflow => org/openworkflow}/mermaid/TaskNode.java (83%) rename mermaid/src/main/java/{io/serverlessworkflow => org/openworkflow}/mermaid/TaskSubgraphNode.java (87%) rename mermaid/src/main/java/{io/serverlessworkflow => org/openworkflow}/mermaid/TryCatchNode.java (90%) rename mermaid/src/main/java/{io/serverlessworkflow => org/openworkflow}/mermaid/WaitNode.java (92%) rename mermaid/src/test/java/{io/serverlessworkflow => org/openworkflow}/mermaid/ClasspathYamlFinder.java (97%) rename mermaid/src/test/java/{io/serverlessworkflow => org/openworkflow}/mermaid/MermaidSmokeTest.java (88%) rename serialization/src/main/java/{io/serverlessworkflow => org/openworkflow}/serialization/DeserializeHelper.java (95%) rename serialization/src/main/java/{io/serverlessworkflow => org/openworkflow}/serialization/SerializeHelper.java (82%) rename types/src/main/java/{io/serverlessworkflow => org/openworkflow}/types/Defaults.java (87%) rename types/src/main/java/{io/serverlessworkflow => org/openworkflow}/types/Errors.java (96%) 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..92be6885a 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 + 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: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.api.types.Workflow` class ### Reading workflow definition from JSON/YAML source diff --git a/annotations/pom.xml b/annotations/pom.xml index 6e583ab9e..50d04ded9 100644 --- a/annotations/pom.xml +++ b/annotations/pom.xml @@ -1,10 +1,10 @@ 4.0.0 - io.serverlessworkflow - serverlessworkflow-parent + org.openworkflow + 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/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/annotations/AdditionalProperties.java index 69a3b023e..1c463e080 100644 --- a/annotations/src/main/java/io/serverlessworkflow/annotations/AdditionalProperties.java +++ b/annotations/src/main/java/org/openworkflow/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.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/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/annotations/ExclusiveUnion.java index 4e83437b2..93a37d248 100644 --- a/annotations/src/main/java/io/serverlessworkflow/annotations/ExclusiveUnion.java +++ b/annotations/src/main/java/org/openworkflow/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.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/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/annotations/InclusiveUnion.java index 9df8732a2..87cf41852 100644 --- a/annotations/src/main/java/io/serverlessworkflow/annotations/InclusiveUnion.java +++ b/annotations/src/main/java/org/openworkflow/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.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/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/annotations/Item.java index f42a86d57..880888f7b 100644 --- a/annotations/src/main/java/io/serverlessworkflow/annotations/Item.java +++ b/annotations/src/main/java/org/openworkflow/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.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/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/annotations/ItemKey.java index ea75094db..ef948673a 100644 --- a/annotations/src/main/java/io/serverlessworkflow/annotations/ItemKey.java +++ b/annotations/src/main/java/org/openworkflow/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.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/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/annotations/ItemValue.java index 2aaf09e6d..54b27c26f 100644 --- a/annotations/src/main/java/io/serverlessworkflow/annotations/ItemValue.java +++ b/annotations/src/main/java/org/openworkflow/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.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/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/annotations/OneOfSetter.java index d67f0292e..37b9c8375 100644 --- a/annotations/src/main/java/io/serverlessworkflow/annotations/OneOfSetter.java +++ b/annotations/src/main/java/org/openworkflow/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.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/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/annotations/OneOfValueProvider.java index d275ff9df..0194d9372 100644 --- a/annotations/src/main/java/io/serverlessworkflow/annotations/OneOfValueProvider.java +++ b/annotations/src/main/java/org/openworkflow/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.annotations; public interface OneOfValueProvider { T get(); diff --git a/api/pom.xml b/api/pom.xml index 818c35325..957b58ebc 100644 --- a/api/pom.xml +++ b/api/pom.xml @@ -2,27 +2,27 @@ 4.0.0 - io.serverlessworkflow - serverlessworkflow-parent + org.openworkflow + 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 + openworkflow-types - io.serverlessworkflow - serverlessworkflow-serialization + org.openworkflow + openworkflow-serialization org.slf4j @@ -81,13 +81,13 @@ - io.serverlessworkflow + org.openworkflow serverless-workflow-jackson-generator ${project.version} - io.serverlessworkflow.api.types - io.serverlessworkflow.api.types.jackson + org.openworkflow.api.types + org.openworkflow.api.types.jackson diff --git a/api/src/main/java/io/serverlessworkflow/api/DirectReader.java b/api/src/main/java/org/openworkflow/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/api/DirectReader.java index 83fe05508..bbc0e976e 100644 --- a/api/src/main/java/io/serverlessworkflow/api/DirectReader.java +++ b/api/src/main/java/org/openworkflow/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.api; -import io.serverlessworkflow.api.types.Workflow; import java.io.IOException; import java.io.InputStream; import java.io.Reader; +import org.openworkflow.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/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/api/ObjectMapperFactory.java index 5e820f819..f0d07cda9 100644 --- a/api/src/main/java/io/serverlessworkflow/api/ObjectMapperFactory.java +++ b/api/src/main/java/org/openworkflow/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.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.api.types.jackson.JacksonMixInModule; +import org.openworkflow.serialization.BeanDeserializerModifierWithValidation; +import org.openworkflow.serialization.URIDeserializer; +import org.openworkflow.serialization.URISerializer; class ObjectMapperFactory { diff --git a/api/src/main/java/io/serverlessworkflow/api/ValidationReader.java b/api/src/main/java/org/openworkflow/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/api/ValidationReader.java index db9f0179b..536525a17 100644 --- a/api/src/main/java/io/serverlessworkflow/api/ValidationReader.java +++ b/api/src/main/java/org/openworkflow/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.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.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/api/WorkflowFormat.java similarity index 95% rename from api/src/main/java/io/serverlessworkflow/api/WorkflowFormat.java rename to api/src/main/java/org/openworkflow/api/WorkflowFormat.java index 7ca2cc274..406d8b97b 100644 --- a/api/src/main/java/io/serverlessworkflow/api/WorkflowFormat.java +++ b/api/src/main/java/org/openworkflow/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,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.api; +package org.openworkflow.api; import com.fasterxml.jackson.databind.ObjectMapper; import java.nio.file.Path; diff --git a/api/src/main/java/io/serverlessworkflow/api/WorkflowReader.java b/api/src/main/java/org/openworkflow/api/WorkflowReader.java similarity index 98% rename from api/src/main/java/io/serverlessworkflow/api/WorkflowReader.java rename to api/src/main/java/org/openworkflow/api/WorkflowReader.java index 1bdb21839..d74d8730a 100644 --- a/api/src/main/java/io/serverlessworkflow/api/WorkflowReader.java +++ b/api/src/main/java/org/openworkflow/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,15 +13,15 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.api; +package org.openworkflow.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.api.types.Workflow; /** Utility class for reading and parsing Serverless 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/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/api/WorkflowReaderOperations.java index 7049aba0b..09154c528 100644 --- a/api/src/main/java/io/serverlessworkflow/api/WorkflowReaderOperations.java +++ b/api/src/main/java/org/openworkflow/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.api; -import io.serverlessworkflow.api.types.Workflow; import java.io.IOException; import java.io.InputStream; import java.io.Reader; +import org.openworkflow.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/api/WorkflowWriter.java similarity index 96% rename from api/src/main/java/io/serverlessworkflow/api/WorkflowWriter.java rename to api/src/main/java/org/openworkflow/api/WorkflowWriter.java index 3285cff43..8bd09b2e5 100644 --- a/api/src/main/java/io/serverlessworkflow/api/WorkflowWriter.java +++ b/api/src/main/java/org/openworkflow/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,15 +13,15 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.api; +package org.openworkflow.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.api.types.Workflow; /** * Utility class for writing Serverless Workflow definitions to various outputs and formats. diff --git a/api/src/main/java/io/serverlessworkflow/serialization/BeanDeserializerModifierWithValidation.java b/api/src/main/java/org/openworkflow/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/serialization/BeanDeserializerModifierWithValidation.java index e4e019aca..2998c4d55 100644 --- a/api/src/main/java/io/serverlessworkflow/serialization/BeanDeserializerModifierWithValidation.java +++ b/api/src/main/java/org/openworkflow/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.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/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/serialization/BeanDeserializerWithValidation.java index a77e117dc..08c5b9341 100644 --- a/api/src/main/java/io/serverlessworkflow/serialization/BeanDeserializerWithValidation.java +++ b/api/src/main/java/org/openworkflow/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.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/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/serialization/URIDeserializer.java index a3269ab65..e5e164333 100644 --- a/api/src/main/java/io/serverlessworkflow/serialization/URIDeserializer.java +++ b/api/src/main/java/org/openworkflow/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.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/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/serialization/URISerializer.java index a36561d29..272fe3de8 100644 --- a/api/src/main/java/io/serverlessworkflow/serialization/URISerializer.java +++ b/api/src/main/java/org/openworkflow/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.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/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/api/ApiTest.java index 7c05099a9..777283a90 100644 --- a/api/src/test/java/io/serverlessworkflow/api/ApiTest.java +++ b/api/src/test/java/org/openworkflow/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.api; -import static io.serverlessworkflow.api.WorkflowReader.readWorkflowFromClasspath; import static org.assertj.core.api.Assertions.assertThat; +import static org.openworkflow.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.api.types.BearerAuthenticationPolicy; +import org.openworkflow.api.types.CallFunction; +import org.openworkflow.api.types.CallHTTP; +import org.openworkflow.api.types.CallTask; +import org.openworkflow.api.types.HTTPArguments; +import org.openworkflow.api.types.OAuth2AuthenticationData.OAuth2AuthenticationDataGrant; +import org.openworkflow.api.types.OAuth2AuthenticationPolicy; +import org.openworkflow.api.types.OAuth2AuthenticationPropertiesEndpoints; +import org.openworkflow.api.types.OAuth2ConnectAuthenticationProperties; +import org.openworkflow.api.types.Task; +import org.openworkflow.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/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/api/FeaturesTest.java index 983c7a542..78c8f422b 100644 --- a/api/src/test/java/io/serverlessworkflow/api/FeaturesTest.java +++ b/api/src/test/java/org/openworkflow/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.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.api.WorkflowReader.readWorkflowFromClasspath; +import static org.openworkflow.api.WorkflowReader.validation; +import static org.openworkflow.api.WorkflowWriter.workflowAsBytes; +import static org.openworkflow.api.WorkflowWriter.workflowAsString; +import static org.openworkflow.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.api.types.Workflow; import org.slf4j.Logger; import org.slf4j.LoggerFactory; diff --git a/bom/pom.xml b/bom/pom.xml index 3c6a4e0d1..95e0cbac9 100644 --- a/bom/pom.xml +++ b/bom/pom.xml @@ -2,14 +2,14 @@ 4.0.0 - io.serverlessworkflow - serverlessworkflow-parent + org.openworkflow + openworkflow-parent 8.0.0-SNAPSHOT - serverlessworkflow-bom + openworkflow-bom pom - Serverless Workflow :: BOM + Open Workflow :: BOM Bill of Materials for Serverless Workflow Java SDK diff --git a/examples/events/pom.xml b/examples/events/pom.xml index 0bf45d8dc..139d8932b 100644 --- a/examples/events/pom.xml +++ b/examples/events/pom.xml @@ -1,12 +1,12 @@ 4.0.0 - io.serverlessworkflow - serverlessworkflow-examples + org.openworkflow + 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 + 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..5884c8758 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.api.WorkflowReader; +import org.openworkflow.impl.WorkflowApplication; +import org.openworkflow.impl.WorkflowDefinition; +import org.openworkflow.impl.WorkflowInstance; import org.slf4j.Logger; import org.slf4j.LoggerFactory; diff --git a/examples/pom.xml b/examples/pom.xml index 8da9c1a12..8fcfea156 100644 --- a/examples/pom.xml +++ b/examples/pom.xml @@ -1,13 +1,13 @@ 4.0.0 - io.serverlessworkflow - serverlessworkflow-parent + org.openworkflow + 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 + openworkflow-impl-core ${project.version} - io.serverlessworkflow - serverlessworkflow-impl-http + org.openworkflow + openworkflow-impl-http ${project.version} - io.serverlessworkflow - serverlessworkflow-impl-jackson + org.openworkflow + openworkflow-impl-jackson ${project.version} diff --git a/examples/simpleGet/pom.xml b/examples/simpleGet/pom.xml index 7790e276f..b57c9abd8 100644 --- a/examples/simpleGet/pom.xml +++ b/examples/simpleGet/pom.xml @@ -1,25 +1,25 @@ 4.0.0 - io.serverlessworkflow - serverlessworkflow-examples + org.openworkflow + 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.impl.BlockingExample - io.serverlessworkflow - serverlessworkflow-impl-jackson + org.openworkflow + openworkflow-impl-jackson - io.serverlessworkflow - serverlessworkflow-impl-http + org.openworkflow + 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/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/impl/BlockingExample.java index 233d121fd..e07cf8bfe 100644 --- a/examples/simpleGet/src/main/java/io/serverlessworkflow/impl/BlockingExample.java +++ b/examples/simpleGet/src/main/java/org/openworkflow/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.impl; -import io.serverlessworkflow.api.WorkflowReader; import java.io.IOException; import java.util.Map; +import org.openworkflow.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/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/impl/NotBlockingExample.java index 39cfe6f57..d75716431 100644 --- a/examples/simpleGet/src/main/java/io/serverlessworkflow/impl/NotBlockingExample.java +++ b/examples/simpleGet/src/main/java/org/openworkflow/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.impl; -import io.serverlessworkflow.api.WorkflowReader; import java.io.IOException; import java.util.Map; +import org.openworkflow.api.WorkflowReader; import org.slf4j.Logger; import org.slf4j.LoggerFactory; diff --git a/fluent/README.md b/fluent/README.md index 0b50006e6..80ac55ded 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/serverlessworkflow/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 + openworkflow-fluent-spec + ${version.org.openworkflow} - io.serverlessworkflow - serverlessworkflow-fluent-func - ${version.io.serverlessworkflow} + org.openworkflow + openworkflow-fluent-func + ${version.org.openworkflow} - io.serverlessworkflow - serverlessworkflow-fluent-agentic - ${version.io.serverlessworkflow} + org.openworkflow + openworkflow-fluent-agentic + ${version.org.openworkflow} ``` @@ -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.api.types.Workflow; +import org.openworkflow.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.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.api.types.Workflow; +import org.openworkflow.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.api.types.Workflow; +import org.openworkflow.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.api.types.Workflow; +import org.openworkflow.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..569b750cd 100644 --- a/fluent/pom.xml +++ b/fluent/pom.xml @@ -2,12 +2,12 @@ 4.0.0 - io.serverlessworkflow - serverlessworkflow-parent + org.openworkflow + 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..1d4a5270f 100644 --- a/fluent/spec/pom.xml +++ b/fluent/spec/pom.xml @@ -2,12 +2,12 @@ 4.0.0 - io.serverlessworkflow - serverlessworkflow-fluent + org.openworkflow + 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 + 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/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/fluent/spec/AbstractEmitTaskBuilder.java index 3c66c286f..bd16b5b99 100644 --- a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/AbstractEmitTaskBuilder.java +++ b/fluent/spec/src/main/java/org/openworkflow/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.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.api.types.EmitEventDefinition; +import org.openworkflow.api.types.EmitTask; +import org.openworkflow.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/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/fluent/spec/AbstractEventConsumptionStrategyBuilder.java index 2b5394713..cc4bf65ee 100644 --- a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/AbstractEventConsumptionStrategyBuilder.java +++ b/fluent/spec/src/main/java/org/openworkflow/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.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.api.types.AllEventConsumptionStrategy; +import org.openworkflow.api.types.AnyEventConsumptionStrategy; +import org.openworkflow.api.types.EventFilter; +import org.openworkflow.api.types.OneEventConsumptionStrategy; +import org.openworkflow.api.types.Until; +import org.openworkflow.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/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/fluent/spec/AbstractEventFilterBuilder.java index 58ad07d45..6129c47ae 100644 --- a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/AbstractEventFilterBuilder.java +++ b/fluent/spec/src/main/java/org/openworkflow/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.fluent.spec; -import io.serverlessworkflow.api.types.EventFilter; -import io.serverlessworkflow.api.types.EventFilterCorrelate; import java.util.function.Consumer; +import org.openworkflow.api.types.EventFilter; +import org.openworkflow.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/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/fluent/spec/AbstractEventPropertiesBuilder.java index 62f50e481..26fe0f77c 100644 --- a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/AbstractEventPropertiesBuilder.java +++ b/fluent/spec/src/main/java/org/openworkflow/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.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.api.types.EventData; +import org.openworkflow.api.types.EventProperties; +import org.openworkflow.api.types.EventSource; +import org.openworkflow.api.types.EventTime; +import org.openworkflow.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/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/fluent/spec/AbstractForkTaskBuilder.java index bf3c1ce76..ca1fcac86 100644 --- a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/AbstractForkTaskBuilder.java +++ b/fluent/spec/src/main/java/org/openworkflow/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.fluent.spec; + import java.util.ArrayList; import java.util.List; import java.util.Objects; import java.util.function.Consumer; +import org.openworkflow.api.types.DoTask; +import org.openworkflow.api.types.ForkTask; +import org.openworkflow.api.types.ForkTaskConfiguration; +import org.openworkflow.api.types.Task; +import org.openworkflow.api.types.TaskItem; +import org.openworkflow.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/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/fluent/spec/AbstractListenTaskBuilder.java index db3a6ba0a..1f6c0267e 100644 --- a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/AbstractListenTaskBuilder.java +++ b/fluent/spec/src/main/java/org/openworkflow/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.fluent.spec; + import java.util.function.Consumer; +import org.openworkflow.api.types.CorrelateProperty; +import org.openworkflow.api.types.ListenTask; +import org.openworkflow.api.types.ListenTaskConfiguration; +import org.openworkflow.api.types.ListenTo; +import org.openworkflow.api.types.TaskTimeout; +import org.openworkflow.api.types.Timeout; +import org.openworkflow.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/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/fluent/spec/BaseDoTaskBuilder.java index 94e0c8734..d2b73a262 100644 --- a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/BaseDoTaskBuilder.java +++ b/fluent/spec/src/main/java/org/openworkflow/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.fluent.spec; -import io.serverlessworkflow.api.types.DoTask; import java.util.Objects; import java.util.function.Consumer; +import org.openworkflow.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/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/fluent/spec/BaseRaiseTaskBuilder.java index 7d4e128e2..542a6e67f 100644 --- a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/BaseRaiseTaskBuilder.java +++ b/fluent/spec/src/main/java/org/openworkflow/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.fluent.spec; + import java.net.URI; import java.net.URISyntaxException; import java.util.function.Consumer; +import org.openworkflow.api.types.ErrorDetails; +import org.openworkflow.api.types.ErrorTitle; +import org.openworkflow.api.types.ErrorType; +import org.openworkflow.api.types.RaiseTask; +import org.openworkflow.api.types.RaiseTaskConfiguration; +import org.openworkflow.api.types.RaiseTaskError; +import org.openworkflow.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.api.types.Error error; private RaiseTaskErrorBuilder() { - this.error = new io.serverlessworkflow.api.types.Error(); + this.error = new org.openworkflow.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/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/fluent/spec/BaseTaskItemListBuilder.java index 76a0dc57d..3af0905f0 100644 --- a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/BaseTaskItemListBuilder.java +++ b/fluent/spec/src/main/java/org/openworkflow/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.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.api.types.TaskBase; +import org.openworkflow.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/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/fluent/spec/BaseTryTaskBuilder.java index aa2fc410a..b902c5681 100644 --- a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/BaseTryTaskBuilder.java +++ b/fluent/spec/src/main/java/org/openworkflow/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.fluent.spec; + import java.util.ArrayList; import java.util.List; import java.util.function.Consumer; +import org.openworkflow.api.types.CatchErrors; +import org.openworkflow.api.types.Constant; +import org.openworkflow.api.types.ConstantBackoff; +import org.openworkflow.api.types.ErrorFilter; +import org.openworkflow.api.types.Exponential; +import org.openworkflow.api.types.ExponentialBackOff; +import org.openworkflow.api.types.Linear; +import org.openworkflow.api.types.LinearBackoff; +import org.openworkflow.api.types.Retry; +import org.openworkflow.api.types.RetryBackoff; +import org.openworkflow.api.types.RetryLimit; +import org.openworkflow.api.types.RetryLimitAttempt; +import org.openworkflow.api.types.RetryPolicy; +import org.openworkflow.api.types.RetryPolicyJitter; +import org.openworkflow.api.types.TaskItem; +import org.openworkflow.api.types.TimeoutAfter; +import org.openworkflow.api.types.TryTask; +import org.openworkflow.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/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/fluent/spec/BaseWorkflowBuilder.java index 365322618..0f80709c7 100644 --- a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/BaseWorkflowBuilder.java +++ b/fluent/spec/src/main/java/org/openworkflow/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.fluent.spec; + +import static org.openworkflow.types.Defaults.DSL; + import java.util.ArrayList; import java.util.List; import java.util.UUID; import java.util.function.Consumer; +import org.openworkflow.api.types.DoTimeout; +import org.openworkflow.api.types.Document; +import org.openworkflow.api.types.Input; +import org.openworkflow.api.types.Output; +import org.openworkflow.api.types.TaskItem; +import org.openworkflow.api.types.Timeout; +import org.openworkflow.api.types.TimeoutAfter; +import org.openworkflow.api.types.Workflow; +import org.openworkflow.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/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/fluent/spec/BasicAuthenticationPolicyBuilder.java index 6b9813913..7e8ff5eb6 100644 --- a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/BasicAuthenticationPolicyBuilder.java +++ b/fluent/spec/src/main/java/org/openworkflow/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.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.api.types.BasicAuthenticationPolicy; +import org.openworkflow.api.types.BasicAuthenticationPolicyConfiguration; +import org.openworkflow.api.types.BasicAuthenticationProperties; +import org.openworkflow.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/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/fluent/spec/BearerAuthenticationPolicyBuilder.java index f8847638d..e6c224e5d 100644 --- a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/BearerAuthenticationPolicyBuilder.java +++ b/fluent/spec/src/main/java/org/openworkflow/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.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.api.types.BearerAuthenticationPolicy; +import org.openworkflow.api.types.BearerAuthenticationPolicyConfiguration; +import org.openworkflow.api.types.BearerAuthenticationProperties; +import org.openworkflow.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/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/fluent/spec/CallGrpcTaskBuilder.java index cd83ae088..fb5a96577 100644 --- a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/CallGrpcTaskBuilder.java +++ b/fluent/spec/src/main/java/org/openworkflow/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.fluent.spec; -import io.serverlessworkflow.api.types.CallGRPC; -import io.serverlessworkflow.api.types.GRPCArguments; -import io.serverlessworkflow.fluent.spec.spi.CallGrpcTaskFluent; +import org.openworkflow.api.types.CallGRPC; +import org.openworkflow.api.types.GRPCArguments; +import org.openworkflow.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/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/fluent/spec/CallHttpTaskBuilder.java index 0b097f996..33b864b3d 100644 --- a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/CallHttpTaskBuilder.java +++ b/fluent/spec/src/main/java/org/openworkflow/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.fluent.spec; -import io.serverlessworkflow.api.types.CallHTTP; -import io.serverlessworkflow.api.types.HTTPArguments; -import io.serverlessworkflow.fluent.spec.spi.CallHttpTaskFluent; +import org.openworkflow.api.types.CallHTTP; +import org.openworkflow.api.types.HTTPArguments; +import org.openworkflow.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/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/fluent/spec/CallOpenAPITaskBuilder.java index cc7ebce99..51218143e 100644 --- a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/CallOpenAPITaskBuilder.java +++ b/fluent/spec/src/main/java/org/openworkflow/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.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.api.types.CallOpenAPI; +import org.openworkflow.api.types.OpenAPIArguments; +import org.openworkflow.api.types.WithOpenAPIParameters; +import org.openworkflow.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/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/fluent/spec/DigestAuthenticationPolicyBuilder.java index 2fae66c74..8338b5eeb 100644 --- a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/DigestAuthenticationPolicyBuilder.java +++ b/fluent/spec/src/main/java/org/openworkflow/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.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.api.types.DigestAuthenticationPolicy; +import org.openworkflow.api.types.DigestAuthenticationPolicyConfiguration; +import org.openworkflow.api.types.DigestAuthenticationProperties; +import org.openworkflow.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/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/fluent/spec/DoTaskBuilder.java index 4199811e3..f96d64e4e 100644 --- a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/DoTaskBuilder.java +++ b/fluent/spec/src/main/java/org/openworkflow/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.fluent.spec; -import io.serverlessworkflow.fluent.spec.spi.DoFluent; import java.util.function.Consumer; +import org.openworkflow.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/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/fluent/spec/DocumentBuilder.java index afb139168..f2c63e0f8 100644 --- a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/DocumentBuilder.java +++ b/fluent/spec/src/main/java/org/openworkflow/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.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.api.types.Document; +import org.openworkflow.api.types.WorkflowMetadata; +import org.openworkflow.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/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/fluent/spec/DurationInlineBuilder.java index f4933bb45..4e12b288a 100644 --- a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/DurationInlineBuilder.java +++ b/fluent/spec/src/main/java/org/openworkflow/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.fluent.spec; -import io.serverlessworkflow.api.types.DurationInline; +import org.openworkflow.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/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/fluent/spec/EmitTaskBuilder.java index 823a80c2a..9928707f8 100644 --- a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/EmitTaskBuilder.java +++ b/fluent/spec/src/main/java/org/openworkflow/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.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/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/fluent/spec/EventConsumptionStrategyBuilder.java index c9bb98834..8369b5c61 100644 --- a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/EventConsumptionStrategyBuilder.java +++ b/fluent/spec/src/main/java/org/openworkflow/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.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.api.types.AllEventConsumptionStrategy; +import org.openworkflow.api.types.AnyEventConsumptionStrategy; +import org.openworkflow.api.types.EventConsumptionStrategy; +import org.openworkflow.api.types.OneEventConsumptionStrategy; +import org.openworkflow.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/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/fluent/spec/EventFilterBuilder.java index 90706a5c9..b3590f802 100644 --- a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/EventFilterBuilder.java +++ b/fluent/spec/src/main/java/org/openworkflow/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.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/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/fluent/spec/EventPropertiesBuilder.java index 27fb3b475..bc65b32cd 100644 --- a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/EventPropertiesBuilder.java +++ b/fluent/spec/src/main/java/org/openworkflow/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.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/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/fluent/spec/ExportBuilder.java index a5f600c72..3c4cc8bc1 100644 --- a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/ExportBuilder.java +++ b/fluent/spec/src/main/java/org/openworkflow/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.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.api.types.Endpoint; +import org.openworkflow.api.types.Export; +import org.openworkflow.api.types.ExportAs; +import org.openworkflow.api.types.ExternalResource; +import org.openworkflow.api.types.SchemaExternal; +import org.openworkflow.api.types.SchemaInline; +import org.openworkflow.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/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/fluent/spec/ForEachTaskBuilder.java index b1d1462e6..677914e76 100644 --- a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/ForEachTaskBuilder.java +++ b/fluent/spec/src/main/java/org/openworkflow/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.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.api.types.ForIn; +import org.openworkflow.api.types.ForTask; +import org.openworkflow.api.types.ForTaskConfiguration; +import org.openworkflow.api.types.TaskItem; +import org.openworkflow.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/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/fluent/spec/ForkTaskBuilder.java index 40ca82246..ea05026a3 100644 --- a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/ForkTaskBuilder.java +++ b/fluent/spec/src/main/java/org/openworkflow/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.fluent.spec; -import io.serverlessworkflow.fluent.spec.spi.ForkTaskFluent; +import org.openworkflow.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/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/fluent/spec/InputBuilder.java index 154291340..c0dd2ce66 100644 --- a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/InputBuilder.java +++ b/fluent/spec/src/main/java/org/openworkflow/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.fluent.spec; + +import org.openworkflow.api.types.Endpoint; +import org.openworkflow.api.types.ExternalResource; +import org.openworkflow.api.types.Input; +import org.openworkflow.api.types.InputFrom; +import org.openworkflow.api.types.SchemaExternal; +import org.openworkflow.api.types.SchemaInline; +import org.openworkflow.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/fluent/spec/ListenTaskBuilder.java similarity index 90% rename from fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/ListenTaskBuilder.java rename to fluent/spec/src/main/java/org/openworkflow/fluent/spec/ListenTaskBuilder.java index a4583aab3..c6244b828 100644 --- a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/ListenTaskBuilder.java +++ b/fluent/spec/src/main/java/org/openworkflow/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,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.fluent.spec; /** * Fluent builder for a "listen" task in a Serverless Workflow. Enforces exactly one consumption diff --git a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/ListenToBuilder.java b/fluent/spec/src/main/java/org/openworkflow/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/fluent/spec/ListenToBuilder.java index 876be8164..dda467d7c 100644 --- a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/ListenToBuilder.java +++ b/fluent/spec/src/main/java/org/openworkflow/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.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.api.types.AllEventConsumptionStrategy; +import org.openworkflow.api.types.AnyEventConsumptionStrategy; +import org.openworkflow.api.types.ListenTo; +import org.openworkflow.api.types.OneEventConsumptionStrategy; +import org.openworkflow.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/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/fluent/spec/ListenToConfigurerBuilder.java index 3b69603d3..aa33e92ea 100644 --- a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/ListenToConfigurerBuilder.java +++ b/fluent/spec/src/main/java/org/openworkflow/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.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/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/fluent/spec/OAuth2AuthenticationPolicyBuilder.java index 014ffc163..5232225d2 100644 --- a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/OAuth2AuthenticationPolicyBuilder.java +++ b/fluent/spec/src/main/java/org/openworkflow/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.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.api.types.OAuth2AuthenticationPolicy; +import org.openworkflow.api.types.OAuth2AuthenticationPolicyConfiguration; +import org.openworkflow.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/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/fluent/spec/OIDCBuilder.java index f4bd17fde..5af015a77 100644 --- a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/OIDCBuilder.java +++ b/fluent/spec/src/main/java/org/openworkflow/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.fluent.spec; + import java.util.List; import java.util.function.Consumer; +import org.openworkflow.api.types.AuthenticationPolicy; +import org.openworkflow.api.types.OAuth2AuthenticationData; +import org.openworkflow.api.types.OAuth2AuthenticationDataClient; +import org.openworkflow.api.types.OAuth2ConnectAuthenticationProperties; +import org.openworkflow.api.types.OAuth2TokenDefinition; +import org.openworkflow.api.types.OAuth2TokenRequest; +import org.openworkflow.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/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/fluent/spec/OpenIdConnectAuthenticationPolicyBuilder.java index b52710064..1d713ce68 100644 --- a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/OpenIdConnectAuthenticationPolicyBuilder.java +++ b/fluent/spec/src/main/java/org/openworkflow/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.fluent.spec; -import io.serverlessworkflow.api.types.OpenIdConnectAuthenticationPolicy; -import io.serverlessworkflow.api.types.OpenIdConnectAuthenticationPolicyConfiguration; +import org.openworkflow.api.types.OpenIdConnectAuthenticationPolicy; +import org.openworkflow.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/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/fluent/spec/OutputBuilder.java index 587911725..a4f659e4b 100644 --- a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/OutputBuilder.java +++ b/fluent/spec/src/main/java/org/openworkflow/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.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.api.types.Endpoint; +import org.openworkflow.api.types.ExternalResource; +import org.openworkflow.api.types.Output; +import org.openworkflow.api.types.OutputAs; +import org.openworkflow.api.types.SchemaExternal; +import org.openworkflow.api.types.SchemaInline; +import org.openworkflow.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/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/fluent/spec/RaiseTaskBuilder.java index 781a07e7d..d1fe8b457 100644 --- a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/RaiseTaskBuilder.java +++ b/fluent/spec/src/main/java/org/openworkflow/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.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/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/fluent/spec/ReferenceableAuthenticationPolicyBuilder.java index 20f573f24..3247add79 100644 --- a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/ReferenceableAuthenticationPolicyBuilder.java +++ b/fluent/spec/src/main/java/org/openworkflow/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.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.api.types.AuthenticationPolicyReference; +import org.openworkflow.api.types.AuthenticationPolicyUnion; +import org.openworkflow.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/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/fluent/spec/ScheduleBuilder.java index 8f922c380..5656f53ca 100644 --- a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/ScheduleBuilder.java +++ b/fluent/spec/src/main/java/org/openworkflow/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.fluent.spec; -import io.serverlessworkflow.api.types.Schedule; -import io.serverlessworkflow.api.types.TimeoutAfter; import java.util.function.Consumer; +import org.openworkflow.api.types.Schedule; +import org.openworkflow.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/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/fluent/spec/SetTaskBuilder.java index 0ce11ec4a..5eeaa7c2d 100644 --- a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/SetTaskBuilder.java +++ b/fluent/spec/src/main/java/org/openworkflow/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.fluent.spec; -import io.serverlessworkflow.api.types.Set; -import io.serverlessworkflow.api.types.SetTask; -import io.serverlessworkflow.api.types.SetTaskConfiguration; +import org.openworkflow.api.types.Set; +import org.openworkflow.api.types.SetTask; +import org.openworkflow.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/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/fluent/spec/SubscriptionIteratorBuilder.java index b57ef3c0b..dcc1d18d3 100644 --- a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/SubscriptionIteratorBuilder.java +++ b/fluent/spec/src/main/java/org/openworkflow/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.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.api.types.SubscriptionIterator; +import org.openworkflow.api.types.TaskItem; +import org.openworkflow.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/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/fluent/spec/SwitchTaskBuilder.java index 3db8c7a4b..ba03d9ae5 100644 --- a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/SwitchTaskBuilder.java +++ b/fluent/spec/src/main/java/org/openworkflow/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.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.api.types.SwitchItem; +import org.openworkflow.api.types.SwitchTask; +import org.openworkflow.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/fluent/spec/TaskBaseBuilder.java similarity index 85% rename from fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/TaskBaseBuilder.java rename to fluent/spec/src/main/java/org/openworkflow/fluent/spec/TaskBaseBuilder.java index d77a837c7..a002aa107 100644 --- a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/TaskBaseBuilder.java +++ b/fluent/spec/src/main/java/org/openworkflow/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.fluent.spec; + import java.util.function.Consumer; +import org.openworkflow.api.types.Export; +import org.openworkflow.api.types.FlowDirective; +import org.openworkflow.api.types.FlowDirectiveEnum; +import org.openworkflow.api.types.Input; +import org.openworkflow.api.types.Output; +import org.openworkflow.api.types.TaskBase; +import org.openworkflow.api.types.TaskTimeout; +import org.openworkflow.api.types.Timeout; +import org.openworkflow.api.types.TimeoutAfter; +import org.openworkflow.fluent.spec.spi.OutputFluent; +import org.openworkflow.fluent.spec.spi.TaskTransformationHandlers; public abstract class TaskBaseBuilder> implements TaskTransformationHandlers, OutputFluent { diff --git a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/TaskItemListBuilder.java b/fluent/spec/src/main/java/org/openworkflow/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/fluent/spec/TaskItemListBuilder.java index d227718f3..d90a74df5 100644 --- a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/TaskItemListBuilder.java +++ b/fluent/spec/src/main/java/org/openworkflow/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.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.api.types.CallTask; +import org.openworkflow.api.types.Task; +import org.openworkflow.api.types.TaskItem; +import org.openworkflow.fluent.spec.configurers.CallGrpcConfigurer; +import org.openworkflow.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/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/fluent/spec/TaskMetadataBuilder.java index b55bde903..aaa705677 100644 --- a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/TaskMetadataBuilder.java +++ b/fluent/spec/src/main/java/org/openworkflow/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.fluent.spec; -import io.serverlessworkflow.api.types.TaskMetadata; +import org.openworkflow.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/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/fluent/spec/TimeoutBuilder.java index 7af72ea9d..cfdec56d9 100644 --- a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/TimeoutBuilder.java +++ b/fluent/spec/src/main/java/org/openworkflow/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.fluent.spec; -import io.serverlessworkflow.api.types.Timeout; -import io.serverlessworkflow.api.types.TimeoutAfter; import java.util.function.Consumer; +import org.openworkflow.api.types.Timeout; +import org.openworkflow.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/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/fluent/spec/TryTaskBuilder.java index 3797d7c3b..0508cefd7 100644 --- a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/TryTaskBuilder.java +++ b/fluent/spec/src/main/java/org/openworkflow/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.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/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/fluent/spec/UriTemplateBuilder.java index 5fb74102c..24ba46c6f 100644 --- a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/UriTemplateBuilder.java +++ b/fluent/spec/src/main/java/org/openworkflow/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.fluent.spec; -import io.serverlessworkflow.api.types.UriTemplate; import java.net.URI; import java.net.URISyntaxException; +import org.openworkflow.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/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/fluent/spec/UseAuthenticationsBuilder.java index a0fe3613a..893dff16e 100644 --- a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/UseAuthenticationsBuilder.java +++ b/fluent/spec/src/main/java/org/openworkflow/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.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.api.types.OAuth2AuthenticationData; +import org.openworkflow.api.types.UseAuthentications; +import org.openworkflow.fluent.spec.OAuth2AuthenticationPolicyBuilder.OAuth2AuthenticationPropertiesEndpointsBuilder; +import org.openworkflow.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/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/fluent/spec/UseBuilder.java index c6c1d9970..81681cfae 100644 --- a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/UseBuilder.java +++ b/fluent/spec/src/main/java/org/openworkflow/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.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.api.types.Error; +import org.openworkflow.api.types.ErrorDetails; +import org.openworkflow.api.types.ErrorTitle; +import org.openworkflow.api.types.ErrorType; +import org.openworkflow.api.types.RetryPolicy; +import org.openworkflow.api.types.UriTemplate; +import org.openworkflow.api.types.Use; +import org.openworkflow.api.types.UseAuthentications; +import org.openworkflow.api.types.UseErrors; +import org.openworkflow.api.types.UseRetries; +import org.openworkflow.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/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/fluent/spec/WaitTaskBuilder.java index 6964085d3..163588500 100644 --- a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/WaitTaskBuilder.java +++ b/fluent/spec/src/main/java/org/openworkflow/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.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.api.types.DurationInline; +import org.openworkflow.api.types.TimeoutAfter; +import org.openworkflow.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/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/fluent/spec/WorkflowBuilder.java index e8151a093..786730aa1 100644 --- a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/WorkflowBuilder.java +++ b/fluent/spec/src/main/java/org/openworkflow/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.fluent.spec; -import static io.serverlessworkflow.types.Defaults.DEFAULT_NAMESPACE; -import static io.serverlessworkflow.types.Defaults.DEFAULT_VERSION; +import static org.openworkflow.types.Defaults.DEFAULT_NAMESPACE; +import static org.openworkflow.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/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/fluent/spec/WorkflowTaskBuilder.java index adef4214f..e04923f7e 100644 --- a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/WorkflowTaskBuilder.java +++ b/fluent/spec/src/main/java/org/openworkflow/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.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.api.types.RunTask; +import org.openworkflow.api.types.RunTaskConfigurationUnion; +import org.openworkflow.api.types.RunWorkflow; +import org.openworkflow.api.types.SubflowConfiguration; +import org.openworkflow.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/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/fluent/spec/configurers/AuthenticationConfigurer.java index cdd481ceb..05a4469ff 100644 --- a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/configurers/AuthenticationConfigurer.java +++ b/fluent/spec/src/main/java/org/openworkflow/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.fluent.spec.configurers; -import io.serverlessworkflow.fluent.spec.ReferenceableAuthenticationPolicyBuilder; import java.util.function.Consumer; +import org.openworkflow.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/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/fluent/spec/configurers/CallGrpcConfigurer.java index 130c3d643..2a60c7c52 100644 --- a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/configurers/CallGrpcConfigurer.java +++ b/fluent/spec/src/main/java/org/openworkflow/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.fluent.spec.configurers; -import io.serverlessworkflow.fluent.spec.CallGrpcTaskBuilder; import java.util.function.Consumer; +import org.openworkflow.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/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/fluent/spec/configurers/CallHttpConfigurer.java index d1397d053..c8a22fc57 100644 --- a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/configurers/CallHttpConfigurer.java +++ b/fluent/spec/src/main/java/org/openworkflow/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.fluent.spec.configurers; -import io.serverlessworkflow.fluent.spec.CallHttpTaskBuilder; import java.util.function.Consumer; +import org.openworkflow.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/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/fluent/spec/configurers/CallOpenAPIConfigurer.java index 730b3ca1d..ad3517928 100644 --- a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/configurers/CallOpenAPIConfigurer.java +++ b/fluent/spec/src/main/java/org/openworkflow/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.fluent.spec.configurers; -import io.serverlessworkflow.fluent.spec.CallOpenAPITaskBuilder; import java.util.function.Consumer; +import org.openworkflow.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/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/fluent/spec/configurers/EmitConfigurer.java index 4a969387a..05edee1e3 100644 --- a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/configurers/EmitConfigurer.java +++ b/fluent/spec/src/main/java/org/openworkflow/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.fluent.spec.configurers; -import io.serverlessworkflow.fluent.spec.EmitTaskBuilder; import java.util.function.Consumer; +import org.openworkflow.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/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/fluent/spec/configurers/EventPropertiesConfigurer.java index 4e24c0ea6..6ddac8942 100644 --- a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/configurers/EventPropertiesConfigurer.java +++ b/fluent/spec/src/main/java/org/openworkflow/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.fluent.spec.configurers; -import io.serverlessworkflow.fluent.spec.EventPropertiesBuilder; import java.util.function.Consumer; +import org.openworkflow.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/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/fluent/spec/configurers/ForEachConfigurer.java index bec8ba3c3..3a4f49ab5 100644 --- a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/configurers/ForEachConfigurer.java +++ b/fluent/spec/src/main/java/org/openworkflow/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.fluent.spec.configurers; -import io.serverlessworkflow.fluent.spec.ForEachTaskBuilder; -import io.serverlessworkflow.fluent.spec.TaskItemListBuilder; import java.util.function.Consumer; +import org.openworkflow.fluent.spec.ForEachTaskBuilder; +import org.openworkflow.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/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/fluent/spec/configurers/ListenConfigurer.java index 8cefae7f4..1808295db 100644 --- a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/configurers/ListenConfigurer.java +++ b/fluent/spec/src/main/java/org/openworkflow/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.fluent.spec.configurers; -import io.serverlessworkflow.fluent.spec.ListenTaskBuilder; import java.util.function.Consumer; +import org.openworkflow.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/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/fluent/spec/configurers/RaiseConfigurer.java index 5c9897d7d..95421e500 100644 --- a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/configurers/RaiseConfigurer.java +++ b/fluent/spec/src/main/java/org/openworkflow/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.fluent.spec.configurers; -import io.serverlessworkflow.fluent.spec.RaiseTaskBuilder; import java.util.function.Consumer; +import org.openworkflow.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/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/fluent/spec/configurers/RetryConfigurer.java index 2de6920e7..e6856b141 100644 --- a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/configurers/RetryConfigurer.java +++ b/fluent/spec/src/main/java/org/openworkflow/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.fluent.spec.configurers; -import io.serverlessworkflow.fluent.spec.TryTaskBuilder; import java.util.function.Consumer; +import org.openworkflow.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/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/fluent/spec/configurers/SetConfigurer.java index e6a939f29..7a375b88a 100644 --- a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/configurers/SetConfigurer.java +++ b/fluent/spec/src/main/java/org/openworkflow/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.fluent.spec.configurers; -import io.serverlessworkflow.fluent.spec.SetTaskBuilder; import java.util.function.Consumer; +import org.openworkflow.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/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/fluent/spec/configurers/SwitchConfigurer.java index 54778888b..d44289303 100644 --- a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/configurers/SwitchConfigurer.java +++ b/fluent/spec/src/main/java/org/openworkflow/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.fluent.spec.configurers; -import io.serverlessworkflow.fluent.spec.SwitchTaskBuilder; import java.util.function.Consumer; +import org.openworkflow.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/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/fluent/spec/configurers/TasksConfigurer.java index 276019fc5..e9d010cac 100644 --- a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/configurers/TasksConfigurer.java +++ b/fluent/spec/src/main/java/org/openworkflow/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.fluent.spec.configurers; -import io.serverlessworkflow.fluent.spec.TaskItemListBuilder; import java.util.function.Consumer; +import org.openworkflow.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/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/fluent/spec/configurers/TryCatchConfigurer.java index e256cc30d..0a72fef08 100644 --- a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/configurers/TryCatchConfigurer.java +++ b/fluent/spec/src/main/java/org/openworkflow/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.fluent.spec.configurers; -import io.serverlessworkflow.fluent.spec.TaskItemListBuilder; -import io.serverlessworkflow.fluent.spec.TryTaskBuilder; import java.util.function.Consumer; +import org.openworkflow.fluent.spec.TaskItemListBuilder; +import org.openworkflow.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/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/fluent/spec/configurers/TryConfigurer.java index 59b5f2899..38808ff83 100644 --- a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/configurers/TryConfigurer.java +++ b/fluent/spec/src/main/java/org/openworkflow/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.fluent.spec.configurers; -import io.serverlessworkflow.fluent.spec.TaskItemListBuilder; -import io.serverlessworkflow.fluent.spec.TryTaskBuilder; import java.util.function.Consumer; +import org.openworkflow.fluent.spec.TaskItemListBuilder; +import org.openworkflow.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/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/fluent/spec/configurers/UseConfigurer.java index 5fe1781d3..e2c06e05f 100644 --- a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/configurers/UseConfigurer.java +++ b/fluent/spec/src/main/java/org/openworkflow/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.fluent.spec.configurers; -import io.serverlessworkflow.fluent.spec.UseBuilder; import java.util.function.Consumer; +import org.openworkflow.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/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/fluent/spec/configurers/WorkflowConfigurer.java index 087b78d73..640a2891b 100644 --- a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/configurers/WorkflowConfigurer.java +++ b/fluent/spec/src/main/java/org/openworkflow/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.fluent.spec.configurers; -import io.serverlessworkflow.fluent.spec.WorkflowTaskBuilder; import java.util.function.Consumer; +import org.openworkflow.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/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/fluent/spec/dsl/AbstractEventFilterSpec.java index 48a82fe8f..3a811d02b 100644 --- a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/dsl/AbstractEventFilterSpec.java +++ b/fluent/spec/src/main/java/org/openworkflow/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.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.fluent.spec.AbstractEventFilterBuilder; +import org.openworkflow.fluent.spec.AbstractEventPropertiesBuilder; +import org.openworkflow.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/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/fluent/spec/dsl/BaseCallHttpSpec.java index 8ab237a1f..0bc83812a 100644 --- a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/dsl/BaseCallHttpSpec.java +++ b/fluent/spec/src/main/java/org/openworkflow/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.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.fluent.spec.configurers.AuthenticationConfigurer; +import org.openworkflow.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/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/fluent/spec/dsl/BaseListenSpec.java index f78cb58c1..acc36a931 100644 --- a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/dsl/BaseListenSpec.java +++ b/fluent/spec/src/main/java/org/openworkflow/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.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.fluent.spec.ListenTaskBuilder} type LISTEN_TO - {@link + * org.openworkflow.fluent.spec.ListenToBuilder} type EVENT_FILTER - {@link + * org.openworkflow.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/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/fluent/spec/dsl/CallGrpcSpec.java index 836164683..b120bee54 100644 --- a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/dsl/CallGrpcSpec.java +++ b/fluent/spec/src/main/java/org/openworkflow/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.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.fluent.spec.CallGrpcTaskBuilder; +import org.openworkflow.fluent.spec.configurers.AuthenticationConfigurer; +import org.openworkflow.fluent.spec.configurers.CallGrpcConfigurer; +import org.openworkflow.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/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/fluent/spec/dsl/CallHttpSpec.java index b1fd5b59b..b8f7c2b5d 100644 --- a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/dsl/CallHttpSpec.java +++ b/fluent/spec/src/main/java/org/openworkflow/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.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.fluent.spec.CallHttpTaskBuilder; +import org.openworkflow.fluent.spec.configurers.CallHttpConfigurer; +import org.openworkflow.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/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/fluent/spec/dsl/CallOpenAPISpec.java index 8da74f1c4..163dfe0a5 100644 --- a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/dsl/CallOpenAPISpec.java +++ b/fluent/spec/src/main/java/org/openworkflow/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.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.api.types.OpenAPIArguments; +import org.openworkflow.fluent.spec.CallOpenAPITaskBuilder; +import org.openworkflow.fluent.spec.configurers.AuthenticationConfigurer; +import org.openworkflow.fluent.spec.configurers.CallOpenAPIConfigurer; +import org.openworkflow.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/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/fluent/spec/dsl/DSL.java index c88f9a2d1..651ae2700 100644 --- a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/dsl/DSL.java +++ b/fluent/spec/src/main/java/org/openworkflow/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.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.api.types.OAuth2AuthenticationData; +import org.openworkflow.fluent.spec.AbstractEventConsumptionStrategyBuilder; +import org.openworkflow.fluent.spec.DoTaskBuilder; +import org.openworkflow.fluent.spec.EmitTaskBuilder; +import org.openworkflow.fluent.spec.EventFilterBuilder; +import org.openworkflow.fluent.spec.ForkTaskBuilder; +import org.openworkflow.fluent.spec.OAuth2AuthenticationPolicyBuilder; +import org.openworkflow.fluent.spec.OAuth2AuthenticationPolicyBuilder.OAuth2AuthenticationPropertiesEndpointsBuilder; +import org.openworkflow.fluent.spec.ScheduleBuilder; +import org.openworkflow.fluent.spec.TaskItemListBuilder; +import org.openworkflow.fluent.spec.TimeoutBuilder; +import org.openworkflow.fluent.spec.TryTaskBuilder; +import org.openworkflow.fluent.spec.configurers.AuthenticationConfigurer; +import org.openworkflow.fluent.spec.configurers.CallGrpcConfigurer; +import org.openworkflow.fluent.spec.configurers.CallHttpConfigurer; +import org.openworkflow.fluent.spec.configurers.CallOpenAPIConfigurer; +import org.openworkflow.fluent.spec.configurers.ForEachConfigurer; +import org.openworkflow.fluent.spec.configurers.ListenConfigurer; +import org.openworkflow.fluent.spec.configurers.RaiseConfigurer; +import org.openworkflow.fluent.spec.configurers.RetryConfigurer; +import org.openworkflow.fluent.spec.configurers.SetConfigurer; +import org.openworkflow.fluent.spec.configurers.SwitchConfigurer; +import org.openworkflow.fluent.spec.configurers.TasksConfigurer; +import org.openworkflow.fluent.spec.configurers.TryCatchConfigurer; +import org.openworkflow.fluent.spec.configurers.TryConfigurer; +import org.openworkflow.fluent.spec.configurers.WorkflowConfigurer; +import org.openworkflow.types.Errors; /** * High-level Java DSL shortcuts for building workflows. @@ -534,7 +534,7 @@ public static AuthenticationConfigurer oauth2( * *

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.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.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.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/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/fluent/spec/dsl/EmitSpec.java index a4af29c5a..fcbe165a0 100644 --- a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/dsl/EmitSpec.java +++ b/fluent/spec/src/main/java/org/openworkflow/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.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.fluent.spec.EmitTaskBuilder; +import org.openworkflow.fluent.spec.EventPropertiesBuilder; +import org.openworkflow.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/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/fluent/spec/dsl/EventEmitPropertiesSpec.java index 022a985b7..14cd21748 100644 --- a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/dsl/EventEmitPropertiesSpec.java +++ b/fluent/spec/src/main/java/org/openworkflow/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.fluent.spec.dsl; -import io.serverlessworkflow.fluent.spec.AbstractEventPropertiesBuilder; import java.time.Instant; import java.util.Date; import java.util.UUID; +import org.openworkflow.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/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/fluent/spec/dsl/EventFilterSpec.java index 2d61f830f..9006e576b 100644 --- a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/dsl/EventFilterSpec.java +++ b/fluent/spec/src/main/java/org/openworkflow/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.fluent.spec.dsl; -import io.serverlessworkflow.fluent.spec.EventFilterBuilder; -import io.serverlessworkflow.fluent.spec.EventPropertiesBuilder; +import org.openworkflow.fluent.spec.EventFilterBuilder; +import org.openworkflow.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/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/fluent/spec/dsl/EventPropertiesSpec.java index ef80dc04c..f6895befe 100644 --- a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/dsl/EventPropertiesSpec.java +++ b/fluent/spec/src/main/java/org/openworkflow/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.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.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/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/fluent/spec/dsl/ExprEventEmitPropertiesSpec.java index 2fae54b39..60b5f4e64 100644 --- a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/dsl/ExprEventEmitPropertiesSpec.java +++ b/fluent/spec/src/main/java/org/openworkflow/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.fluent.spec.dsl; -import io.serverlessworkflow.fluent.spec.AbstractEventPropertiesBuilder; import java.util.Map; +import org.openworkflow.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/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/fluent/spec/dsl/ExprEventFilterSpec.java index dbe0c4933..62ac77aa0 100644 --- a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/dsl/ExprEventFilterSpec.java +++ b/fluent/spec/src/main/java/org/openworkflow/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.fluent.spec.dsl; -import io.serverlessworkflow.fluent.spec.AbstractEventPropertiesBuilder; +import org.openworkflow.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/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/fluent/spec/dsl/ListenSpec.java index b26702b2f..aa0f27ca5 100644 --- a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/dsl/ListenSpec.java +++ b/fluent/spec/src/main/java/org/openworkflow/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.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.fluent.spec.AbstractEventConsumptionStrategyBuilder; +import org.openworkflow.fluent.spec.AbstractListenTaskBuilder; +import org.openworkflow.fluent.spec.EventFilterBuilder; +import org.openworkflow.fluent.spec.ListenTaskBuilder; +import org.openworkflow.fluent.spec.ListenToBuilder; +import org.openworkflow.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/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/fluent/spec/dsl/RaiseSpec.java index da42bb30a..7fd8458f1 100644 --- a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/dsl/RaiseSpec.java +++ b/fluent/spec/src/main/java/org/openworkflow/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.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.fluent.spec.RaiseTaskBuilder; +import org.openworkflow.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/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/fluent/spec/dsl/RetrySpec.java index 0c80159ed..d372ab4e0 100644 --- a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/dsl/RetrySpec.java +++ b/fluent/spec/src/main/java/org/openworkflow/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.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.fluent.spec.DurationInlineBuilder; +import org.openworkflow.fluent.spec.TryTaskBuilder; +import org.openworkflow.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/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/fluent/spec/dsl/SwitchSpec.java index 2b68fd613..f19681f4d 100644 --- a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/dsl/SwitchSpec.java +++ b/fluent/spec/src/main/java/org/openworkflow/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.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.api.types.FlowDirectiveEnum; +import org.openworkflow.fluent.spec.SwitchTaskBuilder; +import org.openworkflow.fluent.spec.configurers.SwitchConfigurer; +import org.openworkflow.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/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/fluent/spec/dsl/TryCatchSpec.java index db9858949..9f16aed4c 100644 --- a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/dsl/TryCatchSpec.java +++ b/fluent/spec/src/main/java/org/openworkflow/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.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.fluent.spec.TaskItemListBuilder; +import org.openworkflow.fluent.spec.TryTaskBuilder; +import org.openworkflow.fluent.spec.configurers.TasksConfigurer; +import org.openworkflow.fluent.spec.configurers.TryCatchConfigurer; +import org.openworkflow.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/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/fluent/spec/dsl/TrySpec.java index dc0329587..a511372d5 100644 --- a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/dsl/TrySpec.java +++ b/fluent/spec/src/main/java/org/openworkflow/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.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.fluent.spec.TaskItemListBuilder; +import org.openworkflow.fluent.spec.TryTaskBuilder; +import org.openworkflow.fluent.spec.configurers.TasksConfigurer; +import org.openworkflow.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/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/fluent/spec/dsl/UseSpec.java index 547f189f9..0a4f3f314 100644 --- a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/dsl/UseSpec.java +++ b/fluent/spec/src/main/java/org/openworkflow/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.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.fluent.spec.UseBuilder; +import org.openworkflow.fluent.spec.configurers.AuthenticationConfigurer; +import org.openworkflow.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/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/fluent/spec/dsl/WorkflowSpec.java index 9c3d0539d..241a82010 100644 --- a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/dsl/WorkflowSpec.java +++ b/fluent/spec/src/main/java/org/openworkflow/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.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.api.types.RunTaskConfiguration; +import org.openworkflow.fluent.spec.WorkflowTaskBuilder; +import org.openworkflow.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/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/fluent/spec/spi/CallGrpcFluent.java index 818837273..7f8a0724a 100644 --- a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/spi/CallGrpcFluent.java +++ b/fluent/spec/src/main/java/org/openworkflow/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.fluent.spec.spi; -import io.serverlessworkflow.fluent.spec.TaskBaseBuilder; import java.util.function.Consumer; +import org.openworkflow.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/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/fluent/spec/spi/CallGrpcTaskFluent.java index fcc29e9cc..0b7d60fb9 100644 --- a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/spi/CallGrpcTaskFluent.java +++ b/fluent/spec/src/main/java/org/openworkflow/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.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.api.types.CallGRPC; +import org.openworkflow.api.types.Endpoint; +import org.openworkflow.api.types.EndpointConfiguration; +import org.openworkflow.api.types.EndpointUri; +import org.openworkflow.api.types.ExternalResource; +import org.openworkflow.api.types.GRPCArguments; +import org.openworkflow.api.types.ReferenceableAuthenticationPolicy; +import org.openworkflow.api.types.UriTemplate; +import org.openworkflow.api.types.WithGRPCArguments; +import org.openworkflow.api.types.WithGRPCService; +import org.openworkflow.fluent.spec.ReferenceableAuthenticationPolicyBuilder; +import org.openworkflow.fluent.spec.TaskBaseBuilder; +import org.openworkflow.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/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/fluent/spec/spi/CallHttpFluent.java index 5c3617cb0..1392bb7a0 100644 --- a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/spi/CallHttpFluent.java +++ b/fluent/spec/src/main/java/org/openworkflow/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.fluent.spec.spi; -import io.serverlessworkflow.fluent.spec.TaskBaseBuilder; import java.util.function.Consumer; +import org.openworkflow.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/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/fluent/spec/spi/CallHttpTaskFluent.java index fac512312..462379fb9 100644 --- a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/spi/CallHttpTaskFluent.java +++ b/fluent/spec/src/main/java/org/openworkflow/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.fluent.spec.spi; + import java.net.URI; import java.util.Map; import java.util.function.Consumer; +import org.openworkflow.api.types.AuthenticationPolicyReference; +import org.openworkflow.api.types.CallHTTP; +import org.openworkflow.api.types.Endpoint; +import org.openworkflow.api.types.EndpointConfiguration; +import org.openworkflow.api.types.EndpointUri; +import org.openworkflow.api.types.HTTPArguments; +import org.openworkflow.api.types.HTTPHeaders; +import org.openworkflow.api.types.HTTPQuery; +import org.openworkflow.api.types.Headers; +import org.openworkflow.api.types.Query; +import org.openworkflow.api.types.ReferenceableAuthenticationPolicy; +import org.openworkflow.api.types.UriTemplate; +import org.openworkflow.fluent.spec.ReferenceableAuthenticationPolicyBuilder; +import org.openworkflow.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/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/fluent/spec/spi/CallOpenAPIFluent.java index 56dc46d6e..8d69fde5d 100644 --- a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/spi/CallOpenAPIFluent.java +++ b/fluent/spec/src/main/java/org/openworkflow/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.fluent.spec.spi; -import io.serverlessworkflow.fluent.spec.TaskBaseBuilder; import java.util.function.Consumer; +import org.openworkflow.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/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/fluent/spec/spi/CallOpenAPITaskFluent.java index 2149e4649..492fa1261 100644 --- a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/spi/CallOpenAPITaskFluent.java +++ b/fluent/spec/src/main/java/org/openworkflow/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.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.api.types.CallOpenAPI; +import org.openworkflow.api.types.Endpoint; +import org.openworkflow.api.types.EndpointConfiguration; +import org.openworkflow.api.types.EndpointUri; +import org.openworkflow.api.types.ExternalResource; +import org.openworkflow.api.types.OpenAPIArguments; +import org.openworkflow.api.types.ReferenceableAuthenticationPolicy; +import org.openworkflow.api.types.UriTemplate; +import org.openworkflow.fluent.spec.ReferenceableAuthenticationPolicyBuilder; +import org.openworkflow.fluent.spec.TaskBaseBuilder; +import org.openworkflow.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/fluent/spec/spi/DoFluent.java similarity index 59% rename from fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/spi/DoFluent.java rename to fluent/spec/src/main/java/org/openworkflow/fluent/spec/spi/DoFluent.java index 37c5f461b..7bca79bb8 100644 --- a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/spi/DoFluent.java +++ b/fluent/spec/src/main/java/org/openworkflow/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,22 +13,22 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.fluent.spec.spi; +package org.openworkflow.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.fluent.spec.CallGrpcTaskBuilder; +import org.openworkflow.fluent.spec.CallHttpTaskBuilder; +import org.openworkflow.fluent.spec.CallOpenAPITaskBuilder; +import org.openworkflow.fluent.spec.EmitTaskBuilder; +import org.openworkflow.fluent.spec.ForEachTaskBuilder; +import org.openworkflow.fluent.spec.ForkTaskBuilder; +import org.openworkflow.fluent.spec.ListenTaskBuilder; +import org.openworkflow.fluent.spec.RaiseTaskBuilder; +import org.openworkflow.fluent.spec.SetTaskBuilder; +import org.openworkflow.fluent.spec.SwitchTaskBuilder; +import org.openworkflow.fluent.spec.TaskItemListBuilder; +import org.openworkflow.fluent.spec.TryTaskBuilder; +import org.openworkflow.fluent.spec.WaitTaskBuilder; +import org.openworkflow.fluent.spec.WorkflowTaskBuilder; /** * Documents the exposed fluent `do` DSL. diff --git a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/spi/EmitFluent.java b/fluent/spec/src/main/java/org/openworkflow/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/fluent/spec/spi/EmitFluent.java index 841bd4639..8fbceff9a 100644 --- a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/spi/EmitFluent.java +++ b/fluent/spec/src/main/java/org/openworkflow/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.fluent.spec.spi; -import io.serverlessworkflow.fluent.spec.TaskBaseBuilder; import java.util.function.Consumer; +import org.openworkflow.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/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/fluent/spec/spi/EndpointUtil.java index f13db07e7..3318df1af 100644 --- a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/spi/EndpointUtil.java +++ b/fluent/spec/src/main/java/org/openworkflow/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.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.api.types.Endpoint; +import org.openworkflow.api.types.EndpointConfiguration; +import org.openworkflow.api.types.EndpointUri; +import org.openworkflow.api.types.ReferenceableAuthenticationPolicy; +import org.openworkflow.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/fluent/spec/spi/EventConsumptionStrategyFluent.java similarity index 80% rename from fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/spi/EventConsumptionStrategyFluent.java rename to fluent/spec/src/main/java/org/openworkflow/fluent/spec/spi/EventConsumptionStrategyFluent.java index 91ba41e0f..46a25195a 100644 --- a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/spi/EventConsumptionStrategyFluent.java +++ b/fluent/spec/src/main/java/org/openworkflow/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.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.fluent.spec.AbstractEventFilterBuilder; +import org.openworkflow.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/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/fluent/spec/spi/ForEachFluent.java index e0ae0562a..b3f258e91 100644 --- a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/spi/ForEachFluent.java +++ b/fluent/spec/src/main/java/org/openworkflow/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.fluent.spec.spi; -import io.serverlessworkflow.fluent.spec.TaskBaseBuilder; import java.util.function.Consumer; +import org.openworkflow.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/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/fluent/spec/spi/ForEachTaskFluent.java index 00d77036f..47b003191 100644 --- a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/spi/ForEachTaskFluent.java +++ b/fluent/spec/src/main/java/org/openworkflow/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.fluent.spec.spi; -import io.serverlessworkflow.api.types.ForTask; -import io.serverlessworkflow.fluent.spec.BaseTaskItemListBuilder; -import io.serverlessworkflow.fluent.spec.TaskBaseBuilder; +import org.openworkflow.api.types.ForTask; +import org.openworkflow.fluent.spec.BaseTaskItemListBuilder; +import org.openworkflow.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/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/fluent/spec/spi/ForkFluent.java index 7c7c50703..748de39d8 100644 --- a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/spi/ForkFluent.java +++ b/fluent/spec/src/main/java/org/openworkflow/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.fluent.spec.spi; -import io.serverlessworkflow.fluent.spec.TaskBaseBuilder; import java.util.function.Consumer; +import org.openworkflow.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/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/fluent/spec/spi/ForkTaskFluent.java index 39ff142d7..2730cbd41 100644 --- a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/spi/ForkTaskFluent.java +++ b/fluent/spec/src/main/java/org/openworkflow/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.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.api.types.ForkTask; +import org.openworkflow.fluent.spec.BaseTaskItemListBuilder; +import org.openworkflow.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/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/fluent/spec/spi/IteratorFluent.java index 85c617775..9144b1bb4 100644 --- a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/spi/IteratorFluent.java +++ b/fluent/spec/src/main/java/org/openworkflow/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.fluent.spec.spi; -import io.serverlessworkflow.fluent.spec.BaseTaskItemListBuilder; import java.util.function.Consumer; +import org.openworkflow.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/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/fluent/spec/spi/ListenFluent.java index 9d2edf2fe..fe4ead69e 100644 --- a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/spi/ListenFluent.java +++ b/fluent/spec/src/main/java/org/openworkflow/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.fluent.spec.spi; -import io.serverlessworkflow.fluent.spec.TaskBaseBuilder; import java.util.function.Consumer; +import org.openworkflow.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/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/fluent/spec/spi/OutputFluent.java index b66bbd754..af9739bbc 100644 --- a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/spi/OutputFluent.java +++ b/fluent/spec/src/main/java/org/openworkflow/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.fluent.spec.spi; -import io.serverlessworkflow.fluent.spec.ExportBuilder; -import io.serverlessworkflow.fluent.spec.OutputBuilder; import java.util.function.Consumer; +import org.openworkflow.fluent.spec.ExportBuilder; +import org.openworkflow.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/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/fluent/spec/spi/RaiseFluent.java index b6b08deb5..e69649851 100644 --- a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/spi/RaiseFluent.java +++ b/fluent/spec/src/main/java/org/openworkflow/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.fluent.spec.spi; -import io.serverlessworkflow.fluent.spec.TaskBaseBuilder; import java.util.function.Consumer; +import org.openworkflow.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/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/fluent/spec/spi/SetFluent.java index 4debb8281..f3e178644 100644 --- a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/spi/SetFluent.java +++ b/fluent/spec/src/main/java/org/openworkflow/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.fluent.spec.spi; -import io.serverlessworkflow.fluent.spec.TaskBaseBuilder; import java.util.function.Consumer; +import org.openworkflow.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/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/fluent/spec/spi/SubscriptionIteratorFluent.java index 8323833a8..f5852cfd8 100644 --- a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/spi/SubscriptionIteratorFluent.java +++ b/fluent/spec/src/main/java/org/openworkflow/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.fluent.spec.spi; -import io.serverlessworkflow.fluent.spec.BaseTaskItemListBuilder; +import org.openworkflow.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/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/fluent/spec/spi/SwitchFluent.java index d88453c5e..e696d0841 100644 --- a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/spi/SwitchFluent.java +++ b/fluent/spec/src/main/java/org/openworkflow/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.fluent.spec.spi; -import io.serverlessworkflow.fluent.spec.TaskBaseBuilder; import java.util.function.Consumer; +import org.openworkflow.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/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/fluent/spec/spi/SwitchTaskFluent.java index 9c1be6b5e..ddeb39c8c 100644 --- a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/spi/SwitchTaskFluent.java +++ b/fluent/spec/src/main/java/org/openworkflow/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.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.api.types.FlowDirective; +import org.openworkflow.api.types.FlowDirectiveEnum; +import org.openworkflow.api.types.SwitchCase; +import org.openworkflow.api.types.SwitchTask; +import org.openworkflow.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/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/fluent/spec/spi/TaskTransformationHandlers.java index 531e02b9a..47a92a03a 100644 --- a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/spi/TaskTransformationHandlers.java +++ b/fluent/spec/src/main/java/org/openworkflow/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.fluent.spec.spi; -import io.serverlessworkflow.api.types.Export; +import org.openworkflow.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/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/fluent/spec/spi/TransformationHandlers.java index c4183ef3a..e68e27e5c 100644 --- a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/spi/TransformationHandlers.java +++ b/fluent/spec/src/main/java/org/openworkflow/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.fluent.spec.spi; -import io.serverlessworkflow.api.types.Input; -import io.serverlessworkflow.api.types.Output; +import org.openworkflow.api.types.Input; +import org.openworkflow.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/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/fluent/spec/spi/TryCatchFluent.java index ca84558b8..db707a722 100644 --- a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/spi/TryCatchFluent.java +++ b/fluent/spec/src/main/java/org/openworkflow/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.fluent.spec.spi; -import io.serverlessworkflow.fluent.spec.TaskBaseBuilder; import java.util.function.Consumer; +import org.openworkflow.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/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/fluent/spec/spi/WaitFluent.java index a9b1df4e1..85ba9d40f 100644 --- a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/spi/WaitFluent.java +++ b/fluent/spec/src/main/java/org/openworkflow/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.fluent.spec.spi; -import io.serverlessworkflow.fluent.spec.TaskBaseBuilder; import java.util.function.Consumer; +import org.openworkflow.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/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/fluent/spec/spi/WorkflowFluent.java index adecdf6aa..75100ee20 100644 --- a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/spi/WorkflowFluent.java +++ b/fluent/spec/src/main/java/org/openworkflow/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.fluent.spec.spi; -import io.serverlessworkflow.fluent.spec.TaskBaseBuilder; import java.util.UUID; import java.util.function.Consumer; +import org.openworkflow.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/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/fluent/spec/spi/WorkflowTaskFluent.java index 06ee0927c..ce9918786 100644 --- a/fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/spi/WorkflowTaskFluent.java +++ b/fluent/spec/src/main/java/org/openworkflow/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.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.api.types.RunTaskConfiguration; +import org.openworkflow.api.types.SubflowInput; +import org.openworkflow.fluent.spec.TaskBaseBuilder; +import org.openworkflow.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/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/fluent/spec/InputBuilderTest.java index 48378b642..4d6229d43 100644 --- a/fluent/spec/src/test/java/io/serverlessworkflow/fluent/spec/InputBuilderTest.java +++ b/fluent/spec/src/test/java/org/openworkflow/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.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.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/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/fluent/spec/ScheduleBuilderTest.java index 1c84608d2..e2c6ff859 100644 --- a/fluent/spec/src/test/java/io/serverlessworkflow/fluent/spec/ScheduleBuilderTest.java +++ b/fluent/spec/src/test/java/org/openworkflow/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.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.fluent.spec.dsl.DSL.timeoutMinutes; +import static org.openworkflow.fluent.spec.dsl.DSL.timeoutSeconds; -import io.serverlessworkflow.api.types.Schedule; import org.junit.jupiter.api.Test; +import org.openworkflow.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/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/fluent/spec/TaskItemDefaultNamingTest.java index 03f98fc0d..c94358f30 100644 --- a/fluent/spec/src/test/java/io/serverlessworkflow/fluent/spec/TaskItemDefaultNamingTest.java +++ b/fluent/spec/src/test/java/org/openworkflow/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.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.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.api.types.ForkTaskConfiguration; +import org.openworkflow.api.types.SubscriptionIterator; +import org.openworkflow.api.types.TaskItem; +import org.openworkflow.api.types.TryTask; +import org.openworkflow.api.types.TryTaskCatch; +import org.openworkflow.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/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/fluent/spec/UseAuthenticationsBuilderTest.java index c3ecb181e..9711eb1b2 100644 --- a/fluent/spec/src/test/java/io/serverlessworkflow/fluent/spec/UseAuthenticationsBuilderTest.java +++ b/fluent/spec/src/test/java/org/openworkflow/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.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.api.types.AuthenticationPolicyUnion; +import org.openworkflow.api.types.OAuth2AuthenticationData.OAuth2AuthenticationDataGrant; +import org.openworkflow.api.types.UseAuthentications; +import org.openworkflow.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/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/fluent/spec/WorkflowBuilderTest.java index cdc17c765..3eaa82615 100644 --- a/fluent/spec/src/test/java/io/serverlessworkflow/fluent/spec/WorkflowBuilderTest.java +++ b/fluent/spec/src/test/java/org/openworkflow/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.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.fluent.spec.dsl.DSL.basic; +import static org.openworkflow.fluent.spec.dsl.DSL.call; +import static org.openworkflow.fluent.spec.dsl.DSL.cases; +import static org.openworkflow.fluent.spec.dsl.DSL.doTasks; +import static org.openworkflow.fluent.spec.dsl.DSL.emit; +import static org.openworkflow.fluent.spec.dsl.DSL.event; +import static org.openworkflow.fluent.spec.dsl.DSL.forEach; +import static org.openworkflow.fluent.spec.dsl.DSL.fork; +import static org.openworkflow.fluent.spec.dsl.DSL.http; +import static org.openworkflow.fluent.spec.dsl.DSL.listen; +import static org.openworkflow.fluent.spec.dsl.DSL.produced; +import static org.openworkflow.fluent.spec.dsl.DSL.raise; +import static org.openworkflow.fluent.spec.dsl.DSL.set; +import static org.openworkflow.fluent.spec.dsl.DSL.switchCase; +import static org.openworkflow.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.api.types.AuthenticationPolicyUnion; +import org.openworkflow.api.types.CallHTTP; +import org.openworkflow.api.types.CatchErrors; +import org.openworkflow.api.types.CorrelateProperty; +import org.openworkflow.api.types.Document; +import org.openworkflow.api.types.EmitEventDefinition; +import org.openworkflow.api.types.EmitTask; +import org.openworkflow.api.types.ErrorFilter; +import org.openworkflow.api.types.EventFilter; +import org.openworkflow.api.types.EventProperties; +import org.openworkflow.api.types.FlowDirectiveEnum; +import org.openworkflow.api.types.HTTPArguments; +import org.openworkflow.api.types.HTTPHeaders; +import org.openworkflow.api.types.HTTPQuery; +import org.openworkflow.api.types.ListenTask; +import org.openworkflow.api.types.OneEventConsumptionStrategy; +import org.openworkflow.api.types.RetryLimitAttempt; +import org.openworkflow.api.types.RetryPolicy; +import org.openworkflow.api.types.RunTaskConfiguration; +import org.openworkflow.api.types.SetTask; +import org.openworkflow.api.types.TaskItem; +import org.openworkflow.api.types.TaskMetadata; +import org.openworkflow.api.types.TryTask; +import org.openworkflow.api.types.TryTaskCatch; +import org.openworkflow.api.types.Use; +import org.openworkflow.api.types.UseAuthentications; +import org.openworkflow.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/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/fluent/spec/dsl/CallGrpcDslTest.java index e4e2f7c08..82ba1ba98 100644 --- a/fluent/spec/src/test/java/io/serverlessworkflow/fluent/spec/dsl/CallGrpcDslTest.java +++ b/fluent/spec/src/test/java/org/openworkflow/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.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.fluent.spec.dsl.DSL.basic; +import static org.openworkflow.fluent.spec.dsl.DSL.call; +import static org.openworkflow.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.api.types.Workflow; +import org.openworkflow.fluent.spec.WorkflowBuilder; +import org.openworkflow.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/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/fluent/spec/dsl/CallHttpAuthDslTest.java index 85c449d3e..07fab0f56 100644 --- a/fluent/spec/src/test/java/io/serverlessworkflow/fluent/spec/dsl/CallHttpAuthDslTest.java +++ b/fluent/spec/src/test/java/org/openworkflow/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.fluent.spec.dsl; + import static org.assertj.core.api.Assertions.assertThat; +import static org.openworkflow.fluent.spec.dsl.DSL.basic; +import static org.openworkflow.fluent.spec.dsl.DSL.bearer; +import static org.openworkflow.fluent.spec.dsl.DSL.call; +import static org.openworkflow.fluent.spec.dsl.DSL.digest; +import static org.openworkflow.fluent.spec.dsl.DSL.http; +import static org.openworkflow.fluent.spec.dsl.DSL.oauth2; +import static org.openworkflow.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.api.types.OAuth2AuthenticationData; +import org.openworkflow.api.types.Workflow; +import org.openworkflow.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/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/fluent/spec/dsl/CallHttpDslExtensionsTest.java index 1feda539b..f8975347c 100644 --- a/fluent/spec/src/test/java/io/serverlessworkflow/fluent/spec/dsl/CallHttpDslExtensionsTest.java +++ b/fluent/spec/src/test/java/org/openworkflow/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.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.fluent.spec.dsl.DSL.call; +import static org.openworkflow.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.api.types.CallHTTP; +import org.openworkflow.api.types.HTTPArguments; +import org.openworkflow.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/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/fluent/spec/dsl/CallOpenApiDslTest.java index fc2cc4b6a..2c9e4cdeb 100644 --- a/fluent/spec/src/test/java/io/serverlessworkflow/fluent/spec/dsl/CallOpenApiDslTest.java +++ b/fluent/spec/src/test/java/org/openworkflow/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.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.fluent.spec.dsl.DSL.basic; +import static org.openworkflow.fluent.spec.dsl.DSL.call; +import static org.openworkflow.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.api.types.OpenAPIArguments; +import org.openworkflow.api.types.Workflow; +import org.openworkflow.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/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/fluent/spec/dsl/DSLScheduleTest.java index 219dedb6c..687bd8d21 100644 --- a/fluent/spec/src/test/java/io/serverlessworkflow/fluent/spec/dsl/DSLScheduleTest.java +++ b/fluent/spec/src/test/java/org/openworkflow/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.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.fluent.spec.dsl.DSL.after; +import static org.openworkflow.fluent.spec.dsl.DSL.cron; +import static org.openworkflow.fluent.spec.dsl.DSL.event; +import static org.openworkflow.fluent.spec.dsl.DSL.every; +import static org.openworkflow.fluent.spec.dsl.DSL.on; +import static org.openworkflow.fluent.spec.dsl.DSL.one; +import static org.openworkflow.fluent.spec.dsl.DSL.timeoutHours; +import static org.openworkflow.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.api.types.Workflow; +import org.openworkflow.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/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/fluent/spec/dsl/DSLTest.java index d564bd24a..f8ef49525 100644 --- a/fluent/spec/src/test/java/io/serverlessworkflow/fluent/spec/dsl/DSLTest.java +++ b/fluent/spec/src/test/java/org/openworkflow/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.fluent.spec.dsl; + import static org.assertj.core.api.Assertions.assertThat; +import static org.openworkflow.fluent.spec.dsl.DSL.auth; +import static org.openworkflow.fluent.spec.dsl.DSL.basic; +import static org.openworkflow.fluent.spec.dsl.DSL.bearer; +import static org.openworkflow.fluent.spec.dsl.DSL.call; +import static org.openworkflow.fluent.spec.dsl.DSL.error; +import static org.openworkflow.fluent.spec.dsl.DSL.event; +import static org.openworkflow.fluent.spec.dsl.DSL.http; +import static org.openworkflow.fluent.spec.dsl.DSL.openapi; +import static org.openworkflow.fluent.spec.dsl.DSL.produced; +import static org.openworkflow.fluent.spec.dsl.DSL.secrets; +import static org.openworkflow.fluent.spec.dsl.DSL.subflow; +import static org.openworkflow.fluent.spec.dsl.DSL.to; +import static org.openworkflow.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.api.types.CorrelateProperty; +import org.openworkflow.api.types.HTTPArguments; +import org.openworkflow.api.types.ListenTaskConfiguration; +import org.openworkflow.api.types.RunTaskConfiguration; +import org.openworkflow.api.types.Workflow; +import org.openworkflow.fluent.spec.WorkflowBuilder; +import org.openworkflow.types.Errors; public class DSLTest { diff --git a/fluent/spec/src/test/java/io/serverlessworkflow/fluent/spec/dsl/DSLTimeoutTest.java b/fluent/spec/src/test/java/org/openworkflow/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/fluent/spec/dsl/DSLTimeoutTest.java index bc82a79d2..53d1cc7bb 100644 --- a/fluent/spec/src/test/java/io/serverlessworkflow/fluent/spec/dsl/DSLTimeoutTest.java +++ b/fluent/spec/src/test/java/org/openworkflow/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.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.fluent.spec.dsl.DSL.call; +import static org.openworkflow.fluent.spec.dsl.DSL.timeoutMinutes; +import static org.openworkflow.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.api.types.DurationInline; +import org.openworkflow.api.types.Workflow; +import org.openworkflow.fluent.spec.WorkflowBuilder; +import org.openworkflow.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/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/fluent/spec/dsl/DSLWaitTest.java index d49b77cf6..e729a94f4 100644 --- a/fluent/spec/src/test/java/io/serverlessworkflow/fluent/spec/dsl/DSLWaitTest.java +++ b/fluent/spec/src/test/java/org/openworkflow/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.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.fluent.spec.dsl.DSL.waitMinutes; +import static org.openworkflow.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.api.types.DurationInline; +import org.openworkflow.api.types.Workflow; +import org.openworkflow.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/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/fluent/spec/dsl/TryCatchDslTest.java index 7cf084620..3703d3b88 100644 --- a/fluent/spec/src/test/java/io/serverlessworkflow/fluent/spec/dsl/TryCatchDslTest.java +++ b/fluent/spec/src/test/java/org/openworkflow/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.fluent.spec.dsl; + import static org.assertj.core.api.Assertions.assertThat; import static org.assertj.core.api.Assertions.assertThatThrownBy; +import static org.openworkflow.fluent.spec.dsl.DSL.call; +import static org.openworkflow.fluent.spec.dsl.DSL.emit; +import static org.openworkflow.fluent.spec.dsl.DSL.error; +import static org.openworkflow.fluent.spec.dsl.DSL.http; +import static org.openworkflow.fluent.spec.dsl.DSL.raise; +import static org.openworkflow.fluent.spec.dsl.DSL.set; +import static org.openworkflow.fluent.spec.dsl.DSL.tryCatch; +import static org.openworkflow.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.api.types.Workflow; +import org.openworkflow.fluent.spec.WorkflowBuilder; +import org.openworkflow.types.Errors; public class TryCatchDslTest { diff --git a/generators/jackson/pom.xml b/generators/jackson/pom.xml index 453106774..29297836c 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 + openworkflow-generators 8.0.0-SNAPSHOT serverless-workflow-jackson-generator - Serverless Workflow :: Generator:: Jackson + Open Workflow :: Generator:: Jackson 3.16.0 @@ -66,12 +66,12 @@ provided - io.serverlessworkflow - serverlessworkflow-types + org.openworkflow + openworkflow-types - io.serverlessworkflow - serverlessworkflow-serialization + org.openworkflow + 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/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/generator/graalvm/ReflectNativeFileHandler.java index 724065c7c..d45d63a5c 100644 --- a/generators/jackson/src/main/java/io/serverlessworkflow/generator/graalvm/ReflectNativeFileHandler.java +++ b/generators/jackson/src/main/java/org/openworkflow/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.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/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/generator/jackson/GeneratorUtils.java index d33be6888..6ed5f338b 100644 --- a/generators/jackson/src/main/java/io/serverlessworkflow/generator/jackson/GeneratorUtils.java +++ b/generators/jackson/src/main/java/org/openworkflow/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.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.serialization.DeserializeHelper; +import org.openworkflow.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/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/generator/jackson/JacksonMixInPojo.java index aedea124a..96ebff141 100644 --- a/generators/jackson/src/main/java/io/serverlessworkflow/generator/jackson/JacksonMixInPojo.java +++ b/generators/jackson/src/main/java/org/openworkflow/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.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.annotations.AdditionalProperties; +import org.openworkflow.annotations.ExclusiveUnion; +import org.openworkflow.annotations.InclusiveUnion; +import org.openworkflow.annotations.Item; +import org.openworkflow.annotations.ItemKey; +import org.openworkflow.annotations.ItemValue; +import org.openworkflow.generator.graalvm.ReflectNativeFileHandler; @Mojo( name = "generate", diff --git a/generators/pom.xml b/generators/pom.xml index 9ad258c40..bb155c115 100644 --- a/generators/pom.xml +++ b/generators/pom.xml @@ -1,12 +1,12 @@ 4.0.0 - io.serverlessworkflow - serverlessworkflow-parent + org.openworkflow + 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..bd896d524 100644 --- a/generators/types/pom.xml +++ b/generators/types/pom.xml @@ -1,20 +1,20 @@ 4.0.0 - io.serverlessworkflow - serverlessworkflow-generators + org.openworkflow + openworkflow-generators 8.0.0-SNAPSHOT serverless-workflow-types-generator - Serverless Workflow :: Generator:: Types + Open Workflow :: Generator:: Types org.jsonschema2pojo jsonschema2pojo-core - io.serverlessworkflow - serverlessworkflow-annotations + org.openworkflow + 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/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/generator/AllAnyOneOfSchemaRule.java index 494f8a26a..3c901217f 100644 --- a/generators/types/src/main/java/io/serverlessworkflow/generator/AllAnyOneOfSchemaRule.java +++ b/generators/types/src/main/java/org/openworkflow/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.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.annotations.ExclusiveUnion; +import org.openworkflow.annotations.InclusiveUnion; +import org.openworkflow.annotations.OneOfSetter; +import org.openworkflow.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/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/generator/CustomAnnotator.java index e195e2d0d..637010bc3 100644 --- a/generators/types/src/main/java/io/serverlessworkflow/generator/CustomAnnotator.java +++ b/generators/types/src/main/java/org/openworkflow/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.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.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/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/generator/EmptyObjectTypeRule.java index 45dd24f22..e9208ceb7 100644 --- a/generators/types/src/main/java/io/serverlessworkflow/generator/EmptyObjectTypeRule.java +++ b/generators/types/src/main/java/org/openworkflow/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.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/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/generator/GeneratorUtils.java index 5059dcf47..c302c2845 100644 --- a/generators/types/src/main/java/io/serverlessworkflow/generator/GeneratorUtils.java +++ b/generators/types/src/main/java/org/openworkflow/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.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/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/generator/JTypeWrapper.java index 811a5995c..86a51f73d 100644 --- a/generators/types/src/main/java/io/serverlessworkflow/generator/JTypeWrapper.java +++ b/generators/types/src/main/java/org/openworkflow/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.generator; -import static io.serverlessworkflow.generator.AllAnyOneOfSchemaRule.PATTERN; -import static io.serverlessworkflow.generator.AllAnyOneOfSchemaRule.REF; +import static org.openworkflow.generator.AllAnyOneOfSchemaRule.PATTERN; +import static org.openworkflow.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/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/generator/RefNameHelper.java index 6411e886d..655baaa62 100644 --- a/generators/types/src/main/java/io/serverlessworkflow/generator/RefNameHelper.java +++ b/generators/types/src/main/java/org/openworkflow/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.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/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/generator/UnevaluatedPropertiesRule.java index 5388a5039..20d89cd7c 100644 --- a/generators/types/src/main/java/io/serverlessworkflow/generator/UnevaluatedPropertiesRule.java +++ b/generators/types/src/main/java/org/openworkflow/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.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.annotations.Item; +import org.openworkflow.annotations.ItemKey; +import org.openworkflow.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/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/generator/UnreferencedFactory.java index f101fb8dd..33d594972 100644 --- a/generators/types/src/main/java/io/serverlessworkflow/generator/UnreferencedFactory.java +++ b/generators/types/src/main/java/org/openworkflow/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.generator; import com.sun.codemodel.JClassContainer; import com.sun.codemodel.JDefinedClass; diff --git a/impl/README.md b/impl/README.md index 1c3d9dfc0..be2a00012 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) -# 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://serverlessworkflow.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 + openworkflow-impl-jackson - io.serverlessworkflow - serverlessworkflow-impl-http + org.openworkflow + openworkflow-impl-http - io.serverlessworkflow - serverlessworkflow-impl-jackson-jwt + org.openworkflow + 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:openworkflow-impl-jackson") +implementation("org.openworkflow:openworkflow-impl-http") // if using HTTP +implementation("org.openworkflow:openworkflow-impl-jackson-jwt") // if using OAuth2/OIDC ``` > Requires **Java 17+**. @@ -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..a42f69897 100644 --- a/impl/a2a/pom.xml +++ b/impl/a2a/pom.xml @@ -1,16 +1,16 @@ 4.0.0 - io.serverlessworkflow - serverlessworkflow-impl + org.openworkflow + 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 + 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/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/impl/executors/a2a/A2AExceptionHandler.java index 2ccdcdda2..9edec3ce3 100644 --- a/impl/a2a/src/main/java/io/serverlessworkflow/impl/executors/a2a/A2AExceptionHandler.java +++ b/impl/a2a/src/main/java/org/openworkflow/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.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.impl.WorkflowModel; +import org.openworkflow.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/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/impl/executors/a2a/A2AExecutor.java index 1727cb059..1888b185e 100644 --- a/impl/a2a/src/main/java/io/serverlessworkflow/impl/executors/a2a/A2AExecutor.java +++ b/impl/a2a/src/main/java/org/openworkflow/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.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.impl.TaskContext; +import org.openworkflow.impl.WorkflowContext; +import org.openworkflow.impl.WorkflowModel; +import org.openworkflow.impl.WorkflowValueResolver; +import org.openworkflow.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/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/impl/executors/a2a/A2AExecutorBuilder.java index b49e37e88..f08cdaf5e 100644 --- a/impl/a2a/src/main/java/io/serverlessworkflow/impl/executors/a2a/A2AExecutorBuilder.java +++ b/impl/a2a/src/main/java/org/openworkflow/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.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.api.types.A2AArguments; +import org.openworkflow.api.types.CallA2A; +import org.openworkflow.api.types.Parameters; +import org.openworkflow.api.types.TaskBase; +import org.openworkflow.api.types.WithA2AParameters; +import org.openworkflow.impl.WorkflowDefinition; +import org.openworkflow.impl.WorkflowMutablePosition; +import org.openworkflow.impl.WorkflowUtils; +import org.openworkflow.impl.WorkflowValueResolver; +import org.openworkflow.impl.executors.CallableTaskBuilder; +import org.openworkflow.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/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/impl/executors/a2a/A2ARequestDispatcher.java index 6e8c91b17..fd663745d 100644 --- a/impl/a2a/src/main/java/io/serverlessworkflow/impl/executors/a2a/A2ARequestDispatcher.java +++ b/impl/a2a/src/main/java/org/openworkflow/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.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.impl.TaskContext; +import org.openworkflow.impl.WorkflowContext; +import org.openworkflow.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/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/impl/executors/a2a/A2AUtils.java index 75c844350..39cf5c155 100644 --- a/impl/a2a/src/main/java/io/serverlessworkflow/impl/executors/a2a/A2AUtils.java +++ b/impl/a2a/src/main/java/org/openworkflow/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.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.impl.WorkflowContext; +import org.openworkflow.impl.WorkflowError; +import org.openworkflow.impl.WorkflowException; +import org.openworkflow.impl.WorkflowModel; +import org.openworkflow.impl.WorkflowModelFactory; +import org.openworkflow.impl.WorkflowPosition; +import org.openworkflow.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/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/impl/executors/a2a/CancelTaskDispatcher.java index eb27c43b8..f797b804b 100644 --- a/impl/a2a/src/main/java/io/serverlessworkflow/impl/executors/a2a/CancelTaskDispatcher.java +++ b/impl/a2a/src/main/java/org/openworkflow/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.impl.executors.a2a; -import static io.serverlessworkflow.impl.executors.a2a.A2AUtils.param; +import static org.openworkflow.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.impl.TaskContext; +import org.openworkflow.impl.WorkflowContext; +import org.openworkflow.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/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/impl/executors/a2a/GetTaskDispatcher.java index 0b0526678..b70421c40 100644 --- a/impl/a2a/src/main/java/io/serverlessworkflow/impl/executors/a2a/GetTaskDispatcher.java +++ b/impl/a2a/src/main/java/org/openworkflow/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.impl.executors.a2a; -import static io.serverlessworkflow.impl.executors.a2a.A2AUtils.param; +import static org.openworkflow.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.impl.TaskContext; +import org.openworkflow.impl.WorkflowContext; +import org.openworkflow.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/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/impl/executors/a2a/ListTaskDispatcher.java index 8294b42c2..0afad15f4 100644 --- a/impl/a2a/src/main/java/io/serverlessworkflow/impl/executors/a2a/ListTaskDispatcher.java +++ b/impl/a2a/src/main/java/org/openworkflow/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.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.impl.executors.a2a.A2AUtils.enumParam; +import static org.openworkflow.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.impl.TaskContext; +import org.openworkflow.impl.WorkflowContext; +import org.openworkflow.impl.WorkflowModel; +import org.openworkflow.impl.WorkflowModelCollection; +import org.openworkflow.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/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/impl/executors/a2a/MessageConsumer.java index 2bc06aa0f..4893a13c2 100644 --- a/impl/a2a/src/main/java/io/serverlessworkflow/impl/executors/a2a/MessageConsumer.java +++ b/impl/a2a/src/main/java/org/openworkflow/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.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.impl.WorkflowDefinition; +import org.openworkflow.impl.WorkflowModel; +import org.openworkflow.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/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/impl/executors/a2a/MessageConsumerFactory.java index 88b58e9df..c7c91c6c3 100644 --- a/impl/a2a/src/main/java/io/serverlessworkflow/impl/executors/a2a/MessageConsumerFactory.java +++ b/impl/a2a/src/main/java/org/openworkflow/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.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.impl.TaskContext; +import org.openworkflow.impl.WorkflowContext; +import org.openworkflow.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/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/impl/executors/a2a/MessageDispatcher.java index 385b9932c..4642ca31f 100644 --- a/impl/a2a/src/main/java/io/serverlessworkflow/impl/executors/a2a/MessageDispatcher.java +++ b/impl/a2a/src/main/java/org/openworkflow/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.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.impl.executors.a2a.A2AUtils.isInstanceOrThrow; +import static org.openworkflow.impl.executors.a2a.A2AUtils.optionalParam; +import static org.openworkflow.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.impl.TaskContext; +import org.openworkflow.impl.WorkflowContext; +import org.openworkflow.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/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/impl/executors/a2a/MessageSendConsumer.java index 5ac792bd2..4d8fe1e74 100644 --- a/impl/a2a/src/main/java/io/serverlessworkflow/impl/executors/a2a/MessageSendConsumer.java +++ b/impl/a2a/src/main/java/org/openworkflow/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.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.impl.WorkflowDefinition; +import org.openworkflow.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/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/impl/executors/a2a/MessageStreamConsumer.java index bd5e386e6..2f45133bd 100644 --- a/impl/a2a/src/main/java/io/serverlessworkflow/impl/executors/a2a/MessageStreamConsumer.java +++ b/impl/a2a/src/main/java/org/openworkflow/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.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.impl.WorkflowDefinition; +import org.openworkflow.impl.WorkflowException; +import org.openworkflow.impl.WorkflowModel; +import org.openworkflow.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.impl.executors.CallableTaskBuilder b/impl/a2a/src/main/resources/META-INF/services/org.openworkflow.impl.executors.CallableTaskBuilder new file mode 100644 index 000000000..f570e2a7c --- /dev/null +++ b/impl/a2a/src/main/resources/META-INF/services/org.openworkflow.impl.executors.CallableTaskBuilder @@ -0,0 +1 @@ +org.openworkflow.impl.executors.a2a.A2AExecutorBuilder diff --git a/impl/container/pom.xml b/impl/container/pom.xml index b5736f24f..da3f9fc82 100644 --- a/impl/container/pom.xml +++ b/impl/container/pom.xml @@ -2,21 +2,21 @@ 4.0.0 - io.serverlessworkflow - serverlessworkflow-impl + org.openworkflow + 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 + openworkflow-impl-core - io.serverlessworkflow - serverlessworkflow-types + org.openworkflow + 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/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/impl/container/executors/CommandPropertySetter.java index b0af31912..f4191d7ec 100644 --- a/impl/container/src/main/java/io/serverlessworkflow/impl/container/executors/CommandPropertySetter.java +++ b/impl/container/src/main/java/org/openworkflow/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.impl.container.executors; -import static io.serverlessworkflow.impl.WorkflowUtils.isValid; +import static org.openworkflow.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.api.types.Container; +import org.openworkflow.impl.TaskContext; +import org.openworkflow.impl.WorkflowContext; +import org.openworkflow.impl.WorkflowDefinition; +import org.openworkflow.impl.WorkflowModel; +import org.openworkflow.impl.WorkflowUtils; +import org.openworkflow.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/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/impl/container/executors/ContainerEnvironmentPropertySetter.java index c4f143a3f..9a7e346a1 100644 --- a/impl/container/src/main/java/io/serverlessworkflow/impl/container/executors/ContainerEnvironmentPropertySetter.java +++ b/impl/container/src/main/java/org/openworkflow/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.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.api.types.Container; +import org.openworkflow.impl.TaskContext; +import org.openworkflow.impl.WorkflowContext; +import org.openworkflow.impl.WorkflowDefinition; +import org.openworkflow.impl.WorkflowModel; +import org.openworkflow.impl.WorkflowUtils; +import org.openworkflow.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/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/impl/container/executors/ContainerPropertySetter.java index 9524a92a5..afbdeb0aa 100644 --- a/impl/container/src/main/java/io/serverlessworkflow/impl/container/executors/ContainerPropertySetter.java +++ b/impl/container/src/main/java/org/openworkflow/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.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.impl.TaskContext; +import org.openworkflow.impl.WorkflowContext; +import org.openworkflow.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/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/impl/container/executors/ContainerRunner.java index 5fc8f9c82..053038002 100644 --- a/impl/container/src/main/java/io/serverlessworkflow/impl/container/executors/ContainerRunner.java +++ b/impl/container/src/main/java/org/openworkflow/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.impl.container.executors; -import static io.serverlessworkflow.api.types.ContainerLifetime.*; -import static io.serverlessworkflow.impl.WorkflowUtils.isValid; +import static org.openworkflow.api.types.ContainerLifetime.*; +import static org.openworkflow.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.api.types.ContainerLifetime.ContainerCleanupPolicy; +import org.openworkflow.impl.TaskContext; +import org.openworkflow.impl.WorkflowContext; +import org.openworkflow.impl.WorkflowModel; +import org.openworkflow.impl.WorkflowUtils; +import org.openworkflow.impl.WorkflowValueResolver; +import org.openworkflow.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/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/impl/container/executors/LifetimePropertySetter.java index 3606ae93d..a8956418c 100644 --- a/impl/container/src/main/java/io/serverlessworkflow/impl/container/executors/LifetimePropertySetter.java +++ b/impl/container/src/main/java/org/openworkflow/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.impl.container.executors; -import static io.serverlessworkflow.api.types.ContainerLifetime.*; +import static org.openworkflow.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.api.types.Container; +import org.openworkflow.impl.TaskContext; +import org.openworkflow.impl.WorkflowContext; +import org.openworkflow.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/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/impl/container/executors/NamePropertySetter.java index 70bc8d83f..53f66cee5 100644 --- a/impl/container/src/main/java/io/serverlessworkflow/impl/container/executors/NamePropertySetter.java +++ b/impl/container/src/main/java/org/openworkflow/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.impl.container.executors; -import static io.serverlessworkflow.impl.WorkflowUtils.isValid; +import static org.openworkflow.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.api.types.Container; +import org.openworkflow.impl.TaskContext; +import org.openworkflow.impl.WorkflowContext; +import org.openworkflow.impl.WorkflowDefinition; +import org.openworkflow.impl.WorkflowModel; +import org.openworkflow.impl.WorkflowUtils; +import org.openworkflow.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/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/impl/container/executors/PortsPropertySetter.java index b176b110a..42771e6f0 100644 --- a/impl/container/src/main/java/io/serverlessworkflow/impl/container/executors/PortsPropertySetter.java +++ b/impl/container/src/main/java/org/openworkflow/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.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.api.types.Container; +import org.openworkflow.impl.TaskContext; +import org.openworkflow.impl.WorkflowContext; +import org.openworkflow.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/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/impl/container/executors/RunContainerExecutorBuilder.java index d58d56479..23fa41336 100644 --- a/impl/container/src/main/java/io/serverlessworkflow/impl/container/executors/RunContainerExecutorBuilder.java +++ b/impl/container/src/main/java/org/openworkflow/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.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.api.types.Container; +import org.openworkflow.api.types.ContainerLifetime; +import org.openworkflow.api.types.ContainerLifetime.ContainerCleanupPolicy; +import org.openworkflow.api.types.RunContainer; +import org.openworkflow.api.types.RunTaskConfiguration; +import org.openworkflow.api.types.TimeoutAfter; +import org.openworkflow.impl.WorkflowDefinition; +import org.openworkflow.impl.WorkflowUtils; +import org.openworkflow.impl.WorkflowValueResolver; +import org.openworkflow.impl.executors.CallableTask; +import org.openworkflow.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/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/impl/container/executors/VolumesPropertySetter.java index 63830f34f..bd2f49b3d 100644 --- a/impl/container/src/main/java/io/serverlessworkflow/impl/container/executors/VolumesPropertySetter.java +++ b/impl/container/src/main/java/org/openworkflow/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.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.api.types.Container; +import org.openworkflow.impl.TaskContext; +import org.openworkflow.impl.WorkflowContext; +import org.openworkflow.impl.WorkflowDefinition; +import org.openworkflow.impl.WorkflowModel; +import org.openworkflow.impl.WorkflowUtils; +import org.openworkflow.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.impl.executors.RunnableTaskBuilder b/impl/container/src/main/resources/META-INF/services/org.openworkflow.impl.executors.RunnableTaskBuilder new file mode 100644 index 000000000..d1d01e619 --- /dev/null +++ b/impl/container/src/main/resources/META-INF/services/org.openworkflow.impl.executors.RunnableTaskBuilder @@ -0,0 +1 @@ +org.openworkflow.impl.container.executors.RunContainerExecutorBuilder \ No newline at end of file diff --git a/impl/core/pom.xml b/impl/core/pom.xml index 3ff80e8b8..fed61f375 100644 --- a/impl/core/pom.xml +++ b/impl/core/pom.xml @@ -1,16 +1,16 @@ 4.0.0 - io.serverlessworkflow - serverlessworkflow-impl + org.openworkflow + 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 + 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/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/impl/AbstractWorkflowModel.java index 834f8526e..7be8278bb 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/AbstractWorkflowModel.java +++ b/impl/core/src/main/java/org/openworkflow/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.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/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/impl/AuthorizationDescriptor.java index 9c31da1be..2ebbc59aa 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/AuthorizationDescriptor.java +++ b/impl/core/src/main/java/org/openworkflow/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.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/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/impl/CollectionConversionUtils.java index 5d3544ac6..e0672aa90 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/CollectionConversionUtils.java +++ b/impl/core/src/main/java/org/openworkflow/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.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/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/impl/CompositeExpressionFactory.java index a1e39e42f..2d2da3c31 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/CompositeExpressionFactory.java +++ b/impl/core/src/main/java/org/openworkflow/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.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.api.types.TaskBase; +import org.openworkflow.impl.expressions.ExpressionDescriptor; +import org.openworkflow.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/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/impl/DefaultExecutorServiceFactory.java index 8b882c143..5efd95d0c 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/DefaultExecutorServiceFactory.java +++ b/impl/core/src/main/java/org/openworkflow/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.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/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/impl/ExecutorServiceFactory.java index 3d35a2dd1..55fc86096 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/ExecutorServiceFactory.java +++ b/impl/core/src/main/java/org/openworkflow/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.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/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/impl/FunctionReader.java index 0b7066359..577c3adcc 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/FunctionReader.java +++ b/impl/core/src/main/java/org/openworkflow/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.impl; -import io.serverlessworkflow.api.types.Task; -import io.serverlessworkflow.impl.resources.ExternalResourceHandler; import java.util.function.Function; +import org.openworkflow.api.types.Task; +import org.openworkflow.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/impl/LifecycleEvents.java similarity index 58% rename from impl/core/src/main/java/io/serverlessworkflow/impl/LifecycleEvents.java rename to impl/core/src/main/java/org/openworkflow/impl/LifecycleEvents.java index 2e6f3e0e2..b5bc18139 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/LifecycleEvents.java +++ b/impl/core/src/main/java/org/openworkflow/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,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.serverlessworkflow.impl; +package org.openworkflow.impl; /** * @see {} diff --git a/impl/core/src/main/java/io/serverlessworkflow/impl/SchedulerListener.java b/impl/core/src/main/java/org/openworkflow/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/impl/SchedulerListener.java index a9ee6e78f..584e32ba2 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/SchedulerListener.java +++ b/impl/core/src/main/java/org/openworkflow/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.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.impl.lifecycle.WorkflowCompletedEvent; +import org.openworkflow.impl.lifecycle.WorkflowExecutionCompletableListener; +import org.openworkflow.impl.scheduler.Cancellable; +import org.openworkflow.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/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/impl/ServicePriority.java index 74b5bdf1b..3b002f2b2 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/ServicePriority.java +++ b/impl/core/src/main/java/org/openworkflow/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.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/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/impl/StringBufferWorkflowPosition.java index d5ba53a8f..5178d8a6a 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/StringBufferWorkflowPosition.java +++ b/impl/core/src/main/java/org/openworkflow/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.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/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/impl/TaskContext.java index 428bc3ab0..ee0e0e3fa 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/TaskContext.java +++ b/impl/core/src/main/java/org/openworkflow/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.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.api.types.TaskBase; +import org.openworkflow.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/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/impl/TaskContextData.java index fa01ae560..c03a7c197 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/TaskContextData.java +++ b/impl/core/src/main/java/org/openworkflow/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.impl; -import io.serverlessworkflow.api.types.TaskBase; import java.time.Instant; +import org.openworkflow.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/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/impl/WorkflowApplication.java index 73367d438..b3e8cab08 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/WorkflowApplication.java +++ b/impl/core/src/main/java/org/openworkflow/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.impl; + +import static org.openworkflow.impl.WorkflowUtils.loadFirst; +import static org.openworkflow.impl.WorkflowUtils.safeClose; +import static org.openworkflow.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.api.types.SchemaInline; +import org.openworkflow.api.types.Workflow; +import org.openworkflow.impl.additional.NamedWorkflowAdditionalObject; +import org.openworkflow.impl.additional.WorkflowAdditionalObject; +import org.openworkflow.impl.auth.AuthProviderFactory; +import org.openworkflow.impl.auth.DefaultAuthProviderFactory; +import org.openworkflow.impl.config.ConfigManager; +import org.openworkflow.impl.config.ConfigSecretManager; +import org.openworkflow.impl.config.SecretManager; +import org.openworkflow.impl.config.SystemPropertyConfigManager; +import org.openworkflow.impl.events.CloudEventPredicateFactory; +import org.openworkflow.impl.events.DefaultCloudEventPredicateFactory; +import org.openworkflow.impl.events.EmitSourceResolver; +import org.openworkflow.impl.events.EventConsumer; +import org.openworkflow.impl.events.EventPublisher; +import org.openworkflow.impl.events.InMemoryEvents; +import org.openworkflow.impl.executors.CallableTaskProxyBuilder; +import org.openworkflow.impl.executors.DefaultTaskExecutorFactory; +import org.openworkflow.impl.executors.TaskExecutorFactory; +import org.openworkflow.impl.expressions.ExpressionFactory; +import org.openworkflow.impl.expressions.RuntimeDescriptor; +import org.openworkflow.impl.lifecycle.WorkflowExecutionCompletableListener; +import org.openworkflow.impl.lifecycle.WorkflowExecutionListener; +import org.openworkflow.impl.lifecycle.WorkflowExecutionListenerAdapter; +import org.openworkflow.impl.lifecycle.ce.DefaultLifeCycleCloudEventFactory; +import org.openworkflow.impl.lifecycle.ce.WorkflowLifeCycleCloudEventFactory; +import org.openworkflow.impl.resources.DefaultResourceLoaderFactory; +import org.openworkflow.impl.resources.ExternalResourceHandler; +import org.openworkflow.impl.resources.ResourceLoaderFactory; +import org.openworkflow.impl.resources.URITemplateResolver; +import org.openworkflow.impl.scheduler.AllStrategyCorrelationInfoFactory; +import org.openworkflow.impl.scheduler.CronResolver; +import org.openworkflow.impl.scheduler.CronResolverFactory; +import org.openworkflow.impl.scheduler.DefaultWorkflowScheduler; +import org.openworkflow.impl.scheduler.InMemoryAllStrategyCorrelationInfo; +import org.openworkflow.impl.scheduler.WorkflowScheduler; +import org.openworkflow.impl.schema.SchemaValidator; +import org.openworkflow.impl.schema.SchemaValidatorFactory; public class WorkflowApplication implements AutoCloseable { diff --git a/impl/core/src/main/java/io/serverlessworkflow/impl/WorkflowContext.java b/impl/core/src/main/java/org/openworkflow/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/impl/WorkflowContext.java index ebc79fedf..5afcd5971 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/WorkflowContext.java +++ b/impl/core/src/main/java/org/openworkflow/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.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/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/impl/WorkflowContextData.java index dea7c9e3f..385522bac 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/WorkflowContextData.java +++ b/impl/core/src/main/java/org/openworkflow/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.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/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/impl/WorkflowDecorator.java index 66daf4749..280a15ceb 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/WorkflowDecorator.java +++ b/impl/core/src/main/java/org/openworkflow/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.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/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/impl/WorkflowDefinition.java index 72431977a..37bfa1d33 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/WorkflowDefinition.java +++ b/impl/core/src/main/java/org/openworkflow/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.impl; + +import static org.openworkflow.impl.WorkflowUtils.buildWorkflowFilter; +import static org.openworkflow.impl.WorkflowUtils.getSchemaValidator; +import static org.openworkflow.impl.WorkflowUtils.safeClose; +import static org.openworkflow.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.api.types.Input; +import org.openworkflow.api.types.Output; +import org.openworkflow.api.types.Schedule; +import org.openworkflow.api.types.Workflow; +import org.openworkflow.impl.events.EventRegistrationBuilderInfo; +import org.openworkflow.impl.executors.TaskExecutor; +import org.openworkflow.impl.executors.TaskExecutorHelper; +import org.openworkflow.impl.resources.ResourceLoader; +import org.openworkflow.impl.scheduler.Cancellable; +import org.openworkflow.impl.scheduler.ScheduledEventConsumer; +import org.openworkflow.impl.scheduler.WorkflowScheduler; +import org.openworkflow.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/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/impl/WorkflowDefinitionData.java index 9466c497f..0fed35705 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/WorkflowDefinitionData.java +++ b/impl/core/src/main/java/org/openworkflow/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.impl; -import io.serverlessworkflow.api.types.Workflow; +import org.openworkflow.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/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/impl/WorkflowDefinitionId.java index 023cefe9b..ad57658b8 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/WorkflowDefinitionId.java +++ b/impl/core/src/main/java/org/openworkflow/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.impl; -import io.serverlessworkflow.api.types.Document; -import io.serverlessworkflow.api.types.Workflow; -import io.serverlessworkflow.types.Defaults; +import org.openworkflow.api.types.Document; +import org.openworkflow.api.types.Workflow; +import org.openworkflow.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/impl/WorkflowError.java similarity index 93% rename from impl/core/src/main/java/io/serverlessworkflow/impl/WorkflowError.java rename to impl/core/src/main/java/org/openworkflow/impl/WorkflowError.java index 4afd744ac..ae28e774e 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/WorkflowError.java +++ b/impl/core/src/main/java/org/openworkflow/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.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.impl.lifecycle.TaskFailedEvent; +import org.openworkflow.impl.lifecycle.WorkflowFailedEvent; +import org.openworkflow.types.Errors; public record WorkflowError(String type, int status, String instance, String title, String detail) { diff --git a/impl/core/src/main/java/io/serverlessworkflow/impl/WorkflowException.java b/impl/core/src/main/java/org/openworkflow/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/impl/WorkflowException.java index 59b16d518..25de7a612 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/WorkflowException.java +++ b/impl/core/src/main/java/org/openworkflow/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.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/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/impl/WorkflowFilter.java index 71f5351f1..fc3cedb2a 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/WorkflowFilter.java +++ b/impl/core/src/main/java/org/openworkflow/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.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/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/impl/WorkflowInstance.java index 04317c8d3..8d0d340e3 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/WorkflowInstance.java +++ b/impl/core/src/main/java/org/openworkflow/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.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/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/impl/WorkflowInstanceData.java index 5bd779d0e..303896e3a 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/WorkflowInstanceData.java +++ b/impl/core/src/main/java/org/openworkflow/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.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/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/impl/WorkflowInstanceIdFactory.java index 22a27559d..2095c8958 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/WorkflowInstanceIdFactory.java +++ b/impl/core/src/main/java/org/openworkflow/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.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/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/impl/WorkflowModel.java index 91b2faf3b..e5bf6b574 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/WorkflowModel.java +++ b/impl/core/src/main/java/org/openworkflow/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.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/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/impl/WorkflowModelCollection.java index 61833f8d0..df0d987b2 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/WorkflowModelCollection.java +++ b/impl/core/src/main/java/org/openworkflow/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.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/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/impl/WorkflowModelFactory.java index b1c6caf6b..468e7e5af 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/WorkflowModelFactory.java +++ b/impl/core/src/main/java/org/openworkflow/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.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/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/impl/WorkflowMutableInstance.java index 08780a89e..9b9f3f8ed 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/WorkflowMutableInstance.java +++ b/impl/core/src/main/java/org/openworkflow/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.impl; + +import static org.openworkflow.impl.LifecycleEventsUtils.publishEvent; +import static org.openworkflow.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.impl.executors.TaskExecutorHelper; +import org.openworkflow.impl.lifecycle.WorkflowCancelledEvent; +import org.openworkflow.impl.lifecycle.WorkflowCompletedEvent; +import org.openworkflow.impl.lifecycle.WorkflowFailedEvent; +import org.openworkflow.impl.lifecycle.WorkflowResumedEvent; +import org.openworkflow.impl.lifecycle.WorkflowStartedEvent; +import org.openworkflow.impl.lifecycle.WorkflowStatusEvent; +import org.openworkflow.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/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/impl/WorkflowMutablePosition.java index 20d484d1a..b9f7a7b8e 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/WorkflowMutablePosition.java +++ b/impl/core/src/main/java/org/openworkflow/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.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/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/impl/WorkflowPosition.java index 610815cd3..fc0e7fb67 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/WorkflowPosition.java +++ b/impl/core/src/main/java/org/openworkflow/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.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/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/impl/WorkflowPositionFactory.java index 00fe9c011..b0837896f 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/WorkflowPositionFactory.java +++ b/impl/core/src/main/java/org/openworkflow/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.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/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/impl/WorkflowPredicate.java index cb4ff3f0f..e2d39d67e 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/WorkflowPredicate.java +++ b/impl/core/src/main/java/org/openworkflow/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.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/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/impl/WorkflowStatus.java index c61306c37..36db75455 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/WorkflowStatus.java +++ b/impl/core/src/main/java/org/openworkflow/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.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/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/impl/WorkflowUtils.java index b035c52c2..81752bd5d 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/WorkflowUtils.java +++ b/impl/core/src/main/java/org/openworkflow/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.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.api.types.DurationInline; +import org.openworkflow.api.types.ExportAs; +import org.openworkflow.api.types.InputFrom; +import org.openworkflow.api.types.OutputAs; +import org.openworkflow.api.types.SchemaUnion; +import org.openworkflow.api.types.SecretBasedAuthenticationPolicy; +import org.openworkflow.api.types.TaskBase; +import org.openworkflow.api.types.TaskTimeout; +import org.openworkflow.api.types.Timeout; +import org.openworkflow.api.types.TimeoutAfter; +import org.openworkflow.api.types.UriTemplate; +import org.openworkflow.api.types.Workflow; +import org.openworkflow.impl.expressions.ExpressionDescriptor; +import org.openworkflow.impl.expressions.ExpressionFactory; +import org.openworkflow.impl.expressions.ExpressionUtils; +import org.openworkflow.impl.resources.ResourceLoader; +import org.openworkflow.impl.schema.SchemaValidator; +import org.openworkflow.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/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/impl/WorkflowValueResolver.java index 5b08f39b4..6f2ebc9ca 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/WorkflowValueResolver.java +++ b/impl/core/src/main/java/org/openworkflow/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.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/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/impl/additional/ConstantAdditionalObject.java index eba50c466..780d9f06a 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/additional/ConstantAdditionalObject.java +++ b/impl/core/src/main/java/org/openworkflow/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.impl.additional; -import io.serverlessworkflow.impl.TaskContextData; -import io.serverlessworkflow.impl.WorkflowContextData; +import org.openworkflow.impl.TaskContextData; +import org.openworkflow.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/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/impl/additional/NamedWorkflowAdditionalObject.java index af8c36a01..7d3719dac 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/additional/NamedWorkflowAdditionalObject.java +++ b/impl/core/src/main/java/org/openworkflow/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.impl.additional; -import io.serverlessworkflow.impl.NamedObject; +import org.openworkflow.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/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/impl/additional/SuppliedAdditionalObject.java index d0ed415f3..d2d057d3e 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/additional/SuppliedAdditionalObject.java +++ b/impl/core/src/main/java/org/openworkflow/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.impl.additional; -import io.serverlessworkflow.impl.TaskContextData; -import io.serverlessworkflow.impl.WorkflowContextData; import java.util.function.Supplier; +import org.openworkflow.impl.TaskContextData; +import org.openworkflow.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/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/impl/additional/WorkflowAdditionalObject.java index 93cfa2dfc..10eacd53c 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/additional/WorkflowAdditionalObject.java +++ b/impl/core/src/main/java/org/openworkflow/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.impl.additional; -import io.serverlessworkflow.impl.TaskContextData; -import io.serverlessworkflow.impl.WorkflowContextData; import java.util.function.BiFunction; +import org.openworkflow.impl.TaskContextData; +import org.openworkflow.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/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/impl/auth/AbstractAuthRequestBuilder.java index 15ba3046b..dc8d7182a 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/auth/AbstractAuthRequestBuilder.java +++ b/impl/core/src/main/java/org/openworkflow/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.impl.auth; + +import static org.openworkflow.api.types.OAuth2AuthenticationDataClient.ClientAuthentication.CLIENT_SECRET_POST; +import static org.openworkflow.impl.WorkflowUtils.isValid; +import static org.openworkflow.impl.auth.AuthUtils.ACTOR; +import static org.openworkflow.impl.auth.AuthUtils.ACTOR_TOKEN; +import static org.openworkflow.impl.auth.AuthUtils.ACTOR_TOKEN_TYPE; +import static org.openworkflow.impl.auth.AuthUtils.AUDIENCES; +import static org.openworkflow.impl.auth.AuthUtils.AUTHENTICATION; +import static org.openworkflow.impl.auth.AuthUtils.CLIENT; +import static org.openworkflow.impl.auth.AuthUtils.ENCODING; +import static org.openworkflow.impl.auth.AuthUtils.REQUEST; +import static org.openworkflow.impl.auth.AuthUtils.SCOPES; +import static org.openworkflow.impl.auth.AuthUtils.SUBJECT; +import static org.openworkflow.impl.auth.AuthUtils.SUBJECT_TOKEN; +import static org.openworkflow.impl.auth.AuthUtils.SUBJECT_TOKEN_TYPE; +import static org.openworkflow.impl.auth.AuthUtils.TOKEN; +import static org.openworkflow.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.api.types.OAuth2AuthenticationData; +import org.openworkflow.api.types.OAuth2AuthenticationDataClient; +import org.openworkflow.api.types.OAuth2TokenDefinition; +import org.openworkflow.impl.WorkflowApplication; +import org.openworkflow.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/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/impl/auth/AccessTokenProvider.java index 55f928da4..fd425574e 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/auth/AccessTokenProvider.java +++ b/impl/core/src/main/java/org/openworkflow/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.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.impl.TaskContext; +import org.openworkflow.impl.WorkflowContext; +import org.openworkflow.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/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/impl/auth/AccessTokenProviderFactory.java index c18f69f4c..e5e1fe769 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/auth/AccessTokenProviderFactory.java +++ b/impl/core/src/main/java/org/openworkflow/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.impl.auth; -import io.serverlessworkflow.impl.ServicePriority; import java.util.List; +import org.openworkflow.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/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/impl/auth/AuthProvider.java index 2ff043471..e7c29c1b6 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/auth/AuthProvider.java +++ b/impl/core/src/main/java/org/openworkflow/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.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.impl.TaskContext; +import org.openworkflow.impl.WorkflowContext; +import org.openworkflow.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/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/impl/auth/AuthProviderFactory.java index 2630250f2..39fb391fa 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/auth/AuthProviderFactory.java +++ b/impl/core/src/main/java/org/openworkflow/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.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.api.types.EndpointConfiguration; +import org.openworkflow.api.types.ReferenceableAuthenticationPolicy; +import org.openworkflow.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/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/impl/auth/AuthRequestBuilder.java index 03940ba21..07f95151d 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/auth/AuthRequestBuilder.java +++ b/impl/core/src/main/java/org/openworkflow/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.impl.auth; -import io.serverlessworkflow.api.types.OAuth2AuthenticationData; import java.util.Map; +import org.openworkflow.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/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/impl/auth/AuthUtils.java index 28daba2a4..a0f87f9c8 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/auth/AuthUtils.java +++ b/impl/core/src/main/java/org/openworkflow/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.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/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/impl/auth/BasicAuthProvider.java index fc63ce9a7..c66cac388 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/auth/BasicAuthProvider.java +++ b/impl/core/src/main/java/org/openworkflow/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.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.impl.WorkflowUtils.checkSecret; +import static org.openworkflow.impl.WorkflowUtils.secretProp; +import static org.openworkflow.impl.auth.AuthUtils.PASSWORD; +import static org.openworkflow.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.api.types.BasicAuthenticationPolicy; +import org.openworkflow.api.types.Workflow; +import org.openworkflow.impl.TaskContext; +import org.openworkflow.impl.WorkflowApplication; +import org.openworkflow.impl.WorkflowContext; +import org.openworkflow.impl.WorkflowModel; +import org.openworkflow.impl.WorkflowUtils; +import org.openworkflow.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/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/impl/auth/BearerAuthProvider.java index a0521dfc4..e5cd6f271 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/auth/BearerAuthProvider.java +++ b/impl/core/src/main/java/org/openworkflow/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.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.impl.WorkflowUtils.checkSecret; +import static org.openworkflow.impl.WorkflowUtils.secretProp; +import static org.openworkflow.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.api.types.BearerAuthenticationPolicy; +import org.openworkflow.api.types.BearerAuthenticationPolicyConfiguration; +import org.openworkflow.api.types.Workflow; +import org.openworkflow.impl.TaskContext; +import org.openworkflow.impl.WorkflowApplication; +import org.openworkflow.impl.WorkflowContext; +import org.openworkflow.impl.WorkflowModel; +import org.openworkflow.impl.WorkflowUtils; +import org.openworkflow.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/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/impl/auth/ClientSecretBasic.java index 9d8aca036..39abf472a 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/auth/ClientSecretBasic.java +++ b/impl/core/src/main/java/org/openworkflow/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.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.impl.auth.AuthUtils.CLIENT; +import static org.openworkflow.impl.auth.AuthUtils.GRANT; +import static org.openworkflow.impl.auth.AuthUtils.ID; +import static org.openworkflow.impl.auth.AuthUtils.PASSWORD; +import static org.openworkflow.impl.auth.AuthUtils.SECRET; +import static org.openworkflow.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.api.types.OAuth2AuthenticationData; +import org.openworkflow.impl.WorkflowApplication; +import org.openworkflow.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/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/impl/auth/ClientSecretHandler.java index 13ac19e4d..539fb82cf 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/auth/ClientSecretHandler.java +++ b/impl/core/src/main/java/org/openworkflow/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.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.api.types.OAuth2AuthenticationData.OAuth2AuthenticationDataGrant.CLIENT_CREDENTIALS; +import static org.openworkflow.api.types.OAuth2AuthenticationData.OAuth2AuthenticationDataGrant.PASSWORD; +import static org.openworkflow.api.types.OAuth2AuthenticationData.OAuth2AuthenticationDataGrant.URN_IETF_PARAMS_OAUTH_GRANT_TYPE_TOKEN_EXCHANGE; +import static org.openworkflow.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.api.types.OAuth2AuthenticationData; +import org.openworkflow.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/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/impl/auth/ClientSecretPost.java index ad07343a3..57409ecba 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/auth/ClientSecretPost.java +++ b/impl/core/src/main/java/org/openworkflow/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.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.impl.auth.AuthUtils.CLIENT; +import static org.openworkflow.impl.auth.AuthUtils.GRANT; +import static org.openworkflow.impl.auth.AuthUtils.ID; +import static org.openworkflow.impl.auth.AuthUtils.PASSWORD; +import static org.openworkflow.impl.auth.AuthUtils.SECRET; +import static org.openworkflow.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.api.types.OAuth2AuthenticationData; +import org.openworkflow.impl.WorkflowApplication; +import org.openworkflow.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/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/impl/auth/CommonOAuthProvider.java index 3404ac1d2..17aaaf4fa 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/auth/CommonOAuthProvider.java +++ b/impl/core/src/main/java/org/openworkflow/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.impl.auth; -import static io.serverlessworkflow.impl.WorkflowUtils.checkSecret; -import static io.serverlessworkflow.impl.WorkflowUtils.secret; +import static org.openworkflow.impl.WorkflowUtils.checkSecret; +import static org.openworkflow.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.api.types.OAuth2AuthenticationData; +import org.openworkflow.api.types.SecretBasedAuthenticationPolicy; +import org.openworkflow.api.types.Workflow; +import org.openworkflow.impl.TaskContext; +import org.openworkflow.impl.WorkflowApplication; +import org.openworkflow.impl.WorkflowContext; +import org.openworkflow.impl.WorkflowModel; +import org.openworkflow.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/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/impl/auth/DefaultAuthProviderFactory.java index 9fb8e7962..a741a26fa 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/auth/DefaultAuthProviderFactory.java +++ b/impl/core/src/main/java/org/openworkflow/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.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.api.types.AuthenticationPolicyUnion; +import org.openworkflow.api.types.BasicAuthenticationPolicy; +import org.openworkflow.api.types.BearerAuthenticationPolicy; +import org.openworkflow.api.types.DigestAuthenticationPolicy; +import org.openworkflow.api.types.EndpointConfiguration; +import org.openworkflow.api.types.ReferenceableAuthenticationPolicy; +import org.openworkflow.api.types.Workflow; +import org.openworkflow.impl.WorkflowApplication; +import org.openworkflow.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/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/impl/auth/DigestAuthProvider.java index 614008c9b..9f853b337 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/auth/DigestAuthProvider.java +++ b/impl/core/src/main/java/org/openworkflow/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.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.impl.WorkflowUtils.checkSecret; +import static org.openworkflow.impl.WorkflowUtils.secretProp; +import static org.openworkflow.impl.auth.AuthUtils.PASSWORD; +import static org.openworkflow.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.api.types.DigestAuthenticationPolicy; +import org.openworkflow.api.types.DigestAuthenticationProperties; +import org.openworkflow.api.types.Workflow; +import org.openworkflow.impl.TaskContext; +import org.openworkflow.impl.WorkflowApplication; +import org.openworkflow.impl.WorkflowContext; +import org.openworkflow.impl.WorkflowModel; +import org.openworkflow.impl.WorkflowUtils; +import org.openworkflow.impl.WorkflowValueResolver; +import org.openworkflow.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/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/impl/auth/HttpRequestInfo.java index d3850e8e6..c80caa06f 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/auth/HttpRequestInfo.java +++ b/impl/core/src/main/java/org/openworkflow/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.impl.auth; -import io.serverlessworkflow.impl.WorkflowValueResolver; import java.net.URI; import java.util.Map; import java.util.Optional; +import org.openworkflow.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/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/impl/auth/HttpRequestInfoBuilder.java index fb021d222..eb481c32c 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/auth/HttpRequestInfoBuilder.java +++ b/impl/core/src/main/java/org/openworkflow/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.impl.auth; -import static io.serverlessworkflow.api.types.OAuth2TokenRequest.Oauth2TokenRequestEncoding.APPLICATION_X_WWW_FORM_URLENCODED; +import static org.openworkflow.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.api.types.OAuth2TokenRequest; +import org.openworkflow.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/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/impl/auth/JWT.java index cff3ee3ca..b3804d761 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/auth/JWT.java +++ b/impl/core/src/main/java/org/openworkflow/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.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/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/impl/auth/JWTConverter.java index 90580d214..dda62e2e5 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/auth/JWTConverter.java +++ b/impl/core/src/main/java/org/openworkflow/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.impl.auth; -import io.serverlessworkflow.impl.ServicePriority; +import org.openworkflow.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/impl/auth/JwtClientAssertion.java similarity index 82% rename from impl/core/src/main/java/io/serverlessworkflow/impl/auth/JwtClientAssertion.java rename to impl/core/src/main/java/org/openworkflow/impl/auth/JwtClientAssertion.java index 3a601595d..b5f16545e 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/auth/JwtClientAssertion.java +++ b/impl/core/src/main/java/org/openworkflow/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,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.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.api.types.OAuth2AuthenticationData.OAuth2AuthenticationDataGrant.PASSWORD; +import static org.openworkflow.impl.auth.AuthUtils.ASSERTION; +import static org.openworkflow.impl.auth.AuthUtils.CLIENT; +import static org.openworkflow.impl.auth.AuthUtils.CLIENT_ASSERTION; +import static org.openworkflow.impl.auth.AuthUtils.CLIENT_ASSERTION_TYPE; +import static org.openworkflow.impl.auth.AuthUtils.CLIENT_ID; +import static org.openworkflow.impl.auth.AuthUtils.GRANT; +import static org.openworkflow.impl.auth.AuthUtils.ID; +import static org.openworkflow.impl.auth.AuthUtils.JWT_BEARER_ASSERTION_TYPE; +import static org.openworkflow.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.api.types.OAuth2AuthenticationData; +import org.openworkflow.impl.WorkflowApplication; +import org.openworkflow.impl.WorkflowUtils; /** * Handles the {@code client_secret_jwt} and {@code private_key_jwt} client authentication methods. diff --git a/impl/core/src/main/java/io/serverlessworkflow/impl/auth/OAuth2AuthProvider.java b/impl/core/src/main/java/org/openworkflow/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/impl/auth/OAuth2AuthProvider.java index 16e0e1ea7..2a90f6c3f 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/auth/OAuth2AuthProvider.java +++ b/impl/core/src/main/java/org/openworkflow/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.impl.auth; -import io.serverlessworkflow.api.types.Workflow; -import io.serverlessworkflow.impl.WorkflowApplication; +import org.openworkflow.api.types.Workflow; +import org.openworkflow.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/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/impl/auth/OAuthPolicyData.java index 2ea2080fb..75b04256e 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/auth/OAuthPolicyData.java +++ b/impl/core/src/main/java/org/openworkflow/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.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.api.types.AuthenticationPolicyUnion; +import org.openworkflow.api.types.OAuth2AuthenticationData; +import org.openworkflow.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/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/impl/auth/OAuthRequestBuilder.java index 788e2898d..5c51cebdb 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/auth/OAuthRequestBuilder.java +++ b/impl/core/src/main/java/org/openworkflow/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.impl.auth; -import static io.serverlessworkflow.impl.WorkflowUtils.concatURI; -import static io.serverlessworkflow.impl.auth.AuthUtils.AUTHORITY; +import static org.openworkflow.impl.WorkflowUtils.concatURI; +import static org.openworkflow.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.api.types.OAuth2AuthenticationPropertiesEndpoints; +import org.openworkflow.api.types.OAuth2ConnectAuthenticationProperties; +import org.openworkflow.impl.WorkflowApplication; +import org.openworkflow.impl.WorkflowUtils; +import org.openworkflow.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/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/impl/auth/OAuthScheme.java index eaa353f2f..0fe460c77 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/auth/OAuthScheme.java +++ b/impl/core/src/main/java/org/openworkflow/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.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/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/impl/auth/OAuthUtils.java index c73ce4b23..5b3da7c99 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/auth/OAuthUtils.java +++ b/impl/core/src/main/java/org/openworkflow/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.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.api.types.AuthenticationPolicyUnion; +import org.openworkflow.api.types.OAuth2AuthenticationPolicy; +import org.openworkflow.api.types.OAuth2AuthenticationPolicyConfiguration; +import org.openworkflow.api.types.OpenIdConnectAuthenticationPolicy; +import org.openworkflow.api.types.OpenIdConnectAuthenticationPolicyConfiguration; +import org.openworkflow.api.types.ReferenceableAuthenticationPolicy; +import org.openworkflow.api.types.Use; +import org.openworkflow.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/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/impl/auth/OpenIdAuthProvider.java index 425e3c082..8a562adda 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/auth/OpenIdAuthProvider.java +++ b/impl/core/src/main/java/org/openworkflow/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.impl.auth; -import io.serverlessworkflow.api.types.Workflow; -import io.serverlessworkflow.impl.WorkflowApplication; +import org.openworkflow.api.types.Workflow; +import org.openworkflow.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/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/impl/auth/OpenIdRequestBuilder.java index 4194df1c8..9e5291e83 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/auth/OpenIdRequestBuilder.java +++ b/impl/core/src/main/java/org/openworkflow/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.impl.auth; -import static io.serverlessworkflow.impl.auth.AuthUtils.AUTHORITY; +import static org.openworkflow.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.api.types.OAuth2AuthenticationData; +import org.openworkflow.impl.WorkflowApplication; +import org.openworkflow.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/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/impl/auth/TokenIntrospection.java index 3f1e9be3e..cbb25eae6 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/auth/TokenIntrospection.java +++ b/impl/core/src/main/java/org/openworkflow/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.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/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/impl/config/AbstractConfigManager.java index ddb7b5dde..7830d4a30 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/config/AbstractConfigManager.java +++ b/impl/core/src/main/java/org/openworkflow/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.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/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/impl/config/ConfigManager.java index 344ea961c..15b670104 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/config/ConfigManager.java +++ b/impl/core/src/main/java/org/openworkflow/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.impl.config; -import io.serverlessworkflow.impl.ServicePriority; import java.util.Collection; import java.util.List; import java.util.Optional; +import org.openworkflow.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/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/impl/config/ConfigSecretManager.java index dff3f63a2..b88308413 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/config/ConfigSecretManager.java +++ b/impl/core/src/main/java/org/openworkflow/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.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/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/impl/config/SecretManager.java index 4f639eac7..a96c62a36 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/config/SecretManager.java +++ b/impl/core/src/main/java/org/openworkflow/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.impl.config; -import io.serverlessworkflow.impl.ServicePriority; import java.util.Map; +import org.openworkflow.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/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/impl/config/SystemPropertyConfigManager.java index e66d80f7a..5bd892553 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/config/SystemPropertyConfigManager.java +++ b/impl/core/src/main/java/org/openworkflow/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.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/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/impl/events/AbstractTypeConsumer.java index 6ad5a499b..f750d289c 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/events/AbstractTypeConsumer.java +++ b/impl/core/src/main/java/org/openworkflow/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.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.api.types.CorrelateProperty; +import org.openworkflow.api.types.EventFilter; +import org.openworkflow.api.types.EventFilterCorrelate; +import org.openworkflow.api.types.EventProperties; +import org.openworkflow.impl.TaskContext; +import org.openworkflow.impl.WorkflowApplication; +import org.openworkflow.impl.WorkflowContext; +import org.openworkflow.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/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/impl/events/CloudEventAttrPredicate.java index f5c03397a..f8f4b67aa 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/events/CloudEventAttrPredicate.java +++ b/impl/core/src/main/java/org/openworkflow/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.impl.events; -import io.serverlessworkflow.impl.TaskContext; -import io.serverlessworkflow.impl.WorkflowContext; +import org.openworkflow.impl.TaskContext; +import org.openworkflow.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/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/impl/events/CloudEventPredicate.java index 4f7b15f09..6801c86ee 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/events/CloudEventPredicate.java +++ b/impl/core/src/main/java/org/openworkflow/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.impl.events; import io.cloudevents.CloudEvent; -import io.serverlessworkflow.impl.TaskContext; -import io.serverlessworkflow.impl.WorkflowContext; +import org.openworkflow.impl.TaskContext; +import org.openworkflow.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/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/impl/events/CloudEventPredicateFactory.java index d1e8a2a53..c72947dd1 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/events/CloudEventPredicateFactory.java +++ b/impl/core/src/main/java/org/openworkflow/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.impl.events; -import io.serverlessworkflow.api.types.EventProperties; -import io.serverlessworkflow.impl.ServicePriority; -import io.serverlessworkflow.impl.WorkflowApplication; +import org.openworkflow.api.types.EventProperties; +import org.openworkflow.impl.ServicePriority; +import org.openworkflow.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/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/impl/events/CloudEventUtils.java index 34641513b..a7ded202c 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/events/CloudEventUtils.java +++ b/impl/core/src/main/java/org/openworkflow/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.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/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/impl/events/CorrelationPredicate.java index 9da98f929..1915ea519 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/events/CorrelationPredicate.java +++ b/impl/core/src/main/java/org/openworkflow/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.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.api.types.CorrelateProperty; +import org.openworkflow.impl.TaskContext; +import org.openworkflow.impl.WorkflowApplication; +import org.openworkflow.impl.WorkflowContext; +import org.openworkflow.impl.WorkflowModel; +import org.openworkflow.impl.WorkflowValueResolver; +import org.openworkflow.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/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/impl/events/DefaultCloudEventPredicate.java index 94adfff45..6ae342a1c 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/events/DefaultCloudEventPredicate.java +++ b/impl/core/src/main/java/org/openworkflow/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.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.api.types.EventData; +import org.openworkflow.api.types.EventDataschema; +import org.openworkflow.api.types.EventProperties; +import org.openworkflow.api.types.EventSource; +import org.openworkflow.api.types.EventTime; +import org.openworkflow.api.types.UriTemplate; +import org.openworkflow.impl.TaskContext; +import org.openworkflow.impl.WorkflowApplication; +import org.openworkflow.impl.WorkflowContext; +import org.openworkflow.impl.WorkflowModelFactory; +import org.openworkflow.impl.WorkflowPredicate; +import org.openworkflow.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/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/impl/events/DefaultCloudEventPredicateFactory.java index 82a9ceedb..82fffe741 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/events/DefaultCloudEventPredicateFactory.java +++ b/impl/core/src/main/java/org/openworkflow/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.impl.events; -import io.serverlessworkflow.api.types.EventProperties; -import io.serverlessworkflow.impl.WorkflowApplication; +import org.openworkflow.api.types.EventProperties; +import org.openworkflow.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/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/impl/events/EmitSourceResolver.java index 4955183be..541e264df 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/events/EmitSourceResolver.java +++ b/impl/core/src/main/java/org/openworkflow/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.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.impl.TaskContext; +import org.openworkflow.impl.WorkflowContext; +import org.openworkflow.impl.WorkflowModel; +import org.openworkflow.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/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/impl/events/EmittedEventDecorator.java index 840cf0088..e6ee793c0 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/events/EmittedEventDecorator.java +++ b/impl/core/src/main/java/org/openworkflow/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.impl.events; import io.cloudevents.core.builder.CloudEventBuilder; -import io.serverlessworkflow.impl.WorkflowDecorator; +import org.openworkflow.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/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/impl/events/EventConsumer.java index 3461bae85..d82f24652 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/events/EventConsumer.java +++ b/impl/core/src/main/java/org/openworkflow/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.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.api.types.EventFilter; +import org.openworkflow.impl.ServicePriority; +import org.openworkflow.impl.TaskContext; +import org.openworkflow.impl.WorkflowApplication; +import org.openworkflow.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/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/impl/events/EventPublisher.java index 7f1e70130..2b971ad66 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/events/EventPublisher.java +++ b/impl/core/src/main/java/org/openworkflow/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.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/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/impl/events/EventRegistration.java index 923647d5c..2b2492bfe 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/events/EventRegistration.java +++ b/impl/core/src/main/java/org/openworkflow/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.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/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/impl/events/EventRegistrationBuilder.java index e81723ffd..8ca6f7ced 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/events/EventRegistrationBuilder.java +++ b/impl/core/src/main/java/org/openworkflow/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.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/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/impl/events/EventRegistrationBuilderCollection.java index 501fa7dfa..1f1d16c31 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/events/EventRegistrationBuilderCollection.java +++ b/impl/core/src/main/java/org/openworkflow/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.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/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/impl/events/EventRegistrationBuilderInfo.java index 550af4313..7b5a0e09c 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/events/EventRegistrationBuilderInfo.java +++ b/impl/core/src/main/java/org/openworkflow/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.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.api.types.AllEventConsumptionStrategy; +import org.openworkflow.api.types.AnyEventConsumptionStrategy; +import org.openworkflow.api.types.EventConsumptionStrategy; +import org.openworkflow.api.types.EventFilter; +import org.openworkflow.api.types.ListenTo; +import org.openworkflow.api.types.OneEventConsumptionStrategy; +import org.openworkflow.api.types.Until; +import org.openworkflow.impl.WorkflowApplication; +import org.openworkflow.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/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/impl/events/EventRegistrationInfo.java index 3d4e75ca8..caa2f33e7 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/events/EventRegistrationInfo.java +++ b/impl/core/src/main/java/org/openworkflow/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.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.impl.TaskContext; +import org.openworkflow.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/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/impl/events/InMemoryEvents.java index f94e5511d..da61812a6 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/events/InMemoryEvents.java +++ b/impl/core/src/main/java/org/openworkflow/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.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.impl.DefaultExecutorServiceFactory; +import org.openworkflow.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/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/impl/events/ModelAwareCloudEventPredicate.java index 319e8a6ec..e9f7a864f 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/events/ModelAwareCloudEventPredicate.java +++ b/impl/core/src/main/java/org/openworkflow/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.impl.events; -import io.serverlessworkflow.impl.TaskContext; -import io.serverlessworkflow.impl.WorkflowContext; -import io.serverlessworkflow.impl.WorkflowModel; +import org.openworkflow.impl.TaskContext; +import org.openworkflow.impl.WorkflowContext; +import org.openworkflow.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/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/impl/events/TypeEventRegistration.java index 069e3bfa8..92dd1f486 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/events/TypeEventRegistration.java +++ b/impl/core/src/main/java/org/openworkflow/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.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.impl.TaskContext; +import org.openworkflow.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/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/impl/events/TypeEventRegistrationBuilder.java index 8e700cbe9..ddcbd4f46 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/events/TypeEventRegistrationBuilder.java +++ b/impl/core/src/main/java/org/openworkflow/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.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/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/impl/executors/AbstractTaskExecutor.java index 58d1eb5f2..685fc3d30 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/executors/AbstractTaskExecutor.java +++ b/impl/core/src/main/java/org/openworkflow/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.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.impl.LifecycleEventsUtils.publishEvent; +import static org.openworkflow.impl.WorkflowUtils.buildWorkflowFilter; +import static org.openworkflow.impl.WorkflowUtils.getSchemaValidator; +import static org.openworkflow.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.api.types.Export; +import org.openworkflow.api.types.FlowDirective; +import org.openworkflow.api.types.Input; +import org.openworkflow.api.types.Output; +import org.openworkflow.api.types.TaskBase; +import org.openworkflow.api.types.Workflow; +import org.openworkflow.impl.TaskContext; +import org.openworkflow.impl.WorkflowApplication; +import org.openworkflow.impl.WorkflowContext; +import org.openworkflow.impl.WorkflowDefinition; +import org.openworkflow.impl.WorkflowError; +import org.openworkflow.impl.WorkflowException; +import org.openworkflow.impl.WorkflowFilter; +import org.openworkflow.impl.WorkflowModel; +import org.openworkflow.impl.WorkflowMutablePosition; +import org.openworkflow.impl.WorkflowPosition; +import org.openworkflow.impl.WorkflowPredicate; +import org.openworkflow.impl.WorkflowStatus; +import org.openworkflow.impl.WorkflowUtils; +import org.openworkflow.impl.WorkflowValueResolver; +import org.openworkflow.impl.lifecycle.TaskCancelledEvent; +import org.openworkflow.impl.lifecycle.TaskCompletedEvent; +import org.openworkflow.impl.lifecycle.TaskFailedEvent; +import org.openworkflow.impl.lifecycle.TaskRetriedEvent; +import org.openworkflow.impl.lifecycle.TaskStartedEvent; +import org.openworkflow.impl.resources.ResourceLoader; +import org.openworkflow.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/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/impl/executors/CallFunctionExecutorBuilder.java index 1d53ad799..c4d06719e 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/executors/CallFunctionExecutorBuilder.java +++ b/impl/core/src/main/java/org/openworkflow/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.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.api.types.CallFunction; +import org.openworkflow.api.types.Catalog; +import org.openworkflow.api.types.FunctionArguments; +import org.openworkflow.api.types.Task; +import org.openworkflow.api.types.TaskBase; +import org.openworkflow.api.types.Use; +import org.openworkflow.impl.WorkflowDefinition; +import org.openworkflow.impl.WorkflowMutablePosition; +import org.openworkflow.impl.WorkflowUtils; +import org.openworkflow.impl.WorkflowValueResolver; +import org.openworkflow.impl.resources.ExternalResourceHandler; +import org.openworkflow.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/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/impl/executors/CallTaskExecutor.java index 556f12253..3cb0f37da 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/executors/CallTaskExecutor.java +++ b/impl/core/src/main/java/org/openworkflow/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.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.api.types.TaskBase; +import org.openworkflow.impl.TaskContext; +import org.openworkflow.impl.WorkflowContext; +import org.openworkflow.impl.WorkflowDefinition; +import org.openworkflow.impl.WorkflowModel; +import org.openworkflow.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/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/impl/executors/CallableTask.java index de5d2c091..9edf458e1 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/executors/CallableTask.java +++ b/impl/core/src/main/java/org/openworkflow/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.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.impl.TaskContext; +import org.openworkflow.impl.WorkflowContext; +import org.openworkflow.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/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/impl/executors/CallableTaskBuilder.java index ae8ed60f8..db2019608 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/executors/CallableTaskBuilder.java +++ b/impl/core/src/main/java/org/openworkflow/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.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.api.types.TaskBase; +import org.openworkflow.impl.ServicePriority; +import org.openworkflow.impl.WorkflowDefinition; +import org.openworkflow.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/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/impl/executors/CallableTaskFactory.java index baac373fc..2a5628255 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/executors/CallableTaskFactory.java +++ b/impl/core/src/main/java/org/openworkflow/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.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/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/impl/executors/CallableTaskProxyBuilder.java index 8cf5bd3a3..fbe28f639 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/executors/CallableTaskProxyBuilder.java +++ b/impl/core/src/main/java/org/openworkflow/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.impl.executors; -import io.serverlessworkflow.api.types.TaskBase; -import io.serverlessworkflow.impl.ServicePriority; +import org.openworkflow.api.types.TaskBase; +import org.openworkflow.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/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/impl/executors/DefaultTaskExecutorFactory.java index 85a198d9b..3c17b9b2a 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/executors/DefaultTaskExecutorFactory.java +++ b/impl/core/src/main/java/org/openworkflow/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.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.api.types.CallTask; +import org.openworkflow.api.types.Task; +import org.openworkflow.api.types.TaskBase; +import org.openworkflow.impl.WorkflowApplication; +import org.openworkflow.impl.WorkflowDefinition; +import org.openworkflow.impl.WorkflowMutablePosition; +import org.openworkflow.impl.executors.CallTaskExecutor.CallTaskExecutorBuilder; +import org.openworkflow.impl.executors.DoExecutor.DoExecutorBuilder; +import org.openworkflow.impl.executors.EmitExecutor.EmitExecutorBuilder; +import org.openworkflow.impl.executors.ForExecutor.ForExecutorBuilder; +import org.openworkflow.impl.executors.ForkExecutor.ForkExecutorBuilder; +import org.openworkflow.impl.executors.ListenExecutor.ListenExecutorBuilder; +import org.openworkflow.impl.executors.RaiseExecutor.RaiseExecutorBuilder; +import org.openworkflow.impl.executors.RunTaskExecutor.RunTaskExecutorBuilder; +import org.openworkflow.impl.executors.SetExecutor.SetExecutorBuilder; +import org.openworkflow.impl.executors.SwitchExecutor.SwitchExecutorBuilder; +import org.openworkflow.impl.executors.TryExecutor.TryExecutorBuilder; +import org.openworkflow.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/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/impl/executors/DoExecutor.java index 4b351b101..f44e9ef04 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/executors/DoExecutor.java +++ b/impl/core/src/main/java/org/openworkflow/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.impl.executors; + import java.util.Optional; import java.util.concurrent.CompletableFuture; +import org.openworkflow.api.types.DoTask; +import org.openworkflow.impl.TaskContext; +import org.openworkflow.impl.WorkflowContext; +import org.openworkflow.impl.WorkflowDefinition; +import org.openworkflow.impl.WorkflowModel; +import org.openworkflow.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/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/impl/executors/EmitExecutor.java index 1d42b9b5d..a6a7c21d5 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/executors/EmitExecutor.java +++ b/impl/core/src/main/java/org/openworkflow/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.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.api.types.EmitTask; +import org.openworkflow.api.types.EventData; +import org.openworkflow.api.types.EventDataschema; +import org.openworkflow.api.types.EventProperties; +import org.openworkflow.api.types.EventSource; +import org.openworkflow.api.types.EventTime; +import org.openworkflow.impl.TaskContext; +import org.openworkflow.impl.WorkflowApplication; +import org.openworkflow.impl.WorkflowContext; +import org.openworkflow.impl.WorkflowDefinition; +import org.openworkflow.impl.WorkflowModel; +import org.openworkflow.impl.WorkflowMutablePosition; +import org.openworkflow.impl.WorkflowUtils; +import org.openworkflow.impl.WorkflowValueResolver; +import org.openworkflow.impl.events.CloudEventUtils; +import org.openworkflow.impl.events.EmittedEventDecorator; +import org.openworkflow.impl.events.EventPublisher; +import org.openworkflow.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/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/impl/executors/ForExecutor.java index 531d2e30a..871fc700b 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/executors/ForExecutor.java +++ b/impl/core/src/main/java/org/openworkflow/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.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.api.types.ForIn; +import org.openworkflow.api.types.ForTask; +import org.openworkflow.impl.TaskContext; +import org.openworkflow.impl.WorkflowContext; +import org.openworkflow.impl.WorkflowDefinition; +import org.openworkflow.impl.WorkflowModel; +import org.openworkflow.impl.WorkflowMutablePosition; +import org.openworkflow.impl.WorkflowPredicate; +import org.openworkflow.impl.WorkflowUtils; +import org.openworkflow.impl.WorkflowValueResolver; +import org.openworkflow.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/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/impl/executors/ForkExecutor.java index 638a53c02..2d6a4b34d 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/executors/ForkExecutor.java +++ b/impl/core/src/main/java/org/openworkflow/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.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.api.types.ForkTask; +import org.openworkflow.api.types.ForkTaskConfiguration; +import org.openworkflow.impl.TaskContext; +import org.openworkflow.impl.WorkflowContext; +import org.openworkflow.impl.WorkflowDefinition; +import org.openworkflow.impl.WorkflowModel; +import org.openworkflow.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/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/impl/executors/ListenExecutor.java index 82e54b1d0..e56724c5a 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/executors/ListenExecutor.java +++ b/impl/core/src/main/java/org/openworkflow/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.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.api.types.ListenTask; +import org.openworkflow.api.types.ListenTaskConfiguration; +import org.openworkflow.api.types.ListenTaskConfiguration.ListenAndReadAs; +import org.openworkflow.api.types.SubscriptionIterator; +import org.openworkflow.api.types.Until; +import org.openworkflow.impl.TaskContext; +import org.openworkflow.impl.WorkflowContext; +import org.openworkflow.impl.WorkflowDefinition; +import org.openworkflow.impl.WorkflowModel; +import org.openworkflow.impl.WorkflowModelCollection; +import org.openworkflow.impl.WorkflowMutableInstance; +import org.openworkflow.impl.WorkflowMutablePosition; +import org.openworkflow.impl.WorkflowPredicate; +import org.openworkflow.impl.WorkflowStatus; +import org.openworkflow.impl.WorkflowUtils; +import org.openworkflow.impl.events.EventConsumer; +import org.openworkflow.impl.events.EventRegistrationBuilderCollection; +import org.openworkflow.impl.events.EventRegistrationBuilderInfo; +import org.openworkflow.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/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/impl/executors/ProcessResult.java index f04ded8c4..e8171e2c2 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/executors/ProcessResult.java +++ b/impl/core/src/main/java/org/openworkflow/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.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/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/impl/executors/RaiseExecutor.java index 4c179750c..f3a501714 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/executors/RaiseExecutor.java +++ b/impl/core/src/main/java/org/openworkflow/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.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.api.types.Error; +import org.openworkflow.api.types.ErrorDetails; +import org.openworkflow.api.types.ErrorInstance; +import org.openworkflow.api.types.ErrorTitle; +import org.openworkflow.api.types.ErrorType; +import org.openworkflow.api.types.RaiseTask; +import org.openworkflow.api.types.RaiseTaskError; +import org.openworkflow.impl.TaskContext; +import org.openworkflow.impl.WorkflowApplication; +import org.openworkflow.impl.WorkflowContext; +import org.openworkflow.impl.WorkflowDefinition; +import org.openworkflow.impl.WorkflowError; +import org.openworkflow.impl.WorkflowError.Builder; +import org.openworkflow.impl.WorkflowException; +import org.openworkflow.impl.WorkflowModel; +import org.openworkflow.impl.WorkflowMutablePosition; +import org.openworkflow.impl.WorkflowUtils; +import org.openworkflow.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/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/impl/executors/RegularTaskExecutor.java index 691783040..f26115269 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/executors/RegularTaskExecutor.java +++ b/impl/core/src/main/java/org/openworkflow/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.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.api.types.TaskBase; +import org.openworkflow.impl.TaskContext; +import org.openworkflow.impl.WorkflowContext; +import org.openworkflow.impl.WorkflowDefinition; +import org.openworkflow.impl.WorkflowModel; +import org.openworkflow.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/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/impl/executors/RunScriptExecutor.java index b7bb1432b..a11cc031b 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/executors/RunScriptExecutor.java +++ b/impl/core/src/main/java/org/openworkflow/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.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.api.types.RunTaskConfiguration; +import org.openworkflow.api.types.RunTaskConfiguration.ProcessReturnType; +import org.openworkflow.impl.TaskContext; +import org.openworkflow.impl.WorkflowContext; +import org.openworkflow.impl.WorkflowError; +import org.openworkflow.impl.WorkflowException; +import org.openworkflow.impl.WorkflowModel; +import org.openworkflow.impl.WorkflowValueResolver; +import org.openworkflow.impl.scripts.ScriptContext; +import org.openworkflow.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/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/impl/executors/RunScriptExecutorBuilder.java index 02d2b813b..cd180ccf5 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/executors/RunScriptExecutorBuilder.java +++ b/impl/core/src/main/java/org/openworkflow/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.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.api.types.RunScript; +import org.openworkflow.api.types.RunTaskConfiguration; +import org.openworkflow.api.types.Script; +import org.openworkflow.api.types.ScriptUnion; +import org.openworkflow.impl.WorkflowApplication; +import org.openworkflow.impl.WorkflowDefinition; +import org.openworkflow.impl.WorkflowUtils; +import org.openworkflow.impl.resources.ResourceLoaderUtils; +import org.openworkflow.impl.scripts.ScriptLanguageId; +import org.openworkflow.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/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/impl/executors/RunShellExecutor.java index c54b5ba60..12106875b 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/executors/RunShellExecutor.java +++ b/impl/core/src/main/java/org/openworkflow/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.impl.executors; -import static io.serverlessworkflow.impl.scripts.ScriptUtils.uncheckedStart; +import static org.openworkflow.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.api.types.RunTaskConfiguration.ProcessReturnType; +import org.openworkflow.impl.TaskContext; +import org.openworkflow.impl.WorkflowContext; +import org.openworkflow.impl.WorkflowModel; +import org.openworkflow.impl.WorkflowValueResolver; +import org.openworkflow.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/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/impl/executors/RunShellExecutorBuilder.java index 177384079..5d2ae794c 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/executors/RunShellExecutorBuilder.java +++ b/impl/core/src/main/java/org/openworkflow/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.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.api.types.RunShell; +import org.openworkflow.api.types.RunTaskConfiguration; +import org.openworkflow.api.types.Shell; +import org.openworkflow.impl.WorkflowDefinition; +import org.openworkflow.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/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/impl/executors/RunTaskExecutor.java index f1fe7861e..778d0c41b 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/executors/RunTaskExecutor.java +++ b/impl/core/src/main/java/org/openworkflow/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.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.api.types.RunTask; +import org.openworkflow.api.types.RunTaskConfiguration; +import org.openworkflow.impl.TaskContext; +import org.openworkflow.impl.WorkflowContext; +import org.openworkflow.impl.WorkflowDefinition; +import org.openworkflow.impl.WorkflowModel; +import org.openworkflow.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/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/impl/executors/RunWorkflowExecutor.java index cf0a8faac..dcda6a2c3 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/executors/RunWorkflowExecutor.java +++ b/impl/core/src/main/java/org/openworkflow/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.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.impl.TaskContext; +import org.openworkflow.impl.WorkflowContext; +import org.openworkflow.impl.WorkflowDefinition; +import org.openworkflow.impl.WorkflowDefinitionId; +import org.openworkflow.impl.WorkflowModel; +import org.openworkflow.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/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/impl/executors/RunWorkflowExecutorBuilder.java index e716f1e4b..9e72545ca 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/executors/RunWorkflowExecutorBuilder.java +++ b/impl/core/src/main/java/org/openworkflow/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.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.api.types.RunTaskConfiguration; +import org.openworkflow.api.types.RunWorkflow; +import org.openworkflow.api.types.SubflowConfiguration; +import org.openworkflow.api.types.SubflowInput; +import org.openworkflow.impl.WorkflowDefinition; +import org.openworkflow.impl.WorkflowDefinitionId; +import org.openworkflow.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/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/impl/executors/RunnableTaskBuilder.java index e0bc9b0b4..c5ac15a40 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/executors/RunnableTaskBuilder.java +++ b/impl/core/src/main/java/org/openworkflow/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.impl.executors; -import io.serverlessworkflow.api.types.RunTaskConfiguration; -import io.serverlessworkflow.impl.ServicePriority; -import io.serverlessworkflow.impl.WorkflowDefinition; +import org.openworkflow.api.types.RunTaskConfiguration; +import org.openworkflow.impl.ServicePriority; +import org.openworkflow.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/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/impl/executors/SetExecutor.java index c37d5f2ca..0198dcc33 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/executors/SetExecutor.java +++ b/impl/core/src/main/java/org/openworkflow/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.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.api.types.Set; +import org.openworkflow.api.types.SetTask; +import org.openworkflow.api.types.SetTaskConfiguration; +import org.openworkflow.impl.TaskContext; +import org.openworkflow.impl.WorkflowContext; +import org.openworkflow.impl.WorkflowDefinition; +import org.openworkflow.impl.WorkflowFilter; +import org.openworkflow.impl.WorkflowModel; +import org.openworkflow.impl.WorkflowMutablePosition; +import org.openworkflow.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/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/impl/executors/SwitchExecutor.java index 238c4dbab..39f1f68a7 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/executors/SwitchExecutor.java +++ b/impl/core/src/main/java/org/openworkflow/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.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.api.types.FlowDirective; +import org.openworkflow.api.types.SwitchCase; +import org.openworkflow.api.types.SwitchItem; +import org.openworkflow.api.types.SwitchTask; +import org.openworkflow.impl.TaskContext; +import org.openworkflow.impl.WorkflowContext; +import org.openworkflow.impl.WorkflowDefinition; +import org.openworkflow.impl.WorkflowMutablePosition; +import org.openworkflow.impl.WorkflowPredicate; +import org.openworkflow.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/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/impl/executors/TaskExecutor.java index ebf492f34..43eb093c3 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/executors/TaskExecutor.java +++ b/impl/core/src/main/java/org/openworkflow/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.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.api.types.TaskBase; +import org.openworkflow.impl.TaskContext; +import org.openworkflow.impl.WorkflowContext; +import org.openworkflow.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/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/impl/executors/TaskExecutorBuilder.java index 2cbb8c164..5c8bc4131 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/executors/TaskExecutorBuilder.java +++ b/impl/core/src/main/java/org/openworkflow/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.impl.executors; -import io.serverlessworkflow.api.types.TaskBase; import java.util.Map; +import org.openworkflow.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/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/impl/executors/TaskExecutorFactory.java index 1a2206a9d..b42ebd3e4 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/executors/TaskExecutorFactory.java +++ b/impl/core/src/main/java/org/openworkflow/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.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.api.types.Task; +import org.openworkflow.api.types.TaskBase; +import org.openworkflow.impl.ServicePriority; +import org.openworkflow.impl.WorkflowDefinition; +import org.openworkflow.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/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/impl/executors/TaskExecutorHelper.java index 540e20ff8..f7792e86b 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/executors/TaskExecutorHelper.java +++ b/impl/core/src/main/java/org/openworkflow/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.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.api.types.TaskItem; +import org.openworkflow.impl.TaskContext; +import org.openworkflow.impl.WorkflowContext; +import org.openworkflow.impl.WorkflowDefinition; +import org.openworkflow.impl.WorkflowModel; +import org.openworkflow.impl.WorkflowMutablePosition; +import org.openworkflow.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/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/impl/executors/TransitionInfo.java index f330ac741..6b6d48192 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/executors/TransitionInfo.java +++ b/impl/core/src/main/java/org/openworkflow/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.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/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/impl/executors/TransitionInfoBuilder.java index 7f62eaf7c..d990078c8 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/executors/TransitionInfoBuilder.java +++ b/impl/core/src/main/java/org/openworkflow/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.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/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/impl/executors/TryExecutor.java index 9d281a9d9..285d450f5 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/executors/TryExecutor.java +++ b/impl/core/src/main/java/org/openworkflow/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.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.api.types.CatchErrors; +import org.openworkflow.api.types.ErrorFilter; +import org.openworkflow.api.types.FlowDirective; +import org.openworkflow.api.types.Retry; +import org.openworkflow.api.types.RetryBackoff; +import org.openworkflow.api.types.RetryLimit; +import org.openworkflow.api.types.RetryPolicy; +import org.openworkflow.api.types.TaskItem; +import org.openworkflow.api.types.TryTask; +import org.openworkflow.api.types.TryTaskCatch; +import org.openworkflow.impl.TaskContext; +import org.openworkflow.impl.WorkflowContext; +import org.openworkflow.impl.WorkflowDefinition; +import org.openworkflow.impl.WorkflowError; +import org.openworkflow.impl.WorkflowException; +import org.openworkflow.impl.WorkflowModel; +import org.openworkflow.impl.WorkflowMutablePosition; +import org.openworkflow.impl.WorkflowPredicate; +import org.openworkflow.impl.WorkflowUtils; +import org.openworkflow.impl.WorkflowValueResolver; +import org.openworkflow.impl.executors.retry.ConstantRetryIntervalFunction; +import org.openworkflow.impl.executors.retry.DefaultRetryExecutor; +import org.openworkflow.impl.executors.retry.ExponentialRetryIntervalFunction; +import org.openworkflow.impl.executors.retry.LinearRetryIntervalFunction; +import org.openworkflow.impl.executors.retry.RetryExecutor; +import org.openworkflow.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/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/impl/executors/WaitExecutor.java index 94e0796f8..3975fcc7d 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/executors/WaitExecutor.java +++ b/impl/core/src/main/java/org/openworkflow/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.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.api.types.WaitTask; +import org.openworkflow.impl.TaskContext; +import org.openworkflow.impl.WorkflowContext; +import org.openworkflow.impl.WorkflowDefinition; +import org.openworkflow.impl.WorkflowModel; +import org.openworkflow.impl.WorkflowMutablePosition; +import org.openworkflow.impl.WorkflowStatus; +import org.openworkflow.impl.WorkflowUtils; +import org.openworkflow.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/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/impl/executors/retry/AbstractRetryIntervalFunction.java index df8ed903c..f8c4dcd7f 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/executors/retry/AbstractRetryIntervalFunction.java +++ b/impl/core/src/main/java/org/openworkflow/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.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.api.types.RetryPolicyJitter; +import org.openworkflow.api.types.TimeoutAfter; +import org.openworkflow.impl.TaskContext; +import org.openworkflow.impl.WorkflowApplication; +import org.openworkflow.impl.WorkflowContext; +import org.openworkflow.impl.WorkflowModel; +import org.openworkflow.impl.WorkflowUtils; +import org.openworkflow.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/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/impl/executors/retry/ConstantRetryIntervalFunction.java index 28ebdc704..cab3b0629 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/executors/retry/ConstantRetryIntervalFunction.java +++ b/impl/core/src/main/java/org/openworkflow/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.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.api.types.RetryPolicyJitter; +import org.openworkflow.api.types.TimeoutAfter; +import org.openworkflow.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/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/impl/executors/retry/DefaultRetryExecutor.java index 2c6d59f66..60c0a0c4a 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/executors/retry/DefaultRetryExecutor.java +++ b/impl/core/src/main/java/org/openworkflow/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.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.impl.TaskContext; +import org.openworkflow.impl.WorkflowContext; +import org.openworkflow.impl.WorkflowModel; +import org.openworkflow.impl.WorkflowPredicate; +import org.openworkflow.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/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/impl/executors/retry/ExponentialRetryIntervalFunction.java index be50d3f0d..23a04d52f 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/executors/retry/ExponentialRetryIntervalFunction.java +++ b/impl/core/src/main/java/org/openworkflow/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.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.api.types.RetryPolicyJitter; +import org.openworkflow.api.types.TimeoutAfter; +import org.openworkflow.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/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/impl/executors/retry/LinearRetryIntervalFunction.java index 1e645c548..ff74b9a8d 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/executors/retry/LinearRetryIntervalFunction.java +++ b/impl/core/src/main/java/org/openworkflow/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.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.api.types.RetryPolicyJitter; +import org.openworkflow.api.types.TimeoutAfter; +import org.openworkflow.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/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/impl/executors/retry/RetryExecutor.java index 4f9c23d5f..17984c68f 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/executors/retry/RetryExecutor.java +++ b/impl/core/src/main/java/org/openworkflow/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.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.impl.TaskContext; +import org.openworkflow.impl.WorkflowContext; +import org.openworkflow.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/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/impl/executors/retry/RetryIntervalFunction.java index 09ef700a8..b51e92b42 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/executors/retry/RetryIntervalFunction.java +++ b/impl/core/src/main/java/org/openworkflow/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.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.impl.TaskContext; +import org.openworkflow.impl.WorkflowContext; +import org.openworkflow.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/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/impl/expressions/AbstractExpressionFactory.java index 5fb96a046..a1d77d460 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/expressions/AbstractExpressionFactory.java +++ b/impl/core/src/main/java/org/openworkflow/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.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.impl.WorkflowFilter; +import org.openworkflow.impl.WorkflowModelFactory; +import org.openworkflow.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/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/impl/expressions/AbstractProxyCollection.java index 23d0b940f..4dd3e990a 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/expressions/AbstractProxyCollection.java +++ b/impl/core/src/main/java/org/openworkflow/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.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/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/impl/expressions/DateTimeDescriptor.java index 898476f83..4fe1f6c7b 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/expressions/DateTimeDescriptor.java +++ b/impl/core/src/main/java/org/openworkflow/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.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/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/impl/expressions/ExpressionDescriptor.java index f7aef6c3e..58644616e 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/expressions/ExpressionDescriptor.java +++ b/impl/core/src/main/java/org/openworkflow/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.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/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/impl/expressions/ExpressionFactory.java index af3e98a9b..354f8eee1 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/expressions/ExpressionFactory.java +++ b/impl/core/src/main/java/org/openworkflow/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.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.api.types.TaskBase; +import org.openworkflow.impl.WorkflowFilter; +import org.openworkflow.impl.WorkflowModelFactory; +import org.openworkflow.impl.WorkflowPredicate; +import org.openworkflow.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/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/impl/expressions/ExpressionUtils.java index b91ac21cc..01377d7b9 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/expressions/ExpressionUtils.java +++ b/impl/core/src/main/java/org/openworkflow/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.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/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/impl/expressions/ExpressionValidationException.java index 8dc1b4f2c..1db401e7c 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/expressions/ExpressionValidationException.java +++ b/impl/core/src/main/java/org/openworkflow/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.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/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/impl/expressions/ObjectExpression.java index 59126ac17..b52864d65 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/expressions/ObjectExpression.java +++ b/impl/core/src/main/java/org/openworkflow/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.impl.expressions; -import io.serverlessworkflow.impl.TaskContext; -import io.serverlessworkflow.impl.WorkflowContext; -import io.serverlessworkflow.impl.WorkflowModel; +import org.openworkflow.impl.TaskContext; +import org.openworkflow.impl.WorkflowContext; +import org.openworkflow.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/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/impl/expressions/ObjectExpressionFactory.java index 0dc2e01be..8fc0f7851 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/expressions/ObjectExpressionFactory.java +++ b/impl/core/src/main/java/org/openworkflow/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.impl.expressions; + import java.util.Collection; import java.util.Map; import java.util.Optional; +import org.openworkflow.api.types.TaskBase; +import org.openworkflow.impl.TaskContext; +import org.openworkflow.impl.WorkflowContext; +import org.openworkflow.impl.WorkflowModel; +import org.openworkflow.impl.WorkflowPredicate; +import org.openworkflow.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/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/impl/expressions/ProxyCollection.java index c2518bfec..262c5c85e 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/expressions/ProxyCollection.java +++ b/impl/core/src/main/java/org/openworkflow/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.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/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/impl/expressions/ProxyIterator.java index bd63c2c5b..19782d1f4 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/expressions/ProxyIterator.java +++ b/impl/core/src/main/java/org/openworkflow/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.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/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/impl/expressions/ProxyMap.java index 9ebfe2145..d39e4490e 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/expressions/ProxyMap.java +++ b/impl/core/src/main/java/org/openworkflow/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.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/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/impl/expressions/RuntimeDescriptor.java index e9893ed85..31581528e 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/expressions/RuntimeDescriptor.java +++ b/impl/core/src/main/java/org/openworkflow/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.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/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/impl/expressions/TaskDescriptor.java index a49190027..27703eec0 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/expressions/TaskDescriptor.java +++ b/impl/core/src/main/java/org/openworkflow/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.impl.expressions; -import io.serverlessworkflow.api.types.TaskBase; -import io.serverlessworkflow.impl.TaskContext; -import io.serverlessworkflow.impl.WorkflowModel; +import org.openworkflow.api.types.TaskBase; +import org.openworkflow.impl.TaskContext; +import org.openworkflow.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/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/impl/expressions/WorkflowDescriptor.java index cf87cfbbf..6eb221953 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/expressions/WorkflowDescriptor.java +++ b/impl/core/src/main/java/org/openworkflow/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.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.api.types.TaskBase; +import org.openworkflow.api.types.Workflow; +import org.openworkflow.impl.WorkflowContext; +import org.openworkflow.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/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/impl/lifecycle/EventType.java index 9d9d4028c..11ea92d69 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/lifecycle/EventType.java +++ b/impl/core/src/main/java/org/openworkflow/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.impl.lifecycle; -import io.serverlessworkflow.impl.LifecycleEvents; +import org.openworkflow.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/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/impl/lifecycle/TaskCancelledEvent.java index 7bc143bc7..572bd6875 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/lifecycle/TaskCancelledEvent.java +++ b/impl/core/src/main/java/org/openworkflow/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.impl.lifecycle; -import io.serverlessworkflow.impl.TaskContext; -import io.serverlessworkflow.impl.WorkflowContext; +import org.openworkflow.impl.TaskContext; +import org.openworkflow.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/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/impl/lifecycle/TaskCompletedEvent.java index 7be89af26..9eba04926 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/lifecycle/TaskCompletedEvent.java +++ b/impl/core/src/main/java/org/openworkflow/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.impl.lifecycle; -import io.serverlessworkflow.impl.TaskContext; -import io.serverlessworkflow.impl.WorkflowContext; +import org.openworkflow.impl.TaskContext; +import org.openworkflow.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/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/impl/lifecycle/TaskEvent.java index 10aa7e746..66a28c326 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/lifecycle/TaskEvent.java +++ b/impl/core/src/main/java/org/openworkflow/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.impl.lifecycle; -import io.serverlessworkflow.impl.TaskContextData; -import io.serverlessworkflow.impl.WorkflowContextData; +import org.openworkflow.impl.TaskContextData; +import org.openworkflow.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/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/impl/lifecycle/TaskFailedEvent.java index 9cbcff613..be3a61ef2 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/lifecycle/TaskFailedEvent.java +++ b/impl/core/src/main/java/org/openworkflow/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.impl.lifecycle; -import io.serverlessworkflow.impl.TaskContext; -import io.serverlessworkflow.impl.WorkflowContext; +import org.openworkflow.impl.TaskContext; +import org.openworkflow.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/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/impl/lifecycle/TaskResumedEvent.java index c0b7af01f..64435e2b3 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/lifecycle/TaskResumedEvent.java +++ b/impl/core/src/main/java/org/openworkflow/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.impl.lifecycle; -import io.serverlessworkflow.impl.TaskContext; -import io.serverlessworkflow.impl.WorkflowContext; +import org.openworkflow.impl.TaskContext; +import org.openworkflow.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/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/impl/lifecycle/TaskRetriedEvent.java index 86dd4c240..9e2e56177 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/lifecycle/TaskRetriedEvent.java +++ b/impl/core/src/main/java/org/openworkflow/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.impl.lifecycle; -import io.serverlessworkflow.impl.TaskContext; -import io.serverlessworkflow.impl.WorkflowContext; +import org.openworkflow.impl.TaskContext; +import org.openworkflow.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/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/impl/lifecycle/TaskStartedEvent.java index 003346a40..254825921 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/lifecycle/TaskStartedEvent.java +++ b/impl/core/src/main/java/org/openworkflow/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.impl.lifecycle; -import io.serverlessworkflow.impl.TaskContext; -import io.serverlessworkflow.impl.WorkflowContext; +import org.openworkflow.impl.TaskContext; +import org.openworkflow.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/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/impl/lifecycle/TaskSuspendedEvent.java index 12ef15c88..35bd78100 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/lifecycle/TaskSuspendedEvent.java +++ b/impl/core/src/main/java/org/openworkflow/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.impl.lifecycle; -import io.serverlessworkflow.impl.TaskContext; -import io.serverlessworkflow.impl.WorkflowContext; +import org.openworkflow.impl.TaskContext; +import org.openworkflow.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/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/impl/lifecycle/TraceExecutionListener.java index 0793b14c0..69bf77eeb 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/lifecycle/TraceExecutionListener.java +++ b/impl/core/src/main/java/org/openworkflow/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.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/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/impl/lifecycle/WorkflowCancelledEvent.java index 7185bc635..023db9e56 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/lifecycle/WorkflowCancelledEvent.java +++ b/impl/core/src/main/java/org/openworkflow/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.impl.lifecycle; -import io.serverlessworkflow.impl.WorkflowContextData; +import org.openworkflow.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/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/impl/lifecycle/WorkflowCompletedEvent.java index b6630ff61..a83a652f7 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/lifecycle/WorkflowCompletedEvent.java +++ b/impl/core/src/main/java/org/openworkflow/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.impl.lifecycle; -import io.serverlessworkflow.impl.WorkflowContextData; -import io.serverlessworkflow.impl.WorkflowModel; +import org.openworkflow.impl.WorkflowContextData; +import org.openworkflow.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/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/impl/lifecycle/WorkflowEvent.java index 4a486e85e..1e9190310 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/lifecycle/WorkflowEvent.java +++ b/impl/core/src/main/java/org/openworkflow/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.impl.lifecycle; -import io.serverlessworkflow.impl.WorkflowContextData; import java.time.OffsetDateTime; +import org.openworkflow.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/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/impl/lifecycle/WorkflowExecutionCompletableListener.java index 4e83a9e77..5d02a3a27 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/lifecycle/WorkflowExecutionCompletableListener.java +++ b/impl/core/src/main/java/org/openworkflow/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.impl.lifecycle; -import io.serverlessworkflow.impl.ServicePriority; import java.util.concurrent.CompletableFuture; +import org.openworkflow.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/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/impl/lifecycle/WorkflowExecutionListener.java index bb63f06ae..a903cb166 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/lifecycle/WorkflowExecutionListener.java +++ b/impl/core/src/main/java/org/openworkflow/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.impl.lifecycle; -import io.serverlessworkflow.impl.ServicePriority; +import org.openworkflow.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/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/impl/lifecycle/WorkflowExecutionListenerAdapter.java index f5cf47e98..efed1b43c 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/lifecycle/WorkflowExecutionListenerAdapter.java +++ b/impl/core/src/main/java/org/openworkflow/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.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/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/impl/lifecycle/WorkflowFailedEvent.java index 05ee55951..87eea4a71 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/lifecycle/WorkflowFailedEvent.java +++ b/impl/core/src/main/java/org/openworkflow/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.impl.lifecycle; -import io.serverlessworkflow.impl.WorkflowContextData; +import org.openworkflow.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/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/impl/lifecycle/WorkflowResumedEvent.java index 116082f00..6a28a3db0 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/lifecycle/WorkflowResumedEvent.java +++ b/impl/core/src/main/java/org/openworkflow/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.impl.lifecycle; -import io.serverlessworkflow.impl.WorkflowContextData; +import org.openworkflow.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/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/impl/lifecycle/WorkflowStartedEvent.java index 9638eada1..7af350533 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/lifecycle/WorkflowStartedEvent.java +++ b/impl/core/src/main/java/org/openworkflow/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.impl.lifecycle; -import io.serverlessworkflow.impl.WorkflowContextData; +import org.openworkflow.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/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/impl/lifecycle/WorkflowStatusEvent.java index 0f882860d..8ef6084ad 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/lifecycle/WorkflowStatusEvent.java +++ b/impl/core/src/main/java/org/openworkflow/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.impl.lifecycle; -import io.serverlessworkflow.impl.WorkflowContextData; -import io.serverlessworkflow.impl.WorkflowStatus; +import org.openworkflow.impl.WorkflowContextData; +import org.openworkflow.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/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/impl/lifecycle/WorkflowSuspendedEvent.java index bb6347147..7c60f98f4 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/lifecycle/WorkflowSuspendedEvent.java +++ b/impl/core/src/main/java/org/openworkflow/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.impl.lifecycle; -import io.serverlessworkflow.impl.WorkflowContextData; +import org.openworkflow.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/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/impl/lifecycle/ce/AbstractLifeCyclePublisher.java index 24efd52c2..521e98927 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/lifecycle/ce/AbstractLifeCyclePublisher.java +++ b/impl/core/src/main/java/org/openworkflow/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.impl.lifecycle.ce; + +import static org.openworkflow.impl.LifecycleEvents.APPLICATION_ID_EXTENSION; +import static org.openworkflow.impl.LifecycleEvents.TASK_CANCELLED; +import static org.openworkflow.impl.LifecycleEvents.TASK_COMPLETED; +import static org.openworkflow.impl.LifecycleEvents.TASK_FAULTED; +import static org.openworkflow.impl.LifecycleEvents.TASK_RESUMED; +import static org.openworkflow.impl.LifecycleEvents.TASK_RETRIED; +import static org.openworkflow.impl.LifecycleEvents.TASK_STARTED; +import static org.openworkflow.impl.LifecycleEvents.TASK_SUSPENDED; +import static org.openworkflow.impl.LifecycleEvents.WORKFLOW_CANCELLED; +import static org.openworkflow.impl.LifecycleEvents.WORKFLOW_COMPLETED; +import static org.openworkflow.impl.LifecycleEvents.WORKFLOW_FAULTED; +import static org.openworkflow.impl.LifecycleEvents.WORKFLOW_RESUMED; +import static org.openworkflow.impl.LifecycleEvents.WORKFLOW_STARTED; +import static org.openworkflow.impl.LifecycleEvents.WORKFLOW_STATUS_CHANGED; +import static org.openworkflow.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.impl.WorkflowApplication; +import org.openworkflow.impl.events.CloudEventUtils; +import org.openworkflow.impl.lifecycle.TaskCancelledEvent; +import org.openworkflow.impl.lifecycle.TaskCompletedEvent; +import org.openworkflow.impl.lifecycle.TaskFailedEvent; +import org.openworkflow.impl.lifecycle.TaskResumedEvent; +import org.openworkflow.impl.lifecycle.TaskRetriedEvent; +import org.openworkflow.impl.lifecycle.TaskStartedEvent; +import org.openworkflow.impl.lifecycle.TaskSuspendedEvent; +import org.openworkflow.impl.lifecycle.WorkflowCancelledEvent; +import org.openworkflow.impl.lifecycle.WorkflowCompletedEvent; +import org.openworkflow.impl.lifecycle.WorkflowEvent; +import org.openworkflow.impl.lifecycle.WorkflowExecutionListener; +import org.openworkflow.impl.lifecycle.WorkflowFailedEvent; +import org.openworkflow.impl.lifecycle.WorkflowResumedEvent; +import org.openworkflow.impl.lifecycle.WorkflowStartedEvent; +import org.openworkflow.impl.lifecycle.WorkflowStatusEvent; +import org.openworkflow.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/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/impl/lifecycle/ce/DefaultLifeCycleCloudEventFactory.java index e2e3ce184..b0bcebf4b 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/lifecycle/ce/DefaultLifeCycleCloudEventFactory.java +++ b/impl/core/src/main/java/org/openworkflow/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.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.impl.lifecycle.TaskCancelledEvent; +import org.openworkflow.impl.lifecycle.TaskCompletedEvent; +import org.openworkflow.impl.lifecycle.TaskFailedEvent; +import org.openworkflow.impl.lifecycle.TaskResumedEvent; +import org.openworkflow.impl.lifecycle.TaskRetriedEvent; +import org.openworkflow.impl.lifecycle.TaskStartedEvent; +import org.openworkflow.impl.lifecycle.TaskSuspendedEvent; +import org.openworkflow.impl.lifecycle.WorkflowCancelledEvent; +import org.openworkflow.impl.lifecycle.WorkflowCompletedEvent; +import org.openworkflow.impl.lifecycle.WorkflowFailedEvent; +import org.openworkflow.impl.lifecycle.WorkflowResumedEvent; +import org.openworkflow.impl.lifecycle.WorkflowStartedEvent; +import org.openworkflow.impl.lifecycle.WorkflowStatusEvent; +import org.openworkflow.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/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/impl/lifecycle/ce/InputOutputLifeCycleCloudEventFactory.java index dbba242aa..45809fff4 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/lifecycle/ce/InputOutputLifeCycleCloudEventFactory.java +++ b/impl/core/src/main/java/org/openworkflow/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.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.impl.lifecycle.TaskCompletedEvent; +import org.openworkflow.impl.lifecycle.TaskStartedEvent; +import org.openworkflow.impl.lifecycle.WorkflowCompletedEvent; +import org.openworkflow.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/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/impl/lifecycle/ce/TaskCEData.java index 9af7499ad..7900c5521 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/lifecycle/ce/TaskCEData.java +++ b/impl/core/src/main/java/org/openworkflow/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.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.impl.lifecycle.ce.WorkflowCEData.id; +import static org.openworkflow.impl.lifecycle.ce.WorkflowDefinitionCEData.ref; -import io.serverlessworkflow.impl.lifecycle.TaskEvent; import java.util.Objects; +import org.openworkflow.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/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/impl/lifecycle/ce/TaskCancelledCEData.java index da5d4eae8..1dd7097b1 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/lifecycle/ce/TaskCancelledCEData.java +++ b/impl/core/src/main/java/org/openworkflow/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.impl.lifecycle.ce; -import io.serverlessworkflow.impl.lifecycle.TaskCancelledEvent; import java.time.OffsetDateTime; import java.util.Objects; +import org.openworkflow.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/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/impl/lifecycle/ce/TaskCompletedCEData.java index 1251df49c..8542e84f7 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/lifecycle/ce/TaskCompletedCEData.java +++ b/impl/core/src/main/java/org/openworkflow/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.impl.lifecycle.ce; -import io.serverlessworkflow.impl.lifecycle.TaskCompletedEvent; import java.time.OffsetDateTime; import java.util.Objects; +import org.openworkflow.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/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/impl/lifecycle/ce/TaskCompletedCEDataWithOutput.java index 5ffd05fec..fa91647b5 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/lifecycle/ce/TaskCompletedCEDataWithOutput.java +++ b/impl/core/src/main/java/org/openworkflow/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.impl.lifecycle.ce; -import io.serverlessworkflow.impl.lifecycle.TaskCompletedEvent; import java.util.Objects; +import org.openworkflow.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/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/impl/lifecycle/ce/TaskFailedCEData.java index 688fe7f85..f3734a87d 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/lifecycle/ce/TaskFailedCEData.java +++ b/impl/core/src/main/java/org/openworkflow/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.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.impl.WorkflowError; +import org.openworkflow.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/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/impl/lifecycle/ce/TaskResumedCEData.java index 73fcf059f..739d1c1c2 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/lifecycle/ce/TaskResumedCEData.java +++ b/impl/core/src/main/java/org/openworkflow/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.impl.lifecycle.ce; -import io.serverlessworkflow.impl.lifecycle.TaskResumedEvent; import java.time.OffsetDateTime; import java.util.Objects; +import org.openworkflow.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/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/impl/lifecycle/ce/TaskRetriedCEData.java index 770ef4f5d..bd82c2731 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/lifecycle/ce/TaskRetriedCEData.java +++ b/impl/core/src/main/java/org/openworkflow/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.impl.lifecycle.ce; -import io.serverlessworkflow.impl.lifecycle.TaskRetriedEvent; import java.time.OffsetDateTime; import java.util.Objects; +import org.openworkflow.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/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/impl/lifecycle/ce/TaskStartedCEData.java index 875f01487..54b630e80 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/lifecycle/ce/TaskStartedCEData.java +++ b/impl/core/src/main/java/org/openworkflow/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.impl.lifecycle.ce; -import io.serverlessworkflow.impl.lifecycle.TaskStartedEvent; import java.time.OffsetDateTime; import java.util.Objects; +import org.openworkflow.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/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/impl/lifecycle/ce/TaskStartedCEDataWithInput.java index 15cbb978c..07470ca51 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/lifecycle/ce/TaskStartedCEDataWithInput.java +++ b/impl/core/src/main/java/org/openworkflow/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.impl.lifecycle.ce; -import io.serverlessworkflow.impl.lifecycle.TaskStartedEvent; import java.util.Objects; +import org.openworkflow.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/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/impl/lifecycle/ce/TaskSuspendedCEData.java index 13594583c..10545a5e1 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/lifecycle/ce/TaskSuspendedCEData.java +++ b/impl/core/src/main/java/org/openworkflow/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.impl.lifecycle.ce; -import io.serverlessworkflow.impl.lifecycle.TaskSuspendedEvent; import java.time.OffsetDateTime; import java.util.Objects; +import org.openworkflow.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/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/impl/lifecycle/ce/WorkflowCEData.java index ba2fa60d1..ea50d8dbf 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/lifecycle/ce/WorkflowCEData.java +++ b/impl/core/src/main/java/org/openworkflow/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.impl.lifecycle.ce; -import static io.serverlessworkflow.impl.lifecycle.ce.WorkflowDefinitionCEData.ref; +import static org.openworkflow.impl.lifecycle.ce.WorkflowDefinitionCEData.ref; -import io.serverlessworkflow.impl.lifecycle.WorkflowEvent; import java.util.Objects; +import org.openworkflow.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/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/impl/lifecycle/ce/WorkflowCancelledCEData.java index ff94c92fb..502687d15 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/lifecycle/ce/WorkflowCancelledCEData.java +++ b/impl/core/src/main/java/org/openworkflow/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.impl.lifecycle.ce; -import io.serverlessworkflow.impl.lifecycle.WorkflowCancelledEvent; import java.time.OffsetDateTime; import java.util.Objects; +import org.openworkflow.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/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/impl/lifecycle/ce/WorkflowCompletedCEData.java index 8b8b740f6..ea89e7ee5 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/lifecycle/ce/WorkflowCompletedCEData.java +++ b/impl/core/src/main/java/org/openworkflow/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.impl.lifecycle.ce; -import io.serverlessworkflow.impl.lifecycle.WorkflowCompletedEvent; import java.time.OffsetDateTime; import java.util.Objects; +import org.openworkflow.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/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/impl/lifecycle/ce/WorkflowCompletedCEDataWithOutput.java index 20040d747..0adf9f6b1 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/lifecycle/ce/WorkflowCompletedCEDataWithOutput.java +++ b/impl/core/src/main/java/org/openworkflow/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.impl.lifecycle.ce; -import io.serverlessworkflow.impl.lifecycle.WorkflowCompletedEvent; import java.util.Objects; +import org.openworkflow.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/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/impl/lifecycle/ce/WorkflowDefinitionCEData.java index 62e7e3dfc..af77b8bc4 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/lifecycle/ce/WorkflowDefinitionCEData.java +++ b/impl/core/src/main/java/org/openworkflow/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.impl.lifecycle.ce; -import io.serverlessworkflow.impl.WorkflowDefinitionId; -import io.serverlessworkflow.impl.lifecycle.WorkflowEvent; +import org.openworkflow.impl.WorkflowDefinitionId; +import org.openworkflow.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/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/impl/lifecycle/ce/WorkflowFailedCEData.java index 1efc05c3f..54e6b7cdb 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/lifecycle/ce/WorkflowFailedCEData.java +++ b/impl/core/src/main/java/org/openworkflow/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.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.impl.WorkflowError; +import org.openworkflow.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/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/impl/lifecycle/ce/WorkflowLifeCycleCloudEventFactory.java index 32d074022..84aeb0df9 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/lifecycle/ce/WorkflowLifeCycleCloudEventFactory.java +++ b/impl/core/src/main/java/org/openworkflow/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.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.impl.lifecycle.TaskCancelledEvent; +import org.openworkflow.impl.lifecycle.TaskCompletedEvent; +import org.openworkflow.impl.lifecycle.TaskFailedEvent; +import org.openworkflow.impl.lifecycle.TaskResumedEvent; +import org.openworkflow.impl.lifecycle.TaskRetriedEvent; +import org.openworkflow.impl.lifecycle.TaskStartedEvent; +import org.openworkflow.impl.lifecycle.TaskSuspendedEvent; +import org.openworkflow.impl.lifecycle.WorkflowCancelledEvent; +import org.openworkflow.impl.lifecycle.WorkflowCompletedEvent; +import org.openworkflow.impl.lifecycle.WorkflowFailedEvent; +import org.openworkflow.impl.lifecycle.WorkflowResumedEvent; +import org.openworkflow.impl.lifecycle.WorkflowStartedEvent; +import org.openworkflow.impl.lifecycle.WorkflowStatusEvent; +import org.openworkflow.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/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/impl/lifecycle/ce/WorkflowResumedCEData.java index cab8d0308..00e7bcbb5 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/lifecycle/ce/WorkflowResumedCEData.java +++ b/impl/core/src/main/java/org/openworkflow/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.impl.lifecycle.ce; -import io.serverlessworkflow.impl.lifecycle.WorkflowResumedEvent; import java.time.OffsetDateTime; import java.util.Objects; +import org.openworkflow.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/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/impl/lifecycle/ce/WorkflowStartedCEData.java index ee8c90c96..ea7683feb 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/lifecycle/ce/WorkflowStartedCEData.java +++ b/impl/core/src/main/java/org/openworkflow/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.impl.lifecycle.ce; -import io.serverlessworkflow.impl.lifecycle.WorkflowStartedEvent; import java.time.OffsetDateTime; import java.util.Objects; +import org.openworkflow.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/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/impl/lifecycle/ce/WorkflowStartedCEDataWithInput.java index 5eb228655..4588a4301 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/lifecycle/ce/WorkflowStartedCEDataWithInput.java +++ b/impl/core/src/main/java/org/openworkflow/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.impl.lifecycle.ce; -import io.serverlessworkflow.impl.lifecycle.WorkflowStartedEvent; import java.util.Objects; +import org.openworkflow.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/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/impl/lifecycle/ce/WorkflowStatusCEDataEvent.java index f772d086d..0786caba1 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/lifecycle/ce/WorkflowStatusCEDataEvent.java +++ b/impl/core/src/main/java/org/openworkflow/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.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.impl.WorkflowStatus; +import org.openworkflow.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/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/impl/lifecycle/ce/WorkflowSuspendedCEData.java index 6186666db..6dbf7c919 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/lifecycle/ce/WorkflowSuspendedCEData.java +++ b/impl/core/src/main/java/org/openworkflow/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.impl.lifecycle.ce; -import io.serverlessworkflow.impl.lifecycle.WorkflowSuspendedEvent; import java.time.OffsetDateTime; import java.util.Objects; +import org.openworkflow.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/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/impl/marshaller/AbstractInputBuffer.java index d3379b2f3..a3b0357fa 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/marshaller/AbstractInputBuffer.java +++ b/impl/core/src/main/java/org/openworkflow/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.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.") + : 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/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/impl/marshaller/AbstractOutputBuffer.java index 1b943d876..f7f5221ed 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/marshaller/AbstractOutputBuffer.java +++ b/impl/core/src/main/java/org/openworkflow/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.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.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/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/impl/marshaller/CustomObjectMarshaller.java index 23e10287b..62b01f06f 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/marshaller/CustomObjectMarshaller.java +++ b/impl/core/src/main/java/org/openworkflow/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.impl.marshaller; -import io.serverlessworkflow.impl.ServicePriority; +import org.openworkflow.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/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/impl/marshaller/DefaultBufferFactory.java index 5fbc7efa3..81910e5e0 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/marshaller/DefaultBufferFactory.java +++ b/impl/core/src/main/java/org/openworkflow/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.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/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/impl/marshaller/DefaultInputBuffer.java index ac89fbe0d..3efa01d43 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/marshaller/DefaultInputBuffer.java +++ b/impl/core/src/main/java/org/openworkflow/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.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/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/impl/marshaller/DefaultOutputBuffer.java index 27b19f885..cae8913ec 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/marshaller/DefaultOutputBuffer.java +++ b/impl/core/src/main/java/org/openworkflow/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.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/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/impl/marshaller/MarshallingUtils.java index c765798fe..c9b847c5a 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/marshaller/MarshallingUtils.java +++ b/impl/core/src/main/java/org/openworkflow/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.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.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/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/impl/marshaller/TaskStatus.java index 74bdbfc3d..012824833 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/marshaller/TaskStatus.java +++ b/impl/core/src/main/java/org/openworkflow/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.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/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/impl/marshaller/Type.java index b11570a69..05298ef42 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/marshaller/Type.java +++ b/impl/core/src/main/java/org/openworkflow/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.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/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/impl/marshaller/WorkflowBufferFactory.java index 78b27c2bd..aa15d6d9f 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/marshaller/WorkflowBufferFactory.java +++ b/impl/core/src/main/java/org/openworkflow/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.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/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/impl/marshaller/WorkflowInputBuffer.java index 53a600e95..c77ecdc15 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/marshaller/WorkflowInputBuffer.java +++ b/impl/core/src/main/java/org/openworkflow/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.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/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/impl/marshaller/WorkflowOutputBuffer.java index 63d6b2b6b..ffe2fb7a6 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/marshaller/WorkflowOutputBuffer.java +++ b/impl/core/src/main/java/org/openworkflow/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.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/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/impl/resources/CachedResource.java index 10e891885..fc1327f59 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/resources/CachedResource.java +++ b/impl/core/src/main/java/org/openworkflow/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.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/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/impl/resources/ClasspathResource.java index 1efeaee45..d141cd7ca 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/resources/ClasspathResource.java +++ b/impl/core/src/main/java/org/openworkflow/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.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/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/impl/resources/DefaultResourceLoader.java index c69373aa4..7700fda6f 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/resources/DefaultResourceLoader.java +++ b/impl/core/src/main/java/org/openworkflow/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.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.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/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/impl/resources/DefaultResourceLoaderFactory.java index 5bed3c40a..24494f870 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/resources/DefaultResourceLoaderFactory.java +++ b/impl/core/src/main/java/org/openworkflow/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.impl.resources; -import io.serverlessworkflow.impl.WorkflowApplication; import java.nio.file.Path; +import org.openworkflow.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/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/impl/resources/ExternalResourceHandler.java index f10f4c195..07dd42cc2 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/resources/ExternalResourceHandler.java +++ b/impl/core/src/main/java/org/openworkflow/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.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/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/impl/resources/FileResource.java index 08110959d..ac7bf3f90 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/resources/FileResource.java +++ b/impl/core/src/main/java/org/openworkflow/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.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/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/impl/resources/GitHubHelper.java index e0e52b843..a7f62069c 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/resources/GitHubHelper.java +++ b/impl/core/src/main/java/org/openworkflow/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.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/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/impl/resources/HttpResource.java index 434b38634..4748665d4 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/resources/HttpResource.java +++ b/impl/core/src/main/java/org/openworkflow/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.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.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/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/impl/resources/ResourceLoader.java index 18db10991..6fab2e8b2 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/resources/ResourceLoader.java +++ b/impl/core/src/main/java/org/openworkflow/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.impl.resources; + +import static org.openworkflow.impl.WorkflowUtils.getURISupplier; + import java.net.URI; import java.util.Optional; import java.util.function.Function; +import org.openworkflow.api.types.Endpoint; +import org.openworkflow.api.types.EndpointUri; +import org.openworkflow.api.types.ExternalResource; +import org.openworkflow.api.types.UriTemplate; +import org.openworkflow.impl.TaskContext; +import org.openworkflow.impl.WorkflowApplication; +import org.openworkflow.impl.WorkflowContext; +import org.openworkflow.impl.WorkflowModel; +import org.openworkflow.impl.WorkflowValueResolver; +import org.openworkflow.impl.auth.AuthUtils; +import org.openworkflow.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/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/impl/resources/ResourceLoaderFactory.java index 41b3b2f21..0abc5344f 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/resources/ResourceLoaderFactory.java +++ b/impl/core/src/main/java/org/openworkflow/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.impl.resources; -import io.serverlessworkflow.impl.WorkflowApplication; import java.nio.file.Path; +import org.openworkflow.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/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/impl/resources/ResourceLoaderUtils.java index 4ec41f204..d90b0e8f7 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/resources/ResourceLoaderUtils.java +++ b/impl/core/src/main/java/org/openworkflow/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.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/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/impl/resources/URITemplateResolver.java index 97bb62360..4039d6201 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/resources/URITemplateResolver.java +++ b/impl/core/src/main/java/org/openworkflow/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.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.impl.ServicePriority; +import org.openworkflow.impl.TaskContext; +import org.openworkflow.impl.WorkflowContext; +import org.openworkflow.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/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/impl/scheduler/AllStrategyCorrelationInfo.java index 5400da5b2..4e395d1de 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/scheduler/AllStrategyCorrelationInfo.java +++ b/impl/core/src/main/java/org/openworkflow/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.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.impl.WorkflowInstance; +import org.openworkflow.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/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/impl/scheduler/AllStrategyCorrelationInfoFactory.java index 4d6e34478..71d7f9e21 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/scheduler/AllStrategyCorrelationInfoFactory.java +++ b/impl/core/src/main/java/org/openworkflow/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.impl.scheduler; -import io.serverlessworkflow.impl.WorkflowDefinition; import java.util.function.Function; +import org.openworkflow.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/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/impl/scheduler/Cancellable.java index fef5b9733..e03b12d34 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/scheduler/Cancellable.java +++ b/impl/core/src/main/java/org/openworkflow/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.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/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/impl/scheduler/CronResolver.java index df2548956..64ebc71f5 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/scheduler/CronResolver.java +++ b/impl/core/src/main/java/org/openworkflow/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.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/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/impl/scheduler/CronResolverFactory.java index 5be71bbec..e4ab9ddad 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/scheduler/CronResolverFactory.java +++ b/impl/core/src/main/java/org/openworkflow/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.impl.scheduler; -import io.serverlessworkflow.impl.ServicePriority; +import org.openworkflow.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/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/impl/scheduler/DefaultWorkflowScheduler.java index cc0eb907e..75c2d28a6 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/scheduler/DefaultWorkflowScheduler.java +++ b/impl/core/src/main/java/org/openworkflow/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.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.impl.WorkflowDefinition; +import org.openworkflow.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/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/impl/scheduler/EventWorkflowScheduler.java index a509b5f3b..ebfb43b39 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/scheduler/EventWorkflowScheduler.java +++ b/impl/core/src/main/java/org/openworkflow/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.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.impl.WorkflowDefinition; +import org.openworkflow.impl.WorkflowModel; +import org.openworkflow.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/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/impl/scheduler/ExecutorServiceWorkflowScheduler.java index b3e0c6ecb..3ce929d14 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/scheduler/ExecutorServiceWorkflowScheduler.java +++ b/impl/core/src/main/java/org/openworkflow/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.impl.scheduler; -import io.serverlessworkflow.impl.WorkflowDefinition; import java.time.Duration; import java.util.concurrent.ScheduledExecutorService; import java.util.concurrent.TimeUnit; +import org.openworkflow.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/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/impl/scheduler/InMemoryAllStrategyCorrelationInfo.java index 2ff3b2ae1..d6484330e 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/scheduler/InMemoryAllStrategyCorrelationInfo.java +++ b/impl/core/src/main/java/org/openworkflow/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.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.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/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/impl/scheduler/ScheduledEventConsumer.java index bc70833ae..75bc8b02e 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/scheduler/ScheduledEventConsumer.java +++ b/impl/core/src/main/java/org/openworkflow/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.impl.scheduler; -import static io.serverlessworkflow.impl.WorkflowUtils.safeClose; +import static org.openworkflow.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.impl.WorkflowDefinition; +import org.openworkflow.impl.WorkflowInstance; +import org.openworkflow.impl.WorkflowModel; +import org.openworkflow.impl.WorkflowModelCollection; +import org.openworkflow.impl.events.EventConsumer; +import org.openworkflow.impl.events.EventRegistration; +import org.openworkflow.impl.events.EventRegistrationBuilder; +import org.openworkflow.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/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/impl/scheduler/ScheduledInstanceRunnable.java index d77f9b302..3129740e8 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/scheduler/ScheduledInstanceRunnable.java +++ b/impl/core/src/main/java/org/openworkflow/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.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.impl.WorkflowDefinition; +import org.openworkflow.impl.WorkflowInstance; +import org.openworkflow.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/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/impl/scheduler/ScheduledServiceCancellable.java index 45a8d01d1..270900ce3 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/scheduler/ScheduledServiceCancellable.java +++ b/impl/core/src/main/java/org/openworkflow/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.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/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/impl/scheduler/WorkflowScheduler.java index 55707eadd..743fb4497 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/scheduler/WorkflowScheduler.java +++ b/impl/core/src/main/java/org/openworkflow/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.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.impl.WorkflowDefinition; +import org.openworkflow.impl.WorkflowModel; +import org.openworkflow.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/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/impl/schema/AbstractSchemaValidator.java index be688443b..404c6d1f6 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/schema/AbstractSchemaValidator.java +++ b/impl/core/src/main/java/org/openworkflow/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.impl.schema; -import io.serverlessworkflow.impl.WorkflowError; -import io.serverlessworkflow.impl.WorkflowModel; -import io.serverlessworkflow.types.Errors; import java.util.Optional; +import org.openworkflow.impl.WorkflowError; +import org.openworkflow.impl.WorkflowModel; +import org.openworkflow.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/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/impl/schema/SchemaValidator.java index fa52364ec..d0490a844 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/schema/SchemaValidator.java +++ b/impl/core/src/main/java/org/openworkflow/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.impl.schema; -import io.serverlessworkflow.impl.WorkflowError; -import io.serverlessworkflow.impl.WorkflowModel; import java.util.Optional; +import org.openworkflow.impl.WorkflowError; +import org.openworkflow.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/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/impl/schema/SchemaValidatorFactory.java index 6111cd824..3ca925d38 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/schema/SchemaValidatorFactory.java +++ b/impl/core/src/main/java/org/openworkflow/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.impl.schema; -import io.serverlessworkflow.api.types.SchemaInline; -import io.serverlessworkflow.impl.ServicePriority; -import io.serverlessworkflow.impl.resources.ExternalResourceHandler; +import org.openworkflow.api.types.SchemaInline; +import org.openworkflow.impl.ServicePriority; +import org.openworkflow.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/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/impl/scripts/ScriptContext.java index 44da27bce..9f4c95977 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/scripts/ScriptContext.java +++ b/impl/core/src/main/java/org/openworkflow/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.impl.scripts; -import io.serverlessworkflow.api.types.RunTaskConfiguration; import java.util.Map; +import org.openworkflow.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/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/impl/scripts/ScriptLanguageId.java index 70cf0fb67..4a5e517a6 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/scripts/ScriptLanguageId.java +++ b/impl/core/src/main/java/org/openworkflow/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.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/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/impl/scripts/ScriptRunner.java index f2795352e..045252726 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/scripts/ScriptRunner.java +++ b/impl/core/src/main/java/org/openworkflow/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.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.impl.ServicePriority; +import org.openworkflow.impl.TaskContext; +import org.openworkflow.impl.WorkflowContext; +import org.openworkflow.impl.WorkflowModel; +import org.openworkflow.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/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/impl/scripts/ScriptUtils.java index f33f3bed3..a81d8f060 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/scripts/ScriptUtils.java +++ b/impl/core/src/main/java/org/openworkflow/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.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.api.types.RunTaskConfiguration; +import org.openworkflow.api.types.RunTaskConfiguration.ProcessReturnType; +import org.openworkflow.impl.WorkflowDefinition; +import org.openworkflow.impl.WorkflowModel; +import org.openworkflow.impl.WorkflowModelFactory; +import org.openworkflow.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.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/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/impl/scripts/StreamSuppliers.java index 2e21cb89e..4d36e1c0e 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/scripts/StreamSuppliers.java +++ b/impl/core/src/main/java/org/openworkflow/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.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/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/impl/utils/RandomFactory.java index c1c4163bd..45a0c04ee 100644 --- a/impl/core/src/main/java/io/serverlessworkflow/impl/utils/RandomFactory.java +++ b/impl/core/src/main/java/org/openworkflow/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.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/io.serverlessworkflow/serverlessworkflow-impl-core/reflect-config.json index d6e04d6cd..e9ed61f89 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/io.serverlessworkflow/serverlessworkflow-impl-core/reflect-config.json @@ -1,6 +1,6 @@ [ { - "name": "io.serverlessworkflow.impl.executors.ProcessResult", + "name": "org.openworkflow.impl.executors.ProcessResult", "queryAllPublicConstructors": true, "queryAllDeclaredConstructors": true, "queryAllPublicMethods": true, @@ -15,7 +15,7 @@ "allDeclaredClasses": true }, { - "name": "io.serverlessworkflow.impl.WorkflowError", + "name": "org.openworkflow.impl.WorkflowError", "queryAllPublicConstructors": true, "queryAllDeclaredConstructors": true, "queryAllPublicMethods": true, @@ -30,7 +30,7 @@ "allDeclaredClasses": true }, { - "name": "io.serverlessworkflow.impl.lifecycle.ce.TaskCEData", + "name": "org.openworkflow.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.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.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.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.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.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.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.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.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.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.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.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.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.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.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.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.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.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.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.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.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.impl.executors.CallableTaskBuilder b/impl/core/src/main/resources/META-INF/services/org.openworkflow.impl.executors.CallableTaskBuilder new file mode 100644 index 000000000..6b9c6e692 --- /dev/null +++ b/impl/core/src/main/resources/META-INF/services/org.openworkflow.impl.executors.CallableTaskBuilder @@ -0,0 +1 @@ +org.openworkflow.impl.executors.CallFunctionExecutorBuilder \ No newline at end of file diff --git a/impl/core/src/main/resources/META-INF/services/org.openworkflow.impl.executors.RunnableTaskBuilder b/impl/core/src/main/resources/META-INF/services/org.openworkflow.impl.executors.RunnableTaskBuilder new file mode 100644 index 000000000..df2f6240e --- /dev/null +++ b/impl/core/src/main/resources/META-INF/services/org.openworkflow.impl.executors.RunnableTaskBuilder @@ -0,0 +1,3 @@ +org.openworkflow.impl.executors.RunWorkflowExecutorBuilder +org.openworkflow.impl.executors.RunShellExecutorBuilder +org.openworkflow.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/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/impl/LowestPriority.java index b4410e198..40529d091 100644 --- a/impl/core/src/test/java/io/serverlessworkflow/impl/LowestPriority.java +++ b/impl/core/src/test/java/org/openworkflow/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.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/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/impl/LowestPriorityListener.java index 7109ab4c6..04ca463e5 100644 --- a/impl/core/src/test/java/io/serverlessworkflow/impl/LowestPriorityListener.java +++ b/impl/core/src/test/java/org/openworkflow/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.impl; -import io.serverlessworkflow.impl.lifecycle.WorkflowExecutionCompletableListener; +import org.openworkflow.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/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/impl/MediumPriority.java index 2963409f8..91ea292d9 100644 --- a/impl/core/src/test/java/io/serverlessworkflow/impl/MediumPriority.java +++ b/impl/core/src/test/java/org/openworkflow/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.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/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/impl/MediumPriorityListener.java index a26abe944..88f601439 100644 --- a/impl/core/src/test/java/io/serverlessworkflow/impl/MediumPriorityListener.java +++ b/impl/core/src/test/java/org/openworkflow/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.impl; -import io.serverlessworkflow.impl.lifecycle.WorkflowExecutionCompletableListener; import java.util.Objects; +import org.openworkflow.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/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/impl/ServicePriorityTest.java index f58af79df..31ea1bad7 100644 --- a/impl/core/src/test/java/io/serverlessworkflow/impl/ServicePriorityTest.java +++ b/impl/core/src/test/java/org/openworkflow/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.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/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/impl/TopPriority.java index ce7bd88ff..76bb53cf4 100644 --- a/impl/core/src/test/java/io/serverlessworkflow/impl/TopPriority.java +++ b/impl/core/src/test/java/org/openworkflow/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.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/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/impl/TopPriorityListener.java index 5b55f0248..986912fb0 100644 --- a/impl/core/src/test/java/io/serverlessworkflow/impl/TopPriorityListener.java +++ b/impl/core/src/test/java/org/openworkflow/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.impl; -import io.serverlessworkflow.impl.lifecycle.WorkflowExecutionCompletableListener; +import org.openworkflow.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/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/impl/WorkflowAdditionalObjectTest.java index 9ba69c060..03bc69a71 100644 --- a/impl/core/src/test/java/io/serverlessworkflow/impl/WorkflowAdditionalObjectTest.java +++ b/impl/core/src/test/java/org/openworkflow/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.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.impl.additional.WorkflowAdditionalObject; +import org.openworkflow.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/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/impl/WorkflowListenerTest.java index 536648211..888f0d88b 100644 --- a/impl/core/src/test/java/io/serverlessworkflow/impl/WorkflowListenerTest.java +++ b/impl/core/src/test/java/org/openworkflow/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.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.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/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/impl/WorkflowUtilsTest.java index 6fb73dc72..93ff62e04 100644 --- a/impl/core/src/test/java/io/serverlessworkflow/impl/WorkflowUtilsTest.java +++ b/impl/core/src/test/java/org/openworkflow/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.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/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/impl/auth/JWTTest.java index b6661fc9e..91af67be0 100644 --- a/impl/core/src/test/java/io/serverlessworkflow/impl/auth/JWTTest.java +++ b/impl/core/src/test/java/org/openworkflow/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.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/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/impl/marshaller/Employee.java index 1a8d7455b..79f6d235a 100644 --- a/impl/core/src/test/java/io/serverlessworkflow/impl/marshaller/Employee.java +++ b/impl/core/src/test/java/org/openworkflow/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.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/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/impl/marshaller/MarshallingUtilsTest.java index 112d2c148..585aac980 100644 --- a/impl/core/src/test/java/io/serverlessworkflow/impl/marshaller/MarshallingUtilsTest.java +++ b/impl/core/src/test/java/org/openworkflow/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.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/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/impl/marshaller/NonSerializableClass.java index ce22a3969..ae0e75f21 100644 --- a/impl/core/src/test/java/io/serverlessworkflow/impl/marshaller/NonSerializableClass.java +++ b/impl/core/src/test/java/org/openworkflow/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.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/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/impl/marshaller/Person.java index a618f9e26..67121d125 100644 --- a/impl/core/src/test/java/io/serverlessworkflow/impl/marshaller/Person.java +++ b/impl/core/src/test/java/org/openworkflow/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.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/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/impl/marshaller/SerializableClass.java index 7bd1fddf9..fd9e8b09f 100644 --- a/impl/core/src/test/java/io/serverlessworkflow/impl/marshaller/SerializableClass.java +++ b/impl/core/src/test/java/org/openworkflow/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.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/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/impl/marshaller/Student.java index 9012cdb16..fbfe0be16 100644 --- a/impl/core/src/test/java/io/serverlessworkflow/impl/marshaller/Student.java +++ b/impl/core/src/test/java/org/openworkflow/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.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.impl.ServicePriority b/impl/core/src/test/resources/META-INF/services/org.openworkflow.impl.ServicePriority new file mode 100644 index 000000000..909a7de84 --- /dev/null +++ b/impl/core/src/test/resources/META-INF/services/org.openworkflow.impl.ServicePriority @@ -0,0 +1,3 @@ +org.openworkflow.impl.LowestPriority +org.openworkflow.impl.TopPriority +org.openworkflow.impl.MediumPriority diff --git a/impl/cron/pom.xml b/impl/cron/pom.xml index 53094624e..4c12c03ea 100644 --- a/impl/cron/pom.xml +++ b/impl/cron/pom.xml @@ -1,20 +1,20 @@ 4.0.0 - io.serverlessworkflow - serverlessworkflow-impl + org.openworkflow + 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 + 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/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/impl/cron/CronUtilsResolver.java index 2ce36b311..5fd1e8e76 100644 --- a/impl/cron/src/main/java/io/serverlessworkflow/impl/cron/CronUtilsResolver.java +++ b/impl/cron/src/main/java/org/openworkflow/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.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.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/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/impl/cron/CronUtilsResolverFactory.java index c5b9f5e42..454942b36 100644 --- a/impl/cron/src/main/java/io/serverlessworkflow/impl/cron/CronUtilsResolverFactory.java +++ b/impl/cron/src/main/java/org/openworkflow/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.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.impl.scheduler.CronResolver; +import org.openworkflow.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.impl.scheduler.CronResolverFactory b/impl/cron/src/main/resources/META-INF/services/org.openworkflow.impl.scheduler.CronResolverFactory new file mode 100644 index 000000000..d3824a43d --- /dev/null +++ b/impl/cron/src/main/resources/META-INF/services/org.openworkflow.impl.scheduler.CronResolverFactory @@ -0,0 +1 @@ +org.openworkflow.impl.cron.CronUtilsResolverFactory \ No newline at end of file diff --git a/impl/function/pom.xml b/impl/function/pom.xml index 0c637884c..2094ad73d 100644 --- a/impl/function/pom.xml +++ b/impl/function/pom.xml @@ -1,24 +1,24 @@ 4.0.0 - io.serverlessworkflow - serverlessworkflow-impl + org.openworkflow + openworkflow-impl 8.0.0-SNAPSHOT - serverlessworkflow-impl-function + openworkflow-impl-function Serverless Workflow :: Impl :: Jackson:: Function - io.serverlessworkflow - serverlessworkflow-api + org.openworkflow + openworkflow-api - io.serverlessworkflow - serverlessworkflow-impl-core + org.openworkflow + openworkflow-impl-core - io.serverlessworkflow - serverlessworkflow-impl-json + org.openworkflow + 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/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/impl/jackson/function/JacksonFunctionReader.java index 425fec267..af9efafeb 100644 --- a/impl/function/src/main/java/io/serverlessworkflow/impl/jackson/function/JacksonFunctionReader.java +++ b/impl/function/src/main/java/org/openworkflow/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.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.api.WorkflowFormat; +import org.openworkflow.api.types.Task; +import org.openworkflow.impl.FunctionReader; +import org.openworkflow.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.impl.FunctionReader b/impl/function/src/main/resources/META-INF/services/org.openworkflow.impl.FunctionReader new file mode 100644 index 000000000..c7ac1cde3 --- /dev/null +++ b/impl/function/src/main/resources/META-INF/services/org.openworkflow.impl.FunctionReader @@ -0,0 +1 @@ +org.openworkflow.impl.jackson.function.JacksonFunctionReader \ No newline at end of file diff --git a/impl/grpc/pom.xml b/impl/grpc/pom.xml index f6583ac9f..17fa53fb1 100644 --- a/impl/grpc/pom.xml +++ b/impl/grpc/pom.xml @@ -1,17 +1,17 @@ 4.0.0 - io.serverlessworkflow - serverlessworkflow-impl + org.openworkflow + 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 + openworkflow-impl-core io.grpc @@ -22,8 +22,8 @@ protobuf-java-util - io.serverlessworkflow - serverlessworkflow-impl-json + org.openworkflow + 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/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/impl/executors/grpc/CollectionStreamObserver.java index 1b0198410..4dba8a551 100644 --- a/impl/grpc/src/main/java/io/serverlessworkflow/impl/executors/grpc/CollectionStreamObserver.java +++ b/impl/grpc/src/main/java/org/openworkflow/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.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.impl.TaskContext; +import org.openworkflow.impl.WorkflowContext; +import org.openworkflow.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/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/impl/executors/grpc/FileDescriptorReader.java index f6ceb6b88..ef912de13 100644 --- a/impl/grpc/src/main/java/io/serverlessworkflow/impl/executors/grpc/FileDescriptorReader.java +++ b/impl/grpc/src/main/java/org/openworkflow/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.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.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/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/impl/executors/grpc/GrpcExecutor.java index de59c23e5..40251e701 100644 --- a/impl/grpc/src/main/java/io/serverlessworkflow/impl/executors/grpc/GrpcExecutor.java +++ b/impl/grpc/src/main/java/org/openworkflow/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.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.impl.TaskContext; +import org.openworkflow.impl.WorkflowContext; +import org.openworkflow.impl.WorkflowModel; +import org.openworkflow.impl.WorkflowModelCollection; +import org.openworkflow.impl.WorkflowValueResolver; +import org.openworkflow.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/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/impl/executors/grpc/GrpcExecutorBuilder.java index 4c22b4a61..4cf3fe2a6 100644 --- a/impl/grpc/src/main/java/io/serverlessworkflow/impl/executors/grpc/GrpcExecutorBuilder.java +++ b/impl/grpc/src/main/java/org/openworkflow/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.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.api.types.CallGRPC; +import org.openworkflow.api.types.GRPCArguments; +import org.openworkflow.api.types.TaskBase; +import org.openworkflow.api.types.WithGRPCService; +import org.openworkflow.impl.WorkflowDefinition; +import org.openworkflow.impl.WorkflowMutablePosition; +import org.openworkflow.impl.WorkflowUtils; +import org.openworkflow.impl.executors.CallableTaskBuilder; +import org.openworkflow.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/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/impl/executors/grpc/ItemStreamObserver.java index ddbecf830..444b0972f 100644 --- a/impl/grpc/src/main/java/io/serverlessworkflow/impl/executors/grpc/ItemStreamObserver.java +++ b/impl/grpc/src/main/java/org/openworkflow/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.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.impl.TaskContext; +import org.openworkflow.impl.WorkflowContext; +import org.openworkflow.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/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/impl/executors/grpc/ModelStreamObserver.java index c89c39ef7..ef90c007a 100644 --- a/impl/grpc/src/main/java/io/serverlessworkflow/impl/executors/grpc/ModelStreamObserver.java +++ b/impl/grpc/src/main/java/org/openworkflow/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.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.impl.TaskContext; +import org.openworkflow.impl.WorkflowContext; +import org.openworkflow.impl.WorkflowError; +import org.openworkflow.impl.WorkflowException; +import org.openworkflow.impl.WorkflowModel; +import org.openworkflow.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/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/impl/executors/grpc/ProtobufMessageUtils.java index c4484f56b..4f2b460c2 100644 --- a/impl/grpc/src/main/java/io/serverlessworkflow/impl/executors/grpc/ProtobufMessageUtils.java +++ b/impl/grpc/src/main/java/org/openworkflow/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.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.impl.WorkflowModel; +import org.openworkflow.impl.WorkflowModelFactory; +import org.openworkflow.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.impl.executors.CallableTaskBuilder b/impl/grpc/src/main/resources/META-INF/services/org.openworkflow.impl.executors.CallableTaskBuilder new file mode 100644 index 000000000..5aa02023d --- /dev/null +++ b/impl/grpc/src/main/resources/META-INF/services/org.openworkflow.impl.executors.CallableTaskBuilder @@ -0,0 +1 @@ +org.openworkflow.impl.executors.grpc.GrpcExecutorBuilder \ No newline at end of file diff --git a/impl/http/pom.xml b/impl/http/pom.xml index 7fa11af78..b8e1ef1e8 100644 --- a/impl/http/pom.xml +++ b/impl/http/pom.xml @@ -1,16 +1,16 @@ 4.0.0 - io.serverlessworkflow - serverlessworkflow-impl + org.openworkflow + 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 + 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/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/impl/executors/http/AbstractRequestExecutor.java index 83caf1789..ec8c25771 100644 --- a/impl/http/src/main/java/io/serverlessworkflow/impl/executors/http/AbstractRequestExecutor.java +++ b/impl/http/src/main/java/org/openworkflow/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.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.impl.TaskContext; +import org.openworkflow.impl.WorkflowContext; +import org.openworkflow.impl.WorkflowError; +import org.openworkflow.impl.WorkflowException; +import org.openworkflow.impl.WorkflowModel; +import org.openworkflow.impl.auth.AuthProvider; +import org.openworkflow.impl.auth.AuthUtils; +import org.openworkflow.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/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/impl/executors/http/CallableTaskHttpExecutorBuilder.java index 5f45f5562..b4d6351ea 100644 --- a/impl/http/src/main/java/io/serverlessworkflow/impl/executors/http/CallableTaskHttpExecutorBuilder.java +++ b/impl/http/src/main/java/org/openworkflow/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.impl.executors.http; -import static io.serverlessworkflow.impl.WorkflowUtils.buildMapResolver; +import static org.openworkflow.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.api.types.CallHTTP; +import org.openworkflow.api.types.Endpoint; +import org.openworkflow.api.types.HTTPArguments; +import org.openworkflow.api.types.TaskBase; +import org.openworkflow.impl.WorkflowDefinition; +import org.openworkflow.impl.WorkflowMutablePosition; +import org.openworkflow.impl.WorkflowValueResolver; +import org.openworkflow.impl.executors.CallableTaskBuilder; +import org.openworkflow.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/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/impl/executors/http/HttpClientResolver.java index 740415272..38983d496 100644 --- a/impl/http/src/main/java/io/serverlessworkflow/impl/executors/http/HttpClientResolver.java +++ b/impl/http/src/main/java/org/openworkflow/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.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.impl.TaskContext; +import org.openworkflow.impl.WorkflowApplication; +import org.openworkflow.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/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/impl/executors/http/HttpConverterResolver.java index df80d122f..a173dc1cb 100644 --- a/impl/http/src/main/java/io/serverlessworkflow/impl/executors/http/HttpConverterResolver.java +++ b/impl/http/src/main/java/org/openworkflow/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.impl.executors.http; -import io.serverlessworkflow.impl.TaskContext; -import io.serverlessworkflow.impl.WorkflowContext; +import org.openworkflow.impl.TaskContext; +import org.openworkflow.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/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/impl/executors/http/HttpExecutor.java index 31edeb8f3..c833c87c9 100644 --- a/impl/http/src/main/java/io/serverlessworkflow/impl/executors/http/HttpExecutor.java +++ b/impl/http/src/main/java/org/openworkflow/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.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.impl.TaskContext; +import org.openworkflow.impl.WorkflowContext; +import org.openworkflow.impl.WorkflowModel; +import org.openworkflow.impl.WorkflowUtils; +import org.openworkflow.impl.WorkflowValueResolver; +import org.openworkflow.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/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/impl/executors/http/HttpExecutorBuilder.java index 5433a3432..df720eae5 100644 --- a/impl/http/src/main/java/io/serverlessworkflow/impl/executors/http/HttpExecutorBuilder.java +++ b/impl/http/src/main/java/org/openworkflow/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.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.api.types.ReferenceableAuthenticationPolicy; +import org.openworkflow.api.types.Use; +import org.openworkflow.api.types.UseAuthentications; +import org.openworkflow.impl.WorkflowDefinition; +import org.openworkflow.impl.WorkflowUtils; +import org.openworkflow.impl.WorkflowValueResolver; +import org.openworkflow.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/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/impl/executors/http/HttpModelConverter.java index 7465afe46..02b33198b 100644 --- a/impl/http/src/main/java/io/serverlessworkflow/impl/executors/http/HttpModelConverter.java +++ b/impl/http/src/main/java/org/openworkflow/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.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.impl.WorkflowError; +import org.openworkflow.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/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/impl/executors/http/HttpRequestDecorator.java index ffab37234..db5ae7d1d 100644 --- a/impl/http/src/main/java/io/serverlessworkflow/impl/executors/http/HttpRequestDecorator.java +++ b/impl/http/src/main/java/org/openworkflow/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.impl.executors.http; -import io.serverlessworkflow.impl.WorkflowDecorator; import jakarta.ws.rs.client.Invocation; +import org.openworkflow.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/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/impl/executors/http/RequestExecutor.java index a5caf54e6..f6bf9705c 100644 --- a/impl/http/src/main/java/io/serverlessworkflow/impl/executors/http/RequestExecutor.java +++ b/impl/http/src/main/java/org/openworkflow/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.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.impl.TaskContext; +import org.openworkflow.impl.WorkflowContext; +import org.openworkflow.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/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/impl/executors/http/WithBodyRequestExecutor.java index 91661e294..9da7af6b2 100644 --- a/impl/http/src/main/java/io/serverlessworkflow/impl/executors/http/WithBodyRequestExecutor.java +++ b/impl/http/src/main/java/org/openworkflow/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.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.impl.TaskContext; +import org.openworkflow.impl.WorkflowApplication; +import org.openworkflow.impl.WorkflowContext; +import org.openworkflow.impl.WorkflowFilter; +import org.openworkflow.impl.WorkflowModel; +import org.openworkflow.impl.WorkflowUtils; +import org.openworkflow.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/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/impl/executors/http/WithoutBodyRequestExecutor.java index 5901a39dc..46bdd2957 100644 --- a/impl/http/src/main/java/io/serverlessworkflow/impl/executors/http/WithoutBodyRequestExecutor.java +++ b/impl/http/src/main/java/org/openworkflow/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.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.impl.TaskContext; +import org.openworkflow.impl.WorkflowContext; +import org.openworkflow.impl.WorkflowModel; +import org.openworkflow.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/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/impl/executors/http/auth/JaxRSAccessTokenProvider.java index f67c08fc0..779750e37 100644 --- a/impl/http/src/main/java/io/serverlessworkflow/impl/executors/http/auth/JaxRSAccessTokenProvider.java +++ b/impl/http/src/main/java/org/openworkflow/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.impl.executors.http.auth; -import static io.serverlessworkflow.api.types.OAuth2TokenRequest.Oauth2TokenRequestEncoding.APPLICATION_X_WWW_FORM_URLENCODED; +import static org.openworkflow.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.impl.TaskContext; +import org.openworkflow.impl.WorkflowContext; +import org.openworkflow.impl.WorkflowError; +import org.openworkflow.impl.WorkflowException; +import org.openworkflow.impl.WorkflowModel; +import org.openworkflow.impl.auth.AccessTokenProvider; +import org.openworkflow.impl.auth.HttpRequestInfo; +import org.openworkflow.impl.auth.JWT; +import org.openworkflow.impl.auth.JWTConverter; +import org.openworkflow.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/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/impl/executors/http/auth/JaxRSAccessTokenProviderFactory.java index 22e31f9b7..75995010e 100644 --- a/impl/http/src/main/java/io/serverlessworkflow/impl/executors/http/auth/JaxRSAccessTokenProviderFactory.java +++ b/impl/http/src/main/java/org/openworkflow/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.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.impl.auth.AccessTokenProvider; +import org.openworkflow.impl.auth.AccessTokenProviderFactory; +import org.openworkflow.impl.auth.HttpRequestInfo; +import org.openworkflow.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.impl.auth.AccessTokenProviderFactory b/impl/http/src/main/resources/META-INF/services/org.openworkflow.impl.auth.AccessTokenProviderFactory new file mode 100644 index 000000000..414ec4a64 --- /dev/null +++ b/impl/http/src/main/resources/META-INF/services/org.openworkflow.impl.auth.AccessTokenProviderFactory @@ -0,0 +1 @@ +org.openworkflow.impl.executors.http.auth.JaxRSAccessTokenProviderFactory \ No newline at end of file diff --git a/impl/http/src/main/resources/META-INF/services/org.openworkflow.impl.executors.CallableTaskBuilder b/impl/http/src/main/resources/META-INF/services/org.openworkflow.impl.executors.CallableTaskBuilder new file mode 100644 index 000000000..b546b112e --- /dev/null +++ b/impl/http/src/main/resources/META-INF/services/org.openworkflow.impl.executors.CallableTaskBuilder @@ -0,0 +1 @@ +org.openworkflow.impl.executors.http.CallableTaskHttpExecutorBuilder \ No newline at end of file diff --git a/impl/jackson/pom.xml b/impl/jackson/pom.xml index ec4b6d19c..9eb3bca68 100644 --- a/impl/jackson/pom.xml +++ b/impl/jackson/pom.xml @@ -1,44 +1,44 @@ 4.0.0 - io.serverlessworkflow - serverlessworkflow-impl + org.openworkflow + openworkflow-impl 8.0.0-SNAPSHOT - serverlessworkflow-impl-jackson + openworkflow-impl-jackson Serverless Workflow :: Impl :: Jackson - io.serverlessworkflow - serverlessworkflow-impl-core + org.openworkflow + openworkflow-impl-core - io.serverlessworkflow - serverlessworkflow-impl-jq + org.openworkflow + openworkflow-impl-jq - io.serverlessworkflow - serverlessworkflow-impl-template-resolver + org.openworkflow + openworkflow-impl-template-resolver - io.serverlessworkflow - serverlessworkflow-impl-model + org.openworkflow + openworkflow-impl-model - io.serverlessworkflow - serverlessworkflow-impl-validation + org.openworkflow + openworkflow-impl-validation - io.serverlessworkflow - serverlessworkflow-impl-function + org.openworkflow + openworkflow-impl-function - io.serverlessworkflow - serverlessworkflow-impl-lifecycle-events + org.openworkflow + openworkflow-impl-lifecycle-events - io.serverlessworkflow - serverlessworkflow-impl-cron + org.openworkflow + openworkflow-impl-cron \ No newline at end of file diff --git a/impl/javascript/pom.xml b/impl/javascript/pom.xml index 1101de3f1..4497d672d 100644 --- a/impl/javascript/pom.xml +++ b/impl/javascript/pom.xml @@ -1,16 +1,16 @@ 4.0.0 - io.serverlessworkflow - serverlessworkflow-impl + org.openworkflow + 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 + 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/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/impl/executors/script/js/JavaScriptScriptTaskRunner.java index dce8f159a..e54c5f92d 100644 --- a/impl/javascript/src/main/java/io/serverlessworkflow/impl/executors/script/js/JavaScriptScriptTaskRunner.java +++ b/impl/javascript/src/main/java/org/openworkflow/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.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.impl.TaskContext; +import org.openworkflow.impl.WorkflowContext; +import org.openworkflow.impl.WorkflowModel; +import org.openworkflow.impl.scripts.ScriptContext; +import org.openworkflow.impl.scripts.ScriptLanguageId; +import org.openworkflow.impl.scripts.ScriptRunner; +import org.openworkflow.impl.scripts.ScriptUtils; +import org.openworkflow.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.impl.scripts.ScriptRunner b/impl/javascript/src/main/resources/META-INF/services/org.openworkflow.impl.scripts.ScriptRunner new file mode 100644 index 000000000..208114b03 --- /dev/null +++ b/impl/javascript/src/main/resources/META-INF/services/org.openworkflow.impl.scripts.ScriptRunner @@ -0,0 +1 @@ +org.openworkflow.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..5143b96ec 100644 --- a/impl/jq/pom.xml +++ b/impl/jq/pom.xml @@ -1,11 +1,11 @@ 4.0.0 - io.serverlessworkflow - serverlessworkflow-impl + org.openworkflow + openworkflow-impl 8.0.0-SNAPSHOT - serverlessworkflow-impl-jq + openworkflow-impl-jq Serverless Workflow :: Impl :: JQ @@ -13,8 +13,8 @@ jackson-jq - io.serverlessworkflow - serverlessworkflow-impl-json + org.openworkflow + openworkflow-impl-json org.junit.jupiter @@ -29,8 +29,8 @@ mockito-core - io.serverlessworkflow - serverlessworkflow-impl-model + org.openworkflow + 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/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/impl/expressions/jq/JQExpression.java index 21edca3a0..95a398454 100644 --- a/impl/jq/src/main/java/io/serverlessworkflow/impl/expressions/jq/JQExpression.java +++ b/impl/jq/src/main/java/org/openworkflow/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.impl.expressions.jq; -import static io.serverlessworkflow.impl.jackson.JsonUtils.modelToJson; +import static org.openworkflow.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.impl.AuthorizationDescriptor; +import org.openworkflow.impl.TaskContext; +import org.openworkflow.impl.WorkflowContext; +import org.openworkflow.impl.WorkflowError; +import org.openworkflow.impl.WorkflowException; +import org.openworkflow.impl.WorkflowModel; +import org.openworkflow.impl.expressions.ObjectExpression; +import org.openworkflow.impl.expressions.TaskDescriptor; +import org.openworkflow.impl.expressions.WorkflowDescriptor; +import org.openworkflow.impl.jackson.FunctionJsonNode; +import org.openworkflow.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/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/impl/expressions/jq/JQExpressionFactory.java index 7eeac60f5..d101dc84b 100644 --- a/impl/jq/src/main/java/io/serverlessworkflow/impl/expressions/jq/JQExpressionFactory.java +++ b/impl/jq/src/main/java/org/openworkflow/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.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.impl.expressions.ExpressionUtils; +import org.openworkflow.impl.expressions.ObjectExpression; +import org.openworkflow.impl.expressions.ObjectExpressionFactory; +import org.openworkflow.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.impl.expressions.ExpressionFactory b/impl/jq/src/main/resources/META-INF/services/org.openworkflow.impl.expressions.ExpressionFactory new file mode 100644 index 000000000..90dcdaa54 --- /dev/null +++ b/impl/jq/src/main/resources/META-INF/services/org.openworkflow.impl.expressions.ExpressionFactory @@ -0,0 +1 @@ +org.openworkflow.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/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/impl/expressions/jq/JQExpressionFactoryTest.java index aa9bcc8b2..3284decfc 100644 --- a/impl/jq/src/test/java/io/serverlessworkflow/impl/expressions/jq/JQExpressionFactoryTest.java +++ b/impl/jq/src/test/java/org/openworkflow/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.impl.expressions.jq; -import static io.serverlessworkflow.impl.WorkflowUtils.loadFirst; import static org.assertj.core.api.Assertions.assertThat; +import static org.openworkflow.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.impl.WorkflowContext; +import org.openworkflow.impl.WorkflowModelFactory; +import org.openworkflow.impl.WorkflowValueResolver; +import org.openworkflow.impl.expressions.ExpressionDescriptor; +import org.openworkflow.impl.jackson.JsonUtils; class JQExpressionFactoryTest { diff --git a/impl/json-utils/pom.xml b/impl/json-utils/pom.xml index c9dfc64f6..6b51f5e08 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 + 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 + 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/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/impl/jackson/FunctionBaseJsonNode.java index 0ce68c644..faf5f37bd 100644 --- a/impl/json-utils/src/main/java/io/serverlessworkflow/impl/jackson/FunctionBaseJsonNode.java +++ b/impl/json-utils/src/main/java/org/openworkflow/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.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/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/impl/jackson/FunctionJsonNode.java index 5152a5123..94809f25f 100644 --- a/impl/json-utils/src/main/java/io/serverlessworkflow/impl/jackson/FunctionJsonNode.java +++ b/impl/json-utils/src/main/java/org/openworkflow/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.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/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/impl/jackson/JacksonCloudEventUtils.java index d5c037d22..c30390227 100644 --- a/impl/json-utils/src/main/java/io/serverlessworkflow/impl/jackson/JacksonCloudEventUtils.java +++ b/impl/json-utils/src/main/java/org/openworkflow/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.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/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/impl/jackson/JsonUtils.java index c3bb0bed6..25a27eaf6 100644 --- a/impl/json-utils/src/main/java/io/serverlessworkflow/impl/jackson/JsonUtils.java +++ b/impl/json-utils/src/main/java/org/openworkflow/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.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.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/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/impl/jackson/MergeUtils.java index a94b7ff13..d5407f687 100644 --- a/impl/json-utils/src/main/java/io/serverlessworkflow/impl/jackson/MergeUtils.java +++ b/impl/json-utils/src/main/java/org/openworkflow/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.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/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/impl/jackson/ObjectMapperFactory.java index 6cc04cf24..92f4bd80d 100644 --- a/impl/json-utils/src/main/java/io/serverlessworkflow/impl/jackson/ObjectMapperFactory.java +++ b/impl/json-utils/src/main/java/org/openworkflow/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.impl.jackson; import com.fasterxml.jackson.databind.ObjectMapper; -import io.serverlessworkflow.impl.ServicePriority; import java.util.function.Supplier; +import org.openworkflow.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/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/impl/jackson/ObjectMapperFactoryProvider.java index 4e7cb1c60..daf89c328 100644 --- a/impl/json-utils/src/main/java/io/serverlessworkflow/impl/jackson/ObjectMapperFactoryProvider.java +++ b/impl/json-utils/src/main/java/org/openworkflow/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.impl.jackson; -import static io.serverlessworkflow.impl.WorkflowUtils.loadFirst; +import static org.openworkflow.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/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/impl/jackson/JacksonCloudEventUtilsTest.java index 5f433e0f7..375366628 100644 --- a/impl/json-utils/src/test/java/io/serverlessworkflow/impl/jackson/JacksonCloudEventUtilsTest.java +++ b/impl/json-utils/src/test/java/org/openworkflow/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.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/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/impl/jackson/JsonUtilsStaticInitTest.java index 04a953aa9..90bd7841a 100644 --- a/impl/json-utils/src/test/java/io/serverlessworkflow/impl/jackson/JsonUtilsStaticInitTest.java +++ b/impl/json-utils/src/test/java/org/openworkflow/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.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..5b1c7afa4 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 + 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 + openworkflow-impl-http - io.serverlessworkflow - serverlessworkflow-impl-json + org.openworkflow + 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/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/impl/executors/http/jackson/JacksonModelConverterFactory.java index e5909d2f9..95dc87246 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/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.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.impl.TaskContextData; +import org.openworkflow.impl.WorkflowContextData; +import org.openworkflow.impl.additional.NamedWorkflowAdditionalObject; +import org.openworkflow.impl.executors.http.HttpConverterResolver; +import org.openworkflow.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/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/impl/executors/http/oauth/jackson/JacksonJWTConverter.java index 3522913b9..1551c3a4a 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/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.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.impl.auth.JWT; +import org.openworkflow.impl.auth.JWTConverter; +import org.openworkflow.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.impl.additional.NamedWorkflowAdditionalObject b/impl/jwt-impl/src/main/resources/META-INF/services/org.openworkflow.impl.additional.NamedWorkflowAdditionalObject new file mode 100644 index 000000000..4c0fad4dd --- /dev/null +++ b/impl/jwt-impl/src/main/resources/META-INF/services/org.openworkflow.impl.additional.NamedWorkflowAdditionalObject @@ -0,0 +1 @@ +org.openworkflow.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.impl.auth.JWTConverter b/impl/jwt-impl/src/main/resources/META-INF/services/org.openworkflow.impl.auth.JWTConverter new file mode 100644 index 000000000..980c846aa --- /dev/null +++ b/impl/jwt-impl/src/main/resources/META-INF/services/org.openworkflow.impl.auth.JWTConverter @@ -0,0 +1 @@ +org.openworkflow.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/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/impl/http/jwt/JacksonJWTImplTest.java index c96d75767..7d89cbb0a 100644 --- a/impl/jwt-impl/src/test/java/io/serverlessworkflow/impl/http/jwt/JacksonJWTImplTest.java +++ b/impl/jwt-impl/src/test/java/org/openworkflow/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.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.impl.auth.JWT; +import org.openworkflow.impl.executors.http.oauth.jackson.JacksonJWTConverter; public class JacksonJWTImplTest { diff --git a/impl/lifecycleevent/pom.xml b/impl/lifecycleevent/pom.xml index dafad537d..d8027692a 100644 --- a/impl/lifecycleevent/pom.xml +++ b/impl/lifecycleevent/pom.xml @@ -1,24 +1,24 @@ 4.0.0 - io.serverlessworkflow - serverlessworkflow-impl + org.openworkflow + openworkflow-impl 8.0.0-SNAPSHOT - serverlessworkflow-impl-lifecycle-events + openworkflow-impl-lifecycle-events Serverless Workflow :: Impl :: Jackson:: Lifecycle Events - io.serverlessworkflow - serverlessworkflow-impl-json + org.openworkflow + openworkflow-impl-json - io.serverlessworkflow - serverlessworkflow-impl-core + org.openworkflow + openworkflow-impl-core - io.serverlessworkflow - serverlessworkflow-impl-model + org.openworkflow + 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/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/impl/jackson/events/JacksonLifeCyclePublisher.java index 66a7618a3..fcb1e7f3d 100644 --- a/impl/lifecycleevent/src/main/java/io/serverlessworkflow/impl/jackson/events/JacksonLifeCyclePublisher.java +++ b/impl/lifecycleevent/src/main/java/org/openworkflow/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.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.impl.jackson.JsonUtils; +import org.openworkflow.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.impl.lifecycle.WorkflowExecutionListener b/impl/lifecycleevent/src/main/resources/META-INF/services/org.openworkflow.impl.lifecycle.WorkflowExecutionListener new file mode 100644 index 000000000..42862fe01 --- /dev/null +++ b/impl/lifecycleevent/src/main/resources/META-INF/services/org.openworkflow.impl.lifecycle.WorkflowExecutionListener @@ -0,0 +1 @@ +org.openworkflow.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/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/impl/jackson/events/JacksonLifeCyclePublisherTest.java index 6f4ccda37..6798397d1 100644 --- a/impl/lifecycleevent/src/test/java/io/serverlessworkflow/impl/jackson/events/JacksonLifeCyclePublisherTest.java +++ b/impl/lifecycleevent/src/test/java/org/openworkflow/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.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.impl.TaskContext; +import org.openworkflow.impl.WorkflowContext; +import org.openworkflow.impl.WorkflowDefinition; +import org.openworkflow.impl.WorkflowDefinitionId; +import org.openworkflow.impl.WorkflowInstance; +import org.openworkflow.impl.WorkflowModelFactory; +import org.openworkflow.impl.WorkflowPosition; +import org.openworkflow.impl.WorkflowStatus; +import org.openworkflow.impl.jackson.JsonUtils; +import org.openworkflow.impl.lifecycle.TaskCancelledEvent; +import org.openworkflow.impl.lifecycle.TaskCompletedEvent; +import org.openworkflow.impl.lifecycle.TaskFailedEvent; +import org.openworkflow.impl.lifecycle.TaskResumedEvent; +import org.openworkflow.impl.lifecycle.TaskRetriedEvent; +import org.openworkflow.impl.lifecycle.TaskStartedEvent; +import org.openworkflow.impl.lifecycle.TaskSuspendedEvent; +import org.openworkflow.impl.lifecycle.WorkflowCancelledEvent; +import org.openworkflow.impl.lifecycle.WorkflowCompletedEvent; +import org.openworkflow.impl.lifecycle.WorkflowFailedEvent; +import org.openworkflow.impl.lifecycle.WorkflowResumedEvent; +import org.openworkflow.impl.lifecycle.WorkflowStartedEvent; +import org.openworkflow.impl.lifecycle.WorkflowStatusEvent; +import org.openworkflow.impl.lifecycle.WorkflowSuspendedEvent; +import org.openworkflow.impl.lifecycle.ce.TaskCancelledCEData; +import org.openworkflow.impl.lifecycle.ce.TaskCompletedCEData; +import org.openworkflow.impl.lifecycle.ce.TaskCompletedCEDataWithOutput; +import org.openworkflow.impl.lifecycle.ce.TaskFailedCEData; +import org.openworkflow.impl.lifecycle.ce.TaskResumedCEData; +import org.openworkflow.impl.lifecycle.ce.TaskRetriedCEData; +import org.openworkflow.impl.lifecycle.ce.TaskStartedCEData; +import org.openworkflow.impl.lifecycle.ce.TaskStartedCEDataWithInput; +import org.openworkflow.impl.lifecycle.ce.TaskSuspendedCEData; +import org.openworkflow.impl.lifecycle.ce.WorkflowCancelledCEData; +import org.openworkflow.impl.lifecycle.ce.WorkflowCompletedCEData; +import org.openworkflow.impl.lifecycle.ce.WorkflowCompletedCEDataWithOutput; +import org.openworkflow.impl.lifecycle.ce.WorkflowFailedCEData; +import org.openworkflow.impl.lifecycle.ce.WorkflowResumedCEData; +import org.openworkflow.impl.lifecycle.ce.WorkflowStartedCEData; +import org.openworkflow.impl.lifecycle.ce.WorkflowStartedCEDataWithInput; +import org.openworkflow.impl.lifecycle.ce.WorkflowStatusCEDataEvent; +import org.openworkflow.impl.lifecycle.ce.WorkflowSuspendedCEData; +import org.openworkflow.impl.model.jackson.JacksonModelFactory; public class JacksonLifeCyclePublisherTest { diff --git a/impl/model/pom.xml b/impl/model/pom.xml index 66b92c978..6f4e84a26 100644 --- a/impl/model/pom.xml +++ b/impl/model/pom.xml @@ -1,20 +1,20 @@ 4.0.0 - io.serverlessworkflow - serverlessworkflow-impl + org.openworkflow + openworkflow-impl 8.0.0-SNAPSHOT - serverlessworkflow-impl-model + openworkflow-impl-model Serverless Workflow :: Impl :: Jackson:: Model - io.serverlessworkflow - serverlessworkflow-impl-json + org.openworkflow + openworkflow-impl-json - io.serverlessworkflow - serverlessworkflow-impl-core + org.openworkflow + 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/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/impl/model/jackson/AbstractJacksonMarshaller.java index 16f577a75..d729c3c5e 100644 --- a/impl/model/src/main/java/io/serverlessworkflow/impl/model/jackson/AbstractJacksonMarshaller.java +++ b/impl/model/src/main/java/org/openworkflow/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.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.impl.jackson.JsonUtils; +import org.openworkflow.impl.marshaller.CustomObjectMarshaller; +import org.openworkflow.impl.marshaller.WorkflowInputBuffer; +import org.openworkflow.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/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/impl/model/jackson/JacksonModel.java index df55437bf..f84857f4d 100644 --- a/impl/model/src/main/java/io/serverlessworkflow/impl/model/jackson/JacksonModel.java +++ b/impl/model/src/main/java/org/openworkflow/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.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.impl.AbstractWorkflowModel; +import org.openworkflow.impl.WorkflowModel; +import org.openworkflow.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/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/impl/model/jackson/JacksonModelCollection.java index 1796efca0..3d506c5fa 100644 --- a/impl/model/src/main/java/io/serverlessworkflow/impl/model/jackson/JacksonModelCollection.java +++ b/impl/model/src/main/java/org/openworkflow/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.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.impl.CollectionConversionUtils; +import org.openworkflow.impl.WorkflowModel; +import org.openworkflow.impl.WorkflowModelCollection; +import org.openworkflow.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/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/impl/model/jackson/JacksonModelCollectionDeserializer.java index 71011b895..e7a6875c5 100644 --- a/impl/model/src/main/java/io/serverlessworkflow/impl/model/jackson/JacksonModelCollectionDeserializer.java +++ b/impl/model/src/main/java/org/openworkflow/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.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/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/impl/model/jackson/JacksonModelCollectionMarshaller.java index afe4777c1..210dc8c3e 100644 --- a/impl/model/src/main/java/io/serverlessworkflow/impl/model/jackson/JacksonModelCollectionMarshaller.java +++ b/impl/model/src/main/java/org/openworkflow/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.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/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/impl/model/jackson/JacksonModelCollectionSerializer.java index 0fbcc5355..035dee2c2 100644 --- a/impl/model/src/main/java/io/serverlessworkflow/impl/model/jackson/JacksonModelCollectionSerializer.java +++ b/impl/model/src/main/java/org/openworkflow/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.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/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/impl/model/jackson/JacksonModelDeserializer.java index e0dd30bef..971727a34 100644 --- a/impl/model/src/main/java/io/serverlessworkflow/impl/model/jackson/JacksonModelDeserializer.java +++ b/impl/model/src/main/java/org/openworkflow/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.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/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/impl/model/jackson/JacksonModelFactory.java index 8b01935e5..4ad10868a 100644 --- a/impl/model/src/main/java/io/serverlessworkflow/impl/model/jackson/JacksonModelFactory.java +++ b/impl/model/src/main/java/org/openworkflow/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.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.impl.WorkflowModel; +import org.openworkflow.impl.WorkflowModelCollection; +import org.openworkflow.impl.WorkflowModelFactory; +import org.openworkflow.impl.jackson.JacksonCloudEventUtils; +import org.openworkflow.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/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/impl/model/jackson/JacksonModelMarshaller.java index ca95e82fb..40cf65cfe 100644 --- a/impl/model/src/main/java/io/serverlessworkflow/impl/model/jackson/JacksonModelMarshaller.java +++ b/impl/model/src/main/java/org/openworkflow/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.impl.model.jackson; -import io.serverlessworkflow.impl.marshaller.WorkflowInputBuffer; +import org.openworkflow.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/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/impl/model/jackson/JacksonModelSerializer.java index e621ee77f..1f360fc6d 100644 --- a/impl/model/src/main/java/io/serverlessworkflow/impl/model/jackson/JacksonModelSerializer.java +++ b/impl/model/src/main/java/org/openworkflow/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.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/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/impl/model/jackson/JacksonObjectMarshaller.java index 1f406f804..7400f2596 100644 --- a/impl/model/src/main/java/io/serverlessworkflow/impl/model/jackson/JacksonObjectMarshaller.java +++ b/impl/model/src/main/java/org/openworkflow/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.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/io.serverlessworkflow/serverlessworkflow-impl-model/reflect-config.json index 91032a133..d7ca45a3c 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/io.serverlessworkflow/serverlessworkflow-impl-model/reflect-config.json @@ -1,6 +1,6 @@ [ { - "name": "io.serverlessworkflow.impl.model.jackson.JacksonModelSerializer", + "name": "org.openworkflow.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.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.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.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.impl.WorkflowModelFactory b/impl/model/src/main/resources/META-INF/services/org.openworkflow.impl.WorkflowModelFactory new file mode 100644 index 000000000..58a70301d --- /dev/null +++ b/impl/model/src/main/resources/META-INF/services/org.openworkflow.impl.WorkflowModelFactory @@ -0,0 +1 @@ +org.openworkflow.impl.model.jackson.JacksonModelFactory \ No newline at end of file diff --git a/impl/model/src/main/resources/META-INF/services/org.openworkflow.impl.marshaller.CustomObjectMarshaller b/impl/model/src/main/resources/META-INF/services/org.openworkflow.impl.marshaller.CustomObjectMarshaller new file mode 100644 index 000000000..e18ca0bba --- /dev/null +++ b/impl/model/src/main/resources/META-INF/services/org.openworkflow.impl.marshaller.CustomObjectMarshaller @@ -0,0 +1,3 @@ +org.openworkflow.impl.model.jackson.JacksonModelMarshaller +org.openworkflow.impl.model.jackson.JacksonModelCollectionMarshaller +org.openworkflow.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/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/impl/model/jackson/Employee.java index 6d6d2e02e..2d77b737c 100644 --- a/impl/model/src/test/java/io/serverlessworkflow/impl/model/jackson/Employee.java +++ b/impl/model/src/test/java/org/openworkflow/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.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/impl/model/jackson/JacksonModelSerializationTest.java similarity index 80% rename from impl/model/src/test/java/io/serverlessworkflow/impl/model/jackson/JacksonModelSerializationTest.java rename to impl/model/src/test/java/org/openworkflow/impl/model/jackson/JacksonModelSerializationTest.java index 1c7f2754c..3db209ea6 100644 --- a/impl/model/src/test/java/io/serverlessworkflow/impl/model/jackson/JacksonModelSerializationTest.java +++ b/impl/model/src/test/java/org/openworkflow/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.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.impl.jackson.JsonUtils; +import org.openworkflow.impl.marshaller.DefaultBufferFactory; +import org.openworkflow.impl.marshaller.WorkflowBufferFactory; +import org.openworkflow.impl.marshaller.WorkflowInputBuffer; +import org.openworkflow.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/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/impl/model/jackson/JacksonModelTest.java index ae4d62664..85ee308f2 100644 --- a/impl/model/src/test/java/io/serverlessworkflow/impl/model/jackson/JacksonModelTest.java +++ b/impl/model/src/test/java/org/openworkflow/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.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.impl.WorkflowModel; +import org.openworkflow.impl.WorkflowModelFactory; +import org.openworkflow.impl.jackson.JsonUtils; public class JacksonModelTest { diff --git a/impl/openapi-jackson/pom.xml b/impl/openapi-jackson/pom.xml index 4b11bb761..c4e8a95f2 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 + 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 + openworkflow-impl-openapi-base - io.serverlessworkflow - serverlessworkflow-api + org.openworkflow + openworkflow-api - io.serverlessworkflow - serverlessworkflow-impl-openapi-base + org.openworkflow + 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/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/impl/executors/openapi/jackson/JacksonUnifiedOpenAPIMixIn.java index 4b5295381..24e11a0fe 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/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.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/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/impl/executors/openapi/jackson/JacksonUnifiedOpenAPIMixInModule.java index e82702e23..66cf1fbd0 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/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.impl.executors.openapi.jackson; import com.fasterxml.jackson.databind.module.SimpleModule; -import io.serverlessworkflow.impl.executors.openapi.UnifiedOpenAPI; +import org.openworkflow.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/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/impl/executors/openapi/jackson/JacksonUnifiedOpenAPIReader.java index fce695b2d..2be8a3815 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/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.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.api.WorkflowFormat; +import org.openworkflow.impl.executors.openapi.UnifiedOpenAPI; +import org.openworkflow.impl.executors.openapi.UnifiedOpenAPIReader; +import org.openworkflow.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/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/impl/executors/openapi/jackson/JacksonUnifiedOpenAPIReaderFactory.java index 0933e6b9a..cddfa2fe9 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/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.impl.executors.openapi.jackson; -import io.serverlessworkflow.impl.TaskContextData; -import io.serverlessworkflow.impl.WorkflowContextData; -import io.serverlessworkflow.impl.additional.NamedWorkflowAdditionalObject; +import org.openworkflow.impl.TaskContextData; +import org.openworkflow.impl.WorkflowContextData; +import org.openworkflow.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 index 0e6938d70..d4343f437 100644 --- 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 @@ -1,14 +1,14 @@ [ -{"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} +{"name":"org.openworkflow.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.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.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.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.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.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.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.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.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.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.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.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..ea951f333 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.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.impl.additional.NamedWorkflowAdditionalObject b/impl/openapi-jackson/src/main/resources/META-INF/services/org.openworkflow.impl.additional.NamedWorkflowAdditionalObject new file mode 100644 index 000000000..08c24963e --- /dev/null +++ b/impl/openapi-jackson/src/main/resources/META-INF/services/org.openworkflow.impl.additional.NamedWorkflowAdditionalObject @@ -0,0 +1 @@ +org.openworkflow.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/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/impl/executors/openapi/jackson/JacksonOpenAPIProcessorTest.java index 057ad59f3..7e5b6c52c 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/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.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.impl.executors.openapi.OpenAPIProcessorTest; +import org.openworkflow.impl.executors.openapi.UnifiedOpenAPIReader; public class JacksonOpenAPIProcessorTest extends OpenAPIProcessorTest { diff --git a/impl/openapi/pom.xml b/impl/openapi/pom.xml index a5cd19167..4f843af1f 100644 --- a/impl/openapi/pom.xml +++ b/impl/openapi/pom.xml @@ -1,24 +1,24 @@ 4.0.0 - io.serverlessworkflow - serverlessworkflow-impl + org.openworkflow + 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 + openworkflow-impl-core - io.serverlessworkflow - serverlessworkflow-impl-http + org.openworkflow + 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/impl/executors/openapi/OpenAPIExecutor.java similarity index 90% rename from impl/openapi/src/main/java/io/serverlessworkflow/impl/executors/openapi/OpenAPIExecutor.java rename to impl/openapi/src/main/java/org/openworkflow/impl/executors/openapi/OpenAPIExecutor.java index 131b34d54..c46612f4f 100644 --- a/impl/openapi/src/main/java/io/serverlessworkflow/impl/executors/openapi/OpenAPIExecutor.java +++ b/impl/openapi/src/main/java/org/openworkflow/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.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.api.types.ExternalResource; +import org.openworkflow.impl.TaskContext; +import org.openworkflow.impl.WorkflowApplication; +import org.openworkflow.impl.WorkflowContext; +import org.openworkflow.impl.WorkflowModel; +import org.openworkflow.impl.executors.CallableTask; +import org.openworkflow.impl.executors.http.HttpExecutor; +import org.openworkflow.impl.executors.http.HttpExecutorBuilder; +import org.openworkflow.impl.resources.ExternalResourceHandler; class OpenAPIExecutor implements CallableTask { diff --git a/impl/openapi/src/main/java/io/serverlessworkflow/impl/executors/openapi/OpenAPIExecutorBuilder.java b/impl/openapi/src/main/java/org/openworkflow/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/impl/executors/openapi/OpenAPIExecutorBuilder.java index 8c7cd11be..7c3bf5142 100644 --- a/impl/openapi/src/main/java/io/serverlessworkflow/impl/executors/openapi/OpenAPIExecutorBuilder.java +++ b/impl/openapi/src/main/java/org/openworkflow/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.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.api.types.CallOpenAPI; +import org.openworkflow.api.types.ExternalResource; +import org.openworkflow.api.types.OpenAPIArguments; +import org.openworkflow.api.types.TaskBase; +import org.openworkflow.impl.WorkflowDefinition; +import org.openworkflow.impl.WorkflowMutablePosition; +import org.openworkflow.impl.executors.CallableTaskBuilder; +import org.openworkflow.impl.executors.CallableTaskFactory; +import org.openworkflow.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/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/impl/executors/openapi/OpenAPIProcessor.java index 1b4bcca2d..a40ee1757 100644 --- a/impl/openapi/src/main/java/io/serverlessworkflow/impl/executors/openapi/OpenAPIProcessor.java +++ b/impl/openapi/src/main/java/org/openworkflow/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.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/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/impl/executors/openapi/OperationDefinition.java index 693f1c188..f2483cb59 100644 --- a/impl/openapi/src/main/java/io/serverlessworkflow/impl/executors/openapi/OperationDefinition.java +++ b/impl/openapi/src/main/java/org/openworkflow/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.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/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/impl/executors/openapi/OperationPathResolver.java index 70e952c33..44c563808 100644 --- a/impl/openapi/src/main/java/io/serverlessworkflow/impl/executors/openapi/OperationPathResolver.java +++ b/impl/openapi/src/main/java/org/openworkflow/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.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.impl.TaskContext; +import org.openworkflow.impl.WorkflowApplication; +import org.openworkflow.impl.WorkflowContext; +import org.openworkflow.impl.WorkflowModel; +import org.openworkflow.impl.WorkflowUtils; +import org.openworkflow.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/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/impl/executors/openapi/ParameterDefinition.java index 4733464d3..09e834fbc 100644 --- a/impl/openapi/src/main/java/io/serverlessworkflow/impl/executors/openapi/ParameterDefinition.java +++ b/impl/openapi/src/main/java/org/openworkflow/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.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/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/impl/executors/openapi/UnifiedOpenAPI.java index 26ade7a33..39eb05a2a 100644 --- a/impl/openapi/src/main/java/io/serverlessworkflow/impl/executors/openapi/UnifiedOpenAPI.java +++ b/impl/openapi/src/main/java/org/openworkflow/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.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/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/impl/executors/openapi/UnifiedOpenAPIReader.java index 53ea097cd..55496ffe5 100644 --- a/impl/openapi/src/main/java/io/serverlessworkflow/impl/executors/openapi/UnifiedOpenAPIReader.java +++ b/impl/openapi/src/main/java/org/openworkflow/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.impl.executors.openapi; -import io.serverlessworkflow.impl.resources.ExternalResourceHandler; import java.io.IOException; +import org.openworkflow.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.impl.executors.CallableTaskBuilder b/impl/openapi/src/main/resources/META-INF/services/org.openworkflow.impl.executors.CallableTaskBuilder new file mode 100644 index 000000000..d2c84a020 --- /dev/null +++ b/impl/openapi/src/main/resources/META-INF/services/org.openworkflow.impl.executors.CallableTaskBuilder @@ -0,0 +1 @@ +org.openworkflow.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/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/impl/executors/openapi/OpenAPIProcessorTest.java index eec573271..05e29a3b3 100644 --- a/impl/openapi/src/test/java/io/serverlessworkflow/impl/executors/openapi/OpenAPIProcessorTest.java +++ b/impl/openapi/src/test/java/org/openworkflow/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.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.impl.resources.ClasspathResource; +import org.openworkflow.impl.resources.ExternalResourceHandler; public abstract class OpenAPIProcessorTest { diff --git a/impl/persistence/README.md b/impl/persistence/README.md index 43b4ca84a..f0fc9e0d0 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) -# 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..c0072ce9f 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 + 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 + 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/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/impl/persistence/AbstractAllStrategyCorrelationInfo.java index 166030138..7c2940ee2 100644 --- a/impl/persistence/api/src/main/java/io/serverlessworkflow/impl/persistence/AbstractAllStrategyCorrelationInfo.java +++ b/impl/persistence/api/src/main/java/org/openworkflow/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.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.impl.WorkflowDefinition; +import org.openworkflow.impl.WorkflowInstance; +import org.openworkflow.impl.events.EventRegistrationBuilder; +import org.openworkflow.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/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/impl/persistence/AbstractAsyncPersistenceExecutor.java index 74ca8ef18..6dfe53a1d 100644 --- a/impl/persistence/api/src/main/java/io/serverlessworkflow/impl/persistence/AbstractAsyncPersistenceExecutor.java +++ b/impl/persistence/api/src/main/java/org/openworkflow/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.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.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/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/impl/persistence/AbstractPersistenceInstanceReader.java index 723d81cc1..0e1b45677 100644 --- a/impl/persistence/api/src/main/java/io/serverlessworkflow/impl/persistence/AbstractPersistenceInstanceReader.java +++ b/impl/persistence/api/src/main/java/org/openworkflow/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.impl.persistence; -import io.serverlessworkflow.impl.WorkflowDefinition; -import io.serverlessworkflow.impl.WorkflowInstance; import java.util.Optional; import java.util.stream.Stream; +import org.openworkflow.impl.WorkflowDefinition; +import org.openworkflow.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/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/impl/persistence/AbstractPersistenceInstanceWriter.java index dea3e1848..26779731e 100644 --- a/impl/persistence/api/src/main/java/io/serverlessworkflow/impl/persistence/AbstractPersistenceInstanceWriter.java +++ b/impl/persistence/api/src/main/java/org/openworkflow/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.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.impl.TaskContextData; +import org.openworkflow.impl.WorkflowContextData; +import org.openworkflow.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/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/impl/persistence/AsyncPersistenceExecutor.java index e8a10ab8a..2303eaabd 100644 --- a/impl/persistence/api/src/main/java/io/serverlessworkflow/impl/persistence/AsyncPersistenceExecutor.java +++ b/impl/persistence/api/src/main/java/org/openworkflow/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.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/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/impl/persistence/CompletedTaskInfo.java index 3a03e66a5..0c3da1e0c 100644 --- a/impl/persistence/api/src/main/java/io/serverlessworkflow/impl/persistence/CompletedTaskInfo.java +++ b/impl/persistence/api/src/main/java/org/openworkflow/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.impl.persistence; -import io.serverlessworkflow.impl.WorkflowModel; import java.time.Instant; import java.util.Map; +import org.openworkflow.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/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/impl/persistence/CorrelationOperations.java index dacaa8655..b2634addd 100644 --- a/impl/persistence/api/src/main/java/io/serverlessworkflow/impl/persistence/CorrelationOperations.java +++ b/impl/persistence/api/src/main/java/org/openworkflow/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.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/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/impl/persistence/DefaultPersistenceInstanceHandlers.java index ac582a1b5..a956f0810 100644 --- a/impl/persistence/api/src/main/java/io/serverlessworkflow/impl/persistence/DefaultPersistenceInstanceHandlers.java +++ b/impl/persistence/api/src/main/java/org/openworkflow/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.impl.persistence; -import static io.serverlessworkflow.impl.WorkflowUtils.safeClose; +import static org.openworkflow.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/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/impl/persistence/DefaultPersistenceInstanceReader.java index 29731f0f7..7ef7ec745 100644 --- a/impl/persistence/api/src/main/java/io/serverlessworkflow/impl/persistence/DefaultPersistenceInstanceReader.java +++ b/impl/persistence/api/src/main/java/org/openworkflow/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.impl.persistence; -import io.serverlessworkflow.impl.WorkflowDefinition; -import io.serverlessworkflow.impl.WorkflowInstance; import java.util.Optional; import java.util.stream.Stream; +import org.openworkflow.impl.WorkflowDefinition; +import org.openworkflow.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/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/impl/persistence/DefaultPersistenceInstanceWriter.java index a3a1953f5..e61189b52 100644 --- a/impl/persistence/api/src/main/java/io/serverlessworkflow/impl/persistence/DefaultPersistenceInstanceWriter.java +++ b/impl/persistence/api/src/main/java/org/openworkflow/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.impl.persistence; -import io.serverlessworkflow.impl.WorkflowDefinitionData; import java.util.function.Consumer; +import org.openworkflow.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/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/impl/persistence/OperationAllStrategyCorrelationInfo.java index 3dbba48a9..6b6ff0b45 100644 --- a/impl/persistence/api/src/main/java/io/serverlessworkflow/impl/persistence/OperationAllStrategyCorrelationInfo.java +++ b/impl/persistence/api/src/main/java/org/openworkflow/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.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.impl.WorkflowDefinition; +import org.openworkflow.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/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/impl/persistence/OperationAllStrategyCorrelationInfoFactory.java index 3b829b07e..0a3acbf4f 100644 --- a/impl/persistence/api/src/main/java/io/serverlessworkflow/impl/persistence/OperationAllStrategyCorrelationInfoFactory.java +++ b/impl/persistence/api/src/main/java/org/openworkflow/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.impl.persistence; -import io.serverlessworkflow.impl.WorkflowDefinition; -import io.serverlessworkflow.impl.scheduler.AllStrategyCorrelationInfo; -import io.serverlessworkflow.impl.scheduler.AllStrategyCorrelationInfoFactory; +import org.openworkflow.impl.WorkflowDefinition; +import org.openworkflow.impl.scheduler.AllStrategyCorrelationInfo; +import org.openworkflow.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/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/impl/persistence/PersistenceAllStrategyCorrelationInfoFactories.java index 7929aabaa..cd1b9c4ee 100644 --- a/impl/persistence/api/src/main/java/io/serverlessworkflow/impl/persistence/PersistenceAllStrategyCorrelationInfoFactories.java +++ b/impl/persistence/api/src/main/java/org/openworkflow/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.impl.persistence; -import io.serverlessworkflow.impl.scheduler.AllStrategyCorrelationInfoFactory; +import org.openworkflow.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/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/impl/persistence/PersistenceApplicationBuilder.java index 954f38c82..594dd6c7d 100644 --- a/impl/persistence/api/src/main/java/io/serverlessworkflow/impl/persistence/PersistenceApplicationBuilder.java +++ b/impl/persistence/api/src/main/java/org/openworkflow/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.impl.persistence; -import io.serverlessworkflow.impl.WorkflowApplication; -import io.serverlessworkflow.impl.WorkflowApplication.Builder; +import org.openworkflow.impl.WorkflowApplication; +import org.openworkflow.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/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/impl/persistence/PersistenceExecutor.java index 879bd52bb..da7d4f683 100644 --- a/impl/persistence/api/src/main/java/io/serverlessworkflow/impl/persistence/PersistenceExecutor.java +++ b/impl/persistence/api/src/main/java/org/openworkflow/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.impl.persistence; -import io.serverlessworkflow.impl.WorkflowDefinitionData; import java.util.concurrent.CompletableFuture; import java.util.function.Supplier; +import org.openworkflow.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/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/impl/persistence/PersistenceInstanceHandlers.java index beec1c672..06bdfadcc 100644 --- a/impl/persistence/api/src/main/java/io/serverlessworkflow/impl/persistence/PersistenceInstanceHandlers.java +++ b/impl/persistence/api/src/main/java/org/openworkflow/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.impl.persistence; -import static io.serverlessworkflow.impl.WorkflowUtils.safeClose; +import static org.openworkflow.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/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/impl/persistence/PersistenceInstanceInfo.java index 1d0bdcdab..e907f5550 100644 --- a/impl/persistence/api/src/main/java/io/serverlessworkflow/impl/persistence/PersistenceInstanceInfo.java +++ b/impl/persistence/api/src/main/java/org/openworkflow/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.impl.persistence; -import io.serverlessworkflow.impl.WorkflowModel; import java.time.Instant; import java.util.Map; +import org.openworkflow.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/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/impl/persistence/PersistenceInstanceOperations.java index a4aebe2fb..0f5bdf8e4 100644 --- a/impl/persistence/api/src/main/java/io/serverlessworkflow/impl/persistence/PersistenceInstanceOperations.java +++ b/impl/persistence/api/src/main/java/org/openworkflow/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.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.impl.TaskContextData; +import org.openworkflow.impl.WorkflowContextData; +import org.openworkflow.impl.WorkflowDefinition; +import org.openworkflow.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/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/impl/persistence/PersistenceInstanceReader.java index d7736c8f5..b9b085116 100644 --- a/impl/persistence/api/src/main/java/io/serverlessworkflow/impl/persistence/PersistenceInstanceReader.java +++ b/impl/persistence/api/src/main/java/org/openworkflow/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.impl.persistence; -import io.serverlessworkflow.impl.WorkflowDefinition; -import io.serverlessworkflow.impl.WorkflowInstance; import java.util.Optional; import java.util.stream.Stream; +import org.openworkflow.impl.WorkflowDefinition; +import org.openworkflow.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/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/impl/persistence/PersistenceInstanceStore.java index 99c5096e0..2ac30df88 100644 --- a/impl/persistence/api/src/main/java/io/serverlessworkflow/impl/persistence/PersistenceInstanceStore.java +++ b/impl/persistence/api/src/main/java/org/openworkflow/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.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/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/impl/persistence/PersistenceInstanceTransaction.java index c8a2a2ab1..cb03fd02a 100644 --- a/impl/persistence/api/src/main/java/io/serverlessworkflow/impl/persistence/PersistenceInstanceTransaction.java +++ b/impl/persistence/api/src/main/java/org/openworkflow/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.impl.persistence; -import io.serverlessworkflow.impl.WorkflowDefinitionData; +import org.openworkflow.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/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/impl/persistence/PersistenceInstanceWriter.java index 31ce235a5..793ccf9b8 100644 --- a/impl/persistence/api/src/main/java/io/serverlessworkflow/impl/persistence/PersistenceInstanceWriter.java +++ b/impl/persistence/api/src/main/java/org/openworkflow/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.impl.persistence; -import io.serverlessworkflow.impl.TaskContextData; -import io.serverlessworkflow.impl.WorkflowContextData; import java.util.concurrent.CompletableFuture; +import org.openworkflow.impl.TaskContextData; +import org.openworkflow.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/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/impl/persistence/PersistenceTaskInfo.java index b6fdc2298..61f9bd0ae 100644 --- a/impl/persistence/api/src/main/java/io/serverlessworkflow/impl/persistence/PersistenceTaskInfo.java +++ b/impl/persistence/api/src/main/java/org/openworkflow/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.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/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/impl/persistence/PersistenceWorkflowInfo.java index bb21fad2f..77c55e279 100644 --- a/impl/persistence/api/src/main/java/io/serverlessworkflow/impl/persistence/PersistenceWorkflowInfo.java +++ b/impl/persistence/api/src/main/java/org/openworkflow/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.impl.persistence; -import io.serverlessworkflow.impl.WorkflowModel; -import io.serverlessworkflow.impl.WorkflowStatus; import java.time.Instant; import java.util.Map; +import org.openworkflow.impl.WorkflowModel; +import org.openworkflow.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/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/impl/persistence/RetriedTaskInfo.java index 5894fdd9a..6a21b35cc 100644 --- a/impl/persistence/api/src/main/java/io/serverlessworkflow/impl/persistence/RetriedTaskInfo.java +++ b/impl/persistence/api/src/main/java/org/openworkflow/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.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/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/impl/persistence/StoreAllStrategyCorrelationInfo.java index 17d4b9cde..948e93cd6 100644 --- a/impl/persistence/api/src/main/java/io/serverlessworkflow/impl/persistence/StoreAllStrategyCorrelationInfo.java +++ b/impl/persistence/api/src/main/java/org/openworkflow/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.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.impl.WorkflowDefinition; +import org.openworkflow.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/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/impl/persistence/StoreAllStrategyCorrelationInfoFactory.java index a0ae93ca7..d9597459c 100644 --- a/impl/persistence/api/src/main/java/io/serverlessworkflow/impl/persistence/StoreAllStrategyCorrelationInfoFactory.java +++ b/impl/persistence/api/src/main/java/org/openworkflow/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.impl.persistence; -import io.serverlessworkflow.impl.WorkflowDefinition; -import io.serverlessworkflow.impl.scheduler.AllStrategyCorrelationInfo; -import io.serverlessworkflow.impl.scheduler.AllStrategyCorrelationInfoFactory; +import org.openworkflow.impl.WorkflowDefinition; +import org.openworkflow.impl.scheduler.AllStrategyCorrelationInfo; +import org.openworkflow.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/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/impl/persistence/TransactedPersistenceInstanceWriter.java index 67650c482..0ecc962f5 100644 --- a/impl/persistence/api/src/main/java/io/serverlessworkflow/impl/persistence/TransactedPersistenceInstanceWriter.java +++ b/impl/persistence/api/src/main/java/org/openworkflow/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.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.impl.WorkflowContextData; +import org.openworkflow.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/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/impl/persistence/WorkflowPersistenceInstance.java index d582bba09..0f9193128 100644 --- a/impl/persistence/api/src/main/java/io/serverlessworkflow/impl/persistence/WorkflowPersistenceInstance.java +++ b/impl/persistence/api/src/main/java/org/openworkflow/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.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.api.types.TryTask; +import org.openworkflow.impl.TaskContext; +import org.openworkflow.impl.WorkflowContext; +import org.openworkflow.impl.WorkflowDefinition; +import org.openworkflow.impl.WorkflowInstance; +import org.openworkflow.impl.WorkflowModel; +import org.openworkflow.impl.WorkflowMutableInstance; +import org.openworkflow.impl.WorkflowStatus; +import org.openworkflow.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/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/impl/persistence/WorkflowPersistenceListener.java index e31f2943d..6f3e00ebb 100644 --- a/impl/persistence/api/src/main/java/io/serverlessworkflow/impl/persistence/WorkflowPersistenceListener.java +++ b/impl/persistence/api/src/main/java/org/openworkflow/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.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.impl.lifecycle.TaskCompletedEvent; +import org.openworkflow.impl.lifecycle.TaskRetriedEvent; +import org.openworkflow.impl.lifecycle.TaskStartedEvent; +import org.openworkflow.impl.lifecycle.WorkflowCancelledEvent; +import org.openworkflow.impl.lifecycle.WorkflowCompletedEvent; +import org.openworkflow.impl.lifecycle.WorkflowExecutionCompletableListener; +import org.openworkflow.impl.lifecycle.WorkflowFailedEvent; +import org.openworkflow.impl.lifecycle.WorkflowResumedEvent; +import org.openworkflow.impl.lifecycle.WorkflowStartedEvent; +import org.openworkflow.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/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/impl/persistence/hashing/DefaultHashFactory.java index 19c3646c2..e49cf649a 100644 --- a/impl/persistence/api/src/main/java/io/serverlessworkflow/impl/persistence/hashing/DefaultHashFactory.java +++ b/impl/persistence/api/src/main/java/org/openworkflow/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.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.impl.marshaller.WorkflowInputBuffer; +import org.openworkflow.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/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/impl/persistence/hashing/DefaultHashIndex.java index c3feb02c8..0e6a4fdd3 100644 --- a/impl/persistence/api/src/main/java/io/serverlessworkflow/impl/persistence/hashing/DefaultHashIndex.java +++ b/impl/persistence/api/src/main/java/org/openworkflow/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.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/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/impl/persistence/hashing/HashFactory.java index 947095473..588dca125 100644 --- a/impl/persistence/api/src/main/java/io/serverlessworkflow/impl/persistence/hashing/HashFactory.java +++ b/impl/persistence/api/src/main/java/org/openworkflow/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.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.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/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/impl/persistence/hashing/HashIndex.java index 885efba2f..6f06d6dbe 100644 --- a/impl/persistence/api/src/main/java/io/serverlessworkflow/impl/persistence/hashing/HashIndex.java +++ b/impl/persistence/api/src/main/java/org/openworkflow/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.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/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/impl/persistence/hashing/HashItem.java index cedea8a96..0ee713112 100644 --- a/impl/persistence/api/src/main/java/io/serverlessworkflow/impl/persistence/hashing/HashItem.java +++ b/impl/persistence/api/src/main/java/org/openworkflow/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.impl.persistence.hashing; -import io.serverlessworkflow.impl.marshaller.WorkflowOutputBuffer; +import org.openworkflow.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/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/impl/persistence/hashing/HashMappingCoordinator.java index bda83e74a..edf4f567c 100644 --- a/impl/persistence/api/src/main/java/io/serverlessworkflow/impl/persistence/hashing/HashMappingCoordinator.java +++ b/impl/persistence/api/src/main/java/org/openworkflow/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.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/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/impl/persistence/hashing/HashMappingInfo.java index 10e445fb5..a2df9e773 100644 --- a/impl/persistence/api/src/main/java/io/serverlessworkflow/impl/persistence/hashing/HashMappingInfo.java +++ b/impl/persistence/api/src/main/java/org/openworkflow/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.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/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/impl/persistence/hashing/IntegerHashItem.java index c554a8ad8..7233f3157 100644 --- a/impl/persistence/api/src/main/java/io/serverlessworkflow/impl/persistence/hashing/IntegerHashItem.java +++ b/impl/persistence/api/src/main/java/org/openworkflow/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.impl.persistence.hashing; -import io.serverlessworkflow.impl.marshaller.WorkflowInputBuffer; -import io.serverlessworkflow.impl.marshaller.WorkflowOutputBuffer; import java.util.Arrays; +import org.openworkflow.impl.marshaller.WorkflowInputBuffer; +import org.openworkflow.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/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/impl/persistence/hashing/LRUCache.java index 03e952ed4..7f0faad19 100644 --- a/impl/persistence/api/src/main/java/io/serverlessworkflow/impl/persistence/hashing/LRUCache.java +++ b/impl/persistence/api/src/main/java/org/openworkflow/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.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/impl/persistence/hashing/MD5HashItem.java similarity index 86% 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/impl/persistence/hashing/MD5HashItem.java index 753d37f7b..ca22c5f17 100644 --- a/impl/persistence/api/src/main/java/io/serverlessworkflow/impl/persistence/hashing/MD5HashItem.java +++ b/impl/persistence/api/src/main/java/org/openworkflow/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.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.impl.marshaller.WorkflowInputBuffer; +import org.openworkflow.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/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/impl/persistence/metadata/MetaTransient.java index 21ec7c828..eec56074c 100644 --- a/impl/persistence/api/src/main/java/io/serverlessworkflow/impl/persistence/metadata/MetaTransient.java +++ b/impl/persistence/api/src/main/java/org/openworkflow/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.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/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/impl/persistence/metadata/PersistenceMetaUtils.java index d5fede7a9..b07028ccc 100644 --- a/impl/persistence/api/src/main/java/io/serverlessworkflow/impl/persistence/metadata/PersistenceMetaUtils.java +++ b/impl/persistence/api/src/main/java/org/openworkflow/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.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.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/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/impl/persistence/hashing/HashMappingCoordinatorTest.java index 08226b4de..ca9e4ee7a 100644 --- a/impl/persistence/api/src/test/java/io/serverlessworkflow/impl/persistence/hashing/HashMappingCoordinatorTest.java +++ b/impl/persistence/api/src/test/java/org/openworkflow/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.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.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/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/impl/persistence/hashing/LRUCacheTest.java index 2361be008..b4d322d7e 100644 --- a/impl/persistence/api/src/test/java/io/serverlessworkflow/impl/persistence/hashing/LRUCacheTest.java +++ b/impl/persistence/api/src/test/java/org/openworkflow/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.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..fd8f13909 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 + 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 + 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/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/impl/persistence/bigmap/BigMapInstanceTransaction.java index 635d392e0..8ade0291d 100644 --- a/impl/persistence/bigmap/src/main/java/io/serverlessworkflow/impl/persistence/bigmap/BigMapInstanceTransaction.java +++ b/impl/persistence/bigmap/src/main/java/org/openworkflow/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.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.impl.TaskContext; +import org.openworkflow.impl.TaskContextData; +import org.openworkflow.impl.WorkflowContextData; +import org.openworkflow.impl.WorkflowDefinition; +import org.openworkflow.impl.WorkflowDefinitionData; +import org.openworkflow.impl.WorkflowInstanceData; +import org.openworkflow.impl.WorkflowStatus; +import org.openworkflow.impl.persistence.PersistenceInstanceInfo; +import org.openworkflow.impl.persistence.PersistenceInstanceTransaction; +import org.openworkflow.impl.persistence.PersistenceTaskInfo; +import org.openworkflow.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/impl/persistence/bigmap/BytesMapInstanceTransaction.java similarity index 89% 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/impl/persistence/bigmap/BytesMapInstanceTransaction.java index 7c1060ae6..b6ed3edb0 100644 --- a/impl/persistence/bigmap/src/main/java/io/serverlessworkflow/impl/persistence/bigmap/BytesMapInstanceTransaction.java +++ b/impl/persistence/bigmap/src/main/java/org/openworkflow/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.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.impl.TaskContext; +import org.openworkflow.impl.WorkflowContextData; +import org.openworkflow.impl.WorkflowInstanceData; +import org.openworkflow.impl.WorkflowModel; +import org.openworkflow.impl.WorkflowStatus; +import org.openworkflow.impl.executors.AbstractTaskExecutor; +import org.openworkflow.impl.executors.TransitionInfo; +import org.openworkflow.impl.marshaller.MarshallingUtils; +import org.openworkflow.impl.marshaller.TaskStatus; +import org.openworkflow.impl.marshaller.WorkflowBufferFactory; +import org.openworkflow.impl.marshaller.WorkflowInputBuffer; +import org.openworkflow.impl.marshaller.WorkflowOutputBuffer; +import org.openworkflow.impl.persistence.CompletedTaskInfo; +import org.openworkflow.impl.persistence.PersistenceInstanceInfo; +import org.openworkflow.impl.persistence.PersistenceTaskInfo; +import org.openworkflow.impl.persistence.RetriedTaskInfo; +import org.openworkflow.impl.persistence.hashing.HashFactory; +import org.openworkflow.impl.persistence.hashing.HashIndex; +import org.openworkflow.impl.persistence.hashing.HashItem; +import org.openworkflow.impl.persistence.hashing.HashMappingCoordinator; +import org.openworkflow.impl.persistence.hashing.HashMappingInfo; +import org.openworkflow.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..11f17068b 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) -# 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..2412c2dbf 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 + 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 + openworkflow-persistence-big-map - io.serverlessworkflow - serverlessworkflow-persistence-tests + org.openworkflow + 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/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/impl/persistence/mvstore/MVStorePersistenceStore.java index 292942bc7..d41cac678 100644 --- a/impl/persistence/mvstore/src/main/java/io/serverlessworkflow/impl/persistence/mvstore/MVStorePersistenceStore.java +++ b/impl/persistence/mvstore/src/main/java/org/openworkflow/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.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.impl.WorkflowUtils; +import org.openworkflow.impl.marshaller.DefaultBufferFactory; +import org.openworkflow.impl.marshaller.WorkflowBufferFactory; +import org.openworkflow.impl.persistence.PersistenceInstanceStore; +import org.openworkflow.impl.persistence.bigmap.BigMapInstanceTransaction; +import org.openworkflow.impl.persistence.hashing.DefaultHashFactory; +import org.openworkflow.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/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/impl/persistence/mvstore/MVStoreTransaction.java index ae63f4fce..5473a996b 100644 --- a/impl/persistence/mvstore/src/main/java/io/serverlessworkflow/impl/persistence/mvstore/MVStoreTransaction.java +++ b/impl/persistence/mvstore/src/main/java/org/openworkflow/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.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.api.types.Document; +import org.openworkflow.api.types.Workflow; +import org.openworkflow.impl.WorkflowDefinitionData; +import org.openworkflow.impl.marshaller.WorkflowBufferFactory; +import org.openworkflow.impl.persistence.bigmap.BytesMapInstanceTransaction; +import org.openworkflow.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/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/impl/persistence/mvstore/HashingMVStorePersistenceTest.java index 0217940de..91ae72d01 100644 --- a/impl/persistence/mvstore/src/test/java/io/serverlessworkflow/impl/persistence/mvstore/HashingMVStorePersistenceTest.java +++ b/impl/persistence/mvstore/src/test/java/org/openworkflow/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.impl.persistence.mvstore; -import io.serverlessworkflow.impl.persistence.hashing.DefaultHashFactory; -import io.serverlessworkflow.impl.persistence.hashing.HashFactory; +import org.openworkflow.impl.persistence.hashing.DefaultHashFactory; +import org.openworkflow.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/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/impl/persistence/mvstore/MD5MVStorePersistenceTest.java index 6dca19f1a..268173ece 100644 --- a/impl/persistence/mvstore/src/test/java/io/serverlessworkflow/impl/persistence/mvstore/MD5MVStorePersistenceTest.java +++ b/impl/persistence/mvstore/src/test/java/org/openworkflow/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.impl.persistence.mvstore; -import io.serverlessworkflow.impl.persistence.hashing.DefaultHashFactory; -import io.serverlessworkflow.impl.persistence.hashing.HashFactory; +import org.openworkflow.impl.persistence.hashing.DefaultHashFactory; +import org.openworkflow.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/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/impl/persistence/mvstore/MVStoreCorrelationTest.java index 62a28c1b3..30beea8e9 100644 --- a/impl/persistence/mvstore/src/test/java/io/serverlessworkflow/impl/persistence/mvstore/MVStoreCorrelationTest.java +++ b/impl/persistence/mvstore/src/test/java/org/openworkflow/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.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.impl.persistence.PersistenceInstanceStore; +import org.openworkflow.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/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/impl/persistence/mvstore/MVStorePersistenceStoreTest.java index adfb7048e..7bc0af639 100644 --- a/impl/persistence/mvstore/src/test/java/io/serverlessworkflow/impl/persistence/mvstore/MVStorePersistenceStoreTest.java +++ b/impl/persistence/mvstore/src/test/java/org/openworkflow/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.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.impl.marshaller.DefaultBufferFactory; +import org.openworkflow.impl.persistence.PersistenceInstanceStore; +import org.openworkflow.impl.persistence.hashing.DefaultHashFactory; +import org.openworkflow.impl.persistence.hashing.HashFactory; +import org.openworkflow.impl.persistence.test.AbstractPersistenceTest; class MVStorePersistenceStoreTest extends AbstractPersistenceTest { diff --git a/impl/persistence/pom.xml b/impl/persistence/pom.xml index 1dbe8e3ba..bd4693167 100644 --- a/impl/persistence/pom.xml +++ b/impl/persistence/pom.xml @@ -1,12 +1,12 @@ 4.0.0 - io.serverlessworkflow - serverlessworkflow-impl + org.openworkflow + 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..66e8e5d18 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 + 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 + openworkflow-persistence-api - io.serverlessworkflow - serverlessworkflow-impl-jackson + org.openworkflow + openworkflow-impl-jackson - io.serverlessworkflow - serverlessworkflow-api + org.openworkflow + 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/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/impl/persistence/test/AbstractCorrelationPersistenceTest.java index 4b4ea53ed..1c07786b1 100644 --- a/impl/persistence/tests/src/main/java/io/serverlessworkflow/impl/persistence/test/AbstractCorrelationPersistenceTest.java +++ b/impl/persistence/tests/src/main/java/org/openworkflow/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.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.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.impl.WorkflowApplication; +import org.openworkflow.impl.WorkflowDefinition; +import org.openworkflow.impl.WorkflowInstance; +import org.openworkflow.impl.WorkflowStatus; +import org.openworkflow.impl.events.InMemoryEvents; +import org.openworkflow.impl.jackson.JsonUtils; +import org.openworkflow.impl.persistence.AsyncPersistenceExecutor; +import org.openworkflow.impl.persistence.PersistenceExecutor; +import org.openworkflow.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/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/impl/persistence/test/AbstractHandlerPersistenceTest.java index 339656712..c5cc1195e 100644 --- a/impl/persistence/tests/src/main/java/io/serverlessworkflow/impl/persistence/test/AbstractHandlerPersistenceTest.java +++ b/impl/persistence/tests/src/main/java/org/openworkflow/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.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.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.api.types.TaskBase; +import org.openworkflow.api.types.TryTask; +import org.openworkflow.impl.TaskContext; +import org.openworkflow.impl.TaskContextData; +import org.openworkflow.impl.WorkflowApplication; +import org.openworkflow.impl.WorkflowContext; +import org.openworkflow.impl.WorkflowContextData; +import org.openworkflow.impl.WorkflowDefinition; +import org.openworkflow.impl.WorkflowInstance; +import org.openworkflow.impl.WorkflowInstanceData; +import org.openworkflow.impl.WorkflowModel; +import org.openworkflow.impl.WorkflowMutablePosition; +import org.openworkflow.impl.WorkflowPosition; +import org.openworkflow.impl.WorkflowUtils; +import org.openworkflow.impl.executors.TransitionInfo; +import org.openworkflow.impl.persistence.PersistenceInstanceHandlers; +import org.openworkflow.impl.persistence.WorkflowPersistenceInstance; +import org.openworkflow.impl.persistence.hashing.DefaultHashFactory; +import org.openworkflow.impl.persistence.hashing.HashFactory; +import org.openworkflow.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/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/impl/persistence/test/AbstractOperationsCorrelationPersistenceTest.java index 57699082f..d50a76aea 100644 --- a/impl/persistence/tests/src/main/java/io/serverlessworkflow/impl/persistence/test/AbstractOperationsCorrelationPersistenceTest.java +++ b/impl/persistence/tests/src/main/java/org/openworkflow/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.impl.persistence.test; -import io.serverlessworkflow.impl.persistence.PersistenceAllStrategyCorrelationInfoFactories; -import io.serverlessworkflow.impl.persistence.PersistenceInstanceOperations; -import io.serverlessworkflow.impl.scheduler.AllStrategyCorrelationInfoFactory; +import org.openworkflow.impl.persistence.PersistenceAllStrategyCorrelationInfoFactories; +import org.openworkflow.impl.persistence.PersistenceInstanceOperations; +import org.openworkflow.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/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/impl/persistence/test/AbstractPersistenceTest.java index f791c3174..bedb0f72a 100644 --- a/impl/persistence/tests/src/main/java/io/serverlessworkflow/impl/persistence/test/AbstractPersistenceTest.java +++ b/impl/persistence/tests/src/main/java/org/openworkflow/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.impl.persistence.test; -import io.serverlessworkflow.impl.persistence.DefaultPersistenceInstanceHandlers; -import io.serverlessworkflow.impl.persistence.PersistenceInstanceHandlers; -import io.serverlessworkflow.impl.persistence.PersistenceInstanceStore; +import org.openworkflow.impl.persistence.DefaultPersistenceInstanceHandlers; +import org.openworkflow.impl.persistence.PersistenceInstanceHandlers; +import org.openworkflow.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/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/impl/persistence/test/AbstractStoreCorrelationPersistenceTest.java index 80c479bd3..8368f71f6 100644 --- a/impl/persistence/tests/src/main/java/io/serverlessworkflow/impl/persistence/test/AbstractStoreCorrelationPersistenceTest.java +++ b/impl/persistence/tests/src/main/java/org/openworkflow/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.impl.persistence.test; -import io.serverlessworkflow.impl.persistence.PersistenceAllStrategyCorrelationInfoFactories; -import io.serverlessworkflow.impl.persistence.PersistenceInstanceStore; -import io.serverlessworkflow.impl.scheduler.AllStrategyCorrelationInfoFactory; +import org.openworkflow.impl.persistence.PersistenceAllStrategyCorrelationInfoFactories; +import org.openworkflow.impl.persistence.PersistenceInstanceStore; +import org.openworkflow.impl.scheduler.AllStrategyCorrelationInfoFactory; public abstract class AbstractStoreCorrelationPersistenceTest extends AbstractCorrelationPersistenceTest { diff --git a/impl/pom.xml b/impl/pom.xml index 74df45035..faf8a6b64 100644 --- a/impl/pom.xml +++ b/impl/pom.xml @@ -1,12 +1,12 @@ 4.0.0 - io.serverlessworkflow - serverlessworkflow-parent + org.openworkflow + 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 + openworkflow-impl-core ${project.version} - io.serverlessworkflow - serverlessworkflow-impl-http + org.openworkflow + openworkflow-impl-http ${project.version} - io.serverlessworkflow - serverlessworkflow-impl-template-resolver + org.openworkflow + openworkflow-impl-template-resolver ${project.version} - io.serverlessworkflow - serverlessworkflow-impl-json + org.openworkflow + openworkflow-impl-json ${project.version} - io.serverlessworkflow - serverlessworkflow-impl-jq + org.openworkflow + openworkflow-impl-jq ${project.version} - io.serverlessworkflow - serverlessworkflow-impl-model + org.openworkflow + openworkflow-impl-model ${project.version} - io.serverlessworkflow - serverlessworkflow-impl-validation + org.openworkflow + openworkflow-impl-validation ${project.version} - io.serverlessworkflow - serverlessworkflow-impl-function + org.openworkflow + openworkflow-impl-function ${project.version} - io.serverlessworkflow - serverlessworkflow-impl-lifecycle-events + org.openworkflow + openworkflow-impl-lifecycle-events ${project.version} - io.serverlessworkflow - serverlessworkflow-persistence-api + org.openworkflow + openworkflow-persistence-api ${project.version} - io.serverlessworkflow - serverlessworkflow-persistence-big-map + org.openworkflow + openworkflow-persistence-big-map ${project.version} - io.serverlessworkflow - serverlessworkflow-persistence-tests + org.openworkflow + openworkflow-persistence-tests ${project.version} test - io.serverlessworkflow - serverlessworkflow-persistence-mvstore + org.openworkflow + openworkflow-persistence-mvstore ${project.version} - io.serverlessworkflow - serverlessworkflow-impl-jackson-jwt + org.openworkflow + openworkflow-impl-jackson-jwt ${project.version} - io.serverlessworkflow - serverlessworkflow-impl-jackson + org.openworkflow + openworkflow-impl-jackson ${project.version} - io.serverlessworkflow - serverlessworkflow-impl-openapi-base + org.openworkflow + openworkflow-impl-openapi-base ${project.version} - io.serverlessworkflow - serverlessworkflow-impl-openapi-base + org.openworkflow + openworkflow-impl-openapi-base ${project.version} test-jar test - io.serverlessworkflow - serverlessworkflow-impl-openapi + org.openworkflow + openworkflow-impl-openapi ${project.version} - io.serverlessworkflow - serverlessworkflow-impl-container + org.openworkflow + openworkflow-impl-container ${project.version} - io.serverlessworkflow - serverlessworkflow-impl-grpc + org.openworkflow + openworkflow-impl-grpc ${project.version} - io.serverlessworkflow - serverlessworkflow-impl-a2a + org.openworkflow + openworkflow-impl-a2a ${project.version} - io.serverlessworkflow - serverlessworkflow-impl-cron + org.openworkflow + openworkflow-impl-cron ${project.version} @@ -168,13 +168,13 @@ ${version.com.h2database} - io.serverlessworkflow - serverlessworkflow-impl-script-js + org.openworkflow + openworkflow-impl-script-js ${project.version} - io.serverlessworkflow - serverlessworkflow-impl-script-python + org.openworkflow + openworkflow-impl-script-python ${project.version} diff --git a/impl/python/pom.xml b/impl/python/pom.xml index 13d7c4d2b..2e871d369 100644 --- a/impl/python/pom.xml +++ b/impl/python/pom.xml @@ -1,16 +1,16 @@ 4.0.0 - io.serverlessworkflow - serverlessworkflow-impl + org.openworkflow + 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 + 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/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/impl/executors/script/python/PythonScriptTaskRunner.java index d7129090f..90c22fbde 100644 --- a/impl/python/src/main/java/io/serverlessworkflow/impl/executors/script/python/PythonScriptTaskRunner.java +++ b/impl/python/src/main/java/org/openworkflow/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.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.impl.TaskContext; +import org.openworkflow.impl.WorkflowContext; +import org.openworkflow.impl.WorkflowModel; +import org.openworkflow.impl.scripts.ScriptContext; +import org.openworkflow.impl.scripts.ScriptLanguageId; +import org.openworkflow.impl.scripts.ScriptRunner; +import org.openworkflow.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.impl.scripts.ScriptRunner b/impl/python/src/main/resources/META-INF/services/org.openworkflow.impl.scripts.ScriptRunner new file mode 100644 index 000000000..6d2ff2078 --- /dev/null +++ b/impl/python/src/main/resources/META-INF/services/org.openworkflow.impl.scripts.ScriptRunner @@ -0,0 +1 @@ +org.openworkflow.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..940ec0745 100644 --- a/impl/template/pom.xml +++ b/impl/template/pom.xml @@ -2,13 +2,13 @@ 4.0.0 - io.serverlessworkflow - serverlessworkflow-impl + org.openworkflow + 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 + 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/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/impl/template/JaxrsURITemplateResolver.java index a205211a5..2b29321f1 100644 --- a/impl/template/src/main/java/io/serverlessworkflow/impl/template/JaxrsURITemplateResolver.java +++ b/impl/template/src/main/java/org/openworkflow/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.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.impl.TaskContext; +import org.openworkflow.impl.WorkflowContext; +import org.openworkflow.impl.WorkflowModel; +import org.openworkflow.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.impl.resources.URITemplateResolver b/impl/template/src/main/resources/META-INF/services/org.openworkflow.impl.resources.URITemplateResolver new file mode 100644 index 000000000..c74b3fab0 --- /dev/null +++ b/impl/template/src/main/resources/META-INF/services/org.openworkflow.impl.resources.URITemplateResolver @@ -0,0 +1 @@ +org.openworkflow.impl.template.JaxrsURITemplateResolver \ No newline at end of file diff --git a/impl/test/pom.xml b/impl/test/pom.xml index 7c8fcbd88..6f842ced8 100644 --- a/impl/test/pom.xml +++ b/impl/test/pom.xml @@ -1,70 +1,70 @@ 4.0.0 - io.serverlessworkflow - serverlessworkflow-impl + org.openworkflow + 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 + openworkflow-impl-jackson - io.serverlessworkflow - serverlessworkflow-api + org.openworkflow + openworkflow-api - io.serverlessworkflow - serverlessworkflow-fluent-spec + org.openworkflow + openworkflow-fluent-spec ${project.version} test - io.serverlessworkflow - serverlessworkflow-persistence-mvstore + org.openworkflow + openworkflow-persistence-mvstore - io.serverlessworkflow - serverlessworkflow-impl-http + org.openworkflow + openworkflow-impl-http - io.serverlessworkflow - serverlessworkflow-impl-jackson-jwt + org.openworkflow + openworkflow-impl-jackson-jwt - io.serverlessworkflow - serverlessworkflow-impl-script-js + org.openworkflow + openworkflow-impl-script-js - io.serverlessworkflow - serverlessworkflow-impl-script-python + org.openworkflow + openworkflow-impl-script-python - io.serverlessworkflow - serverlessworkflow-impl-a2a + org.openworkflow + openworkflow-impl-a2a org.glassfish.jersey.media jersey-media-json-jackson - io.serverlessworkflow - serverlessworkflow-impl-openapi + org.openworkflow + openworkflow-impl-openapi - io.serverlessworkflow - serverlessworkflow-impl-container + org.openworkflow + openworkflow-impl-container - io.serverlessworkflow - serverlessworkflow-impl-grpc + org.openworkflow + openworkflow-impl-grpc - io.serverlessworkflow - serverlessworkflow-impl-cron + org.openworkflow + openworkflow-impl-cron org.glassfish.jersey.core @@ -174,7 +174,7 @@ java - io.serverlessworkflow.impl.test.DBGenerator + org.openworkflow.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/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/impl/auth/OAuthRequestBuilderTest.java index 2992032f4..3336b3489 100644 --- a/impl/test/src/test/java/io/serverlessworkflow/impl/auth/OAuthRequestBuilderTest.java +++ b/impl/test/src/test/java/org/openworkflow/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.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.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.api.types.OAuth2AuthenticationDataClient; +import org.openworkflow.api.types.OAuth2AuthenticationPropertiesEndpoints; +import org.openworkflow.api.types.OAuth2ConnectAuthenticationProperties; +import org.openworkflow.api.types.UriTemplate; +import org.openworkflow.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/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/impl/test/A2AExecutorTest.java index 136083cbc..beb69ffe3 100644 --- a/impl/test/src/test/java/io/serverlessworkflow/impl/test/A2AExecutorTest.java +++ b/impl/test/src/test/java/org/openworkflow/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.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.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.impl.WorkflowApplication; +import org.openworkflow.impl.WorkflowDefinition; +import org.openworkflow.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/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/impl/test/AccessTokenProvider.java index 6d8570ec4..b4dcf7c0e 100644 --- a/impl/test/src/test/java/io/serverlessworkflow/impl/test/AccessTokenProvider.java +++ b/impl/test/src/test/java/org/openworkflow/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.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/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/impl/test/BasicAuthHttpTest.java index d0d627e8b..19c66f4c6 100644 --- a/impl/test/src/test/java/io/serverlessworkflow/impl/test/BasicAuthHttpTest.java +++ b/impl/test/src/test/java/org/openworkflow/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.impl.test; -import static io.serverlessworkflow.api.WorkflowReader.readWorkflowFromClasspath; import static org.assertj.core.api.Assertions.assertThat; +import static org.openworkflow.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.api.types.Workflow; +import org.openworkflow.impl.WorkflowApplication; +import org.openworkflow.impl.WorkflowInstance; +import org.openworkflow.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/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/impl/test/CancelMetadataTest.java index 737479a66..09f98f1bc 100644 --- a/impl/test/src/test/java/io/serverlessworkflow/impl/test/CancelMetadataTest.java +++ b/impl/test/src/test/java/org/openworkflow/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.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.api.WorkflowReader; +import org.openworkflow.impl.WorkflowApplication; +import org.openworkflow.impl.WorkflowDefinition; +import org.openworkflow.impl.WorkflowInstance; +import org.openworkflow.impl.WorkflowModel; +import org.openworkflow.impl.WorkflowStatus; +import org.openworkflow.impl.lifecycle.EventType; +import org.openworkflow.impl.lifecycle.TaskCancelledEvent; +import org.openworkflow.impl.lifecycle.TaskCompletedEvent; +import org.openworkflow.impl.lifecycle.TaskFailedEvent; +import org.openworkflow.impl.lifecycle.WorkflowCancelledEvent; +import org.openworkflow.impl.lifecycle.WorkflowCompletedEvent; +import org.openworkflow.impl.lifecycle.WorkflowEvent; +import org.openworkflow.impl.lifecycle.WorkflowExecutionCompletableListener; +import org.openworkflow.impl.lifecycle.WorkflowExecutionListener; +import org.openworkflow.impl.lifecycle.WorkflowFailedEvent; +import org.openworkflow.impl.lifecycle.WorkflowStartedEvent; +import org.openworkflow.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/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/impl/test/ContainerTest.java index 70471a2bb..b9957db5f 100644 --- a/impl/test/src/test/java/io/serverlessworkflow/impl/test/ContainerTest.java +++ b/impl/test/src/test/java/org/openworkflow/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.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.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.api.types.Workflow; +import org.openworkflow.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/impl/test/CoreTaskTypesTest.java similarity index 96% rename from impl/test/src/test/java/io/serverlessworkflow/impl/test/CoreTaskTypesTest.java rename to impl/test/src/test/java/org/openworkflow/impl/test/CoreTaskTypesTest.java index 4f55205bf..8954f9f5e 100644 --- a/impl/test/src/test/java/io/serverlessworkflow/impl/test/CoreTaskTypesTest.java +++ b/impl/test/src/test/java/org/openworkflow/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.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.api.WorkflowReader.readWorkflowFromClasspath; +import static org.openworkflow.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.api.types.FlowDirectiveEnum; +import org.openworkflow.api.types.Workflow; +import org.openworkflow.fluent.spec.SetTaskBuilder; +import org.openworkflow.fluent.spec.WorkflowBuilder; +import org.openworkflow.impl.WorkflowApplication; +import org.openworkflow.impl.WorkflowDefinitionId; +import org.openworkflow.impl.WorkflowException; +import org.openworkflow.impl.WorkflowInstance; +import org.openworkflow.impl.WorkflowModel; +import org.openworkflow.impl.jackson.JsonUtils; @SuppressWarnings("unchecked") class CoreTaskTypesTest { diff --git a/impl/test/src/test/java/io/serverlessworkflow/impl/test/CorrelationTest.java b/impl/test/src/test/java/org/openworkflow/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/impl/test/CorrelationTest.java index 25cc1b86e..ce7f35b00 100644 --- a/impl/test/src/test/java/io/serverlessworkflow/impl/test/CorrelationTest.java +++ b/impl/test/src/test/java/org/openworkflow/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.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.api.WorkflowReader.readWorkflowFromClasspath; +import static org.openworkflow.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.api.types.Workflow; +import org.openworkflow.fluent.spec.WorkflowBuilder; +import org.openworkflow.impl.WorkflowApplication; +import org.openworkflow.impl.WorkflowDefinition; +import org.openworkflow.impl.WorkflowInstance; +import org.openworkflow.impl.WorkflowModel; +import org.openworkflow.impl.WorkflowStatus; +import org.openworkflow.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/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/impl/test/CustomAuthProviderFactoryOverrideTest.java index d454b954e..23e5b3e0a 100644 --- a/impl/test/src/test/java/io/serverlessworkflow/impl/test/CustomAuthProviderFactoryOverrideTest.java +++ b/impl/test/src/test/java/org/openworkflow/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.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.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.api.types.EndpointConfiguration; +import org.openworkflow.api.types.ReferenceableAuthenticationPolicy; +import org.openworkflow.api.types.Workflow; +import org.openworkflow.impl.TaskContext; +import org.openworkflow.impl.WorkflowApplication; +import org.openworkflow.impl.WorkflowContext; +import org.openworkflow.impl.WorkflowDefinition; +import org.openworkflow.impl.WorkflowModel; +import org.openworkflow.impl.auth.AuthProvider; +import org.openworkflow.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/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/impl/test/CustomFunctionTest.java index f21107a10..decdfd9a3 100644 --- a/impl/test/src/test/java/io/serverlessworkflow/impl/test/CustomFunctionTest.java +++ b/impl/test/src/test/java/org/openworkflow/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.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.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.impl.WorkflowApplication; +import org.openworkflow.impl.WorkflowException; +import org.openworkflow.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/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/impl/test/DBGenerator.java index d8273b3c4..19b62d4da 100644 --- a/impl/test/src/test/java/io/serverlessworkflow/impl/test/DBGenerator.java +++ b/impl/test/src/test/java/org/openworkflow/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.impl.test; -import static io.serverlessworkflow.api.WorkflowReader.readWorkflowFromClasspath; +import static org.openworkflow.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.impl.WorkflowApplication; +import org.openworkflow.impl.WorkflowDefinition; +import org.openworkflow.impl.WorkflowInstance; +import org.openworkflow.impl.lifecycle.TraceExecutionListener; +import org.openworkflow.impl.persistence.DefaultPersistenceInstanceHandlers; +import org.openworkflow.impl.persistence.PersistenceApplicationBuilder; +import org.openworkflow.impl.persistence.PersistenceInstanceHandlers; +import org.openworkflow.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/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/impl/test/DateTimeDescriptorTest.java index 09e4af565..698f776a8 100644 --- a/impl/test/src/test/java/io/serverlessworkflow/impl/test/DateTimeDescriptorTest.java +++ b/impl/test/src/test/java/org/openworkflow/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.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.impl.expressions.DateTimeDescriptor; +import org.openworkflow.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/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/impl/test/DigestAuthHttpTest.java index 559e2640b..43b1f5597 100644 --- a/impl/test/src/test/java/io/serverlessworkflow/impl/test/DigestAuthHttpTest.java +++ b/impl/test/src/test/java/org/openworkflow/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.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.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.api.types.Workflow; +import org.openworkflow.impl.WorkflowApplication; +import org.openworkflow.impl.WorkflowInstance; +import org.openworkflow.impl.jackson.JsonUtils; +import org.openworkflow.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/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/impl/test/EmitExecutorTest.java index 27c457eb8..dc79325e4 100644 --- a/impl/test/src/test/java/io/serverlessworkflow/impl/test/EmitExecutorTest.java +++ b/impl/test/src/test/java/org/openworkflow/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.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.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.api.types.Workflow; +import org.openworkflow.fluent.spec.EventPropertiesBuilder; +import org.openworkflow.fluent.spec.WorkflowBuilder; +import org.openworkflow.impl.WorkflowApplication; +import org.openworkflow.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/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/impl/test/EventDefinitionTest.java index 70f5103b2..7b577db20 100644 --- a/impl/test/src/test/java/io/serverlessworkflow/impl/test/EventDefinitionTest.java +++ b/impl/test/src/test/java/org/openworkflow/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.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.api.WorkflowReader; +import org.openworkflow.impl.WorkflowApplication; +import org.openworkflow.impl.WorkflowDefinition; +import org.openworkflow.impl.WorkflowInstance; +import org.openworkflow.impl.WorkflowModel; +import org.openworkflow.impl.WorkflowStatus; +import org.openworkflow.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/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/impl/test/ForTaskMissingInTest.java index 88c3a7a9b..8703449c7 100644 --- a/impl/test/src/test/java/io/serverlessworkflow/impl/test/ForTaskMissingInTest.java +++ b/impl/test/src/test/java/org/openworkflow/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.impl.test; -import static io.serverlessworkflow.fluent.spec.dsl.DSL.*; import static org.assertj.core.api.Assertions.assertThatThrownBy; +import static org.openworkflow.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.api.types.Workflow; +import org.openworkflow.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/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/impl/test/ForkWaitTest.java index 488d595c4..3183f9d76 100644 --- a/impl/test/src/test/java/io/serverlessworkflow/impl/test/ForkWaitTest.java +++ b/impl/test/src/test/java/org/openworkflow/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.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.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.api.types.Workflow; +import org.openworkflow.fluent.spec.WorkflowBuilder; +import org.openworkflow.fluent.spec.dsl.DSL; +import org.openworkflow.impl.WorkflowApplication; +import org.openworkflow.impl.WorkflowDefinitionId; +import org.openworkflow.impl.WorkflowInstance; +import org.openworkflow.impl.WorkflowModel; +import org.openworkflow.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/impl/test/HTTPWorkflowDefinitionTest.java similarity index 97% rename from impl/test/src/test/java/io/serverlessworkflow/impl/test/HTTPWorkflowDefinitionTest.java rename to impl/test/src/test/java/org/openworkflow/impl/test/HTTPWorkflowDefinitionTest.java index e21f53e1e..050cc393a 100644 --- a/impl/test/src/test/java/io/serverlessworkflow/impl/test/HTTPWorkflowDefinitionTest.java +++ b/impl/test/src/test/java/org/openworkflow/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.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.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.impl.WorkflowApplication; +import org.openworkflow.impl.WorkflowError; +import org.openworkflow.impl.WorkflowException; +import org.openworkflow.impl.WorkflowModel; +import org.openworkflow.types.Errors; import org.slf4j.Logger; import org.slf4j.LoggerFactory; diff --git a/impl/test/src/test/java/io/serverlessworkflow/impl/test/LifeCycleEventsTest.java b/impl/test/src/test/java/org/openworkflow/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/impl/test/LifeCycleEventsTest.java index a3df1c0c1..7507d26c1 100644 --- a/impl/test/src/test/java/io/serverlessworkflow/impl/test/LifeCycleEventsTest.java +++ b/impl/test/src/test/java/org/openworkflow/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.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.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.api.WorkflowReader; +import org.openworkflow.api.types.Workflow; +import org.openworkflow.fluent.spec.WorkflowBuilder; +import org.openworkflow.fluent.spec.dsl.DSL; +import org.openworkflow.impl.WorkflowApplication; +import org.openworkflow.impl.WorkflowDefinition; +import org.openworkflow.impl.WorkflowDefinitionId; +import org.openworkflow.impl.WorkflowError; +import org.openworkflow.impl.WorkflowInstance; +import org.openworkflow.impl.WorkflowModel; +import org.openworkflow.impl.WorkflowStatus; +import org.openworkflow.impl.events.InMemoryEvents; +import org.openworkflow.impl.lifecycle.ce.AbstractLifeCyclePublisher; +import org.openworkflow.impl.lifecycle.ce.InputOutputLifeCycleCloudEventFactory; +import org.openworkflow.impl.lifecycle.ce.TaskCancelledCEData; +import org.openworkflow.impl.lifecycle.ce.TaskCompletedCEDataWithOutput; +import org.openworkflow.impl.lifecycle.ce.TaskStartedCEData; +import org.openworkflow.impl.lifecycle.ce.WorkflowCancelledCEData; +import org.openworkflow.impl.lifecycle.ce.WorkflowCompletedCEDataWithOutput; +import org.openworkflow.impl.lifecycle.ce.WorkflowFailedCEData; +import org.openworkflow.impl.lifecycle.ce.WorkflowResumedCEData; +import org.openworkflow.impl.lifecycle.ce.WorkflowStartedCEData; +import org.openworkflow.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,8 +222,7 @@ void testError() throws IOException { () -> appl.workflowDefinition(workflow).instance(Map.of()).start().join())) .isNotNull(); WorkflowError error = - assertPojoInCE("io.serverlessworkflow.workflow.faulted.v1", WorkflowFailedCEData.class) - .error(); + assertPojoInCE("org.openworkflow.workflow.faulted.v1", WorkflowFailedCEData.class).error(); assertThat(error.type()).isEqualTo("https://serverlessworkflow.io/errors/not-implemented"); assertThat(error.title()).isEqualTo("Not Implemented"); assertThat(error.status()).isEqualTo(500); diff --git a/impl/test/src/test/java/io/serverlessworkflow/impl/test/MvStorePersistenceTest.java b/impl/test/src/test/java/org/openworkflow/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/impl/test/MvStorePersistenceTest.java index 5d0143f0c..a4086a110 100644 --- a/impl/test/src/test/java/io/serverlessworkflow/impl/test/MvStorePersistenceTest.java +++ b/impl/test/src/test/java/org/openworkflow/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.impl.test; -import static io.serverlessworkflow.api.WorkflowReader.readWorkflowFromClasspath; import static org.assertj.core.api.Assertions.assertThat; +import static org.openworkflow.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.impl.WorkflowApplication; +import org.openworkflow.impl.WorkflowDefinition; +import org.openworkflow.impl.WorkflowInstance; +import org.openworkflow.impl.WorkflowStatus; +import org.openworkflow.impl.lifecycle.TraceExecutionListener; +import org.openworkflow.impl.persistence.DefaultPersistenceInstanceHandlers; +import org.openworkflow.impl.persistence.PersistenceApplicationBuilder; +import org.openworkflow.impl.persistence.PersistenceInstanceHandlers; +import org.openworkflow.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/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/impl/test/OAuthHTTPWorkflowDefinitionTest.java index a6adf32c0..86f4021e1 100644 --- a/impl/test/src/test/java/io/serverlessworkflow/impl/test/OAuthHTTPWorkflowDefinitionTest.java +++ b/impl/test/src/test/java/org/openworkflow/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.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.api.WorkflowReader.readWorkflowFromClasspath; +import static org.openworkflow.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.api.types.Workflow; +import org.openworkflow.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/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/impl/test/OAuthUtilsTest.java index 69dbf7f20..f5c30beaa 100644 --- a/impl/test/src/test/java/io/serverlessworkflow/impl/test/OAuthUtilsTest.java +++ b/impl/test/src/test/java/org/openworkflow/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.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.api.types.AuthenticationPolicyUnion; +import org.openworkflow.api.types.BasicAuthenticationPolicy; +import org.openworkflow.api.types.OAuth2AuthenticationData; +import org.openworkflow.api.types.OAuth2AuthenticationPolicy; +import org.openworkflow.api.types.OAuth2AuthenticationPolicyConfiguration; +import org.openworkflow.api.types.OAuth2ConnectAuthenticationProperties; +import org.openworkflow.api.types.OpenIdConnectAuthenticationPolicy; +import org.openworkflow.api.types.OpenIdConnectAuthenticationPolicyConfiguration; +import org.openworkflow.api.types.SecretBasedAuthenticationPolicy; +import org.openworkflow.impl.auth.OAuthPolicyData; +import org.openworkflow.impl.auth.OAuthScheme; +import org.openworkflow.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/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/impl/test/OpenAPITest.java index e7e9a3310..8224fcf4d 100644 --- a/impl/test/src/test/java/io/serverlessworkflow/impl/test/OpenAPITest.java +++ b/impl/test/src/test/java/org/openworkflow/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.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.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.api.types.Workflow; +import org.openworkflow.impl.WorkflowApplication; +import org.openworkflow.impl.WorkflowDefinition; +import org.openworkflow.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/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/impl/test/OpenIDCHTTPWorkflowDefinitionTest.java index 878004950..29756e60c 100644 --- a/impl/test/src/test/java/io/serverlessworkflow/impl/test/OpenIDCHTTPWorkflowDefinitionTest.java +++ b/impl/test/src/test/java/org/openworkflow/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.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.api.WorkflowReader.readWorkflowFromClasspath; +import static org.openworkflow.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.api.types.Workflow; +import org.openworkflow.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/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/impl/test/ResolvePolicyTest.java index 7bd45b303..38307675f 100644 --- a/impl/test/src/test/java/io/serverlessworkflow/impl/test/ResolvePolicyTest.java +++ b/impl/test/src/test/java/org/openworkflow/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.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.api.types.AuthenticationPolicyReference; +import org.openworkflow.api.types.AuthenticationPolicyUnion; +import org.openworkflow.api.types.BearerAuthenticationPolicy; +import org.openworkflow.api.types.BearerAuthenticationPolicyConfiguration; +import org.openworkflow.api.types.BearerAuthenticationProperties; +import org.openworkflow.api.types.ReferenceableAuthenticationPolicy; +import org.openworkflow.api.types.Use; +import org.openworkflow.api.types.UseAuthentications; +import org.openworkflow.api.types.Workflow; +import org.openworkflow.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/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/impl/test/RetryTimeoutTest.java index b59974d5b..f2c17839a 100644 --- a/impl/test/src/test/java/io/serverlessworkflow/impl/test/RetryTimeoutTest.java +++ b/impl/test/src/test/java/org/openworkflow/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.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.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.impl.TaskContextData; +import org.openworkflow.impl.WorkflowApplication; +import org.openworkflow.impl.WorkflowException; +import org.openworkflow.impl.WorkflowModel; +import org.openworkflow.impl.jackson.JsonUtils; +import org.openworkflow.impl.lifecycle.TaskCompletedEvent; +import org.openworkflow.impl.lifecycle.TaskEvent; +import org.openworkflow.impl.lifecycle.TaskRetriedEvent; +import org.openworkflow.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/impl/test/RunScriptJavaScriptTest.java similarity index 94% rename from impl/test/src/test/java/io/serverlessworkflow/impl/test/RunScriptJavaScriptTest.java rename to impl/test/src/test/java/org/openworkflow/impl/test/RunScriptJavaScriptTest.java index 7ec221c6e..3cf89b2eb 100644 --- a/impl/test/src/test/java/io/serverlessworkflow/impl/test/RunScriptJavaScriptTest.java +++ b/impl/test/src/test/java/org/openworkflow/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.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.api.WorkflowReader; +import org.openworkflow.api.types.Workflow; +import org.openworkflow.impl.WorkflowApplication; +import org.openworkflow.impl.WorkflowException; +import org.openworkflow.impl.WorkflowModel; public class RunScriptJavaScriptTest { diff --git a/impl/test/src/test/java/io/serverlessworkflow/impl/test/RunShellExecutorTest.java b/impl/test/src/test/java/org/openworkflow/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/impl/test/RunShellExecutorTest.java index a8b4426cf..93746214d 100644 --- a/impl/test/src/test/java/io/serverlessworkflow/impl/test/RunShellExecutorTest.java +++ b/impl/test/src/test/java/org/openworkflow/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.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.api.WorkflowReader; +import org.openworkflow.api.types.Workflow; +import org.openworkflow.impl.WorkflowApplication; +import org.openworkflow.impl.WorkflowModel; +import org.openworkflow.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/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/impl/test/ScheduleEventConsumerTest.java index a28f7a895..2fdffc9bc 100644 --- a/impl/test/src/test/java/io/serverlessworkflow/impl/test/ScheduleEventConsumerTest.java +++ b/impl/test/src/test/java/org/openworkflow/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.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.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.impl.WorkflowApplication; +import org.openworkflow.impl.WorkflowDefinition; +import org.openworkflow.impl.WorkflowInstance; +import org.openworkflow.impl.WorkflowStatus; +import org.openworkflow.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/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/impl/test/SchedulerTest.java index 5465af62b..d1a43d980 100644 --- a/impl/test/src/test/java/io/serverlessworkflow/impl/test/SchedulerTest.java +++ b/impl/test/src/test/java/org/openworkflow/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.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.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.impl.WorkflowApplication; +import org.openworkflow.impl.WorkflowDefinition; +import org.openworkflow.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/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/impl/test/SecretExpressionTest.java index c2e19b457..639d9409a 100644 --- a/impl/test/src/test/java/io/serverlessworkflow/impl/test/SecretExpressionTest.java +++ b/impl/test/src/test/java/org/openworkflow/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.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.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.api.types.Workflow; +import org.openworkflow.impl.WorkflowApplication; +import org.openworkflow.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/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/impl/test/SubWorkflowTest.java index 380fb52dd..ef20ed5c4 100644 --- a/impl/test/src/test/java/io/serverlessworkflow/impl/test/SubWorkflowTest.java +++ b/impl/test/src/test/java/org/openworkflow/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.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.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.api.types.Workflow; +import org.openworkflow.fluent.spec.WorkflowBuilder; +import org.openworkflow.fluent.spec.dsl.DSL; +import org.openworkflow.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/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/impl/test/TaskCounterPerInstanceListener.java index bfd44f2c3..506963cd5 100644 --- a/impl/test/src/test/java/io/serverlessworkflow/impl/test/TaskCounterPerInstanceListener.java +++ b/impl/test/src/test/java/org/openworkflow/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.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.impl.lifecycle.TaskCompletedEvent; +import org.openworkflow.impl.lifecycle.TaskRetriedEvent; +import org.openworkflow.impl.lifecycle.TaskStartedEvent; +import org.openworkflow.impl.lifecycle.WorkflowEvent; +import org.openworkflow.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/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/impl/test/UndefinedAuthReferenceTest.java index 95c81d739..5f4e85c8b 100644 --- a/impl/test/src/test/java/io/serverlessworkflow/impl/test/UndefinedAuthReferenceTest.java +++ b/impl/test/src/test/java/org/openworkflow/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.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.api.types.Workflow; +import org.openworkflow.fluent.spec.WorkflowBuilder; +import org.openworkflow.fluent.spec.dsl.DSL; +import org.openworkflow.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/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/impl/test/WaitExecutorTest.java index 2c110dbf1..6626639a1 100644 --- a/impl/test/src/test/java/io/serverlessworkflow/impl/test/WaitExecutorTest.java +++ b/impl/test/src/test/java/org/openworkflow/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.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.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.api.types.TimeoutAfter; +import org.openworkflow.api.types.Workflow; +import org.openworkflow.fluent.spec.WorkflowBuilder; +import org.openworkflow.fluent.spec.dsl.DSL; +import org.openworkflow.impl.WorkflowApplication; +import org.openworkflow.impl.WorkflowInstance; +import org.openworkflow.impl.WorkflowModel; +import org.openworkflow.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/impl/test/WorkflowDefinitionTest.java similarity index 93% rename from impl/test/src/test/java/io/serverlessworkflow/impl/test/WorkflowDefinitionTest.java rename to impl/test/src/test/java/org/openworkflow/impl/test/WorkflowDefinitionTest.java index 22cb487e9..c7b0b9d32 100644 --- a/impl/test/src/test/java/io/serverlessworkflow/impl/test/WorkflowDefinitionTest.java +++ b/impl/test/src/test/java/org/openworkflow/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.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.api.WorkflowReader.readWorkflowFromClasspath; +import static org.openworkflow.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.impl.WorkflowApplication; +import org.openworkflow.impl.WorkflowDefinition; +import org.openworkflow.impl.WorkflowException; +import org.openworkflow.impl.WorkflowInstance; +import org.openworkflow.impl.WorkflowModel; +import org.openworkflow.impl.jackson.JsonUtils; public class WorkflowDefinitionTest { diff --git a/impl/test/src/test/java/io/serverlessworkflow/impl/test/WorkflowExecutionListenerOutputTest.java b/impl/test/src/test/java/org/openworkflow/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/impl/test/WorkflowExecutionListenerOutputTest.java index 792d6d601..efa5b3373 100644 --- a/impl/test/src/test/java/io/serverlessworkflow/impl/test/WorkflowExecutionListenerOutputTest.java +++ b/impl/test/src/test/java/org/openworkflow/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.impl.test; -import static io.serverlessworkflow.api.WorkflowReader.readWorkflowFromClasspath; import static org.assertj.core.api.Assertions.assertThat; +import static org.openworkflow.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.impl.WorkflowApplication; +import org.openworkflow.impl.WorkflowModel; +import org.openworkflow.impl.lifecycle.WorkflowCompletedEvent; +import org.openworkflow.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.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/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/impl/test/WorkflowInstanceIdTest.java index 76583affd..440c53b8a 100644 --- a/impl/test/src/test/java/io/serverlessworkflow/impl/test/WorkflowInstanceIdTest.java +++ b/impl/test/src/test/java/org/openworkflow/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.impl.test; -import static io.serverlessworkflow.api.WorkflowReader.readWorkflowFromClasspath; import static org.assertj.core.api.Assertions.assertThat; +import static org.openworkflow.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.impl.WorkflowApplication; +import org.openworkflow.impl.WorkflowDefinition; +import org.openworkflow.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/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/impl/test/grpc/GrpcBiDirectionalStreamingTest.java index f4e426ef3..a3dfa0106 100644 --- a/impl/test/src/test/java/io/serverlessworkflow/impl/test/grpc/GrpcBiDirectionalStreamingTest.java +++ b/impl/test/src/test/java/org/openworkflow/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.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.api.WorkflowReader.readWorkflowFromClasspath; +import static org.openworkflow.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.api.WorkflowReader; +import org.openworkflow.api.types.Workflow; +import org.openworkflow.fluent.spec.WorkflowBuilder; +import org.openworkflow.impl.WorkflowApplication; +import org.openworkflow.impl.WorkflowDefinition; +import org.openworkflow.impl.WorkflowDefinitionId; +import org.openworkflow.impl.WorkflowModel; +import org.openworkflow.impl.test.grpc.handlers.ContributorBiDiStreamingHandler; +import org.openworkflow.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/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/impl/test/grpc/GrpcClientStreamingTest.java index 0a0e98f9f..a4e9efdc7 100644 --- a/impl/test/src/test/java/io/serverlessworkflow/impl/test/grpc/GrpcClientStreamingTest.java +++ b/impl/test/src/test/java/org/openworkflow/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.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.api.WorkflowReader.readWorkflowFromClasspath; +import static org.openworkflow.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.api.WorkflowReader; +import org.openworkflow.api.types.Workflow; +import org.openworkflow.fluent.spec.WorkflowBuilder; +import org.openworkflow.impl.WorkflowApplication; +import org.openworkflow.impl.WorkflowDefinition; +import org.openworkflow.impl.WorkflowDefinitionId; +import org.openworkflow.impl.test.grpc.handlers.ContributorClientStreamingHandler; +import org.openworkflow.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/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/impl/test/grpc/GrpcServerStreamingTest.java index 9d871d507..4db6ac64e 100644 --- a/impl/test/src/test/java/io/serverlessworkflow/impl/test/grpc/GrpcServerStreamingTest.java +++ b/impl/test/src/test/java/org/openworkflow/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.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.api.WorkflowReader.readWorkflowFromClasspath; +import static org.openworkflow.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.api.WorkflowReader; +import org.openworkflow.api.types.Workflow; +import org.openworkflow.fluent.spec.WorkflowBuilder; +import org.openworkflow.impl.WorkflowApplication; +import org.openworkflow.impl.WorkflowDefinition; +import org.openworkflow.impl.WorkflowDefinitionId; +import org.openworkflow.impl.WorkflowModel; +import org.openworkflow.impl.test.grpc.handlers.ContributorServerStreamingHandler; +import org.openworkflow.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/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/impl/test/grpc/GrpcUnaryArgsExprTest.java index b2ea54884..dd7f81f77 100644 --- a/impl/test/src/test/java/io/serverlessworkflow/impl/test/grpc/GrpcUnaryArgsExprTest.java +++ b/impl/test/src/test/java/org/openworkflow/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.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.api.WorkflowReader.readWorkflowFromClasspath; +import static org.openworkflow.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.api.WorkflowReader; +import org.openworkflow.api.types.Workflow; +import org.openworkflow.fluent.spec.WorkflowBuilder; +import org.openworkflow.impl.WorkflowApplication; +import org.openworkflow.impl.WorkflowDefinition; +import org.openworkflow.impl.WorkflowDefinitionId; +import org.openworkflow.impl.jackson.JsonUtils; +import org.openworkflow.impl.test.grpc.handlers.ContributorUnaryArgsExprHandler; +import org.openworkflow.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/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/impl/test/grpc/GrpcUnaryTest.java index 498f7c951..d431f5497 100644 --- a/impl/test/src/test/java/io/serverlessworkflow/impl/test/grpc/GrpcUnaryTest.java +++ b/impl/test/src/test/java/org/openworkflow/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.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.api.WorkflowReader.readWorkflowFromClasspath; +import static org.openworkflow.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.api.WorkflowReader; +import org.openworkflow.api.types.Workflow; +import org.openworkflow.fluent.spec.WorkflowBuilder; +import org.openworkflow.impl.WorkflowApplication; +import org.openworkflow.impl.WorkflowDefinition; +import org.openworkflow.impl.WorkflowDefinitionId; +import org.openworkflow.impl.jackson.JsonUtils; +import org.openworkflow.impl.test.grpc.handlers.PersonUnaryHandler; +import org.openworkflow.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/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/impl/test/grpc/handlers/ContributorBiDiStreamingHandler.java index 7ee446fe8..59322f9c3 100644 --- a/impl/test/src/test/java/io/serverlessworkflow/impl/test/grpc/handlers/ContributorBiDiStreamingHandler.java +++ b/impl/test/src/test/java/org/openworkflow/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.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.impl.executors.grpc.contributors.BiDirectionalStreamingGrpc.BiDirectionalStreamingImplBase; +import org.openworkflow.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/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/impl/test/grpc/handlers/ContributorClientStreamingHandler.java index cdf5900f3..168cb91ef 100644 --- a/impl/test/src/test/java/io/serverlessworkflow/impl/test/grpc/handlers/ContributorClientStreamingHandler.java +++ b/impl/test/src/test/java/org/openworkflow/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.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.impl.executors.grpc.contributors.ClientStreamingGrpc.ClientStreamingImplBase; +import org.openworkflow.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/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/impl/test/grpc/handlers/ContributorServerStreamingHandler.java index 53979739c..2e75f24b7 100644 --- a/impl/test/src/test/java/io/serverlessworkflow/impl/test/grpc/handlers/ContributorServerStreamingHandler.java +++ b/impl/test/src/test/java/org/openworkflow/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.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.impl.executors.grpc.contributors.Contributors; +import org.openworkflow.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/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/impl/test/grpc/handlers/ContributorUnaryArgsExprHandler.java index 1ac2f2ebe..fd65f0fe8 100644 --- a/impl/test/src/test/java/io/serverlessworkflow/impl/test/grpc/handlers/ContributorUnaryArgsExprHandler.java +++ b/impl/test/src/test/java/org/openworkflow/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.impl.test.grpc.handlers; -import static io.serverlessworkflow.impl.executors.grpc.contributors.UnaryArgsExprGrpc.UnaryArgsExprImplBase; +import static org.openworkflow.impl.executors.grpc.contributors.UnaryArgsExprGrpc.UnaryArgsExprImplBase; import io.grpc.stub.StreamObserver; -import io.serverlessworkflow.impl.executors.grpc.contributors.Contributors; +import org.openworkflow.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/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/impl/test/grpc/handlers/PersonUnaryHandler.java index e72f46138..87a701bd5 100644 --- a/impl/test/src/test/java/io/serverlessworkflow/impl/test/grpc/handlers/PersonUnaryHandler.java +++ b/impl/test/src/test/java/org/openworkflow/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.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/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/impl/test/junit/BinaryCheckUtil.java index 47f3f7f95..0bf9bd6bc 100644 --- a/impl/test/src/test/java/io/serverlessworkflow/impl/test/junit/BinaryCheckUtil.java +++ b/impl/test/src/test/java/org/openworkflow/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.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/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/impl/test/junit/DisabledIfProtocUnavailable.java index 5b91e3a9d..f8a7b1fc3 100644 --- a/impl/test/src/test/java/io/serverlessworkflow/impl/test/junit/DisabledIfProtocUnavailable.java +++ b/impl/test/src/test/java/org/openworkflow/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.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/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/impl/test/junit/DisabledIfPythonUnavailable.java index dcaa116e1..89254a7df 100644 --- a/impl/test/src/test/java/io/serverlessworkflow/impl/test/junit/DisabledIfPythonUnavailable.java +++ b/impl/test/src/test/java/org/openworkflow/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.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/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/impl/test/junit/ProtocCheckCondition.java index e4ff9b98d..4de32cee0 100644 --- a/impl/test/src/test/java/io/serverlessworkflow/impl/test/junit/ProtocCheckCondition.java +++ b/impl/test/src/test/java/org/openworkflow/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.impl.test.junit; -import static io.serverlessworkflow.impl.test.junit.BinaryCheckUtil.isBinaryAvailable; +import static org.openworkflow.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/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/impl/test/junit/PythonCheckCondition.java index 66f789fc6..90380d173 100644 --- a/impl/test/src/test/java/io/serverlessworkflow/impl/test/junit/PythonCheckCondition.java +++ b/impl/test/src/test/java/org/openworkflow/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.impl.test.junit; -import static io.serverlessworkflow.impl.test.junit.BinaryCheckUtil.isBinaryAvailable; +import static org.openworkflow.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/grpc/proto/contributors.proto b/impl/test/src/test/resources/workflows-samples/grpc/proto/contributors.proto index a7cb71e09..b570ea64c 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.impl.executors.grpc.contributors; message AddContributionRequest { required string github = 1; diff --git a/impl/test/src/test/resources/workflows-samples/validation_test.yaml b/impl/test/src/test/resources/workflows-samples/validation_test.yaml new file mode 100644 index 000000000..d681575ff --- /dev/null +++ b/impl/test/src/test/resources/workflows-samples/validation_test.yaml @@ -0,0 +1,21 @@ +document: + dsl: '1.1.0' + namespace: qe + name: greet + version: '1.1.0' + +input: + schema: + format: json + document: + type: object + required: + - name + properties: + name: + type: string + +do: + - buildGreeting: + set: + message: '${ "Hello, " + .name + "!" }' \ No newline at end of file diff --git a/impl/validation/pom.xml b/impl/validation/pom.xml index 32d830b25..76633a058 100644 --- a/impl/validation/pom.xml +++ b/impl/validation/pom.xml @@ -1,11 +1,11 @@ 4.0.0 - io.serverlessworkflow - serverlessworkflow-impl + org.openworkflow + openworkflow-impl 8.0.0-SNAPSHOT - serverlessworkflow-impl-validation + openworkflow-impl-validation Serverless Workflow :: Impl :: Jackson:: Validation @@ -13,16 +13,16 @@ json-schema-validator - io.serverlessworkflow - serverlessworkflow-api + org.openworkflow + openworkflow-api - io.serverlessworkflow - serverlessworkflow-impl-core + org.openworkflow + openworkflow-impl-core - io.serverlessworkflow - serverlessworkflow-impl-json + org.openworkflow + 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/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/impl/jackson/schema/JsonSchemaValidator.java index be8f6053a..76123a514 100644 --- a/impl/validation/src/main/java/io/serverlessworkflow/impl/jackson/schema/JsonSchemaValidator.java +++ b/impl/validation/src/main/java/org/openworkflow/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.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.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/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/impl/jackson/schema/JsonSchemaValidatorFactory.java index fa504b80f..03b733299 100644 --- a/impl/validation/src/main/java/io/serverlessworkflow/impl/jackson/schema/JsonSchemaValidatorFactory.java +++ b/impl/validation/src/main/java/org/openworkflow/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.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.api.WorkflowFormat; +import org.openworkflow.api.types.SchemaInline; +import org.openworkflow.impl.jackson.JsonUtils; +import org.openworkflow.impl.resources.ExternalResourceHandler; +import org.openworkflow.impl.schema.SchemaValidator; +import org.openworkflow.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.impl.schema.SchemaValidatorFactory b/impl/validation/src/main/resources/META-INF/services/org.openworkflow.impl.schema.SchemaValidatorFactory new file mode 100644 index 000000000..1a2071b5f --- /dev/null +++ b/impl/validation/src/main/resources/META-INF/services/org.openworkflow.impl.schema.SchemaValidatorFactory @@ -0,0 +1 @@ +org.openworkflow.impl.jackson.schema.JsonSchemaValidatorFactory \ No newline at end of file diff --git a/mermaid/README.md b/mermaid/README.md index bed729ed4..ae7a4d808 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://serverlessworkflow.io/) 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 + 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: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.api.types.Workflow; +import org.openworkflow.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.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.mermaid.Mermaid; +import org.openworkflow.mermaid.MermaidInk; String mermaid = new Mermaid().from("workflows/sample.yaml"); diff --git a/mermaid/pom.xml b/mermaid/pom.xml index 69eb9966b..4270239a9 100644 --- a/mermaid/pom.xml +++ b/mermaid/pom.xml @@ -2,13 +2,13 @@ 4.0.0 - io.serverlessworkflow - serverlessworkflow-parent + org.openworkflow + 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 + openworkflow-types - io.serverlessworkflow - serverlessworkflow-api + org.openworkflow + openworkflow-api @@ -54,8 +54,8 @@ test
- io.serverlessworkflow - serverlessworkflow-impl-test + org.openworkflow + 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/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/mermaid/CallNode.java index c9a6bdbdb..58aad7732 100644 --- a/mermaid/src/main/java/io/serverlessworkflow/mermaid/CallNode.java +++ b/mermaid/src/main/java/org/openworkflow/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.mermaid; -import io.serverlessworkflow.api.types.CallHTTP; -import io.serverlessworkflow.api.types.CallTask; -import io.serverlessworkflow.api.types.TaskItem; +import org.openworkflow.api.types.CallHTTP; +import org.openworkflow.api.types.CallTask; +import org.openworkflow.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/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/mermaid/DefaultNodeRenderer.java index 3bd71e79c..790e3852e 100644 --- a/mermaid/src/main/java/io/serverlessworkflow/mermaid/DefaultNodeRenderer.java +++ b/mermaid/src/main/java/org/openworkflow/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.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/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/mermaid/Edge.java index 7d86d4107..c880dbb44 100644 --- a/mermaid/src/main/java/io/serverlessworkflow/mermaid/Edge.java +++ b/mermaid/src/main/java/org/openworkflow/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.mermaid; import java.util.Objects; diff --git a/mermaid/src/main/java/io/serverlessworkflow/mermaid/EmitNode.java b/mermaid/src/main/java/org/openworkflow/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/mermaid/EmitNode.java index d355a4678..c2b4ff859 100644 --- a/mermaid/src/main/java/io/serverlessworkflow/mermaid/EmitNode.java +++ b/mermaid/src/main/java/org/openworkflow/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.mermaid; -import io.serverlessworkflow.api.types.EmitTask; -import io.serverlessworkflow.api.types.TaskItem; +import org.openworkflow.api.types.EmitTask; +import org.openworkflow.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/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/mermaid/EndpointStringify.java index dfd6bb485..5888c3c62 100644 --- a/mermaid/src/main/java/io/serverlessworkflow/mermaid/EndpointStringify.java +++ b/mermaid/src/main/java/org/openworkflow/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.mermaid; + import java.net.URI; +import org.openworkflow.api.types.AuthenticationPolicy; +import org.openworkflow.api.types.AuthenticationPolicyReference; +import org.openworkflow.api.types.AuthenticationPolicyUnion; +import org.openworkflow.api.types.Endpoint; +import org.openworkflow.api.types.EndpointConfiguration; +import org.openworkflow.api.types.EndpointUri; +import org.openworkflow.api.types.ReferenceableAuthenticationPolicy; +import org.openworkflow.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/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/mermaid/ForNode.java index 5a1f56741..34452ffee 100644 --- a/mermaid/src/main/java/io/serverlessworkflow/mermaid/ForNode.java +++ b/mermaid/src/main/java/org/openworkflow/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.mermaid; -import io.serverlessworkflow.api.types.ForTask; -import io.serverlessworkflow.api.types.TaskItem; +import org.openworkflow.api.types.ForTask; +import org.openworkflow.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/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/mermaid/ForkNode.java index d3d5dc27a..1a83a14f4 100644 --- a/mermaid/src/main/java/io/serverlessworkflow/mermaid/ForkNode.java +++ b/mermaid/src/main/java/org/openworkflow/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.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.api.types.ForkTask; +import org.openworkflow.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/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/mermaid/Ids.java index 424d65881..5e35cf499 100644 --- a/mermaid/src/main/java/io/serverlessworkflow/mermaid/Ids.java +++ b/mermaid/src/main/java/org/openworkflow/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.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.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/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/mermaid/IteratorNode.java index fc40dcb28..8cd6e6bb1 100644 --- a/mermaid/src/main/java/io/serverlessworkflow/mermaid/IteratorNode.java +++ b/mermaid/src/main/java/org/openworkflow/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.mermaid; -import io.serverlessworkflow.api.types.SubscriptionIterator; +import org.openworkflow.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/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/mermaid/ListenNode.java index b4be12cac..e251cec71 100644 --- a/mermaid/src/main/java/io/serverlessworkflow/mermaid/ListenNode.java +++ b/mermaid/src/main/java/org/openworkflow/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.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.api.types.ListenTask; +import org.openworkflow.api.types.ListenTo; +import org.openworkflow.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/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/mermaid/Mermaid.java index befc2bcaa..54eed9c51 100644 --- a/mermaid/src/main/java/io/serverlessworkflow/mermaid/Mermaid.java +++ b/mermaid/src/main/java/org/openworkflow/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.mermaid; -import io.serverlessworkflow.api.WorkflowReader; -import io.serverlessworkflow.api.types.Workflow; import java.io.IOException; import java.util.Map; +import org.openworkflow.api.WorkflowReader; +import org.openworkflow.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/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/mermaid/MermaidGraph.java index 39385bc4f..7f3247cc9 100644 --- a/mermaid/src/main/java/io/serverlessworkflow/mermaid/MermaidGraph.java +++ b/mermaid/src/main/java/org/openworkflow/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.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.api.types.CallTask; +import org.openworkflow.api.types.FlowDirective; +import org.openworkflow.api.types.FlowDirectiveEnum; +import org.openworkflow.api.types.TaskBase; +import org.openworkflow.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/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/mermaid/MermaidInk.java index 64a45c74c..146eed52a 100644 --- a/mermaid/src/main/java/io/serverlessworkflow/mermaid/MermaidInk.java +++ b/mermaid/src/main/java/org/openworkflow/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.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/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/mermaid/MermaidRenderer.java index 07f6c2f6a..4a6e2b2e8 100644 --- a/mermaid/src/main/java/io/serverlessworkflow/mermaid/MermaidRenderer.java +++ b/mermaid/src/main/java/org/openworkflow/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.mermaid; import java.util.Map; diff --git a/mermaid/src/main/java/io/serverlessworkflow/mermaid/Node.java b/mermaid/src/main/java/org/openworkflow/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/mermaid/Node.java index 00e0916fc..026d0b184 100644 --- a/mermaid/src/main/java/io/serverlessworkflow/mermaid/Node.java +++ b/mermaid/src/main/java/org/openworkflow/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.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/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/mermaid/NodeBuilder.java index b71d3a349..5cb9879c4 100644 --- a/mermaid/src/main/java/io/serverlessworkflow/mermaid/NodeBuilder.java +++ b/mermaid/src/main/java/org/openworkflow/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.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.api.types.CallTask; +import org.openworkflow.api.types.DoTask; +import org.openworkflow.api.types.EmitTask; +import org.openworkflow.api.types.ForTask; +import org.openworkflow.api.types.ForkTask; +import org.openworkflow.api.types.ListenTask; +import org.openworkflow.api.types.RaiseTask; +import org.openworkflow.api.types.RunTask; +import org.openworkflow.api.types.SetTask; +import org.openworkflow.api.types.SwitchTask; +import org.openworkflow.api.types.TaskItem; +import org.openworkflow.api.types.TryTask; +import org.openworkflow.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/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/mermaid/NodeRenderer.java index 67d52a246..cf370d6cc 100644 --- a/mermaid/src/main/java/io/serverlessworkflow/mermaid/NodeRenderer.java +++ b/mermaid/src/main/java/org/openworkflow/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.mermaid; public interface NodeRenderer { diff --git a/mermaid/src/main/java/io/serverlessworkflow/mermaid/NodeType.java b/mermaid/src/main/java/org/openworkflow/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/mermaid/NodeType.java index 8a243cdb7..83bd626a1 100644 --- a/mermaid/src/main/java/io/serverlessworkflow/mermaid/NodeType.java +++ b/mermaid/src/main/java/org/openworkflow/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.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/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/mermaid/RaiseNode.java index bc32f4b13..b47594f8c 100644 --- a/mermaid/src/main/java/io/serverlessworkflow/mermaid/RaiseNode.java +++ b/mermaid/src/main/java/org/openworkflow/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.mermaid; -import io.serverlessworkflow.api.types.TaskItem; +import org.openworkflow.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/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/mermaid/RunNode.java index 31d26f530..b37ebb5c3 100644 --- a/mermaid/src/main/java/io/serverlessworkflow/mermaid/RunNode.java +++ b/mermaid/src/main/java/org/openworkflow/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.mermaid; -import io.serverlessworkflow.api.types.RunTask; -import io.serverlessworkflow.api.types.TaskItem; +import org.openworkflow.api.types.RunTask; +import org.openworkflow.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/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/mermaid/SubgraphNode.java index b38c3c39f..d4a8a1013 100644 --- a/mermaid/src/main/java/io/serverlessworkflow/mermaid/SubgraphNode.java +++ b/mermaid/src/main/java/org/openworkflow/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.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/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/mermaid/SubgraphNodeRenderer.java index 2054a4f9e..2bf5b8ed9 100644 --- a/mermaid/src/main/java/io/serverlessworkflow/mermaid/SubgraphNodeRenderer.java +++ b/mermaid/src/main/java/org/openworkflow/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.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/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/mermaid/SwitchNode.java index 0d3989256..17ce496a7 100644 --- a/mermaid/src/main/java/io/serverlessworkflow/mermaid/SwitchNode.java +++ b/mermaid/src/main/java/org/openworkflow/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.mermaid; -import io.serverlessworkflow.api.types.SwitchItem; -import io.serverlessworkflow.api.types.TaskItem; +import org.openworkflow.api.types.SwitchItem; +import org.openworkflow.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/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/mermaid/TaskNode.java index 0afc21dde..7a1d7f390 100644 --- a/mermaid/src/main/java/io/serverlessworkflow/mermaid/TaskNode.java +++ b/mermaid/src/main/java/org/openworkflow/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.mermaid; -import io.serverlessworkflow.api.types.TaskItem; +import org.openworkflow.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/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/mermaid/TaskSubgraphNode.java index 1f9239c8c..44da429ee 100644 --- a/mermaid/src/main/java/io/serverlessworkflow/mermaid/TaskSubgraphNode.java +++ b/mermaid/src/main/java/org/openworkflow/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.mermaid; -import io.serverlessworkflow.api.types.TaskItem; import java.util.List; +import org.openworkflow.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/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/mermaid/TryCatchNode.java index 9f7155dd5..4648919a3 100644 --- a/mermaid/src/main/java/io/serverlessworkflow/mermaid/TryCatchNode.java +++ b/mermaid/src/main/java/org/openworkflow/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.mermaid; -import io.serverlessworkflow.api.types.TaskItem; +import org.openworkflow.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/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/mermaid/WaitNode.java index 08301ed54..8413a6f01 100644 --- a/mermaid/src/main/java/io/serverlessworkflow/mermaid/WaitNode.java +++ b/mermaid/src/main/java/org/openworkflow/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.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.api.types.DurationInline; +import org.openworkflow.api.types.TaskItem; +import org.openworkflow.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/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/mermaid/ClasspathYamlFinder.java index 1eed70f52..4cd58d5f3 100644 --- a/mermaid/src/test/java/io/serverlessworkflow/mermaid/ClasspathYamlFinder.java +++ b/mermaid/src/test/java/org/openworkflow/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.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/mermaid/MermaidSmokeTest.java similarity index 88% rename from mermaid/src/test/java/io/serverlessworkflow/mermaid/MermaidSmokeTest.java rename to mermaid/src/test/java/org/openworkflow/mermaid/MermaidSmokeTest.java index f616f32c5..931d3d60c 100644 --- a/mermaid/src/test/java/io/serverlessworkflow/mermaid/MermaidSmokeTest.java +++ b/mermaid/src/test/java/org/openworkflow/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.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.api.WorkflowReader; class MermaidSmokeTest { @@ -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.mermaid.Mermaid().from(wf); assertThat(mermaid).isNotBlank().contains("flowchart TD"); } } diff --git a/pom.xml b/pom.xml index b05e1a208..9c02f7f1b 100644 --- a/pom.xml +++ b/pom.xml @@ -2,19 +2,19 @@ 4.0.0 - io.serverlessworkflow - serverlessworkflow-parent + org.openworkflow + 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://openworkflow.cloud/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 + openworkflow-api ${project.version} - io.serverlessworkflow - serverlessworkflow-types + org.openworkflow + openworkflow-types ${project.version} - io.serverlessworkflow - serverlessworkflow-serialization + org.openworkflow + openworkflow-serialization ${project.version} - io.serverlessworkflow - serverlessworkflow-annotations + org.openworkflow + openworkflow-annotations ${project.version} @@ -385,7 +385,7 @@ 4.0.0 - io.serverlessworkflow - serverlessworkflow-parent + org.openworkflow + openworkflow-parent 8.0.0-SNAPSHOT - serverlessworkflow-serialization - Serverless Workflow :: Serialization + openworkflow-serialization + Open Workflow :: Serialization - io.serverlessworkflow - serverlessworkflow-annotations + org.openworkflow + openworkflow-annotations ${project.version} diff --git a/serialization/src/main/java/io/serverlessworkflow/serialization/DeserializeHelper.java b/serialization/src/main/java/org/openworkflow/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/serialization/DeserializeHelper.java index 4291ca5b8..be70af7d7 100644 --- a/serialization/src/main/java/io/serverlessworkflow/serialization/DeserializeHelper.java +++ b/serialization/src/main/java/org/openworkflow/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.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.annotations.OneOfSetter; public class DeserializeHelper { diff --git a/serialization/src/main/java/io/serverlessworkflow/serialization/SerializeHelper.java b/serialization/src/main/java/org/openworkflow/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/serialization/SerializeHelper.java index 47ab1a5e2..b65ad929e 100644 --- a/serialization/src/main/java/io/serverlessworkflow/serialization/SerializeHelper.java +++ b/serialization/src/main/java/org/openworkflow/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.serialization; import com.fasterxml.jackson.core.JsonGenerator; -import io.serverlessworkflow.annotations.OneOfValueProvider; import java.io.IOException; +import org.openworkflow.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..5f600ab10 100644 --- a/types/pom.xml +++ b/types/pom.xml @@ -1,16 +1,16 @@ 4.0.0 - io.serverlessworkflow - serverlessworkflow-parent + org.openworkflow + openworkflow-parent 8.0.0-SNAPSHOT - Serverless Workflow :: Types - serverlessworkflow-types + Open Workflow :: Types + openworkflow-types - io.serverlessworkflow - serverlessworkflow-annotations + org.openworkflow + 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.api.types ${project.build.directory}/generated-sources/src/main/java true true @@ -46,12 +46,12 @@ true none true - io.serverlessworkflow.generator.UnreferencedFactory - io.serverlessworkflow.generator.CustomAnnotator + org.openworkflow.generator.UnreferencedFactory + org.openworkflow.generator.CustomAnnotator - io.serverlessworkflow + org.openworkflow serverless-workflow-types-generator ${project.version} diff --git a/types/src/main/java/io/serverlessworkflow/types/Defaults.java b/types/src/main/java/org/openworkflow/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/types/Defaults.java index d7668ef83..ef46213fe 100644 --- a/types/src/main/java/io/serverlessworkflow/types/Defaults.java +++ b/types/src/main/java/org/openworkflow/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.types; public class Defaults { diff --git a/types/src/main/java/io/serverlessworkflow/types/Errors.java b/types/src/main/java/org/openworkflow/types/Errors.java similarity index 96% rename from types/src/main/java/io/serverlessworkflow/types/Errors.java rename to types/src/main/java/org/openworkflow/types/Errors.java index 7097d7db4..83cb4352a 100644 --- a/types/src/main/java/io/serverlessworkflow/types/Errors.java +++ b/types/src/main/java/org/openworkflow/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.types; import java.net.URI; import java.util.Objects; From 2dc7d01c2dd4e1dbdf0992d0499f525357a7b987 Mon Sep 17 00:00:00 2001 From: Francisco Javier Tirado Sarti Date: Fri, 9 Oct 2026 15:18:53 +0200 Subject: [PATCH 2/3] [Fix #1676] Copilot comments Signed-off-by: Francisco Javier Tirado Sarti --- README.md | 4 ++-- api/pom.xml | 2 +- .../java/org/openworkflow/api/WorkflowFormat.java | 2 +- .../java/org/openworkflow/api/WorkflowReader.java | 2 +- .../java/org/openworkflow/api/WorkflowWriter.java | 2 +- api/src/test/resources/features/raise.yaml | 2 +- api/src/test/resources/features/try.yaml | 2 +- bom/pom.xml | 2 +- fluent/README.md | 4 ++-- .../fluent/spec/ListenTaskBuilder.java | 4 ++-- .../openworkflow/fluent/spec/TaskBaseBuilder.java | 4 ++-- .../java/org/openworkflow/fluent/spec/dsl/DSL.java | 4 ++-- .../org/openworkflow/fluent/spec/spi/DoFluent.java | 2 +- .../org/openworkflow/fluent/spec/dsl/DSLTest.java | 2 +- generators/jackson/pom.xml | 2 +- generators/types/pom.xml | 2 +- impl/README.md | 14 +++++++------- .../org/openworkflow/impl/LifecycleEvents.java | 2 +- .../org/openworkflow/impl/WorkflowApplication.java | 4 ++-- .../java/org/openworkflow/impl/WorkflowError.java | 2 +- .../openworkflow/impl/auth/JwtClientAssertion.java | 2 +- .../openworkflow-impl-core}/reflect-config.json | 0 impl/function/pom.xml | 2 +- impl/jackson/pom.xml | 2 +- impl/jq/pom.xml | 2 +- impl/lifecycleevent/pom.xml | 2 +- impl/model/pom.xml | 2 +- .../openworkflow-impl-model}/reflect-config.json | 0 .../openworkflow-impl-openapi}/reflect-config.json | 0 .../impl/executors/openapi/OpenAPIExecutor.java | 2 +- impl/persistence/README.md | 2 +- impl/persistence/mvstore/README.md | 2 +- .../openworkflow/impl/test/CoreTaskTypesTest.java | 8 ++++---- .../impl/test/HTTPWorkflowDefinitionTest.java | 4 ++-- .../impl/test/LifeCycleEventsTest.java | 2 +- .../impl/test/RunScriptJavaScriptTest.java | 2 +- .../impl/test/WorkflowDefinitionTest.java | 2 +- .../call-custom-function-cataloged-global.yaml | 2 +- .../call-custom-function-cataloged.yaml | 2 +- .../call-http-endpoint-interpolation.yaml | 2 +- .../call-http-find-by-status.yaml | 2 +- .../resources/workflows-samples/call-http-get.yaml | 2 +- .../workflows-samples/listen-to-one-timeout.yaml | 2 +- .../nested-try-catch-retry-inline.yaml | 4 ++-- .../resources/workflows-samples/raise-inline.yaml | 2 +- .../workflows-samples/raise-reusable.yaml | 2 +- .../run-script/console-log-envs.yaml | 2 +- .../workflows-samples/try-catch-match-then.yaml | 2 +- .../try-catch-retry-attempt-duration-overall.yaml | 2 +- .../try-catch-retry-attempt-duration-retry.yaml | 2 +- .../try-catch-retry-attempt-duration.yaml | 2 +- .../try-catch-retry-inline-then.yaml | 4 ++-- .../workflows-samples/try-catch-retry-inline.yaml | 2 +- .../try-catch-retry-reusable.yaml | 2 +- impl/validation/pom.xml | 2 +- mermaid/README.md | 2 +- .../org/openworkflow/mermaid/MermaidSmokeTest.java | 2 +- types/pom.xml | 2 +- .../main/java/org/openworkflow/types/Errors.java | 5 +++-- 59 files changed, 76 insertions(+), 75 deletions(-) rename impl/core/src/main/resources/META-INF/native-image/{io.serverlessworkflow/serverlessworkflow-impl-core => org.openworkflow/openworkflow-impl-core}/reflect-config.json (100%) rename impl/model/src/main/resources/META-INF/native-image/{io.serverlessworkflow/serverlessworkflow-impl-model => org.openworkflow/openworkflow-impl-model}/reflect-config.json (100%) rename impl/openapi-jackson/src/main/resources/META-INF/native-image/{io.serverlessworkflow/serverlessworkflow-impl-openapi => org.openworkflow/openworkflow-impl-openapi}/reflect-config.json (100%) diff --git a/README.md b/README.md index 92be6885a..2dc54c0b4 100644 --- a/README.md +++ b/README.md @@ -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/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/api/WorkflowWriter.java) class. ### Reference implementation diff --git a/api/pom.xml b/api/pom.xml index 957b58ebc..4fdce5d82 100644 --- a/api/pom.xml +++ b/api/pom.xml @@ -82,7 +82,7 @@ org.openworkflow - serverless-workflow-jackson-generator + openworkflow-jackson-generator ${project.version} diff --git a/api/src/main/java/org/openworkflow/api/WorkflowFormat.java b/api/src/main/java/org/openworkflow/api/WorkflowFormat.java index 406d8b97b..37d6bb66f 100644 --- a/api/src/main/java/org/openworkflow/api/WorkflowFormat.java +++ b/api/src/main/java/org/openworkflow/api/WorkflowFormat.java @@ -19,7 +19,7 @@ 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/org/openworkflow/api/WorkflowReader.java b/api/src/main/java/org/openworkflow/api/WorkflowReader.java index d74d8730a..ecc00e6e6 100644 --- a/api/src/main/java/org/openworkflow/api/WorkflowReader.java +++ b/api/src/main/java/org/openworkflow/api/WorkflowReader.java @@ -23,7 +23,7 @@ import java.nio.file.Path; import org.openworkflow.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/org/openworkflow/api/WorkflowWriter.java b/api/src/main/java/org/openworkflow/api/WorkflowWriter.java index 8bd09b2e5..a074b99bc 100644 --- a/api/src/main/java/org/openworkflow/api/WorkflowWriter.java +++ b/api/src/main/java/org/openworkflow/api/WorkflowWriter.java @@ -24,7 +24,7 @@ import org.openworkflow.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/test/resources/features/raise.yaml b/api/src/test/resources/features/raise.yaml index 7745162cb..b2a3c878f 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://openworkflow.cloud/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..b22b1c8c4 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://openworkflow.cloud/dsl/errors/types/communication status: 404 as: err do: diff --git a/bom/pom.xml b/bom/pom.xml index 95e0cbac9..5aff15db7 100644 --- a/bom/pom.xml +++ b/bom/pom.xml @@ -10,7 +10,7 @@ openworkflow-bom pom Open Workflow :: BOM - Bill of Materials for Serverless Workflow Java SDK + Bill of Materials for Open Workflow Java SDK diff --git a/fluent/README.md b/fluent/README.md index 80ac55ded..588fd907e 100644 --- a/fluent/README.md +++ b/fluent/README.md @@ -8,7 +8,7 @@ | Module | Purpose | | -------------- | --------------------------------------------------------------------------------------------- | -| **spec** | Core DSL implementing the [Open 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. | @@ -21,7 +21,7 @@ Add the modules you need to your Maven `pom.xml` (replace versions as appropriat ```xml org.openworkflow diff --git a/fluent/spec/src/main/java/org/openworkflow/fluent/spec/ListenTaskBuilder.java b/fluent/spec/src/main/java/org/openworkflow/fluent/spec/ListenTaskBuilder.java index c6244b828..90b0c9e2c 100644 --- a/fluent/spec/src/main/java/org/openworkflow/fluent/spec/ListenTaskBuilder.java +++ b/fluent/spec/src/main/java/org/openworkflow/fluent/spec/ListenTaskBuilder.java @@ -16,8 +16,8 @@ package org.openworkflow.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/org/openworkflow/fluent/spec/TaskBaseBuilder.java b/fluent/spec/src/main/java/org/openworkflow/fluent/spec/TaskBaseBuilder.java index a002aa107..e43133cf5 100644 --- a/fluent/spec/src/main/java/org/openworkflow/fluent/spec/TaskBaseBuilder.java +++ b/fluent/spec/src/main/java/org/openworkflow/fluent/spec/TaskBaseBuilder.java @@ -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/org/openworkflow/fluent/spec/dsl/DSL.java b/fluent/spec/src/main/java/org/openworkflow/fluent/spec/dsl/DSL.java index 651ae2700..6110226b3 100644 --- a/fluent/spec/src/main/java/org/openworkflow/fluent/spec/dsl/DSL.java +++ b/fluent/spec/src/main/java/org/openworkflow/fluent/spec/dsl/DSL.java @@ -526,8 +526,8 @@ 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). diff --git a/fluent/spec/src/main/java/org/openworkflow/fluent/spec/spi/DoFluent.java b/fluent/spec/src/main/java/org/openworkflow/fluent/spec/spi/DoFluent.java index 7bca79bb8..74637cde9 100644 --- a/fluent/spec/src/main/java/org/openworkflow/fluent/spec/spi/DoFluent.java +++ b/fluent/spec/src/main/java/org/openworkflow/fluent/spec/spi/DoFluent.java @@ -34,7 +34,7 @@ * 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/test/java/org/openworkflow/fluent/spec/dsl/DSLTest.java b/fluent/spec/src/test/java/org/openworkflow/fluent/spec/dsl/DSLTest.java index f8ef49525..83839e8f9 100644 --- a/fluent/spec/src/test/java/org/openworkflow/fluent/spec/dsl/DSLTest.java +++ b/fluent/spec/src/test/java/org/openworkflow/fluent/spec/dsl/DSLTest.java @@ -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://openworkflow.cloud/spec/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/generators/jackson/pom.xml b/generators/jackson/pom.xml index 29297836c..fe4a06f99 100644 --- a/generators/jackson/pom.xml +++ b/generators/jackson/pom.xml @@ -6,7 +6,7 @@ openworkflow-generators 8.0.0-SNAPSHOT - serverless-workflow-jackson-generator + openworkflow-jackson-generator Open Workflow :: Generator:: Jackson 3.16.0 diff --git a/generators/types/pom.xml b/generators/types/pom.xml index bd896d524..f736748ef 100644 --- a/generators/types/pom.xml +++ b/generators/types/pom.xml @@ -5,7 +5,7 @@ openworkflow-generators 8.0.0-SNAPSHOT - serverless-workflow-types-generator + openworkflow-types-generator Open Workflow :: Generator:: Types diff --git a/impl/README.md b/impl/README.md index be2a00012..15adc10b8 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) # Open Workflow Specification — Java SDK (Reference Implementation) -A lightweight, non-blocking, reactive **runtime** for the [Open 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. --- @@ -186,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/impl/BlockingExample.java]() +* Non-blocking: [examples/simpleGet/src/main/java/org/openworkflow/impl/NotBlockingExample.java]() --- @@ -230,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/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/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. @@ -241,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: @@ -254,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. diff --git a/impl/core/src/main/java/org/openworkflow/impl/LifecycleEvents.java b/impl/core/src/main/java/org/openworkflow/impl/LifecycleEvents.java index b5bc18139..063a2f04c 100644 --- a/impl/core/src/main/java/org/openworkflow/impl/LifecycleEvents.java +++ b/impl/core/src/main/java/org/openworkflow/impl/LifecycleEvents.java @@ -17,7 +17,7 @@ /** * @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 { diff --git a/impl/core/src/main/java/org/openworkflow/impl/WorkflowApplication.java b/impl/core/src/main/java/org/openworkflow/impl/WorkflowApplication.java index b3e8cab08..afc686857 100644 --- a/impl/core/src/main/java/org/openworkflow/impl/WorkflowApplication.java +++ b/impl/core/src/main/java/org/openworkflow/impl/WorkflowApplication.java @@ -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/org/openworkflow/impl/WorkflowError.java b/impl/core/src/main/java/org/openworkflow/impl/WorkflowError.java index ae28e774e..15990d31b 100644 --- a/impl/core/src/main/java/org/openworkflow/impl/WorkflowError.java +++ b/impl/core/src/main/java/org/openworkflow/impl/WorkflowError.java @@ -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/org/openworkflow/impl/auth/JwtClientAssertion.java b/impl/core/src/main/java/org/openworkflow/impl/auth/JwtClientAssertion.java index b5f16545e..38c50b884 100644 --- a/impl/core/src/main/java/org/openworkflow/impl/auth/JwtClientAssertion.java +++ b/impl/core/src/main/java/org/openworkflow/impl/auth/JwtClientAssertion.java @@ -34,7 +34,7 @@ /** * 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/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/openworkflow-impl-core/reflect-config.json similarity index 100% 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/openworkflow-impl-core/reflect-config.json diff --git a/impl/function/pom.xml b/impl/function/pom.xml index 2094ad73d..ae5a956a8 100644 --- a/impl/function/pom.xml +++ b/impl/function/pom.xml @@ -6,7 +6,7 @@ 8.0.0-SNAPSHOT openworkflow-impl-function - Serverless Workflow :: Impl :: Jackson:: Function + Open Workflow :: Impl :: Function org.openworkflow diff --git a/impl/jackson/pom.xml b/impl/jackson/pom.xml index 9eb3bca68..745e88d38 100644 --- a/impl/jackson/pom.xml +++ b/impl/jackson/pom.xml @@ -6,7 +6,7 @@ 8.0.0-SNAPSHOT openworkflow-impl-jackson - Serverless Workflow :: Impl :: Jackson + Open Workflow :: Impl :: Jackson org.openworkflow diff --git a/impl/jq/pom.xml b/impl/jq/pom.xml index 5143b96ec..e03a51153 100644 --- a/impl/jq/pom.xml +++ b/impl/jq/pom.xml @@ -6,7 +6,7 @@ 8.0.0-SNAPSHOT openworkflow-impl-jq - Serverless Workflow :: Impl :: JQ + Open Workflow :: Impl :: JQ net.thisptr diff --git a/impl/lifecycleevent/pom.xml b/impl/lifecycleevent/pom.xml index d8027692a..dc5dad77b 100644 --- a/impl/lifecycleevent/pom.xml +++ b/impl/lifecycleevent/pom.xml @@ -6,7 +6,7 @@ 8.0.0-SNAPSHOT openworkflow-impl-lifecycle-events - Serverless Workflow :: Impl :: Jackson:: Lifecycle Events + Open Workflow :: Impl :: Lifecycle Events org.openworkflow diff --git a/impl/model/pom.xml b/impl/model/pom.xml index 6f4e84a26..465188613 100644 --- a/impl/model/pom.xml +++ b/impl/model/pom.xml @@ -6,7 +6,7 @@ 8.0.0-SNAPSHOT openworkflow-impl-model - Serverless Workflow :: Impl :: Jackson:: Model + Open Workflow :: Impl :: Model org.openworkflow 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/openworkflow-impl-model/reflect-config.json similarity index 100% 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/openworkflow-impl-model/reflect-config.json 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/org.openworkflow/openworkflow-impl-openapi/reflect-config.json similarity index 100% rename from impl/openapi-jackson/src/main/resources/META-INF/native-image/io.serverlessworkflow/serverlessworkflow-impl-openapi/reflect-config.json rename to impl/openapi-jackson/src/main/resources/META-INF/native-image/org.openworkflow/openworkflow-impl-openapi/reflect-config.json diff --git a/impl/openapi/src/main/java/org/openworkflow/impl/executors/openapi/OpenAPIExecutor.java b/impl/openapi/src/main/java/org/openworkflow/impl/executors/openapi/OpenAPIExecutor.java index c46612f4f..4481ca43e 100644 --- a/impl/openapi/src/main/java/org/openworkflow/impl/executors/openapi/OpenAPIExecutor.java +++ b/impl/openapi/src/main/java/org/openworkflow/impl/executors/openapi/OpenAPIExecutor.java @@ -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/persistence/README.md b/impl/persistence/README.md index f0fc9e0d0..efbb8fa64 100644 --- a/impl/persistence/README.md +++ b/impl/persistence/README.md @@ -1,4 +1,4 @@ -[![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) # Open Workflow Specification — Java SDK (Reference Implementation)- Persistence diff --git a/impl/persistence/mvstore/README.md b/impl/persistence/mvstore/README.md index 11f17068b..ed1e8a362 100644 --- a/impl/persistence/mvstore/README.md +++ b/impl/persistence/mvstore/README.md @@ -1,4 +1,4 @@ -[![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) # Open Workflow Specification — Java SDK (Reference Implementation)- Persistence - MVStore diff --git a/impl/test/src/test/java/org/openworkflow/impl/test/CoreTaskTypesTest.java b/impl/test/src/test/java/org/openworkflow/impl/test/CoreTaskTypesTest.java index 8954f9f5e..f8ef18f61 100644 --- a/impl/test/src/test/java/org/openworkflow/impl/test/CoreTaskTypesTest.java +++ b/impl/test/src/test/java/org/openworkflow/impl/test/CoreTaskTypesTest.java @@ -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://openworkflow.cloud/errors/not-implemented"); assertThat(wex.getWorkflowError().status()).isEqualTo(500); assertThat(wex.getWorkflowError().title()).isEqualTo("Not Implemented"); } @@ -427,7 +427,7 @@ private static Workflow raiseInlineWorkflow() { doTasks( raise( "notImplemented", - error(URI.create("https://serverlessworkflow.io/errors/not-implemented"), 500) + error(URI.create("https://openworkflow.cloud/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 +447,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://openworkflow.cloud/errors/not-implemented"); assertThat(wex.getWorkflowError().status()).isEqualTo(500); assertThat(wex.getWorkflowError().title()).isEqualTo("Not Implemented"); } @@ -468,7 +468,7 @@ private static Workflow raiseReusableWorkflow() { e.error( "notImplemented", err -> - err.type("https://serverlessworkflow.io/errors/not-implemented") + err.type("https://openworkflow.cloud/errors/not-implemented") .status(500) .title("Not Implemented") .detail( diff --git a/impl/test/src/test/java/org/openworkflow/impl/test/HTTPWorkflowDefinitionTest.java b/impl/test/src/test/java/org/openworkflow/impl/test/HTTPWorkflowDefinitionTest.java index 050cc393a..0fa8a0fc3 100644 --- a/impl/test/src/test/java/org/openworkflow/impl/test/HTTPWorkflowDefinitionTest.java +++ b/impl/test/src/test/java/org/openworkflow/impl/test/HTTPWorkflowDefinitionTest.java @@ -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/org/openworkflow/impl/test/LifeCycleEventsTest.java b/impl/test/src/test/java/org/openworkflow/impl/test/LifeCycleEventsTest.java index 7507d26c1..2662b599a 100644 --- a/impl/test/src/test/java/org/openworkflow/impl/test/LifeCycleEventsTest.java +++ b/impl/test/src/test/java/org/openworkflow/impl/test/LifeCycleEventsTest.java @@ -223,7 +223,7 @@ void testError() throws IOException { .isNotNull(); WorkflowError error = assertPojoInCE("org.openworkflow.workflow.faulted.v1", WorkflowFailedCEData.class).error(); - assertThat(error.type()).isEqualTo("https://serverlessworkflow.io/errors/not-implemented"); + assertThat(error.type()).isEqualTo("https://openworkflow.cloud/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/org/openworkflow/impl/test/RunScriptJavaScriptTest.java b/impl/test/src/test/java/org/openworkflow/impl/test/RunScriptJavaScriptTest.java index 3cf89b2eb..52894673f 100644 --- a/impl/test/src/test/java/org/openworkflow/impl/test/RunScriptJavaScriptTest.java +++ b/impl/test/src/test/java/org/openworkflow/impl/test/RunScriptJavaScriptTest.java @@ -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/org/openworkflow/impl/test/WorkflowDefinitionTest.java b/impl/test/src/test/java/org/openworkflow/impl/test/WorkflowDefinitionTest.java index c7b0b9d32..7b1726840 100644 --- a/impl/test/src/test/java/org/openworkflow/impl/test/WorkflowDefinitionTest.java +++ b/impl/test/src/test/java/org/openworkflow/impl/test/WorkflowDefinitionTest.java @@ -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://openworkflow.cloud/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/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..40687798b 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://openworkflow.cloud/spec/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..b9af0b11e 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://openworkflow.cloud/spec/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..8c24f05da 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://openworkflow.cloud/spec/1.0.0/errors/communication status: 404 \ No newline at end of file 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..6d32f18de 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://openworkflow.cloud/spec/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..0e6caca74 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://openworkflow.cloud/spec/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://openworkflow.cloud/spec/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..6defe5d85 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://openworkflow.cloud/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..d8d6d88d9 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://openworkflow.cloud/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..6a562b81f 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://openworkflow.cloud/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..8305dac42 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://openworkflow.cloud/spec/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..d859532cc 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://openworkflow.cloud/spec/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..4d007bf15 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://openworkflow.cloud/spec/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..2d622bb1f 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://openworkflow.cloud/spec/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://openworkflow.cloud/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..fac2ef9b2 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://openworkflow.cloud/spec/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..b16ba2d90 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://openworkflow.cloud/spec/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 76633a058..8e6d8b7fe 100644 --- a/impl/validation/pom.xml +++ b/impl/validation/pom.xml @@ -6,7 +6,7 @@ 8.0.0-SNAPSHOT openworkflow-impl-validation - Serverless Workflow :: Impl :: Jackson:: Validation + Open Workflow :: Impl :: Validation com.networknt diff --git a/mermaid/README.md b/mermaid/README.md index ae7a4d808..89cbf03bf 100644 --- a/mermaid/README.md +++ b/mermaid/README.md @@ -1,6 +1,6 @@ # CNCF Open Workflow SDK Java — Mermaid Exporter -Generate **Mermaid** diagrams for [Open Workflow](https://serverlessworkflow.io/) definitions. +Generate **Mermaid** diagrams for [Open Workflow](https://openworkflow.cloud/) 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. --- diff --git a/mermaid/src/test/java/org/openworkflow/mermaid/MermaidSmokeTest.java b/mermaid/src/test/java/org/openworkflow/mermaid/MermaidSmokeTest.java index 931d3d60c..8251d6d1c 100644 --- a/mermaid/src/test/java/org/openworkflow/mermaid/MermaidSmokeTest.java +++ b/mermaid/src/test/java/org/openworkflow/mermaid/MermaidSmokeTest.java @@ -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 '/'. """); diff --git a/types/pom.xml b/types/pom.xml index 5f600ab10..6890bb5f6 100644 --- a/types/pom.xml +++ b/types/pom.xml @@ -52,7 +52,7 @@ org.openworkflow - serverless-workflow-types-generator + openworkflow-types-generator ${project.version} diff --git a/types/src/main/java/org/openworkflow/types/Errors.java b/types/src/main/java/org/openworkflow/types/Errors.java index 83cb4352a..e85bea506 100644 --- a/types/src/main/java/org/openworkflow/types/Errors.java +++ b/types/src/main/java/org/openworkflow/types/Errors.java @@ -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://openworkflow.cloud/spec/%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); From 29eb464d33ad9652c60924c999434603d76cec7d Mon Sep 17 00:00:00 2001 From: Francisco Javier Tirado Sarti Date: Fri, 9 Oct 2026 18:15:49 +0200 Subject: [PATCH 3/3] [Fix #1676] Updating to org.openworkflow.sdk Signed-off-by: Francisco Javier Tirado Sarti --- README.md | 10 +-- annotations/pom.xml | 2 +- .../annotations/AdditionalProperties.java | 2 +- .../{ => sdk}/annotations/ExclusiveUnion.java | 2 +- .../{ => sdk}/annotations/InclusiveUnion.java | 2 +- .../{ => sdk}/annotations/Item.java | 2 +- .../{ => sdk}/annotations/ItemKey.java | 2 +- .../{ => sdk}/annotations/ItemValue.java | 2 +- .../{ => sdk}/annotations/OneOfSetter.java | 2 +- .../annotations/OneOfValueProvider.java | 2 +- api/pom.xml | 12 +-- .../{ => sdk}/api/DirectReader.java | 4 +- .../{ => sdk}/api/ObjectMapperFactory.java | 10 +-- .../{ => sdk}/api/ValidationReader.java | 4 +- .../{ => sdk}/api/WorkflowFormat.java | 2 +- .../{ => sdk}/api/WorkflowReader.java | 4 +- .../api/WorkflowReaderOperations.java | 4 +- .../{ => sdk}/api/WorkflowWriter.java | 4 +- ...eanDeserializerModifierWithValidation.java | 2 +- .../BeanDeserializerWithValidation.java | 2 +- .../serialization/URIDeserializer.java | 2 +- .../serialization/URISerializer.java | 2 +- .../openworkflow/{ => sdk}/api/ApiTest.java | 26 +++--- .../{ => sdk}/api/FeaturesTest.java | 14 +-- api/src/test/resources/features/raise.yaml | 2 +- api/src/test/resources/features/try.yaml | 2 +- bom/pom.xml | 2 +- examples/events/pom.xml | 4 +- .../src/main/java/events/EventExample.java | 8 +- examples/pom.xml | 8 +- examples/simpleGet/pom.xml | 8 +- .../{ => sdk}/impl/BlockingExample.java | 4 +- .../{ => sdk}/impl/NotBlockingExample.java | 4 +- fluent/README.md | 32 +++---- fluent/pom.xml | 2 +- fluent/spec/pom.xml | 4 +- .../fluent/spec/AbstractEmitTaskBuilder.java | 8 +- ...stractEventConsumptionStrategyBuilder.java | 14 +-- .../spec/AbstractEventFilterBuilder.java | 6 +- .../spec/AbstractEventPropertiesBuilder.java | 12 +-- .../fluent/spec/AbstractForkTaskBuilder.java | 14 +-- .../spec/AbstractListenTaskBuilder.java | 16 ++-- .../fluent/spec/BaseDoTaskBuilder.java | 4 +- .../fluent/spec/BaseRaiseTaskBuilder.java | 20 ++--- .../fluent/spec/BaseTaskItemListBuilder.java | 6 +- .../fluent/spec/BaseTryTaskBuilder.java | 38 ++++---- .../fluent/spec/BaseWorkflowBuilder.java | 22 ++--- .../BasicAuthenticationPolicyBuilder.java | 10 +-- .../BearerAuthenticationPolicyBuilder.java | 10 +-- .../fluent/spec/CallGrpcTaskBuilder.java | 8 +- .../fluent/spec/CallHttpTaskBuilder.java | 8 +- .../fluent/spec/CallOpenAPITaskBuilder.java | 10 +-- .../DigestAuthenticationPolicyBuilder.java | 10 +-- .../{ => sdk}/fluent/spec/DoTaskBuilder.java | 4 +- .../fluent/spec/DocumentBuilder.java | 8 +- .../fluent/spec/DurationInlineBuilder.java | 4 +- .../fluent/spec/EmitTaskBuilder.java | 2 +- .../spec/EventConsumptionStrategyBuilder.java | 12 +-- .../fluent/spec/EventFilterBuilder.java | 2 +- .../fluent/spec/EventPropertiesBuilder.java | 2 +- .../{ => sdk}/fluent/spec/ExportBuilder.java | 16 ++-- .../fluent/spec/ForEachTaskBuilder.java | 12 +-- .../fluent/spec/ForkTaskBuilder.java | 4 +- .../{ => sdk}/fluent/spec/InputBuilder.java | 18 ++-- .../fluent/spec/ListenTaskBuilder.java | 2 +- .../fluent/spec/ListenToBuilder.java | 12 +-- .../spec/ListenToConfigurerBuilder.java | 2 +- .../OAuth2AuthenticationPolicyBuilder.java | 8 +- .../{ => sdk}/fluent/spec/OIDCBuilder.java | 16 ++-- ...nIdConnectAuthenticationPolicyBuilder.java | 6 +- .../{ => sdk}/fluent/spec/OutputBuilder.java | 16 ++-- .../fluent/spec/RaiseTaskBuilder.java | 2 +- ...erenceableAuthenticationPolicyBuilder.java | 8 +- .../fluent/spec/ScheduleBuilder.java | 6 +- .../{ => sdk}/fluent/spec/SetTaskBuilder.java | 8 +- .../spec/SubscriptionIteratorBuilder.java | 8 +- .../fluent/spec/SwitchTaskBuilder.java | 8 +- .../fluent/spec/TaskBaseBuilder.java | 24 +++--- .../fluent/spec/TaskItemListBuilder.java | 12 +-- .../fluent/spec/TaskMetadataBuilder.java | 4 +- .../{ => sdk}/fluent/spec/TimeoutBuilder.java | 6 +- .../{ => sdk}/fluent/spec/TryTaskBuilder.java | 2 +- .../fluent/spec/UriTemplateBuilder.java | 4 +- .../spec/UseAuthenticationsBuilder.java | 10 +-- .../{ => sdk}/fluent/spec/UseBuilder.java | 24 +++--- .../fluent/spec/WaitTaskBuilder.java | 8 +- .../fluent/spec/WorkflowBuilder.java | 6 +- .../fluent/spec/WorkflowTaskBuilder.java | 12 +-- .../configurers/AuthenticationConfigurer.java | 4 +- .../spec/configurers/CallGrpcConfigurer.java | 4 +- .../spec/configurers/CallHttpConfigurer.java | 4 +- .../configurers/CallOpenAPIConfigurer.java | 4 +- .../spec/configurers/EmitConfigurer.java | 4 +- .../EventPropertiesConfigurer.java | 4 +- .../spec/configurers/ForEachConfigurer.java | 6 +- .../spec/configurers/ListenConfigurer.java | 4 +- .../spec/configurers/RaiseConfigurer.java | 4 +- .../spec/configurers/RetryConfigurer.java | 4 +- .../spec/configurers/SetConfigurer.java | 4 +- .../spec/configurers/SwitchConfigurer.java | 4 +- .../spec/configurers/TasksConfigurer.java | 4 +- .../spec/configurers/TryCatchConfigurer.java | 6 +- .../spec/configurers/TryConfigurer.java | 6 +- .../spec/configurers/UseConfigurer.java | 4 +- .../spec/configurers/WorkflowConfigurer.java | 4 +- .../spec/dsl/AbstractEventFilterSpec.java | 8 +- .../fluent/spec/dsl/BaseCallHttpSpec.java | 6 +- .../fluent/spec/dsl/BaseListenSpec.java | 8 +- .../fluent/spec/dsl/CallGrpcSpec.java | 10 +-- .../fluent/spec/dsl/CallHttpSpec.java | 8 +- .../fluent/spec/dsl/CallOpenAPISpec.java | 12 +-- .../{ => sdk}/fluent/spec/dsl/DSL.java | 62 ++++++------- .../{ => sdk}/fluent/spec/dsl/EmitSpec.java | 8 +- .../spec/dsl/EventEmitPropertiesSpec.java | 4 +- .../fluent/spec/dsl/EventFilterSpec.java | 6 +- .../fluent/spec/dsl/EventPropertiesSpec.java | 4 +- .../spec/dsl/ExprEventEmitPropertiesSpec.java | 4 +- .../fluent/spec/dsl/ExprEventFilterSpec.java | 4 +- .../{ => sdk}/fluent/spec/dsl/ListenSpec.java | 14 +-- .../{ => sdk}/fluent/spec/dsl/RaiseSpec.java | 6 +- .../{ => sdk}/fluent/spec/dsl/RetrySpec.java | 8 +- .../{ => sdk}/fluent/spec/dsl/SwitchSpec.java | 10 +-- .../fluent/spec/dsl/TryCatchSpec.java | 12 +-- .../{ => sdk}/fluent/spec/dsl/TrySpec.java | 10 +-- .../{ => sdk}/fluent/spec/dsl/UseSpec.java | 8 +- .../fluent/spec/dsl/WorkflowSpec.java | 8 +- .../fluent/spec/spi/CallGrpcFluent.java | 4 +- .../fluent/spec/spi/CallGrpcTaskFluent.java | 28 +++--- .../fluent/spec/spi/CallHttpFluent.java | 4 +- .../fluent/spec/spi/CallHttpTaskFluent.java | 30 +++---- .../fluent/spec/spi/CallOpenAPIFluent.java | 4 +- .../spec/spi/CallOpenAPITaskFluent.java | 24 +++--- .../{ => sdk}/fluent/spec/spi/DoFluent.java | 30 +++---- .../{ => sdk}/fluent/spec/spi/EmitFluent.java | 4 +- .../fluent/spec/spi/EndpointUtil.java | 12 +-- .../spi/EventConsumptionStrategyFluent.java | 6 +- .../fluent/spec/spi/ForEachFluent.java | 4 +- .../fluent/spec/spi/ForEachTaskFluent.java | 8 +- .../{ => sdk}/fluent/spec/spi/ForkFluent.java | 4 +- .../fluent/spec/spi/ForkTaskFluent.java | 8 +- .../fluent/spec/spi/IteratorFluent.java | 4 +- .../fluent/spec/spi/ListenFluent.java | 4 +- .../fluent/spec/spi/OutputFluent.java | 6 +- .../fluent/spec/spi/RaiseFluent.java | 4 +- .../{ => sdk}/fluent/spec/spi/SetFluent.java | 4 +- .../spec/spi/SubscriptionIteratorFluent.java | 4 +- .../fluent/spec/spi/SwitchFluent.java | 4 +- .../fluent/spec/spi/SwitchTaskFluent.java | 12 +-- .../spec/spi/TaskTransformationHandlers.java | 4 +- .../spec/spi/TransformationHandlers.java | 6 +- .../fluent/spec/spi/TryCatchFluent.java | 4 +- .../{ => sdk}/fluent/spec/spi/WaitFluent.java | 4 +- .../fluent/spec/spi/WorkflowFluent.java | 4 +- .../fluent/spec/spi/WorkflowTaskFluent.java | 10 +-- .../fluent/spec/InputBuilderTest.java | 4 +- .../fluent/spec/ScheduleBuilderTest.java | 8 +- .../spec/TaskItemDefaultNamingTest.java | 16 ++-- .../spec/UseAuthenticationsBuilderTest.java | 10 +-- .../fluent/spec/WorkflowBuilderTest.java | 86 +++++++++---------- .../fluent/spec/dsl/CallGrpcDslTest.java | 14 +-- .../fluent/spec/dsl/CallHttpAuthDslTest.java | 22 ++--- .../spec/dsl/CallHttpDslExtensionsTest.java | 12 +-- .../fluent/spec/dsl/CallOpenApiDslTest.java | 14 +-- .../fluent/spec/dsl/DSLScheduleTest.java | 22 ++--- .../{ => sdk}/fluent/spec/dsl/DSLTest.java | 44 +++++----- .../fluent/spec/dsl/DSLTimeoutTest.java | 16 ++-- .../fluent/spec/dsl/DSLWaitTest.java | 12 +-- .../fluent/spec/dsl/TryCatchDslTest.java | 24 +++--- generators/jackson/pom.xml | 6 +- .../graalvm/ReflectNativeFileHandler.java | 2 +- .../generator/jackson/GeneratorUtils.java | 6 +- .../generator/jackson/JacksonMixInPojo.java | 16 ++-- generators/pom.xml | 2 +- generators/types/pom.xml | 4 +- .../generator/AllAnyOneOfSchemaRule.java | 10 +-- .../{ => sdk}/generator/CustomAnnotator.java | 4 +- .../generator/EmptyObjectTypeRule.java | 2 +- .../{ => sdk}/generator/GeneratorUtils.java | 2 +- .../{ => sdk}/generator/JTypeWrapper.java | 6 +- .../{ => sdk}/generator/RefNameHelper.java | 2 +- .../generator/UnevaluatedPropertiesRule.java | 8 +- .../generator/UnreferencedFactory.java | 2 +- impl/README.md | 18 ++-- impl/a2a/pom.xml | 4 +- .../executors/a2a/A2AExceptionHandler.java | 6 +- .../impl/executors/a2a/A2AExecutor.java | 12 +-- .../executors/a2a/A2AExecutorBuilder.java | 24 +++--- .../executors/a2a/A2ARequestDispatcher.java | 8 +- .../impl/executors/a2a/A2AUtils.java | 16 ++-- .../executors/a2a/CancelTaskDispatcher.java | 10 +-- .../impl/executors/a2a/GetTaskDispatcher.java | 10 +-- .../executors/a2a/ListTaskDispatcher.java | 16 ++-- .../impl/executors/a2a/MessageConsumer.java | 8 +- .../executors/a2a/MessageConsumerFactory.java | 8 +- .../impl/executors/a2a/MessageDispatcher.java | 14 +-- .../executors/a2a/MessageSendConsumer.java | 6 +- .../executors/a2a/MessageStreamConsumer.java | 10 +-- ...orkflow.impl.executors.CallableTaskBuilder | 1 - ...low.sdk.impl.executors.CallableTaskBuilder | 1 + impl/container/pom.xml | 6 +- .../executors/CommandPropertySetter.java | 18 ++-- .../ContainerEnvironmentPropertySetter.java | 16 ++-- .../executors/ContainerPropertySetter.java | 8 +- .../container/executors/ContainerRunner.java | 20 ++--- .../executors/LifetimePropertySetter.java | 12 +-- .../executors/NamePropertySetter.java | 18 ++-- .../executors/PortsPropertySetter.java | 10 +-- .../RunContainerExecutorBuilder.java | 24 +++--- .../executors/VolumesPropertySetter.java | 16 ++-- ...orkflow.impl.executors.RunnableTaskBuilder | 1 - ...low.sdk.impl.executors.RunnableTaskBuilder | 1 + impl/core/pom.xml | 4 +- .../{ => sdk}/impl/AbstractWorkflowModel.java | 2 +- .../impl/AuthorizationDescriptor.java | 2 +- .../impl/CollectionConversionUtils.java | 2 +- .../impl/CompositeExpressionFactory.java | 8 +- .../impl/DefaultExecutorServiceFactory.java | 2 +- .../impl/ExecutorServiceFactory.java | 2 +- .../{ => sdk}/impl/FunctionReader.java | 6 +- .../{ => sdk}/impl/LifecycleEvents.java | 2 +- .../{ => sdk}/impl/LifecycleEventsUtils.java | 4 +- ...onotonicUlidWorkflowInstanceIdFactory.java | 2 +- .../{ => sdk}/impl/NamedObject.java | 2 +- .../{ => sdk}/impl/QueueWorkflowPosition.java | 2 +- .../impl/RuntimeDescriptorFactory.java | 4 +- .../{ => sdk}/impl/SchedulerListener.java | 10 +-- .../{ => sdk}/impl/ServicePriority.java | 2 +- .../impl/StringBufferWorkflowPosition.java | 2 +- .../{ => sdk}/impl/TaskContext.java | 6 +- .../{ => sdk}/impl/TaskContextData.java | 4 +- .../{ => sdk}/impl/WorkflowApplication.java | 84 +++++++++--------- .../{ => sdk}/impl/WorkflowContext.java | 2 +- .../{ => sdk}/impl/WorkflowContextData.java | 2 +- .../{ => sdk}/impl/WorkflowDecorator.java | 2 +- .../{ => sdk}/impl/WorkflowDefinition.java | 34 ++++---- .../impl/WorkflowDefinitionData.java | 4 +- .../{ => sdk}/impl/WorkflowDefinitionId.java | 8 +- .../{ => sdk}/impl/WorkflowError.java | 8 +- .../{ => sdk}/impl/WorkflowException.java | 2 +- .../{ => sdk}/impl/WorkflowFilter.java | 2 +- .../{ => sdk}/impl/WorkflowInstance.java | 2 +- .../{ => sdk}/impl/WorkflowInstanceData.java | 2 +- .../impl/WorkflowInstanceIdFactory.java | 2 +- .../{ => sdk}/impl/WorkflowModel.java | 2 +- .../impl/WorkflowModelCollection.java | 2 +- .../{ => sdk}/impl/WorkflowModelFactory.java | 2 +- .../impl/WorkflowMutableInstance.java | 22 ++--- .../impl/WorkflowMutablePosition.java | 2 +- .../{ => sdk}/impl/WorkflowPosition.java | 2 +- .../impl/WorkflowPositionFactory.java | 2 +- .../{ => sdk}/impl/WorkflowPredicate.java | 2 +- .../{ => sdk}/impl/WorkflowStatus.java | 2 +- .../{ => sdk}/impl/WorkflowUtils.java | 38 ++++---- .../{ => sdk}/impl/WorkflowValueResolver.java | 2 +- .../additional/ConstantAdditionalObject.java | 6 +- .../NamedWorkflowAdditionalObject.java | 4 +- .../additional/SuppliedAdditionalObject.java | 6 +- .../additional/WorkflowAdditionalObject.java | 6 +- .../impl/auth/AbstractAuthRequestBuilder.java | 46 +++++----- .../impl/auth/AccessTokenProvider.java | 8 +- .../impl/auth/AccessTokenProviderFactory.java | 4 +- .../{ => sdk}/impl/auth/AuthProvider.java | 8 +- .../impl/auth/AuthProviderFactory.java | 8 +- .../impl/auth/AuthRequestBuilder.java | 4 +- .../{ => sdk}/impl/auth/AuthUtils.java | 2 +- .../impl/auth/BasicAuthProvider.java | 26 +++--- .../impl/auth/BearerAuthProvider.java | 26 +++--- .../impl/auth/ClientSecretBasic.java | 20 ++--- .../impl/auth/ClientSecretHandler.java | 14 +-- .../{ => sdk}/impl/auth/ClientSecretPost.java | 20 ++--- .../impl/auth/CommonOAuthProvider.java | 22 ++--- .../impl/auth/DefaultAuthProviderFactory.java | 20 ++--- .../impl/auth/DigestAuthProvider.java | 30 +++---- .../{ => sdk}/impl/auth/HttpRequestInfo.java | 4 +- .../impl/auth/HttpRequestInfoBuilder.java | 8 +- .../openworkflow/{ => sdk}/impl/auth/JWT.java | 2 +- .../{ => sdk}/impl/auth/JWTConverter.java | 4 +- .../impl/auth/JwtClientAssertion.java | 28 +++--- .../impl/auth/OAuth2AuthProvider.java | 6 +- .../{ => sdk}/impl/auth/OAuthPolicyData.java | 8 +- .../impl/auth/OAuthRequestBuilder.java | 16 ++-- .../{ => sdk}/impl/auth/OAuthScheme.java | 2 +- .../{ => sdk}/impl/auth/OAuthUtils.java | 18 ++-- .../impl/auth/OpenIdAuthProvider.java | 6 +- .../impl/auth/OpenIdRequestBuilder.java | 10 +-- .../impl/auth/TokenIntrospection.java | 2 +- .../impl/config/AbstractConfigManager.java | 2 +- .../{ => sdk}/impl/config/ConfigManager.java | 4 +- .../impl/config/ConfigSecretManager.java | 2 +- .../{ => sdk}/impl/config/SecretManager.java | 4 +- .../config/SystemPropertyConfigManager.java | 2 +- .../impl/events/AbstractTypeConsumer.java | 18 ++-- .../impl/events/CloudEventAttrPredicate.java | 6 +- .../impl/events/CloudEventPredicate.java | 6 +- .../events/CloudEventPredicateFactory.java | 8 +- .../impl/events/CloudEventUtils.java | 2 +- .../impl/events/CorrelationPredicate.java | 16 ++-- .../events/DefaultCloudEventPredicate.java | 26 +++--- .../DefaultCloudEventPredicateFactory.java | 6 +- .../impl/events/EmitSourceResolver.java | 10 +-- .../impl/events/EmittedEventDecorator.java | 4 +- .../{ => sdk}/impl/events/EventConsumer.java | 12 +-- .../{ => sdk}/impl/events/EventPublisher.java | 2 +- .../impl/events/EventRegistration.java | 2 +- .../impl/events/EventRegistrationBuilder.java | 2 +- .../EventRegistrationBuilderCollection.java | 2 +- .../events/EventRegistrationBuilderInfo.java | 20 ++--- .../impl/events/EventRegistrationInfo.java | 6 +- .../{ => sdk}/impl/events/InMemoryEvents.java | 6 +- .../events/ModelAwareCloudEventPredicate.java | 8 +- .../impl/events/TypeEventRegistration.java | 6 +- .../events/TypeEventRegistrationBuilder.java | 2 +- .../impl/executors/AbstractTaskExecutor.java | 64 +++++++------- .../CallFunctionExecutorBuilder.java | 26 +++--- .../impl/executors/CallTaskExecutor.java | 14 +-- .../impl/executors/CallableTask.java | 8 +- .../impl/executors/CallableTaskBuilder.java | 10 +-- .../impl/executors/CallableTaskFactory.java | 2 +- .../executors/CallableTaskProxyBuilder.java | 6 +- .../executors/DefaultTaskExecutorFactory.java | 38 ++++---- .../{ => sdk}/impl/executors/DoExecutor.java | 14 +-- .../impl/executors/EmitExecutor.java | 38 ++++---- .../{ => sdk}/impl/executors/ForExecutor.java | 24 +++--- .../impl/executors/ForkExecutor.java | 16 ++-- .../impl/executors/ListenExecutor.java | 40 ++++----- .../impl/executors/ProcessResult.java | 2 +- .../impl/executors/RaiseExecutor.java | 38 ++++---- .../impl/executors/RegularTaskExecutor.java | 14 +-- .../impl/executors/RunScriptExecutor.java | 22 ++--- .../executors/RunScriptExecutorBuilder.java | 22 ++--- .../impl/executors/RunShellExecutor.java | 16 ++-- .../executors/RunShellExecutorBuilder.java | 12 +-- .../impl/executors/RunTaskExecutor.java | 16 ++-- .../impl/executors/RunWorkflowExecutor.java | 14 +-- .../executors/RunWorkflowExecutorBuilder.java | 16 ++-- .../impl/executors/RunnableTaskBuilder.java | 8 +- .../{ => sdk}/impl/executors/SetExecutor.java | 22 ++--- .../impl/executors/SwitchExecutor.java | 22 ++--- .../impl/executors/TaskExecutor.java | 10 +-- .../impl/executors/TaskExecutorBuilder.java | 4 +- .../impl/executors/TaskExecutorFactory.java | 12 +-- .../impl/executors/TaskExecutorHelper.java | 16 ++-- .../impl/executors/TransitionInfo.java | 2 +- .../impl/executors/TransitionInfoBuilder.java | 2 +- .../{ => sdk}/impl/executors/TryExecutor.java | 54 ++++++------ .../impl/executors/WaitExecutor.java | 20 ++--- .../retry/AbstractRetryIntervalFunction.java | 18 ++-- .../retry/ConstantRetryIntervalFunction.java | 8 +- .../executors/retry/DefaultRetryExecutor.java | 12 +-- .../ExponentialRetryIntervalFunction.java | 8 +- .../retry/LinearRetryIntervalFunction.java | 8 +- .../impl/executors/retry/RetryExecutor.java | 8 +- .../retry/RetryIntervalFunction.java | 8 +- .../AbstractExpressionFactory.java | 8 +- .../expressions/AbstractProxyCollection.java | 2 +- .../impl/expressions/DateTimeDescriptor.java | 2 +- .../expressions/ExpressionDescriptor.java | 2 +- .../impl/expressions/ExpressionFactory.java | 12 +-- .../impl/expressions/ExpressionUtils.java | 2 +- .../ExpressionValidationException.java | 2 +- .../impl/expressions/ObjectExpression.java | 8 +- .../expressions/ObjectExpressionFactory.java | 14 +-- .../impl/expressions/ProxyCollection.java | 2 +- .../impl/expressions/ProxyIterator.java | 2 +- .../{ => sdk}/impl/expressions/ProxyMap.java | 2 +- .../impl/expressions/RuntimeDescriptor.java | 2 +- .../impl/expressions/TaskDescriptor.java | 8 +- .../impl/expressions/WorkflowDescriptor.java | 10 +-- .../{ => sdk}/impl/lifecycle/EventType.java | 4 +- .../impl/lifecycle/TaskCancelledEvent.java | 6 +- .../impl/lifecycle/TaskCompletedEvent.java | 6 +- .../{ => sdk}/impl/lifecycle/TaskEvent.java | 6 +- .../impl/lifecycle/TaskFailedEvent.java | 6 +- .../impl/lifecycle/TaskResumedEvent.java | 6 +- .../impl/lifecycle/TaskRetriedEvent.java | 6 +- .../impl/lifecycle/TaskStartedEvent.java | 6 +- .../impl/lifecycle/TaskSuspendedEvent.java | 6 +- .../lifecycle/TraceExecutionListener.java | 2 +- .../lifecycle/WorkflowCancelledEvent.java | 4 +- .../lifecycle/WorkflowCompletedEvent.java | 6 +- .../impl/lifecycle/WorkflowEvent.java | 4 +- .../WorkflowExecutionCompletableListener.java | 4 +- .../lifecycle/WorkflowExecutionListener.java | 4 +- .../WorkflowExecutionListenerAdapter.java | 2 +- .../impl/lifecycle/WorkflowFailedEvent.java | 4 +- .../impl/lifecycle/WorkflowResumedEvent.java | 4 +- .../impl/lifecycle/WorkflowStartedEvent.java | 4 +- .../impl/lifecycle/WorkflowStatusEvent.java | 6 +- .../lifecycle/WorkflowSuspendedEvent.java | 4 +- .../ce/AbstractLifeCyclePublisher.java | 70 +++++++-------- .../ce/DefaultLifeCycleCloudEventFactory.java | 30 +++---- ...InputOutputLifeCycleCloudEventFactory.java | 10 +-- .../impl/lifecycle/ce/TaskCEData.java | 8 +- .../lifecycle/ce/TaskCancelledCEData.java | 4 +- .../lifecycle/ce/TaskCompletedCEData.java | 4 +- .../ce/TaskCompletedCEDataWithOutput.java | 4 +- .../impl/lifecycle/ce/TaskFailedCEData.java | 6 +- .../impl/lifecycle/ce/TaskResumedCEData.java | 4 +- .../impl/lifecycle/ce/TaskRetriedCEData.java | 4 +- .../impl/lifecycle/ce/TaskStartedCEData.java | 4 +- .../ce/TaskStartedCEDataWithInput.java | 4 +- .../lifecycle/ce/TaskSuspendedCEData.java | 4 +- .../impl/lifecycle/ce/WorkflowCEData.java | 6 +- .../lifecycle/ce/WorkflowCancelledCEData.java | 4 +- .../lifecycle/ce/WorkflowCompletedCEData.java | 4 +- .../ce/WorkflowCompletedCEDataWithOutput.java | 4 +- .../ce/WorkflowDefinitionCEData.java | 6 +- .../lifecycle/ce/WorkflowFailedCEData.java | 6 +- .../WorkflowLifeCycleCloudEventFactory.java | 30 +++---- .../lifecycle/ce/WorkflowResumedCEData.java | 4 +- .../lifecycle/ce/WorkflowStartedCEData.java | 4 +- .../ce/WorkflowStartedCEDataWithInput.java | 4 +- .../ce/WorkflowStatusCEDataEvent.java | 6 +- .../lifecycle/ce/WorkflowSuspendedCEData.java | 4 +- .../impl/marshaller/AbstractInputBuffer.java | 4 +- .../impl/marshaller/AbstractOutputBuffer.java | 4 +- .../marshaller/CustomObjectMarshaller.java | 4 +- .../impl/marshaller/DefaultBufferFactory.java | 2 +- .../impl/marshaller/DefaultInputBuffer.java | 2 +- .../impl/marshaller/DefaultOutputBuffer.java | 2 +- .../impl/marshaller/MarshallingUtils.java | 4 +- .../{ => sdk}/impl/marshaller/TaskStatus.java | 2 +- .../{ => sdk}/impl/marshaller/Type.java | 2 +- .../marshaller/WorkflowBufferFactory.java | 2 +- .../impl/marshaller/WorkflowInputBuffer.java | 2 +- .../impl/marshaller/WorkflowOutputBuffer.java | 2 +- .../impl/resources/CachedResource.java | 2 +- .../impl/resources/ClasspathResource.java | 2 +- .../impl/resources/DefaultResourceLoader.java | 4 +- .../DefaultResourceLoaderFactory.java | 4 +- .../resources/ExternalResourceHandler.java | 2 +- .../impl/resources/FileResource.java | 2 +- .../impl/resources/GitHubHelper.java | 2 +- .../impl/resources/HttpResource.java | 4 +- .../impl/resources/ResourceLoader.java | 26 +++--- .../impl/resources/ResourceLoaderFactory.java | 4 +- .../impl/resources/ResourceLoaderUtils.java | 2 +- .../impl/resources/URITemplateResolver.java | 10 +-- .../scheduler/AllStrategyCorrelationInfo.java | 6 +- .../AllStrategyCorrelationInfoFactory.java | 4 +- .../{ => sdk}/impl/scheduler/Cancellable.java | 2 +- .../impl/scheduler/CronResolver.java | 2 +- .../impl/scheduler/CronResolverFactory.java | 4 +- .../scheduler/DefaultWorkflowScheduler.java | 6 +- .../scheduler/EventWorkflowScheduler.java | 8 +- .../ExecutorServiceWorkflowScheduler.java | 4 +- .../InMemoryAllStrategyCorrelationInfo.java | 4 +- .../scheduler/ScheduledEventConsumer.java | 20 ++--- .../scheduler/ScheduledInstanceRunnable.java | 8 +- .../ScheduledServiceCancellable.java | 2 +- .../impl/scheduler/WorkflowScheduler.java | 8 +- .../impl/schema/AbstractSchemaValidator.java | 8 +- .../impl/schema/SchemaValidator.java | 6 +- .../impl/schema/SchemaValidatorFactory.java | 8 +- .../{ => sdk}/impl/scripts/ScriptContext.java | 4 +- .../impl/scripts/ScriptLanguageId.java | 2 +- .../{ => sdk}/impl/scripts/ScriptRunner.java | 12 +-- .../{ => sdk}/impl/scripts/ScriptUtils.java | 16 ++-- .../impl/scripts/StreamSuppliers.java | 2 +- .../{ => sdk}/impl/utils/RandomFactory.java | 2 +- .../reflect-config.json | 46 +++++----- ...orkflow.impl.executors.CallableTaskBuilder | 1 - ...orkflow.impl.executors.RunnableTaskBuilder | 3 - ...low.sdk.impl.executors.CallableTaskBuilder | 1 + ...low.sdk.impl.executors.RunnableTaskBuilder | 3 + .../{ => sdk}/impl/LowestPriority.java | 2 +- .../impl/LowestPriorityListener.java | 4 +- .../{ => sdk}/impl/MediumPriority.java | 2 +- .../impl/MediumPriorityListener.java | 4 +- .../{ => sdk}/impl/ServicePriorityTest.java | 2 +- .../{ => sdk}/impl/TopPriority.java | 2 +- .../{ => sdk}/impl/TopPriorityListener.java | 4 +- .../impl/WorkflowAdditionalObjectTest.java | 6 +- .../{ => sdk}/impl/WorkflowListenerTest.java | 4 +- .../{ => sdk}/impl/WorkflowUtilsTest.java | 2 +- .../{ => sdk}/impl/auth/JWTTest.java | 2 +- .../{ => sdk}/impl/marshaller/Employee.java | 2 +- .../impl/marshaller/MarshallingUtilsTest.java | 2 +- .../impl/marshaller/NonSerializableClass.java | 2 +- .../{ => sdk}/impl/marshaller/Person.java | 2 +- .../impl/marshaller/SerializableClass.java | 2 +- .../{ => sdk}/impl/marshaller/Student.java | 2 +- .../org.openworkflow.impl.ServicePriority | 3 - .../org.openworkflow.sdk.impl.ServicePriority | 3 + impl/cron/pom.xml | 4 +- .../impl/cron/CronUtilsResolver.java | 4 +- .../impl/cron/CronUtilsResolverFactory.java | 6 +- ...orkflow.impl.scheduler.CronResolverFactory | 1 - ...low.sdk.impl.scheduler.CronResolverFactory | 1 + impl/function/pom.xml | 8 +- .../function/JacksonFunctionReader.java | 10 +-- .../org.openworkflow.impl.FunctionReader | 1 - .../org.openworkflow.sdk.impl.FunctionReader | 1 + impl/grpc/pom.xml | 6 +- .../grpc/CollectionStreamObserver.java | 8 +- .../executors/grpc/FileDescriptorReader.java | 4 +- .../impl/executors/grpc/GrpcExecutor.java | 14 +-- .../executors/grpc/GrpcExecutorBuilder.java | 20 ++--- .../executors/grpc/ItemStreamObserver.java | 8 +- .../executors/grpc/ModelStreamObserver.java | 14 +-- .../executors/grpc/ProtobufMessageUtils.java | 8 +- ...orkflow.impl.executors.CallableTaskBuilder | 1 - ...low.sdk.impl.executors.CallableTaskBuilder | 1 + impl/http/pom.xml | 4 +- .../http/AbstractRequestExecutor.java | 18 ++-- .../http/CallableTaskHttpExecutorBuilder.java | 22 ++--- .../executors/http/HttpClientResolver.java | 8 +- .../executors/http/HttpConverterResolver.java | 6 +- .../impl/executors/http/HttpExecutor.java | 14 +-- .../executors/http/HttpExecutorBuilder.java | 16 ++-- .../executors/http/HttpModelConverter.java | 6 +- .../executors/http/HttpRequestDecorator.java | 4 +- .../impl/executors/http/RequestExecutor.java | 8 +- .../http/WithBodyRequestExecutor.java | 16 ++-- .../http/WithoutBodyRequestExecutor.java | 10 +-- .../http/auth/JaxRSAccessTokenProvider.java | 24 +++--- .../auth/JaxRSAccessTokenProviderFactory.java | 10 +-- ...kflow.impl.auth.AccessTokenProviderFactory | 1 - ...orkflow.impl.executors.CallableTaskBuilder | 1 - ...w.sdk.impl.auth.AccessTokenProviderFactory | 1 + ...low.sdk.impl.executors.CallableTaskBuilder | 1 + impl/jackson/pom.xml | 18 ++-- impl/javascript/pom.xml | 4 +- .../script/js/JavaScriptScriptTaskRunner.java | 18 ++-- ...org.openworkflow.impl.scripts.ScriptRunner | 1 - ...openworkflow.sdk.impl.scripts.ScriptRunner | 1 + impl/jq/pom.xml | 6 +- .../impl/expressions/jq/JQExpression.java | 26 +++--- .../expressions/jq/JQExpressionFactory.java | 10 +-- ...orkflow.impl.expressions.ExpressionFactory | 1 - ...low.sdk.impl.expressions.ExpressionFactory | 1 + .../jq/JQExpressionFactoryTest.java | 14 +-- impl/json-utils/pom.xml | 4 +- .../impl/jackson/FunctionBaseJsonNode.java | 2 +- .../impl/jackson/FunctionJsonNode.java | 2 +- .../impl/jackson/JacksonCloudEventUtils.java | 2 +- .../{ => sdk}/impl/jackson/JsonUtils.java | 4 +- .../{ => sdk}/impl/jackson/MergeUtils.java | 2 +- .../impl/jackson/ObjectMapperFactory.java | 4 +- .../jackson/ObjectMapperFactoryProvider.java | 4 +- .../jackson/JacksonCloudEventUtilsTest.java | 2 +- .../impl/jackson/JsonUtilsStaticInitTest.java | 2 +- impl/jwt-impl/pom.xml | 6 +- .../jackson/JacksonModelConverterFactory.java | 12 +-- .../oauth/jackson/JacksonJWTConverter.java | 8 +- ...l.additional.NamedWorkflowAdditionalObject | 1 - .../org.openworkflow.impl.auth.JWTConverter | 1 - ...l.additional.NamedWorkflowAdditionalObject | 1 + ...rg.openworkflow.sdk.impl.auth.JWTConverter | 1 + .../impl/http/jwt/JacksonJWTImplTest.java | 6 +- impl/lifecycleevent/pom.xml | 8 +- .../events/JacksonLifeCyclePublisher.java | 6 +- ...w.impl.lifecycle.WorkflowExecutionListener | 1 - ...k.impl.lifecycle.WorkflowExecutionListener | 1 + .../events/JacksonLifeCyclePublisherTest.java | 86 +++++++++---------- impl/model/pom.xml | 6 +- .../jackson/AbstractJacksonMarshaller.java | 10 +-- .../impl/model/jackson/JacksonModel.java | 8 +- .../model/jackson/JacksonModelCollection.java | 10 +-- .../JacksonModelCollectionDeserializer.java | 2 +- .../JacksonModelCollectionMarshaller.java | 2 +- .../JacksonModelCollectionSerializer.java | 2 +- .../jackson/JacksonModelDeserializer.java | 2 +- .../model/jackson/JacksonModelFactory.java | 12 +-- .../model/jackson/JacksonModelMarshaller.java | 4 +- .../model/jackson/JacksonModelSerializer.java | 2 +- .../jackson/JacksonObjectMarshaller.java | 2 +- .../reflect-config.json | 8 +- ...org.openworkflow.impl.WorkflowModelFactory | 1 - ...low.impl.marshaller.CustomObjectMarshaller | 3 - ...openworkflow.sdk.impl.WorkflowModelFactory | 1 + ...sdk.impl.marshaller.CustomObjectMarshaller | 3 + .../impl/model/jackson/Employee.java | 2 +- .../JacksonModelSerializationTest.java | 12 +-- .../impl/model/jackson/JacksonModelTest.java | 8 +- impl/openapi-jackson/pom.xml | 8 +- .../jackson/JacksonUnifiedOpenAPIMixIn.java | 2 +- .../JacksonUnifiedOpenAPIMixInModule.java | 4 +- .../jackson/JacksonUnifiedOpenAPIReader.java | 10 +-- .../JacksonUnifiedOpenAPIReaderFactory.java | 8 +- .../reflect-config.json | 14 +++ .../reflect-config.json | 14 --- .../com.fasterxml.jackson.databind.Module | 2 +- ...l.additional.NamedWorkflowAdditionalObject | 1 - ...l.additional.NamedWorkflowAdditionalObject | 1 + .../jackson/JacksonOpenAPIProcessorTest.java | 6 +- impl/openapi/pom.xml | 6 +- .../executors/openapi/OpenAPIExecutor.java | 20 ++--- .../openapi/OpenAPIExecutorBuilder.java | 20 ++--- .../executors/openapi/OpenAPIProcessor.java | 2 +- .../openapi/OperationDefinition.java | 2 +- .../openapi/OperationPathResolver.java | 14 +-- .../openapi/ParameterDefinition.java | 2 +- .../executors/openapi/UnifiedOpenAPI.java | 2 +- .../openapi/UnifiedOpenAPIReader.java | 4 +- ...orkflow.impl.executors.CallableTaskBuilder | 1 - ...low.sdk.impl.executors.CallableTaskBuilder | 1 + .../openapi/OpenAPIProcessorTest.java | 6 +- impl/persistence/api/pom.xml | 4 +- .../AbstractAllStrategyCorrelationInfo.java | 10 +-- .../AbstractAsyncPersistenceExecutor.java | 4 +- .../AbstractPersistenceInstanceReader.java | 6 +- .../AbstractPersistenceInstanceWriter.java | 8 +- .../persistence/AsyncPersistenceExecutor.java | 2 +- .../impl/persistence/CompletedTaskInfo.java | 4 +- .../persistence/CorrelationOperations.java | 2 +- .../DefaultPersistenceInstanceHandlers.java | 4 +- .../DefaultPersistenceInstanceReader.java | 6 +- .../DefaultPersistenceInstanceWriter.java | 4 +- .../OperationAllStrategyCorrelationInfo.java | 6 +- ...tionAllStrategyCorrelationInfoFactory.java | 8 +- ...ceAllStrategyCorrelationInfoFactories.java | 4 +- .../PersistenceApplicationBuilder.java | 6 +- .../impl/persistence/PersistenceExecutor.java | 4 +- .../PersistenceInstanceHandlers.java | 4 +- .../persistence/PersistenceInstanceInfo.java | 4 +- .../PersistenceInstanceOperations.java | 10 +-- .../PersistenceInstanceReader.java | 6 +- .../persistence/PersistenceInstanceStore.java | 2 +- .../PersistenceInstanceTransaction.java | 4 +- .../PersistenceInstanceWriter.java | 6 +- .../impl/persistence/PersistenceTaskInfo.java | 2 +- .../persistence/PersistenceWorkflowInfo.java | 6 +- .../impl/persistence/RetriedTaskInfo.java | 2 +- .../StoreAllStrategyCorrelationInfo.java | 6 +- ...toreAllStrategyCorrelationInfoFactory.java | 8 +- .../TransactedPersistenceInstanceWriter.java | 6 +- .../WorkflowPersistenceInstance.java | 20 ++--- .../WorkflowPersistenceListener.java | 22 ++--- .../hashing/DefaultHashFactory.java | 6 +- .../persistence/hashing/DefaultHashIndex.java | 2 +- .../impl/persistence/hashing/HashFactory.java | 4 +- .../impl/persistence/hashing/HashIndex.java | 2 +- .../impl/persistence/hashing/HashItem.java | 4 +- .../hashing/HashMappingCoordinator.java | 2 +- .../persistence/hashing/HashMappingInfo.java | 2 +- .../persistence/hashing/IntegerHashItem.java | 6 +- .../impl/persistence/hashing/LRUCache.java | 2 +- .../impl/persistence/hashing/MD5HashItem.java | 6 +- .../persistence/metadata/MetaTransient.java | 2 +- .../metadata/PersistenceMetaUtils.java | 4 +- .../hashing/HashMappingCoordinatorTest.java | 4 +- .../persistence/hashing/LRUCacheTest.java | 2 +- impl/persistence/bigmap/pom.xml | 4 +- .../bigmap/BigMapInstanceTransaction.java | 24 +++--- .../bigmap/BytesMapInstanceTransaction.java | 46 +++++----- impl/persistence/mvstore/pom.xml | 6 +- .../mvstore/MVStorePersistenceStore.java | 16 ++-- .../mvstore/MVStoreTransaction.java | 14 +-- .../HashingMVStorePersistenceTest.java | 6 +- .../mvstore/MD5MVStorePersistenceTest.java | 6 +- .../mvstore/MVStoreCorrelationTest.java | 6 +- .../mvstore/MVStorePersistenceStoreTest.java | 12 +-- impl/persistence/pom.xml | 2 +- impl/persistence/tests/pom.xml | 8 +- .../AbstractCorrelationPersistenceTest.java | 22 ++--- .../test/AbstractHandlerPersistenceTest.java | 44 +++++----- ...tOperationsCorrelationPersistenceTest.java | 8 +- .../test/AbstractPersistenceTest.java | 8 +- ...stractStoreCorrelationPersistenceTest.java | 8 +- impl/pom.xml | 50 +++++------ impl/python/pom.xml | 4 +- .../script/python/PythonScriptTaskRunner.java | 16 ++-- ...org.openworkflow.impl.scripts.ScriptRunner | 1 - ...openworkflow.sdk.impl.scripts.ScriptRunner | 1 + impl/template/pom.xml | 4 +- .../template/JaxrsURITemplateResolver.java | 10 +-- ...orkflow.impl.resources.URITemplateResolver | 1 - ...low.sdk.impl.resources.URITemplateResolver | 1 + impl/test/pom.xml | 30 +++---- .../impl/auth/OAuthRequestBuilderTest.java | 14 +-- .../{ => sdk}/impl/test/A2AExecutorTest.java | 10 +-- .../impl/test/AccessTokenProvider.java | 2 +- .../impl/test/BasicAuthHttpTest.java | 12 +-- .../impl/test/CancelMetadataTest.java | 38 ++++---- .../{ => sdk}/impl/test/ContainerTest.java | 8 +- .../impl/test/CoreTaskTypesTest.java | 38 ++++---- .../{ => sdk}/impl/test/CorrelationTest.java | 22 ++--- ...CustomAuthProviderFactoryOverrideTest.java | 24 +++--- .../impl/test/CustomFunctionTest.java | 10 +-- .../{ => sdk}/impl/test/DBGenerator.java | 20 ++--- .../impl/test/DateTimeDescriptorTest.java | 6 +- .../impl/test/DigestAuthHttpTest.java | 14 +-- .../{ => sdk}/impl/test/EmitExecutorTest.java | 14 +-- .../impl/test/EventDefinitionTest.java | 16 ++-- .../impl/test/ForTaskMissingInTest.java | 8 +- .../{ => sdk}/impl/test/ForkWaitTest.java | 20 ++--- .../impl/test/HTTPWorkflowDefinitionTest.java | 14 +-- .../impl/test/LifeCycleEventsTest.java | 53 ++++++------ .../impl/test/MvStorePersistenceTest.java | 22 ++--- .../test/OAuthHTTPWorkflowDefinitionTest.java | 10 +-- .../{ => sdk}/impl/test/OAuthUtilsTest.java | 26 +++--- .../{ => sdk}/impl/test/OpenAPITest.java | 12 +-- .../OpenIDCHTTPWorkflowDefinitionTest.java | 10 +-- .../impl/test/ResolvePolicyTest.java | 22 ++--- .../{ => sdk}/impl/test/RetryTimeoutTest.java | 22 ++--- .../impl/test/RunScriptJavaScriptTest.java | 12 +-- .../impl/test/RunShellExecutorTest.java | 12 +-- .../impl/test/ScheduleEventConsumerTest.java | 14 +-- .../{ => sdk}/impl/test/SchedulerTest.java | 10 +-- .../impl/test/SecretExpressionTest.java | 10 +-- .../{ => sdk}/impl/test/SubWorkflowTest.java | 12 +-- .../test/TaskCounterPerInstanceListener.java | 12 +-- .../impl/test/UndefinedAuthReferenceTest.java | 10 +-- .../{ => sdk}/impl/test/WaitExecutorTest.java | 20 ++--- .../impl/test/WorkflowDefinitionTest.java | 20 ++--- .../WorkflowExecutionListenerOutputTest.java | 14 +-- .../impl/test/WorkflowInstanceIdTest.java | 10 +-- .../grpc/GrpcBiDirectionalStreamingTest.java | 24 +++--- .../test/grpc/GrpcClientStreamingTest.java | 22 ++--- .../test/grpc/GrpcServerStreamingTest.java | 24 +++--- .../impl/test/grpc/GrpcUnaryArgsExprTest.java | 24 +++--- .../impl/test/grpc/GrpcUnaryTest.java | 24 +++--- .../ContributorBiDiStreamingHandler.java | 6 +- .../ContributorClientStreamingHandler.java | 6 +- .../ContributorServerStreamingHandler.java | 6 +- .../ContributorUnaryArgsExprHandler.java | 6 +- .../grpc/handlers/PersonUnaryHandler.java | 2 +- .../impl/test/junit/BinaryCheckUtil.java | 2 +- .../junit/DisabledIfProtocUnavailable.java | 2 +- .../junit/DisabledIfPythonUnavailable.java | 2 +- .../impl/test/junit/ProtocCheckCondition.java | 4 +- .../impl/test/junit/PythonCheckCondition.java | 4 +- .../call-http-endpoint-interpolation.yaml | 2 +- .../call-http-find-by-status.yaml | 2 +- .../workflows-samples/call-http-get.yaml | 2 +- .../grpc/proto/contributors.proto | 2 +- .../listen-to-one-timeout.yaml | 2 +- .../nested-try-catch-retry-inline.yaml | 4 +- .../workflows-samples/raise-inline.yaml | 2 +- .../workflows-samples/raise-reusable.yaml | 2 +- .../try-catch-match-then.yaml | 2 +- ...-catch-retry-attempt-duration-overall.yaml | 2 +- ...ry-catch-retry-attempt-duration-retry.yaml | 2 +- .../try-catch-retry-attempt-duration.yaml | 2 +- .../try-catch-retry-inline-then.yaml | 4 +- .../try-catch-retry-inline.yaml | 2 +- .../try-catch-retry-reusable.yaml | 2 +- .../workflows-samples/validation_test.yaml | 21 ----- impl/validation/pom.xml | 8 +- .../jackson/schema/JsonSchemaValidator.java | 4 +- .../schema/JsonSchemaValidatorFactory.java | 14 +-- ...orkflow.impl.schema.SchemaValidatorFactory | 1 - ...low.sdk.impl.schema.SchemaValidatorFactory | 1 + mermaid/README.md | 16 ++-- mermaid/pom.xml | 8 +- .../{ => sdk}/mermaid/CallNode.java | 8 +- .../mermaid/DefaultNodeRenderer.java | 2 +- .../openworkflow/{ => sdk}/mermaid/Edge.java | 2 +- .../{ => sdk}/mermaid/EmitNode.java | 6 +- .../{ => sdk}/mermaid/EndpointStringify.java | 18 ++-- .../{ => sdk}/mermaid/ForNode.java | 6 +- .../{ => sdk}/mermaid/ForkNode.java | 6 +- .../openworkflow/{ => sdk}/mermaid/Ids.java | 4 +- .../{ => sdk}/mermaid/IteratorNode.java | 4 +- .../{ => sdk}/mermaid/ListenNode.java | 8 +- .../{ => sdk}/mermaid/Mermaid.java | 6 +- .../{ => sdk}/mermaid/MermaidGraph.java | 12 +-- .../{ => sdk}/mermaid/MermaidInk.java | 2 +- .../{ => sdk}/mermaid/MermaidRenderer.java | 2 +- .../openworkflow/{ => sdk}/mermaid/Node.java | 2 +- .../{ => sdk}/mermaid/NodeBuilder.java | 28 +++--- .../{ => sdk}/mermaid/NodeRenderer.java | 2 +- .../{ => sdk}/mermaid/NodeType.java | 2 +- .../{ => sdk}/mermaid/RaiseNode.java | 4 +- .../{ => sdk}/mermaid/RunNode.java | 6 +- .../{ => sdk}/mermaid/SubgraphNode.java | 2 +- .../mermaid/SubgraphNodeRenderer.java | 2 +- .../{ => sdk}/mermaid/SwitchNode.java | 6 +- .../{ => sdk}/mermaid/TaskNode.java | 4 +- .../{ => sdk}/mermaid/TaskSubgraphNode.java | 4 +- .../{ => sdk}/mermaid/TryCatchNode.java | 4 +- .../{ => sdk}/mermaid/WaitNode.java | 8 +- .../mermaid/ClasspathYamlFinder.java | 2 +- .../{ => sdk}/mermaid/MermaidSmokeTest.java | 6 +- pom.xml | 12 +-- serialization/pom.xml | 4 +- .../serialization/DeserializeHelper.java | 4 +- .../serialization/SerializeHelper.java | 4 +- types/pom.xml | 12 +-- .../{ => sdk}/types/Defaults.java | 2 +- .../openworkflow/{ => sdk}/types/Errors.java | 4 +- 782 files changed, 3391 insertions(+), 3407 deletions(-) rename annotations/src/main/java/org/openworkflow/{ => sdk}/annotations/AdditionalProperties.java (95%) rename annotations/src/main/java/org/openworkflow/{ => sdk}/annotations/ExclusiveUnion.java (95%) rename annotations/src/main/java/org/openworkflow/{ => sdk}/annotations/InclusiveUnion.java (95%) rename annotations/src/main/java/org/openworkflow/{ => sdk}/annotations/Item.java (95%) rename annotations/src/main/java/org/openworkflow/{ => sdk}/annotations/ItemKey.java (95%) rename annotations/src/main/java/org/openworkflow/{ => sdk}/annotations/ItemValue.java (95%) rename annotations/src/main/java/org/openworkflow/{ => sdk}/annotations/OneOfSetter.java (95%) rename annotations/src/main/java/org/openworkflow/{ => sdk}/annotations/OneOfValueProvider.java (94%) rename api/src/main/java/org/openworkflow/{ => sdk}/api/DirectReader.java (94%) rename api/src/main/java/org/openworkflow/{ => sdk}/api/ObjectMapperFactory.java (88%) rename api/src/main/java/org/openworkflow/{ => sdk}/api/ValidationReader.java (97%) rename api/src/main/java/org/openworkflow/{ => sdk}/api/WorkflowFormat.java (98%) rename api/src/main/java/org/openworkflow/{ => sdk}/api/WorkflowReader.java (98%) rename api/src/main/java/org/openworkflow/{ => sdk}/api/WorkflowReaderOperations.java (92%) rename api/src/main/java/org/openworkflow/{ => sdk}/api/WorkflowWriter.java (98%) rename api/src/main/java/org/openworkflow/{ => sdk}/serialization/BeanDeserializerModifierWithValidation.java (96%) rename api/src/main/java/org/openworkflow/{ => sdk}/serialization/BeanDeserializerWithValidation.java (97%) rename api/src/main/java/org/openworkflow/{ => sdk}/serialization/URIDeserializer.java (96%) rename api/src/main/java/org/openworkflow/{ => sdk}/serialization/URISerializer.java (96%) rename api/src/test/java/org/openworkflow/{ => sdk}/api/ApiTest.java (87%) rename api/src/test/java/org/openworkflow/{ => sdk}/api/FeaturesTest.java (88%) rename examples/simpleGet/src/main/java/org/openworkflow/{ => sdk}/impl/BlockingExample.java (93%) rename examples/simpleGet/src/main/java/org/openworkflow/{ => sdk}/impl/NotBlockingExample.java (94%) rename fluent/spec/src/main/java/org/openworkflow/{ => sdk}/fluent/spec/AbstractEmitTaskBuilder.java (87%) rename fluent/spec/src/main/java/org/openworkflow/{ => sdk}/fluent/spec/AbstractEventConsumptionStrategyBuilder.java (91%) rename fluent/spec/src/main/java/org/openworkflow/{ => sdk}/fluent/spec/AbstractEventFilterBuilder.java (91%) rename fluent/spec/src/main/java/org/openworkflow/{ => sdk}/fluent/spec/AbstractEventPropertiesBuilder.java (89%) rename fluent/spec/src/main/java/org/openworkflow/{ => sdk}/fluent/spec/AbstractForkTaskBuilder.java (90%) rename fluent/spec/src/main/java/org/openworkflow/{ => sdk}/fluent/spec/AbstractListenTaskBuilder.java (88%) rename fluent/spec/src/main/java/org/openworkflow/{ => sdk}/fluent/spec/BaseDoTaskBuilder.java (95%) rename fluent/spec/src/main/java/org/openworkflow/{ => sdk}/fluent/spec/BaseRaiseTaskBuilder.java (84%) rename fluent/spec/src/main/java/org/openworkflow/{ => sdk}/fluent/spec/BaseTaskItemListBuilder.java (96%) rename fluent/spec/src/main/java/org/openworkflow/{ => sdk}/fluent/spec/BaseTryTaskBuilder.java (92%) rename fluent/spec/src/main/java/org/openworkflow/{ => sdk}/fluent/spec/BaseWorkflowBuilder.java (91%) rename fluent/spec/src/main/java/org/openworkflow/{ => sdk}/fluent/spec/BasicAuthenticationPolicyBuilder.java (85%) rename fluent/spec/src/main/java/org/openworkflow/{ => sdk}/fluent/spec/BearerAuthenticationPolicyBuilder.java (84%) rename fluent/spec/src/main/java/org/openworkflow/{ => sdk}/fluent/spec/CallGrpcTaskBuilder.java (82%) rename fluent/spec/src/main/java/org/openworkflow/{ => sdk}/fluent/spec/CallHttpTaskBuilder.java (87%) rename fluent/spec/src/main/java/org/openworkflow/{ => sdk}/fluent/spec/CallOpenAPITaskBuilder.java (79%) rename fluent/spec/src/main/java/org/openworkflow/{ => sdk}/fluent/spec/DigestAuthenticationPolicyBuilder.java (85%) rename fluent/spec/src/main/java/org/openworkflow/{ => sdk}/fluent/spec/DoTaskBuilder.java (97%) rename fluent/spec/src/main/java/org/openworkflow/{ => sdk}/fluent/spec/DocumentBuilder.java (93%) rename fluent/spec/src/main/java/org/openworkflow/{ => sdk}/fluent/spec/DurationInlineBuilder.java (93%) rename fluent/spec/src/main/java/org/openworkflow/{ => sdk}/fluent/spec/EmitTaskBuilder.java (95%) rename fluent/spec/src/main/java/org/openworkflow/{ => sdk}/fluent/spec/EventConsumptionStrategyBuilder.java (83%) rename fluent/spec/src/main/java/org/openworkflow/{ => sdk}/fluent/spec/EventFilterBuilder.java (95%) rename fluent/spec/src/main/java/org/openworkflow/{ => sdk}/fluent/spec/EventPropertiesBuilder.java (95%) rename fluent/spec/src/main/java/org/openworkflow/{ => sdk}/fluent/spec/ExportBuilder.java (80%) rename fluent/spec/src/main/java/org/openworkflow/{ => sdk}/fluent/spec/ForEachTaskBuilder.java (89%) rename fluent/spec/src/main/java/org/openworkflow/{ => sdk}/fluent/spec/ForkTaskBuilder.java (90%) rename fluent/spec/src/main/java/org/openworkflow/{ => sdk}/fluent/spec/InputBuilder.java (88%) rename fluent/spec/src/main/java/org/openworkflow/{ => sdk}/fluent/spec/ListenTaskBuilder.java (96%) rename fluent/spec/src/main/java/org/openworkflow/{ => sdk}/fluent/spec/ListenToBuilder.java (82%) rename fluent/spec/src/main/java/org/openworkflow/{ => sdk}/fluent/spec/ListenToConfigurerBuilder.java (98%) rename fluent/spec/src/main/java/org/openworkflow/{ => sdk}/fluent/spec/OAuth2AuthenticationPolicyBuilder.java (91%) rename fluent/spec/src/main/java/org/openworkflow/{ => sdk}/fluent/spec/OIDCBuilder.java (91%) rename fluent/spec/src/main/java/org/openworkflow/{ => sdk}/fluent/spec/OpenIdConnectAuthenticationPolicyBuilder.java (86%) rename fluent/spec/src/main/java/org/openworkflow/{ => sdk}/fluent/spec/OutputBuilder.java (80%) rename fluent/spec/src/main/java/org/openworkflow/{ => sdk}/fluent/spec/RaiseTaskBuilder.java (95%) rename fluent/spec/src/main/java/org/openworkflow/{ => sdk}/fluent/spec/ReferenceableAuthenticationPolicyBuilder.java (93%) rename fluent/spec/src/main/java/org/openworkflow/{ => sdk}/fluent/spec/ScheduleBuilder.java (97%) rename fluent/spec/src/main/java/org/openworkflow/{ => sdk}/fluent/spec/SetTaskBuilder.java (88%) rename fluent/spec/src/main/java/org/openworkflow/{ => sdk}/fluent/spec/SubscriptionIteratorBuilder.java (92%) rename fluent/spec/src/main/java/org/openworkflow/{ => sdk}/fluent/spec/SwitchTaskBuilder.java (89%) rename fluent/spec/src/main/java/org/openworkflow/{ => sdk}/fluent/spec/TaskBaseBuilder.java (86%) rename fluent/spec/src/main/java/org/openworkflow/{ => sdk}/fluent/spec/TaskItemListBuilder.java (95%) rename fluent/spec/src/main/java/org/openworkflow/{ => sdk}/fluent/spec/TaskMetadataBuilder.java (94%) rename fluent/spec/src/main/java/org/openworkflow/{ => sdk}/fluent/spec/TimeoutBuilder.java (92%) rename fluent/spec/src/main/java/org/openworkflow/{ => sdk}/fluent/spec/TryTaskBuilder.java (95%) rename fluent/spec/src/main/java/org/openworkflow/{ => sdk}/fluent/spec/UriTemplateBuilder.java (91%) rename fluent/spec/src/main/java/org/openworkflow/{ => sdk}/fluent/spec/UseAuthenticationsBuilder.java (90%) rename fluent/spec/src/main/java/org/openworkflow/{ => sdk}/fluent/spec/UseBuilder.java (88%) rename fluent/spec/src/main/java/org/openworkflow/{ => sdk}/fluent/spec/WaitTaskBuilder.java (92%) rename fluent/spec/src/main/java/org/openworkflow/{ => sdk}/fluent/spec/WorkflowBuilder.java (90%) rename fluent/spec/src/main/java/org/openworkflow/{ => sdk}/fluent/spec/WorkflowTaskBuilder.java (81%) rename fluent/spec/src/main/java/org/openworkflow/{ => sdk}/fluent/spec/configurers/AuthenticationConfigurer.java (85%) rename fluent/spec/src/main/java/org/openworkflow/{ => sdk}/fluent/spec/configurers/CallGrpcConfigurer.java (86%) rename fluent/spec/src/main/java/org/openworkflow/{ => sdk}/fluent/spec/configurers/CallHttpConfigurer.java (86%) rename fluent/spec/src/main/java/org/openworkflow/{ => sdk}/fluent/spec/configurers/CallOpenAPIConfigurer.java (86%) rename fluent/spec/src/main/java/org/openworkflow/{ => sdk}/fluent/spec/configurers/EmitConfigurer.java (87%) rename fluent/spec/src/main/java/org/openworkflow/{ => sdk}/fluent/spec/configurers/EventPropertiesConfigurer.java (86%) rename fluent/spec/src/main/java/org/openworkflow/{ => sdk}/fluent/spec/configurers/ForEachConfigurer.java (81%) rename fluent/spec/src/main/java/org/openworkflow/{ => sdk}/fluent/spec/configurers/ListenConfigurer.java (87%) rename fluent/spec/src/main/java/org/openworkflow/{ => sdk}/fluent/spec/configurers/RaiseConfigurer.java (87%) rename fluent/spec/src/main/java/org/openworkflow/{ => sdk}/fluent/spec/configurers/RetryConfigurer.java (87%) rename fluent/spec/src/main/java/org/openworkflow/{ => sdk}/fluent/spec/configurers/SetConfigurer.java (87%) rename fluent/spec/src/main/java/org/openworkflow/{ => sdk}/fluent/spec/configurers/SwitchConfigurer.java (87%) rename fluent/spec/src/main/java/org/openworkflow/{ => sdk}/fluent/spec/configurers/TasksConfigurer.java (86%) rename fluent/spec/src/main/java/org/openworkflow/{ => sdk}/fluent/spec/configurers/TryCatchConfigurer.java (82%) rename fluent/spec/src/main/java/org/openworkflow/{ => sdk}/fluent/spec/configurers/TryConfigurer.java (81%) rename fluent/spec/src/main/java/org/openworkflow/{ => sdk}/fluent/spec/configurers/UseConfigurer.java (87%) rename fluent/spec/src/main/java/org/openworkflow/{ => sdk}/fluent/spec/configurers/WorkflowConfigurer.java (86%) rename fluent/spec/src/main/java/org/openworkflow/{ => sdk}/fluent/spec/dsl/AbstractEventFilterSpec.java (87%) rename fluent/spec/src/main/java/org/openworkflow/{ => sdk}/fluent/spec/dsl/BaseCallHttpSpec.java (96%) rename fluent/spec/src/main/java/org/openworkflow/{ => sdk}/fluent/spec/dsl/BaseListenSpec.java (93%) rename fluent/spec/src/main/java/org/openworkflow/{ => sdk}/fluent/spec/dsl/CallGrpcSpec.java (86%) rename fluent/spec/src/main/java/org/openworkflow/{ => sdk}/fluent/spec/dsl/CallHttpSpec.java (87%) rename fluent/spec/src/main/java/org/openworkflow/{ => sdk}/fluent/spec/dsl/CallOpenAPISpec.java (86%) rename fluent/spec/src/main/java/org/openworkflow/{ => sdk}/fluent/spec/dsl/DSL.java (95%) rename fluent/spec/src/main/java/org/openworkflow/{ => sdk}/fluent/spec/dsl/EmitSpec.java (80%) rename fluent/spec/src/main/java/org/openworkflow/{ => sdk}/fluent/spec/dsl/EventEmitPropertiesSpec.java (92%) rename fluent/spec/src/main/java/org/openworkflow/{ => sdk}/fluent/spec/dsl/EventFilterSpec.java (83%) rename fluent/spec/src/main/java/org/openworkflow/{ => sdk}/fluent/spec/dsl/EventPropertiesSpec.java (93%) rename fluent/spec/src/main/java/org/openworkflow/{ => sdk}/fluent/spec/dsl/ExprEventEmitPropertiesSpec.java (92%) rename fluent/spec/src/main/java/org/openworkflow/{ => sdk}/fluent/spec/dsl/ExprEventFilterSpec.java (91%) rename fluent/spec/src/main/java/org/openworkflow/{ => sdk}/fluent/spec/dsl/ListenSpec.java (79%) rename fluent/spec/src/main/java/org/openworkflow/{ => sdk}/fluent/spec/dsl/RaiseSpec.java (90%) rename fluent/spec/src/main/java/org/openworkflow/{ => sdk}/fluent/spec/dsl/RetrySpec.java (93%) rename fluent/spec/src/main/java/org/openworkflow/{ => sdk}/fluent/spec/dsl/SwitchSpec.java (89%) rename fluent/spec/src/main/java/org/openworkflow/{ => sdk}/fluent/spec/dsl/TryCatchSpec.java (87%) rename fluent/spec/src/main/java/org/openworkflow/{ => sdk}/fluent/spec/dsl/TrySpec.java (80%) rename fluent/spec/src/main/java/org/openworkflow/{ => sdk}/fluent/spec/dsl/UseSpec.java (86%) rename fluent/spec/src/main/java/org/openworkflow/{ => sdk}/fluent/spec/dsl/WorkflowSpec.java (88%) rename fluent/spec/src/main/java/org/openworkflow/{ => sdk}/fluent/spec/spi/CallGrpcFluent.java (89%) rename fluent/spec/src/main/java/org/openworkflow/{ => sdk}/fluent/spec/spi/CallGrpcTaskFluent.java (84%) rename fluent/spec/src/main/java/org/openworkflow/{ => sdk}/fluent/spec/spi/CallHttpFluent.java (89%) rename fluent/spec/src/main/java/org/openworkflow/{ => sdk}/fluent/spec/spi/CallHttpTaskFluent.java (90%) rename fluent/spec/src/main/java/org/openworkflow/{ => sdk}/fluent/spec/spi/CallOpenAPIFluent.java (89%) rename fluent/spec/src/main/java/org/openworkflow/{ => sdk}/fluent/spec/spi/CallOpenAPITaskFluent.java (87%) rename fluent/spec/src/main/java/org/openworkflow/{ => sdk}/fluent/spec/spi/DoFluent.java (62%) rename fluent/spec/src/main/java/org/openworkflow/{ => sdk}/fluent/spec/spi/EmitFluent.java (89%) rename fluent/spec/src/main/java/org/openworkflow/{ => sdk}/fluent/spec/spi/EndpointUtil.java (88%) rename fluent/spec/src/main/java/org/openworkflow/{ => sdk}/fluent/spec/spi/EventConsumptionStrategyFluent.java (85%) rename fluent/spec/src/main/java/org/openworkflow/{ => sdk}/fluent/spec/spi/ForEachFluent.java (89%) rename fluent/spec/src/main/java/org/openworkflow/{ => sdk}/fluent/spec/spi/ForEachTaskFluent.java (80%) rename fluent/spec/src/main/java/org/openworkflow/{ => sdk}/fluent/spec/spi/ForkFluent.java (89%) rename fluent/spec/src/main/java/org/openworkflow/{ => sdk}/fluent/spec/spi/ForkTaskFluent.java (82%) rename fluent/spec/src/main/java/org/openworkflow/{ => sdk}/fluent/spec/spi/IteratorFluent.java (90%) rename fluent/spec/src/main/java/org/openworkflow/{ => sdk}/fluent/spec/spi/ListenFluent.java (89%) rename fluent/spec/src/main/java/org/openworkflow/{ => sdk}/fluent/spec/spi/OutputFluent.java (84%) rename fluent/spec/src/main/java/org/openworkflow/{ => sdk}/fluent/spec/spi/RaiseFluent.java (89%) rename fluent/spec/src/main/java/org/openworkflow/{ => sdk}/fluent/spec/spi/SetFluent.java (90%) rename fluent/spec/src/main/java/org/openworkflow/{ => sdk}/fluent/spec/spi/SubscriptionIteratorFluent.java (87%) rename fluent/spec/src/main/java/org/openworkflow/{ => sdk}/fluent/spec/spi/SwitchFluent.java (89%) rename fluent/spec/src/main/java/org/openworkflow/{ => sdk}/fluent/spec/spi/SwitchTaskFluent.java (87%) rename fluent/spec/src/main/java/org/openworkflow/{ => sdk}/fluent/spec/spi/TaskTransformationHandlers.java (89%) rename fluent/spec/src/main/java/org/openworkflow/{ => sdk}/fluent/spec/spi/TransformationHandlers.java (84%) rename fluent/spec/src/main/java/org/openworkflow/{ => sdk}/fluent/spec/spi/TryCatchFluent.java (89%) rename fluent/spec/src/main/java/org/openworkflow/{ => sdk}/fluent/spec/spi/WaitFluent.java (89%) rename fluent/spec/src/main/java/org/openworkflow/{ => sdk}/fluent/spec/spi/WorkflowFluent.java (90%) rename fluent/spec/src/main/java/org/openworkflow/{ => sdk}/fluent/spec/spi/WorkflowTaskFluent.java (88%) rename fluent/spec/src/test/java/org/openworkflow/{ => sdk}/fluent/spec/InputBuilderTest.java (99%) rename fluent/spec/src/test/java/org/openworkflow/{ => sdk}/fluent/spec/ScheduleBuilderTest.java (93%) rename fluent/spec/src/test/java/org/openworkflow/{ => sdk}/fluent/spec/TaskItemDefaultNamingTest.java (98%) rename fluent/spec/src/test/java/org/openworkflow/{ => sdk}/fluent/spec/UseAuthenticationsBuilderTest.java (97%) rename fluent/spec/src/test/java/org/openworkflow/{ => sdk}/fluent/spec/WorkflowBuilderTest.java (92%) rename fluent/spec/src/test/java/org/openworkflow/{ => sdk}/fluent/spec/dsl/CallGrpcDslTest.java (95%) rename fluent/spec/src/test/java/org/openworkflow/{ => sdk}/fluent/spec/dsl/CallHttpAuthDslTest.java (94%) rename fluent/spec/src/test/java/org/openworkflow/{ => sdk}/fluent/spec/dsl/CallHttpDslExtensionsTest.java (96%) rename fluent/spec/src/test/java/org/openworkflow/{ => sdk}/fluent/spec/dsl/CallOpenApiDslTest.java (90%) rename fluent/spec/src/test/java/org/openworkflow/{ => sdk}/fluent/spec/dsl/DSLScheduleTest.java (84%) rename fluent/spec/src/test/java/org/openworkflow/{ => sdk}/fluent/spec/dsl/DSLTest.java (91%) rename fluent/spec/src/test/java/org/openworkflow/{ => sdk}/fluent/spec/dsl/DSLTimeoutTest.java (91%) rename fluent/spec/src/test/java/org/openworkflow/{ => sdk}/fluent/spec/dsl/DSLWaitTest.java (94%) rename fluent/spec/src/test/java/org/openworkflow/{ => sdk}/fluent/spec/dsl/TryCatchDslTest.java (97%) rename generators/jackson/src/main/java/org/openworkflow/{ => sdk}/generator/graalvm/ReflectNativeFileHandler.java (98%) rename generators/jackson/src/main/java/org/openworkflow/{ => sdk}/generator/jackson/GeneratorUtils.java (97%) rename generators/jackson/src/main/java/org/openworkflow/{ => sdk}/generator/jackson/JacksonMixInPojo.java (96%) rename generators/types/src/main/java/org/openworkflow/{ => sdk}/generator/AllAnyOneOfSchemaRule.java (98%) rename generators/types/src/main/java/org/openworkflow/{ => sdk}/generator/CustomAnnotator.java (94%) rename generators/types/src/main/java/org/openworkflow/{ => sdk}/generator/EmptyObjectTypeRule.java (97%) rename generators/types/src/main/java/org/openworkflow/{ => sdk}/generator/GeneratorUtils.java (98%) rename generators/types/src/main/java/org/openworkflow/{ => sdk}/generator/JTypeWrapper.java (89%) rename generators/types/src/main/java/org/openworkflow/{ => sdk}/generator/RefNameHelper.java (97%) rename generators/types/src/main/java/org/openworkflow/{ => sdk}/generator/UnevaluatedPropertiesRule.java (96%) rename generators/types/src/main/java/org/openworkflow/{ => sdk}/generator/UnreferencedFactory.java (97%) rename impl/a2a/src/main/java/org/openworkflow/{ => sdk}/impl/executors/a2a/A2AExceptionHandler.java (88%) rename impl/a2a/src/main/java/org/openworkflow/{ => sdk}/impl/executors/a2a/A2AExecutor.java (91%) rename impl/a2a/src/main/java/org/openworkflow/{ => sdk}/impl/executors/a2a/A2AExecutorBuilder.java (83%) rename impl/a2a/src/main/java/org/openworkflow/{ => sdk}/impl/executors/a2a/A2ARequestDispatcher.java (84%) rename impl/a2a/src/main/java/org/openworkflow/{ => sdk}/impl/executors/a2a/A2AUtils.java (92%) rename impl/a2a/src/main/java/org/openworkflow/{ => sdk}/impl/executors/a2a/CancelTaskDispatcher.java (85%) rename impl/a2a/src/main/java/org/openworkflow/{ => sdk}/impl/executors/a2a/GetTaskDispatcher.java (85%) rename impl/a2a/src/main/java/org/openworkflow/{ => sdk}/impl/executors/a2a/ListTaskDispatcher.java (84%) rename impl/a2a/src/main/java/org/openworkflow/{ => sdk}/impl/executors/a2a/MessageConsumer.java (85%) rename impl/a2a/src/main/java/org/openworkflow/{ => sdk}/impl/executors/a2a/MessageConsumerFactory.java (86%) rename impl/a2a/src/main/java/org/openworkflow/{ => sdk}/impl/executors/a2a/MessageDispatcher.java (88%) rename impl/a2a/src/main/java/org/openworkflow/{ => sdk}/impl/executors/a2a/MessageSendConsumer.java (90%) rename impl/a2a/src/main/java/org/openworkflow/{ => sdk}/impl/executors/a2a/MessageStreamConsumer.java (90%) delete mode 100644 impl/a2a/src/main/resources/META-INF/services/org.openworkflow.impl.executors.CallableTaskBuilder create mode 100644 impl/a2a/src/main/resources/META-INF/services/org.openworkflow.sdk.impl.executors.CallableTaskBuilder rename impl/container/src/main/java/org/openworkflow/{ => sdk}/impl/container/executors/CommandPropertySetter.java (75%) rename impl/container/src/main/java/org/openworkflow/{ => sdk}/impl/container/executors/ContainerEnvironmentPropertySetter.java (81%) rename impl/container/src/main/java/org/openworkflow/{ => sdk}/impl/container/executors/ContainerPropertySetter.java (81%) rename impl/container/src/main/java/org/openworkflow/{ => sdk}/impl/container/executors/ContainerRunner.java (93%) rename impl/container/src/main/java/org/openworkflow/{ => sdk}/impl/container/executors/LifetimePropertySetter.java (81%) rename impl/container/src/main/java/org/openworkflow/{ => sdk}/impl/container/executors/NamePropertySetter.java (76%) rename impl/container/src/main/java/org/openworkflow/{ => sdk}/impl/container/executors/PortsPropertySetter.java (90%) rename impl/container/src/main/java/org/openworkflow/{ => sdk}/impl/container/executors/RunContainerExecutorBuilder.java (76%) rename impl/container/src/main/java/org/openworkflow/{ => sdk}/impl/container/executors/VolumesPropertySetter.java (85%) delete mode 100644 impl/container/src/main/resources/META-INF/services/org.openworkflow.impl.executors.RunnableTaskBuilder create mode 100644 impl/container/src/main/resources/META-INF/services/org.openworkflow.sdk.impl.executors.RunnableTaskBuilder rename impl/core/src/main/java/org/openworkflow/{ => sdk}/impl/AbstractWorkflowModel.java (98%) rename impl/core/src/main/java/org/openworkflow/{ => sdk}/impl/AuthorizationDescriptor.java (95%) rename impl/core/src/main/java/org/openworkflow/{ => sdk}/impl/CollectionConversionUtils.java (98%) rename impl/core/src/main/java/org/openworkflow/{ => sdk}/impl/CompositeExpressionFactory.java (93%) rename impl/core/src/main/java/org/openworkflow/{ => sdk}/impl/DefaultExecutorServiceFactory.java (96%) rename impl/core/src/main/java/org/openworkflow/{ => sdk}/impl/ExecutorServiceFactory.java (95%) rename impl/core/src/main/java/org/openworkflow/{ => sdk}/impl/FunctionReader.java (83%) rename impl/core/src/main/java/org/openworkflow/{ => sdk}/impl/LifecycleEvents.java (98%) rename impl/core/src/main/java/org/openworkflow/{ => sdk}/impl/LifecycleEventsUtils.java (95%) rename impl/core/src/main/java/org/openworkflow/{ => sdk}/impl/MonotonicUlidWorkflowInstanceIdFactory.java (97%) rename impl/core/src/main/java/org/openworkflow/{ => sdk}/impl/NamedObject.java (95%) rename impl/core/src/main/java/org/openworkflow/{ => sdk}/impl/QueueWorkflowPosition.java (97%) rename impl/core/src/main/java/org/openworkflow/{ => sdk}/impl/RuntimeDescriptorFactory.java (88%) rename impl/core/src/main/java/org/openworkflow/{ => sdk}/impl/SchedulerListener.java (88%) rename impl/core/src/main/java/org/openworkflow/{ => sdk}/impl/ServicePriority.java (96%) rename impl/core/src/main/java/org/openworkflow/{ => sdk}/impl/StringBufferWorkflowPosition.java (98%) rename impl/core/src/main/java/org/openworkflow/{ => sdk}/impl/TaskContext.java (97%) rename impl/core/src/main/java/org/openworkflow/{ => sdk}/impl/TaskContextData.java (92%) rename impl/core/src/main/java/org/openworkflow/{ => sdk}/impl/WorkflowApplication.java (90%) rename impl/core/src/main/java/org/openworkflow/{ => sdk}/impl/WorkflowContext.java (97%) rename impl/core/src/main/java/org/openworkflow/{ => sdk}/impl/WorkflowContextData.java (95%) rename impl/core/src/main/java/org/openworkflow/{ => sdk}/impl/WorkflowDecorator.java (97%) rename impl/core/src/main/java/org/openworkflow/{ => sdk}/impl/WorkflowDefinition.java (87%) rename impl/core/src/main/java/org/openworkflow/{ => sdk}/impl/WorkflowDefinitionData.java (90%) rename impl/core/src/main/java/org/openworkflow/{ => sdk}/impl/WorkflowDefinitionId.java (89%) rename impl/core/src/main/java/org/openworkflow/{ => sdk}/impl/WorkflowError.java (95%) rename impl/core/src/main/java/org/openworkflow/{ => sdk}/impl/WorkflowException.java (96%) rename impl/core/src/main/java/org/openworkflow/{ => sdk}/impl/WorkflowFilter.java (95%) rename impl/core/src/main/java/org/openworkflow/{ => sdk}/impl/WorkflowInstance.java (98%) rename impl/core/src/main/java/org/openworkflow/{ => sdk}/impl/WorkflowInstanceData.java (96%) rename impl/core/src/main/java/org/openworkflow/{ => sdk}/impl/WorkflowInstanceIdFactory.java (95%) rename impl/core/src/main/java/org/openworkflow/{ => sdk}/impl/WorkflowModel.java (97%) rename impl/core/src/main/java/org/openworkflow/{ => sdk}/impl/WorkflowModelCollection.java (97%) rename impl/core/src/main/java/org/openworkflow/{ => sdk}/impl/WorkflowModelFactory.java (98%) rename impl/core/src/main/java/org/openworkflow/{ => sdk}/impl/WorkflowMutableInstance.java (95%) rename impl/core/src/main/java/org/openworkflow/{ => sdk}/impl/WorkflowMutablePosition.java (96%) rename impl/core/src/main/java/org/openworkflow/{ => sdk}/impl/WorkflowPosition.java (95%) rename impl/core/src/main/java/org/openworkflow/{ => sdk}/impl/WorkflowPositionFactory.java (95%) rename impl/core/src/main/java/org/openworkflow/{ => sdk}/impl/WorkflowPredicate.java (95%) rename impl/core/src/main/java/org/openworkflow/{ => sdk}/impl/WorkflowStatus.java (95%) rename impl/core/src/main/java/org/openworkflow/{ => sdk}/impl/WorkflowUtils.java (92%) rename impl/core/src/main/java/org/openworkflow/{ => sdk}/impl/WorkflowValueResolver.java (95%) rename impl/core/src/main/java/org/openworkflow/{ => sdk}/impl/additional/ConstantAdditionalObject.java (85%) rename impl/core/src/main/java/org/openworkflow/{ => sdk}/impl/additional/NamedWorkflowAdditionalObject.java (88%) rename impl/core/src/main/java/org/openworkflow/{ => sdk}/impl/additional/SuppliedAdditionalObject.java (86%) rename impl/core/src/main/java/org/openworkflow/{ => sdk}/impl/additional/WorkflowAdditionalObject.java (83%) rename impl/core/src/main/java/org/openworkflow/{ => sdk}/impl/auth/AbstractAuthRequestBuilder.java (82%) rename impl/core/src/main/java/org/openworkflow/{ => sdk}/impl/auth/AccessTokenProvider.java (81%) rename impl/core/src/main/java/org/openworkflow/{ => sdk}/impl/auth/AccessTokenProviderFactory.java (90%) rename impl/core/src/main/java/org/openworkflow/{ => sdk}/impl/auth/AuthProvider.java (82%) rename impl/core/src/main/java/org/openworkflow/{ => sdk}/impl/auth/AuthProviderFactory.java (81%) rename impl/core/src/main/java/org/openworkflow/{ => sdk}/impl/auth/AuthRequestBuilder.java (88%) rename impl/core/src/main/java/org/openworkflow/{ => sdk}/impl/auth/AuthUtils.java (98%) rename impl/core/src/main/java/org/openworkflow/{ => sdk}/impl/auth/BasicAuthProvider.java (77%) rename impl/core/src/main/java/org/openworkflow/{ => sdk}/impl/auth/BearerAuthProvider.java (70%) rename impl/core/src/main/java/org/openworkflow/{ => sdk}/impl/auth/ClientSecretBasic.java (81%) rename impl/core/src/main/java/org/openworkflow/{ => sdk}/impl/auth/ClientSecretHandler.java (85%) rename impl/core/src/main/java/org/openworkflow/{ => sdk}/impl/auth/ClientSecretPost.java (80%) rename impl/core/src/main/java/org/openworkflow/{ => sdk}/impl/auth/CommonOAuthProvider.java (83%) rename impl/core/src/main/java/org/openworkflow/{ => sdk}/impl/auth/DefaultAuthProviderFactory.java (86%) rename impl/core/src/main/java/org/openworkflow/{ => sdk}/impl/auth/DigestAuthProvider.java (91%) rename impl/core/src/main/java/org/openworkflow/{ => sdk}/impl/auth/HttpRequestInfo.java (92%) rename impl/core/src/main/java/org/openworkflow/{ => sdk}/impl/auth/HttpRequestInfoBuilder.java (92%) rename impl/core/src/main/java/org/openworkflow/{ => sdk}/impl/auth/JWT.java (98%) rename impl/core/src/main/java/org/openworkflow/{ => sdk}/impl/auth/JWTConverter.java (91%) rename impl/core/src/main/java/org/openworkflow/{ => sdk}/impl/auth/JwtClientAssertion.java (84%) rename impl/core/src/main/java/org/openworkflow/{ => sdk}/impl/auth/OAuth2AuthProvider.java (87%) rename impl/core/src/main/java/org/openworkflow/{ => sdk}/impl/auth/OAuthPolicyData.java (79%) rename impl/core/src/main/java/org/openworkflow/{ => sdk}/impl/auth/OAuthRequestBuilder.java (87%) rename impl/core/src/main/java/org/openworkflow/{ => sdk}/impl/auth/OAuthScheme.java (94%) rename impl/core/src/main/java/org/openworkflow/{ => sdk}/impl/auth/OAuthUtils.java (80%) rename impl/core/src/main/java/org/openworkflow/{ => sdk}/impl/auth/OpenIdAuthProvider.java (87%) rename impl/core/src/main/java/org/openworkflow/{ => sdk}/impl/auth/OpenIdRequestBuilder.java (84%) rename impl/core/src/main/java/org/openworkflow/{ => sdk}/impl/auth/TokenIntrospection.java (96%) rename impl/core/src/main/java/org/openworkflow/{ => sdk}/impl/config/AbstractConfigManager.java (98%) rename impl/core/src/main/java/org/openworkflow/{ => sdk}/impl/config/ConfigManager.java (91%) rename impl/core/src/main/java/org/openworkflow/{ => sdk}/impl/config/ConfigSecretManager.java (97%) rename impl/core/src/main/java/org/openworkflow/{ => sdk}/impl/config/SecretManager.java (89%) rename impl/core/src/main/java/org/openworkflow/{ => sdk}/impl/config/SystemPropertyConfigManager.java (96%) rename impl/core/src/main/java/org/openworkflow/{ => sdk}/impl/events/AbstractTypeConsumer.java (93%) rename impl/core/src/main/java/org/openworkflow/{ => sdk}/impl/events/CloudEventAttrPredicate.java (84%) rename impl/core/src/main/java/org/openworkflow/{ => sdk}/impl/events/CloudEventPredicate.java (85%) rename impl/core/src/main/java/org/openworkflow/{ => sdk}/impl/events/CloudEventPredicateFactory.java (79%) rename impl/core/src/main/java/org/openworkflow/{ => sdk}/impl/events/CloudEventUtils.java (97%) rename impl/core/src/main/java/org/openworkflow/{ => sdk}/impl/events/CorrelationPredicate.java (89%) rename impl/core/src/main/java/org/openworkflow/{ => sdk}/impl/events/DefaultCloudEventPredicate.java (91%) rename impl/core/src/main/java/org/openworkflow/{ => sdk}/impl/events/DefaultCloudEventPredicateFactory.java (85%) rename impl/core/src/main/java/org/openworkflow/{ => sdk}/impl/events/EmitSourceResolver.java (81%) rename impl/core/src/main/java/org/openworkflow/{ => sdk}/impl/events/EmittedEventDecorator.java (89%) rename impl/core/src/main/java/org/openworkflow/{ => sdk}/impl/events/EventConsumer.java (81%) rename impl/core/src/main/java/org/openworkflow/{ => sdk}/impl/events/EventPublisher.java (95%) rename impl/core/src/main/java/org/openworkflow/{ => sdk}/impl/events/EventRegistration.java (94%) rename impl/core/src/main/java/org/openworkflow/{ => sdk}/impl/events/EventRegistrationBuilder.java (94%) rename impl/core/src/main/java/org/openworkflow/{ => sdk}/impl/events/EventRegistrationBuilderCollection.java (94%) rename impl/core/src/main/java/org/openworkflow/{ => sdk}/impl/events/EventRegistrationBuilderInfo.java (87%) rename impl/core/src/main/java/org/openworkflow/{ => sdk}/impl/events/EventRegistrationInfo.java (94%) rename impl/core/src/main/java/org/openworkflow/{ => sdk}/impl/events/InMemoryEvents.java (93%) rename impl/core/src/main/java/org/openworkflow/{ => sdk}/impl/events/ModelAwareCloudEventPredicate.java (81%) rename impl/core/src/main/java/org/openworkflow/{ => sdk}/impl/events/TypeEventRegistration.java (92%) rename impl/core/src/main/java/org/openworkflow/{ => sdk}/impl/events/TypeEventRegistrationBuilder.java (96%) rename impl/core/src/main/java/org/openworkflow/{ => sdk}/impl/executors/AbstractTaskExecutor.java (87%) rename impl/core/src/main/java/org/openworkflow/{ => sdk}/impl/executors/CallFunctionExecutorBuilder.java (87%) rename impl/core/src/main/java/org/openworkflow/{ => sdk}/impl/executors/CallTaskExecutor.java (86%) rename impl/core/src/main/java/org/openworkflow/{ => sdk}/impl/executors/CallableTask.java (81%) rename impl/core/src/main/java/org/openworkflow/{ => sdk}/impl/executors/CallableTaskBuilder.java (77%) rename impl/core/src/main/java/org/openworkflow/{ => sdk}/impl/executors/CallableTaskFactory.java (94%) rename impl/core/src/main/java/org/openworkflow/{ => sdk}/impl/executors/CallableTaskProxyBuilder.java (85%) rename impl/core/src/main/java/org/openworkflow/{ => sdk}/impl/executors/DefaultTaskExecutorFactory.java (74%) rename impl/core/src/main/java/org/openworkflow/{ => sdk}/impl/executors/DoExecutor.java (83%) rename impl/core/src/main/java/org/openworkflow/{ => sdk}/impl/executors/EmitExecutor.java (89%) rename impl/core/src/main/java/org/openworkflow/{ => sdk}/impl/executors/ForExecutor.java (84%) rename impl/core/src/main/java/org/openworkflow/{ => sdk}/impl/executors/ForkExecutor.java (90%) rename impl/core/src/main/java/org/openworkflow/{ => sdk}/impl/executors/ListenExecutor.java (88%) rename impl/core/src/main/java/org/openworkflow/{ => sdk}/impl/executors/ProcessResult.java (93%) rename impl/core/src/main/java/org/openworkflow/{ => sdk}/impl/executors/RaiseExecutor.java (83%) rename impl/core/src/main/java/org/openworkflow/{ => sdk}/impl/executors/RegularTaskExecutor.java (85%) rename impl/core/src/main/java/org/openworkflow/{ => sdk}/impl/executors/RunScriptExecutor.java (83%) rename impl/core/src/main/java/org/openworkflow/{ => sdk}/impl/executors/RunScriptExecutorBuilder.java (83%) rename impl/core/src/main/java/org/openworkflow/{ => sdk}/impl/executors/RunShellExecutor.java (89%) rename impl/core/src/main/java/org/openworkflow/{ => sdk}/impl/executors/RunShellExecutorBuilder.java (87%) rename impl/core/src/main/java/org/openworkflow/{ => sdk}/impl/executors/RunTaskExecutor.java (83%) rename impl/core/src/main/java/org/openworkflow/{ => sdk}/impl/executors/RunWorkflowExecutor.java (84%) rename impl/core/src/main/java/org/openworkflow/{ => sdk}/impl/executors/RunWorkflowExecutorBuilder.java (76%) rename impl/core/src/main/java/org/openworkflow/{ => sdk}/impl/executors/RunnableTaskBuilder.java (80%) rename impl/core/src/main/java/org/openworkflow/{ => sdk}/impl/executors/SetExecutor.java (77%) rename impl/core/src/main/java/org/openworkflow/{ => sdk}/impl/executors/SwitchExecutor.java (86%) rename impl/core/src/main/java/org/openworkflow/{ => sdk}/impl/executors/TaskExecutor.java (79%) rename impl/core/src/main/java/org/openworkflow/{ => sdk}/impl/executors/TaskExecutorBuilder.java (89%) rename impl/core/src/main/java/org/openworkflow/{ => sdk}/impl/executors/TaskExecutorFactory.java (73%) rename impl/core/src/main/java/org/openworkflow/{ => sdk}/impl/executors/TaskExecutorHelper.java (90%) rename impl/core/src/main/java/org/openworkflow/{ => sdk}/impl/executors/TransitionInfo.java (96%) rename impl/core/src/main/java/org/openworkflow/{ => sdk}/impl/executors/TransitionInfoBuilder.java (96%) rename impl/core/src/main/java/org/openworkflow/{ => sdk}/impl/executors/TryExecutor.java (90%) rename impl/core/src/main/java/org/openworkflow/{ => sdk}/impl/executors/WaitExecutor.java (81%) rename impl/core/src/main/java/org/openworkflow/{ => sdk}/impl/executors/retry/AbstractRetryIntervalFunction.java (84%) rename impl/core/src/main/java/org/openworkflow/{ => sdk}/impl/executors/retry/ConstantRetryIntervalFunction.java (82%) rename impl/core/src/main/java/org/openworkflow/{ => sdk}/impl/executors/retry/DefaultRetryExecutor.java (88%) rename impl/core/src/main/java/org/openworkflow/{ => sdk}/impl/executors/retry/ExponentialRetryIntervalFunction.java (84%) rename impl/core/src/main/java/org/openworkflow/{ => sdk}/impl/executors/retry/LinearRetryIntervalFunction.java (82%) rename impl/core/src/main/java/org/openworkflow/{ => sdk}/impl/executors/retry/RetryExecutor.java (83%) rename impl/core/src/main/java/org/openworkflow/{ => sdk}/impl/executors/retry/RetryIntervalFunction.java (81%) rename impl/core/src/main/java/org/openworkflow/{ => sdk}/impl/expressions/AbstractExpressionFactory.java (93%) rename impl/core/src/main/java/org/openworkflow/{ => sdk}/impl/expressions/AbstractProxyCollection.java (97%) rename impl/core/src/main/java/org/openworkflow/{ => sdk}/impl/expressions/DateTimeDescriptor.java (96%) rename impl/core/src/main/java/org/openworkflow/{ => sdk}/impl/expressions/ExpressionDescriptor.java (95%) rename impl/core/src/main/java/org/openworkflow/{ => sdk}/impl/expressions/ExpressionFactory.java (85%) rename impl/core/src/main/java/org/openworkflow/{ => sdk}/impl/expressions/ExpressionUtils.java (96%) rename impl/core/src/main/java/org/openworkflow/{ => sdk}/impl/expressions/ExpressionValidationException.java (95%) rename impl/core/src/main/java/org/openworkflow/{ => sdk}/impl/expressions/ObjectExpression.java (79%) rename impl/core/src/main/java/org/openworkflow/{ => sdk}/impl/expressions/ObjectExpressionFactory.java (92%) rename impl/core/src/main/java/org/openworkflow/{ => sdk}/impl/expressions/ProxyCollection.java (96%) rename impl/core/src/main/java/org/openworkflow/{ => sdk}/impl/expressions/ProxyIterator.java (96%) rename impl/core/src/main/java/org/openworkflow/{ => sdk}/impl/expressions/ProxyMap.java (98%) rename impl/core/src/main/java/org/openworkflow/{ => sdk}/impl/expressions/RuntimeDescriptor.java (94%) rename impl/core/src/main/java/org/openworkflow/{ => sdk}/impl/expressions/TaskDescriptor.java (85%) rename impl/core/src/main/java/org/openworkflow/{ => sdk}/impl/expressions/WorkflowDescriptor.java (81%) rename impl/core/src/main/java/org/openworkflow/{ => sdk}/impl/lifecycle/EventType.java (94%) rename impl/core/src/main/java/org/openworkflow/{ => sdk}/impl/lifecycle/TaskCancelledEvent.java (86%) rename impl/core/src/main/java/org/openworkflow/{ => sdk}/impl/lifecycle/TaskCompletedEvent.java (86%) rename impl/core/src/main/java/org/openworkflow/{ => sdk}/impl/lifecycle/TaskEvent.java (85%) rename impl/core/src/main/java/org/openworkflow/{ => sdk}/impl/lifecycle/TaskFailedEvent.java (87%) rename impl/core/src/main/java/org/openworkflow/{ => sdk}/impl/lifecycle/TaskResumedEvent.java (85%) rename impl/core/src/main/java/org/openworkflow/{ => sdk}/impl/lifecycle/TaskRetriedEvent.java (85%) rename impl/core/src/main/java/org/openworkflow/{ => sdk}/impl/lifecycle/TaskStartedEvent.java (85%) rename impl/core/src/main/java/org/openworkflow/{ => sdk}/impl/lifecycle/TaskSuspendedEvent.java (86%) rename impl/core/src/main/java/org/openworkflow/{ => sdk}/impl/lifecycle/TraceExecutionListener.java (98%) rename impl/core/src/main/java/org/openworkflow/{ => sdk}/impl/lifecycle/WorkflowCancelledEvent.java (89%) rename impl/core/src/main/java/org/openworkflow/{ => sdk}/impl/lifecycle/WorkflowCompletedEvent.java (87%) rename impl/core/src/main/java/org/openworkflow/{ => sdk}/impl/lifecycle/WorkflowEvent.java (91%) rename impl/core/src/main/java/org/openworkflow/{ => sdk}/impl/lifecycle/WorkflowExecutionCompletableListener.java (96%) rename impl/core/src/main/java/org/openworkflow/{ => sdk}/impl/lifecycle/WorkflowExecutionListener.java (94%) rename impl/core/src/main/java/org/openworkflow/{ => sdk}/impl/lifecycle/WorkflowExecutionListenerAdapter.java (99%) rename impl/core/src/main/java/org/openworkflow/{ => sdk}/impl/lifecycle/WorkflowFailedEvent.java (90%) rename impl/core/src/main/java/org/openworkflow/{ => sdk}/impl/lifecycle/WorkflowResumedEvent.java (89%) rename impl/core/src/main/java/org/openworkflow/{ => sdk}/impl/lifecycle/WorkflowStartedEvent.java (89%) rename impl/core/src/main/java/org/openworkflow/{ => sdk}/impl/lifecycle/WorkflowStatusEvent.java (88%) rename impl/core/src/main/java/org/openworkflow/{ => sdk}/impl/lifecycle/WorkflowSuspendedEvent.java (89%) rename impl/core/src/main/java/org/openworkflow/{ => sdk}/impl/lifecycle/ce/AbstractLifeCyclePublisher.java (81%) rename impl/core/src/main/java/org/openworkflow/{ => sdk}/impl/lifecycle/ce/DefaultLifeCycleCloudEventFactory.java (73%) rename impl/core/src/main/java/org/openworkflow/{ => sdk}/impl/lifecycle/ce/InputOutputLifeCycleCloudEventFactory.java (80%) rename impl/core/src/main/java/org/openworkflow/{ => sdk}/impl/lifecycle/ce/TaskCEData.java (88%) rename impl/core/src/main/java/org/openworkflow/{ => sdk}/impl/lifecycle/ce/TaskCancelledCEData.java (94%) rename impl/core/src/main/java/org/openworkflow/{ => sdk}/impl/lifecycle/ce/TaskCompletedCEData.java (94%) rename impl/core/src/main/java/org/openworkflow/{ => sdk}/impl/lifecycle/ce/TaskCompletedCEDataWithOutput.java (93%) rename impl/core/src/main/java/org/openworkflow/{ => sdk}/impl/lifecycle/ce/TaskFailedCEData.java (93%) rename impl/core/src/main/java/org/openworkflow/{ => sdk}/impl/lifecycle/ce/TaskResumedCEData.java (94%) rename impl/core/src/main/java/org/openworkflow/{ => sdk}/impl/lifecycle/ce/TaskRetriedCEData.java (94%) rename impl/core/src/main/java/org/openworkflow/{ => sdk}/impl/lifecycle/ce/TaskStartedCEData.java (94%) rename impl/core/src/main/java/org/openworkflow/{ => sdk}/impl/lifecycle/ce/TaskStartedCEDataWithInput.java (93%) rename impl/core/src/main/java/org/openworkflow/{ => sdk}/impl/lifecycle/ce/TaskSuspendedCEData.java (94%) rename impl/core/src/main/java/org/openworkflow/{ => sdk}/impl/lifecycle/ce/WorkflowCEData.java (90%) rename impl/core/src/main/java/org/openworkflow/{ => sdk}/impl/lifecycle/ce/WorkflowCancelledCEData.java (94%) rename impl/core/src/main/java/org/openworkflow/{ => sdk}/impl/lifecycle/ce/WorkflowCompletedCEData.java (94%) rename impl/core/src/main/java/org/openworkflow/{ => sdk}/impl/lifecycle/ce/WorkflowCompletedCEDataWithOutput.java (93%) rename impl/core/src/main/java/org/openworkflow/{ => sdk}/impl/lifecycle/ce/WorkflowDefinitionCEData.java (85%) rename impl/core/src/main/java/org/openworkflow/{ => sdk}/impl/lifecycle/ce/WorkflowFailedCEData.java (93%) rename impl/core/src/main/java/org/openworkflow/{ => sdk}/impl/lifecycle/ce/WorkflowLifeCycleCloudEventFactory.java (62%) rename impl/core/src/main/java/org/openworkflow/{ => sdk}/impl/lifecycle/ce/WorkflowResumedCEData.java (94%) rename impl/core/src/main/java/org/openworkflow/{ => sdk}/impl/lifecycle/ce/WorkflowStartedCEData.java (94%) rename impl/core/src/main/java/org/openworkflow/{ => sdk}/impl/lifecycle/ce/WorkflowStartedCEDataWithInput.java (93%) rename impl/core/src/main/java/org/openworkflow/{ => sdk}/impl/lifecycle/ce/WorkflowStatusCEDataEvent.java (93%) rename impl/core/src/main/java/org/openworkflow/{ => sdk}/impl/lifecycle/ce/WorkflowSuspendedCEData.java (94%) rename impl/core/src/main/java/org/openworkflow/{ => sdk}/impl/marshaller/AbstractInputBuffer.java (98%) rename impl/core/src/main/java/org/openworkflow/{ => sdk}/impl/marshaller/AbstractOutputBuffer.java (97%) rename impl/core/src/main/java/org/openworkflow/{ => sdk}/impl/marshaller/CustomObjectMarshaller.java (89%) rename impl/core/src/main/java/org/openworkflow/{ => sdk}/impl/marshaller/DefaultBufferFactory.java (97%) rename impl/core/src/main/java/org/openworkflow/{ => sdk}/impl/marshaller/DefaultInputBuffer.java (98%) rename impl/core/src/main/java/org/openworkflow/{ => sdk}/impl/marshaller/DefaultOutputBuffer.java (98%) rename impl/core/src/main/java/org/openworkflow/{ => sdk}/impl/marshaller/MarshallingUtils.java (99%) rename impl/core/src/main/java/org/openworkflow/{ => sdk}/impl/marshaller/TaskStatus.java (93%) rename impl/core/src/main/java/org/openworkflow/{ => sdk}/impl/marshaller/Type.java (94%) rename impl/core/src/main/java/org/openworkflow/{ => sdk}/impl/marshaller/WorkflowBufferFactory.java (94%) rename impl/core/src/main/java/org/openworkflow/{ => sdk}/impl/marshaller/WorkflowInputBuffer.java (96%) rename impl/core/src/main/java/org/openworkflow/{ => sdk}/impl/marshaller/WorkflowOutputBuffer.java (97%) rename impl/core/src/main/java/org/openworkflow/{ => sdk}/impl/resources/CachedResource.java (94%) rename impl/core/src/main/java/org/openworkflow/{ => sdk}/impl/resources/ClasspathResource.java (97%) rename impl/core/src/main/java/org/openworkflow/{ => sdk}/impl/resources/DefaultResourceLoader.java (96%) rename impl/core/src/main/java/org/openworkflow/{ => sdk}/impl/resources/DefaultResourceLoaderFactory.java (91%) rename impl/core/src/main/java/org/openworkflow/{ => sdk}/impl/resources/ExternalResourceHandler.java (95%) rename impl/core/src/main/java/org/openworkflow/{ => sdk}/impl/resources/FileResource.java (97%) rename impl/core/src/main/java/org/openworkflow/{ => sdk}/impl/resources/GitHubHelper.java (96%) rename impl/core/src/main/java/org/openworkflow/{ => sdk}/impl/resources/HttpResource.java (96%) rename impl/core/src/main/java/org/openworkflow/{ => sdk}/impl/resources/ResourceLoader.java (87%) rename impl/core/src/main/java/org/openworkflow/{ => sdk}/impl/resources/ResourceLoaderFactory.java (88%) rename impl/core/src/main/java/org/openworkflow/{ => sdk}/impl/resources/ResourceLoaderUtils.java (95%) rename impl/core/src/main/java/org/openworkflow/{ => sdk}/impl/resources/URITemplateResolver.java (77%) rename impl/core/src/main/java/org/openworkflow/{ => sdk}/impl/scheduler/AllStrategyCorrelationInfo.java (87%) rename impl/core/src/main/java/org/openworkflow/{ => sdk}/impl/scheduler/AllStrategyCorrelationInfoFactory.java (88%) rename impl/core/src/main/java/org/openworkflow/{ => sdk}/impl/scheduler/Cancellable.java (93%) rename impl/core/src/main/java/org/openworkflow/{ => sdk}/impl/scheduler/CronResolver.java (94%) rename impl/core/src/main/java/org/openworkflow/{ => sdk}/impl/scheduler/CronResolverFactory.java (88%) rename impl/core/src/main/java/org/openworkflow/{ => sdk}/impl/scheduler/DefaultWorkflowScheduler.java (94%) rename impl/core/src/main/java/org/openworkflow/{ => sdk}/impl/scheduler/EventWorkflowScheduler.java (83%) rename impl/core/src/main/java/org/openworkflow/{ => sdk}/impl/scheduler/ExecutorServiceWorkflowScheduler.java (95%) rename impl/core/src/main/java/org/openworkflow/{ => sdk}/impl/scheduler/InMemoryAllStrategyCorrelationInfo.java (96%) rename impl/core/src/main/java/org/openworkflow/{ => sdk}/impl/scheduler/ScheduledEventConsumer.java (85%) rename impl/core/src/main/java/org/openworkflow/{ => sdk}/impl/scheduler/ScheduledInstanceRunnable.java (91%) rename impl/core/src/main/java/org/openworkflow/{ => sdk}/impl/scheduler/ScheduledServiceCancellable.java (95%) rename impl/core/src/main/java/org/openworkflow/{ => sdk}/impl/scheduler/WorkflowScheduler.java (88%) rename impl/core/src/main/java/org/openworkflow/{ => sdk}/impl/schema/AbstractSchemaValidator.java (89%) rename impl/core/src/main/java/org/openworkflow/{ => sdk}/impl/schema/SchemaValidator.java (84%) rename impl/core/src/main/java/org/openworkflow/{ => sdk}/impl/schema/SchemaValidatorFactory.java (79%) rename impl/core/src/main/java/org/openworkflow/{ => sdk}/impl/scripts/ScriptContext.java (88%) rename impl/core/src/main/java/org/openworkflow/{ => sdk}/impl/scripts/ScriptLanguageId.java (96%) rename impl/core/src/main/java/org/openworkflow/{ => sdk}/impl/scripts/ScriptRunner.java (79%) rename impl/core/src/main/java/org/openworkflow/{ => sdk}/impl/scripts/ScriptUtils.java (85%) rename impl/core/src/main/java/org/openworkflow/{ => sdk}/impl/scripts/StreamSuppliers.java (98%) rename impl/core/src/main/java/org/openworkflow/{ => sdk}/impl/utils/RandomFactory.java (95%) rename impl/core/src/main/resources/META-INF/native-image/{org.openworkflow => org.openworkflow.sdk}/openworkflow-impl-core/reflect-config.json (85%) delete mode 100644 impl/core/src/main/resources/META-INF/services/org.openworkflow.impl.executors.CallableTaskBuilder delete mode 100644 impl/core/src/main/resources/META-INF/services/org.openworkflow.impl.executors.RunnableTaskBuilder create mode 100644 impl/core/src/main/resources/META-INF/services/org.openworkflow.sdk.impl.executors.CallableTaskBuilder create mode 100644 impl/core/src/main/resources/META-INF/services/org.openworkflow.sdk.impl.executors.RunnableTaskBuilder rename impl/core/src/test/java/org/openworkflow/{ => sdk}/impl/LowestPriority.java (95%) rename impl/core/src/test/java/org/openworkflow/{ => sdk}/impl/LowestPriorityListener.java (87%) rename impl/core/src/test/java/org/openworkflow/{ => sdk}/impl/MediumPriority.java (95%) rename impl/core/src/test/java/org/openworkflow/{ => sdk}/impl/MediumPriorityListener.java (91%) rename impl/core/src/test/java/org/openworkflow/{ => sdk}/impl/ServicePriorityTest.java (96%) rename impl/core/src/test/java/org/openworkflow/{ => sdk}/impl/TopPriority.java (95%) rename impl/core/src/test/java/org/openworkflow/{ => sdk}/impl/TopPriorityListener.java (87%) rename impl/core/src/test/java/org/openworkflow/{ => sdk}/impl/WorkflowAdditionalObjectTest.java (95%) rename impl/core/src/test/java/org/openworkflow/{ => sdk}/impl/WorkflowListenerTest.java (95%) rename impl/core/src/test/java/org/openworkflow/{ => sdk}/impl/WorkflowUtilsTest.java (98%) rename impl/core/src/test/java/org/openworkflow/{ => sdk}/impl/auth/JWTTest.java (96%) rename impl/core/src/test/java/org/openworkflow/{ => sdk}/impl/marshaller/Employee.java (93%) rename impl/core/src/test/java/org/openworkflow/{ => sdk}/impl/marshaller/MarshallingUtilsTest.java (98%) rename impl/core/src/test/java/org/openworkflow/{ => sdk}/impl/marshaller/NonSerializableClass.java (93%) rename impl/core/src/test/java/org/openworkflow/{ => sdk}/impl/marshaller/Person.java (93%) rename impl/core/src/test/java/org/openworkflow/{ => sdk}/impl/marshaller/SerializableClass.java (94%) rename impl/core/src/test/java/org/openworkflow/{ => sdk}/impl/marshaller/Student.java (93%) delete mode 100644 impl/core/src/test/resources/META-INF/services/org.openworkflow.impl.ServicePriority create mode 100644 impl/core/src/test/resources/META-INF/services/org.openworkflow.sdk.impl.ServicePriority rename impl/cron/src/main/java/org/openworkflow/{ => sdk}/impl/cron/CronUtilsResolver.java (92%) rename impl/cron/src/main/java/org/openworkflow/{ => sdk}/impl/cron/CronUtilsResolverFactory.java (88%) delete mode 100644 impl/cron/src/main/resources/META-INF/services/org.openworkflow.impl.scheduler.CronResolverFactory create mode 100644 impl/cron/src/main/resources/META-INF/services/org.openworkflow.sdk.impl.scheduler.CronResolverFactory rename impl/function/src/main/java/org/openworkflow/{ => sdk}/impl/jackson/function/JacksonFunctionReader.java (80%) delete mode 100644 impl/function/src/main/resources/META-INF/services/org.openworkflow.impl.FunctionReader create mode 100644 impl/function/src/main/resources/META-INF/services/org.openworkflow.sdk.impl.FunctionReader rename impl/grpc/src/main/java/org/openworkflow/{ => sdk}/impl/executors/grpc/CollectionStreamObserver.java (83%) rename impl/grpc/src/main/java/org/openworkflow/{ => sdk}/impl/executors/grpc/FileDescriptorReader.java (98%) rename impl/grpc/src/main/java/org/openworkflow/{ => sdk}/impl/executors/grpc/GrpcExecutor.java (96%) rename impl/grpc/src/main/java/org/openworkflow/{ => sdk}/impl/executors/grpc/GrpcExecutorBuilder.java (80%) rename impl/grpc/src/main/java/org/openworkflow/{ => sdk}/impl/executors/grpc/ItemStreamObserver.java (84%) rename impl/grpc/src/main/java/org/openworkflow/{ => sdk}/impl/executors/grpc/ModelStreamObserver.java (82%) rename impl/grpc/src/main/java/org/openworkflow/{ => sdk}/impl/executors/grpc/ProtobufMessageUtils.java (90%) delete mode 100644 impl/grpc/src/main/resources/META-INF/services/org.openworkflow.impl.executors.CallableTaskBuilder create mode 100644 impl/grpc/src/main/resources/META-INF/services/org.openworkflow.sdk.impl.executors.CallableTaskBuilder rename impl/http/src/main/java/org/openworkflow/{ => sdk}/impl/executors/http/AbstractRequestExecutor.java (91%) rename impl/http/src/main/java/org/openworkflow/{ => sdk}/impl/executors/http/CallableTaskHttpExecutorBuilder.java (79%) rename impl/http/src/main/java/org/openworkflow/{ => sdk}/impl/executors/http/HttpClientResolver.java (89%) rename impl/http/src/main/java/org/openworkflow/{ => sdk}/impl/executors/http/HttpConverterResolver.java (90%) rename impl/http/src/main/java/org/openworkflow/{ => sdk}/impl/executors/http/HttpExecutor.java (89%) rename impl/http/src/main/java/org/openworkflow/{ => sdk}/impl/executors/http/HttpExecutorBuilder.java (92%) rename impl/http/src/main/java/org/openworkflow/{ => sdk}/impl/executors/http/HttpModelConverter.java (90%) rename impl/http/src/main/java/org/openworkflow/{ => sdk}/impl/executors/http/HttpRequestDecorator.java (89%) rename impl/http/src/main/java/org/openworkflow/{ => sdk}/impl/executors/http/RequestExecutor.java (82%) rename impl/http/src/main/java/org/openworkflow/{ => sdk}/impl/executors/http/WithBodyRequestExecutor.java (78%) rename impl/http/src/main/java/org/openworkflow/{ => sdk}/impl/executors/http/WithoutBodyRequestExecutor.java (82%) rename impl/http/src/main/java/org/openworkflow/{ => sdk}/impl/executors/http/auth/JaxRSAccessTokenProvider.java (89%) rename impl/http/src/main/java/org/openworkflow/{ => sdk}/impl/executors/http/auth/JaxRSAccessTokenProviderFactory.java (76%) delete mode 100644 impl/http/src/main/resources/META-INF/services/org.openworkflow.impl.auth.AccessTokenProviderFactory delete mode 100644 impl/http/src/main/resources/META-INF/services/org.openworkflow.impl.executors.CallableTaskBuilder create mode 100644 impl/http/src/main/resources/META-INF/services/org.openworkflow.sdk.impl.auth.AccessTokenProviderFactory create mode 100644 impl/http/src/main/resources/META-INF/services/org.openworkflow.sdk.impl.executors.CallableTaskBuilder rename impl/javascript/src/main/java/org/openworkflow/{ => sdk}/impl/executors/script/js/JavaScriptScriptTaskRunner.java (85%) delete mode 100644 impl/javascript/src/main/resources/META-INF/services/org.openworkflow.impl.scripts.ScriptRunner create mode 100644 impl/javascript/src/main/resources/META-INF/services/org.openworkflow.sdk.impl.scripts.ScriptRunner rename impl/jq/src/main/java/org/openworkflow/{ => sdk}/impl/expressions/jq/JQExpression.java (84%) rename impl/jq/src/main/java/org/openworkflow/{ => sdk}/impl/expressions/jq/JQExpressionFactory.java (91%) delete mode 100644 impl/jq/src/main/resources/META-INF/services/org.openworkflow.impl.expressions.ExpressionFactory create mode 100644 impl/jq/src/main/resources/META-INF/services/org.openworkflow.sdk.impl.expressions.ExpressionFactory rename impl/jq/src/test/java/org/openworkflow/{ => sdk}/impl/expressions/jq/JQExpressionFactoryTest.java (89%) rename impl/json-utils/src/main/java/org/openworkflow/{ => sdk}/impl/jackson/FunctionBaseJsonNode.java (98%) rename impl/json-utils/src/main/java/org/openworkflow/{ => sdk}/impl/jackson/FunctionJsonNode.java (96%) rename impl/json-utils/src/main/java/org/openworkflow/{ => sdk}/impl/jackson/JacksonCloudEventUtils.java (98%) rename impl/json-utils/src/main/java/org/openworkflow/{ => sdk}/impl/jackson/JsonUtils.java (99%) rename impl/json-utils/src/main/java/org/openworkflow/{ => sdk}/impl/jackson/MergeUtils.java (98%) rename impl/json-utils/src/main/java/org/openworkflow/{ => sdk}/impl/jackson/ObjectMapperFactory.java (89%) rename impl/json-utils/src/main/java/org/openworkflow/{ => sdk}/impl/jackson/ObjectMapperFactoryProvider.java (95%) rename impl/json-utils/src/test/java/org/openworkflow/{ => sdk}/impl/jackson/JacksonCloudEventUtilsTest.java (99%) rename impl/json-utils/src/test/java/org/openworkflow/{ => sdk}/impl/jackson/JsonUtilsStaticInitTest.java (97%) rename impl/jwt-impl/src/main/java/org/openworkflow/{ => sdk}/impl/executors/http/jackson/JacksonModelConverterFactory.java (77%) rename impl/jwt-impl/src/main/java/org/openworkflow/{ => sdk}/impl/executors/http/oauth/jackson/JacksonJWTConverter.java (89%) delete mode 100644 impl/jwt-impl/src/main/resources/META-INF/services/org.openworkflow.impl.additional.NamedWorkflowAdditionalObject delete mode 100644 impl/jwt-impl/src/main/resources/META-INF/services/org.openworkflow.impl.auth.JWTConverter create mode 100644 impl/jwt-impl/src/main/resources/META-INF/services/org.openworkflow.sdk.impl.additional.NamedWorkflowAdditionalObject create mode 100644 impl/jwt-impl/src/main/resources/META-INF/services/org.openworkflow.sdk.impl.auth.JWTConverter rename impl/jwt-impl/src/test/java/org/openworkflow/{ => sdk}/impl/http/jwt/JacksonJWTImplTest.java (96%) rename impl/lifecycleevent/src/main/java/org/openworkflow/{ => sdk}/impl/jackson/events/JacksonLifeCyclePublisher.java (85%) delete mode 100644 impl/lifecycleevent/src/main/resources/META-INF/services/org.openworkflow.impl.lifecycle.WorkflowExecutionListener create mode 100644 impl/lifecycleevent/src/main/resources/META-INF/services/org.openworkflow.sdk.impl.lifecycle.WorkflowExecutionListener rename impl/lifecycleevent/src/test/java/org/openworkflow/{ => sdk}/impl/jackson/events/JacksonLifeCyclePublisherTest.java (65%) rename impl/model/src/main/java/org/openworkflow/{ => sdk}/impl/model/jackson/AbstractJacksonMarshaller.java (81%) rename impl/model/src/main/java/org/openworkflow/{ => sdk}/impl/model/jackson/JacksonModel.java (95%) rename impl/model/src/main/java/org/openworkflow/{ => sdk}/impl/model/jackson/JacksonModelCollection.java (94%) rename impl/model/src/main/java/org/openworkflow/{ => sdk}/impl/model/jackson/JacksonModelCollectionDeserializer.java (96%) rename impl/model/src/main/java/org/openworkflow/{ => sdk}/impl/model/jackson/JacksonModelCollectionMarshaller.java (94%) rename impl/model/src/main/java/org/openworkflow/{ => sdk}/impl/model/jackson/JacksonModelCollectionSerializer.java (96%) rename impl/model/src/main/java/org/openworkflow/{ => sdk}/impl/model/jackson/JacksonModelDeserializer.java (96%) rename impl/model/src/main/java/org/openworkflow/{ => sdk}/impl/model/jackson/JacksonModelFactory.java (92%) rename impl/model/src/main/java/org/openworkflow/{ => sdk}/impl/model/jackson/JacksonModelMarshaller.java (90%) rename impl/model/src/main/java/org/openworkflow/{ => sdk}/impl/model/jackson/JacksonModelSerializer.java (96%) rename impl/model/src/main/java/org/openworkflow/{ => sdk}/impl/model/jackson/JacksonObjectMarshaller.java (94%) rename impl/model/src/main/resources/META-INF/native-image/{org.openworkflow => org.openworkflow.sdk}/openworkflow-impl-model/reflect-config.json (83%) delete mode 100644 impl/model/src/main/resources/META-INF/services/org.openworkflow.impl.WorkflowModelFactory delete mode 100644 impl/model/src/main/resources/META-INF/services/org.openworkflow.impl.marshaller.CustomObjectMarshaller create mode 100644 impl/model/src/main/resources/META-INF/services/org.openworkflow.sdk.impl.WorkflowModelFactory create mode 100644 impl/model/src/main/resources/META-INF/services/org.openworkflow.sdk.impl.marshaller.CustomObjectMarshaller rename impl/model/src/test/java/org/openworkflow/{ => sdk}/impl/model/jackson/Employee.java (93%) rename impl/model/src/test/java/org/openworkflow/{ => sdk}/impl/model/jackson/JacksonModelSerializationTest.java (84%) rename impl/model/src/test/java/org/openworkflow/{ => sdk}/impl/model/jackson/JacksonModelTest.java (94%) rename impl/openapi-jackson/src/main/java/org/openworkflow/{ => sdk}/impl/executors/openapi/jackson/JacksonUnifiedOpenAPIMixIn.java (96%) rename impl/openapi-jackson/src/main/java/org/openworkflow/{ => sdk}/impl/executors/openapi/jackson/JacksonUnifiedOpenAPIMixInModule.java (93%) rename impl/openapi-jackson/src/main/java/org/openworkflow/{ => sdk}/impl/executors/openapi/jackson/JacksonUnifiedOpenAPIReader.java (77%) rename impl/openapi-jackson/src/main/java/org/openworkflow/{ => sdk}/impl/executors/openapi/jackson/JacksonUnifiedOpenAPIReaderFactory.java (83%) create mode 100644 impl/openapi-jackson/src/main/resources/META-INF/native-image/org.openworkflow.sdk/openworkflow-impl-openapi/reflect-config.json delete mode 100644 impl/openapi-jackson/src/main/resources/META-INF/native-image/org.openworkflow/openworkflow-impl-openapi/reflect-config.json delete mode 100644 impl/openapi-jackson/src/main/resources/META-INF/services/org.openworkflow.impl.additional.NamedWorkflowAdditionalObject create mode 100644 impl/openapi-jackson/src/main/resources/META-INF/services/org.openworkflow.sdk.impl.additional.NamedWorkflowAdditionalObject rename impl/openapi-jackson/src/test/java/org/openworkflow/{ => sdk}/impl/executors/openapi/jackson/JacksonOpenAPIProcessorTest.java (82%) rename impl/openapi/src/main/java/org/openworkflow/{ => sdk}/impl/executors/openapi/OpenAPIExecutor.java (91%) rename impl/openapi/src/main/java/org/openworkflow/{ => sdk}/impl/executors/openapi/OpenAPIExecutorBuilder.java (74%) rename impl/openapi/src/main/java/org/openworkflow/{ => sdk}/impl/executors/openapi/OpenAPIProcessor.java (95%) rename impl/openapi/src/main/java/org/openworkflow/{ => sdk}/impl/executors/openapi/OperationDefinition.java (98%) rename impl/openapi/src/main/java/org/openworkflow/{ => sdk}/impl/executors/openapi/OperationPathResolver.java (78%) rename impl/openapi/src/main/java/org/openworkflow/{ => sdk}/impl/executors/openapi/ParameterDefinition.java (93%) rename impl/openapi/src/main/java/org/openworkflow/{ => sdk}/impl/executors/openapi/UnifiedOpenAPI.java (99%) rename impl/openapi/src/main/java/org/openworkflow/{ => sdk}/impl/executors/openapi/UnifiedOpenAPIReader.java (87%) delete mode 100644 impl/openapi/src/main/resources/META-INF/services/org.openworkflow.impl.executors.CallableTaskBuilder create mode 100644 impl/openapi/src/main/resources/META-INF/services/org.openworkflow.sdk.impl.executors.CallableTaskBuilder rename impl/openapi/src/test/java/org/openworkflow/{ => sdk}/impl/executors/openapi/OpenAPIProcessorTest.java (97%) rename impl/persistence/api/src/main/java/org/openworkflow/{ => sdk}/impl/persistence/AbstractAllStrategyCorrelationInfo.java (96%) rename impl/persistence/api/src/main/java/org/openworkflow/{ => sdk}/impl/persistence/AbstractAsyncPersistenceExecutor.java (93%) rename impl/persistence/api/src/main/java/org/openworkflow/{ => sdk}/impl/persistence/AbstractPersistenceInstanceReader.java (90%) rename impl/persistence/api/src/main/java/org/openworkflow/{ => sdk}/impl/persistence/AbstractPersistenceInstanceWriter.java (94%) rename impl/persistence/api/src/main/java/org/openworkflow/{ => sdk}/impl/persistence/AsyncPersistenceExecutor.java (95%) rename impl/persistence/api/src/main/java/org/openworkflow/{ => sdk}/impl/persistence/CompletedTaskInfo.java (93%) rename impl/persistence/api/src/main/java/org/openworkflow/{ => sdk}/impl/persistence/CorrelationOperations.java (95%) rename impl/persistence/api/src/main/java/org/openworkflow/{ => sdk}/impl/persistence/DefaultPersistenceInstanceHandlers.java (95%) rename impl/persistence/api/src/main/java/org/openworkflow/{ => sdk}/impl/persistence/DefaultPersistenceInstanceReader.java (92%) rename impl/persistence/api/src/main/java/org/openworkflow/{ => sdk}/impl/persistence/DefaultPersistenceInstanceWriter.java (94%) rename impl/persistence/api/src/main/java/org/openworkflow/{ => sdk}/impl/persistence/OperationAllStrategyCorrelationInfo.java (89%) rename impl/persistence/api/src/main/java/org/openworkflow/{ => sdk}/impl/persistence/OperationAllStrategyCorrelationInfoFactory.java (83%) rename impl/persistence/api/src/main/java/org/openworkflow/{ => sdk}/impl/persistence/PersistenceAllStrategyCorrelationInfoFactories.java (90%) rename impl/persistence/api/src/main/java/org/openworkflow/{ => sdk}/impl/persistence/PersistenceApplicationBuilder.java (89%) rename impl/persistence/api/src/main/java/org/openworkflow/{ => sdk}/impl/persistence/PersistenceExecutor.java (90%) rename impl/persistence/api/src/main/java/org/openworkflow/{ => sdk}/impl/persistence/PersistenceInstanceHandlers.java (91%) rename impl/persistence/api/src/main/java/org/openworkflow/{ => sdk}/impl/persistence/PersistenceInstanceInfo.java (90%) rename impl/persistence/api/src/main/java/org/openworkflow/{ => sdk}/impl/persistence/PersistenceInstanceOperations.java (85%) rename impl/persistence/api/src/main/java/org/openworkflow/{ => sdk}/impl/persistence/PersistenceInstanceReader.java (87%) rename impl/persistence/api/src/main/java/org/openworkflow/{ => sdk}/impl/persistence/PersistenceInstanceStore.java (94%) rename impl/persistence/api/src/main/java/org/openworkflow/{ => sdk}/impl/persistence/PersistenceInstanceTransaction.java (88%) rename impl/persistence/api/src/main/java/org/openworkflow/{ => sdk}/impl/persistence/PersistenceInstanceWriter.java (91%) rename impl/persistence/api/src/main/java/org/openworkflow/{ => sdk}/impl/persistence/PersistenceTaskInfo.java (93%) rename impl/persistence/api/src/main/java/org/openworkflow/{ => sdk}/impl/persistence/PersistenceWorkflowInfo.java (88%) rename impl/persistence/api/src/main/java/org/openworkflow/{ => sdk}/impl/persistence/RetriedTaskInfo.java (94%) rename impl/persistence/api/src/main/java/org/openworkflow/{ => sdk}/impl/persistence/StoreAllStrategyCorrelationInfo.java (92%) rename impl/persistence/api/src/main/java/org/openworkflow/{ => sdk}/impl/persistence/StoreAllStrategyCorrelationInfoFactory.java (82%) rename impl/persistence/api/src/main/java/org/openworkflow/{ => sdk}/impl/persistence/TransactedPersistenceInstanceWriter.java (92%) rename impl/persistence/api/src/main/java/org/openworkflow/{ => sdk}/impl/persistence/WorkflowPersistenceInstance.java (89%) rename impl/persistence/api/src/main/java/org/openworkflow/{ => sdk}/impl/persistence/WorkflowPersistenceListener.java (77%) rename impl/persistence/api/src/main/java/org/openworkflow/{ => sdk}/impl/persistence/hashing/DefaultHashFactory.java (93%) rename impl/persistence/api/src/main/java/org/openworkflow/{ => sdk}/impl/persistence/hashing/DefaultHashIndex.java (96%) rename impl/persistence/api/src/main/java/org/openworkflow/{ => sdk}/impl/persistence/hashing/HashFactory.java (91%) rename impl/persistence/api/src/main/java/org/openworkflow/{ => sdk}/impl/persistence/hashing/HashIndex.java (92%) rename impl/persistence/api/src/main/java/org/openworkflow/{ => sdk}/impl/persistence/hashing/HashItem.java (87%) rename impl/persistence/api/src/main/java/org/openworkflow/{ => sdk}/impl/persistence/hashing/HashMappingCoordinator.java (99%) rename impl/persistence/api/src/main/java/org/openworkflow/{ => sdk}/impl/persistence/hashing/HashMappingInfo.java (92%) rename impl/persistence/api/src/main/java/org/openworkflow/{ => sdk}/impl/persistence/hashing/IntegerHashItem.java (86%) rename impl/persistence/api/src/main/java/org/openworkflow/{ => sdk}/impl/persistence/hashing/LRUCache.java (99%) rename impl/persistence/api/src/main/java/org/openworkflow/{ => sdk}/impl/persistence/hashing/MD5HashItem.java (90%) rename impl/persistence/api/src/main/java/org/openworkflow/{ => sdk}/impl/persistence/metadata/MetaTransient.java (94%) rename impl/persistence/api/src/main/java/org/openworkflow/{ => sdk}/impl/persistence/metadata/PersistenceMetaUtils.java (92%) rename impl/persistence/api/src/test/java/org/openworkflow/{ => sdk}/impl/persistence/hashing/HashMappingCoordinatorTest.java (98%) rename impl/persistence/api/src/test/java/org/openworkflow/{ => sdk}/impl/persistence/hashing/LRUCacheTest.java (99%) rename impl/persistence/bigmap/src/main/java/org/openworkflow/{ => sdk}/impl/persistence/bigmap/BigMapInstanceTransaction.java (91%) rename impl/persistence/bigmap/src/main/java/org/openworkflow/{ => sdk}/impl/persistence/bigmap/BytesMapInstanceTransaction.java (90%) rename impl/persistence/mvstore/src/main/java/org/openworkflow/{ => sdk}/impl/persistence/mvstore/MVStorePersistenceStore.java (77%) rename impl/persistence/mvstore/src/main/java/org/openworkflow/{ => sdk}/impl/persistence/mvstore/MVStoreTransaction.java (89%) rename impl/persistence/mvstore/src/test/java/org/openworkflow/{ => sdk}/impl/persistence/mvstore/HashingMVStorePersistenceTest.java (83%) rename impl/persistence/mvstore/src/test/java/org/openworkflow/{ => sdk}/impl/persistence/mvstore/MD5MVStorePersistenceTest.java (83%) rename impl/persistence/mvstore/src/test/java/org/openworkflow/{ => sdk}/impl/persistence/mvstore/MVStoreCorrelationTest.java (83%) rename impl/persistence/mvstore/src/test/java/org/openworkflow/{ => sdk}/impl/persistence/mvstore/MVStorePersistenceStoreTest.java (77%) rename impl/persistence/tests/src/main/java/org/openworkflow/{ => sdk}/impl/persistence/test/AbstractCorrelationPersistenceTest.java (82%) rename impl/persistence/tests/src/main/java/org/openworkflow/{ => sdk}/impl/persistence/test/AbstractHandlerPersistenceTest.java (86%) rename impl/persistence/tests/src/main/java/org/openworkflow/{ => sdk}/impl/persistence/test/AbstractOperationsCorrelationPersistenceTest.java (77%) rename impl/persistence/tests/src/main/java/org/openworkflow/{ => sdk}/impl/persistence/test/AbstractPersistenceTest.java (77%) rename impl/persistence/tests/src/main/java/org/openworkflow/{ => sdk}/impl/persistence/test/AbstractStoreCorrelationPersistenceTest.java (77%) rename impl/python/src/main/java/org/openworkflow/{ => sdk}/impl/executors/script/python/PythonScriptTaskRunner.java (81%) delete mode 100644 impl/python/src/main/resources/META-INF/services/org.openworkflow.impl.scripts.ScriptRunner create mode 100644 impl/python/src/main/resources/META-INF/services/org.openworkflow.sdk.impl.scripts.ScriptRunner rename impl/template/src/main/java/org/openworkflow/{ => sdk}/impl/template/JaxrsURITemplateResolver.java (80%) delete mode 100644 impl/template/src/main/resources/META-INF/services/org.openworkflow.impl.resources.URITemplateResolver create mode 100644 impl/template/src/main/resources/META-INF/services/org.openworkflow.sdk.impl.resources.URITemplateResolver rename impl/test/src/test/java/org/openworkflow/{ => sdk}/impl/auth/OAuthRequestBuilderTest.java (86%) rename impl/test/src/test/java/org/openworkflow/{ => sdk}/impl/test/A2AExecutorTest.java (98%) rename impl/test/src/test/java/org/openworkflow/{ => sdk}/impl/test/AccessTokenProvider.java (97%) rename impl/test/src/test/java/org/openworkflow/{ => sdk}/impl/test/BasicAuthHttpTest.java (89%) rename impl/test/src/test/java/org/openworkflow/{ => sdk}/impl/test/CancelMetadataTest.java (92%) rename impl/test/src/test/java/org/openworkflow/{ => sdk}/impl/test/ContainerTest.java (97%) rename impl/test/src/test/java/org/openworkflow/{ => sdk}/impl/test/CoreTaskTypesTest.java (94%) rename impl/test/src/test/java/org/openworkflow/{ => sdk}/impl/test/CorrelationTest.java (94%) rename impl/test/src/test/java/org/openworkflow/{ => sdk}/impl/test/CustomAuthProviderFactoryOverrideTest.java (87%) rename impl/test/src/test/java/org/openworkflow/{ => sdk}/impl/test/CustomFunctionTest.java (88%) rename impl/test/src/test/java/org/openworkflow/{ => sdk}/impl/test/DBGenerator.java (75%) rename impl/test/src/test/java/org/openworkflow/{ => sdk}/impl/test/DateTimeDescriptorTest.java (87%) rename impl/test/src/test/java/org/openworkflow/{ => sdk}/impl/test/DigestAuthHttpTest.java (90%) rename impl/test/src/test/java/org/openworkflow/{ => sdk}/impl/test/EmitExecutorTest.java (94%) rename impl/test/src/test/java/org/openworkflow/{ => sdk}/impl/test/EventDefinitionTest.java (95%) rename impl/test/src/test/java/org/openworkflow/{ => sdk}/impl/test/ForTaskMissingInTest.java (88%) rename impl/test/src/test/java/org/openworkflow/{ => sdk}/impl/test/ForkWaitTest.java (88%) rename impl/test/src/test/java/org/openworkflow/{ => sdk}/impl/test/HTTPWorkflowDefinitionTest.java (97%) rename impl/test/src/test/java/org/openworkflow/{ => sdk}/impl/test/LifeCycleEventsTest.java (85%) rename impl/test/src/test/java/org/openworkflow/{ => sdk}/impl/test/MvStorePersistenceTest.java (87%) rename impl/test/src/test/java/org/openworkflow/{ => sdk}/impl/test/OAuthHTTPWorkflowDefinitionTest.java (99%) rename impl/test/src/test/java/org/openworkflow/{ => sdk}/impl/test/OAuthUtilsTest.java (83%) rename impl/test/src/test/java/org/openworkflow/{ => sdk}/impl/test/OpenAPITest.java (97%) rename impl/test/src/test/java/org/openworkflow/{ => sdk}/impl/test/OpenIDCHTTPWorkflowDefinitionTest.java (98%) rename impl/test/src/test/java/org/openworkflow/{ => sdk}/impl/test/ResolvePolicyTest.java (84%) rename impl/test/src/test/java/org/openworkflow/{ => sdk}/impl/test/RetryTimeoutTest.java (95%) rename impl/test/src/test/java/org/openworkflow/{ => sdk}/impl/test/RunScriptJavaScriptTest.java (95%) rename impl/test/src/test/java/org/openworkflow/{ => sdk}/impl/test/RunShellExecutorTest.java (96%) rename impl/test/src/test/java/org/openworkflow/{ => sdk}/impl/test/ScheduleEventConsumerTest.java (93%) rename impl/test/src/test/java/org/openworkflow/{ => sdk}/impl/test/SchedulerTest.java (90%) rename impl/test/src/test/java/org/openworkflow/{ => sdk}/impl/test/SecretExpressionTest.java (92%) rename impl/test/src/test/java/org/openworkflow/{ => sdk}/impl/test/SubWorkflowTest.java (95%) rename impl/test/src/test/java/org/openworkflow/{ => sdk}/impl/test/TaskCounterPerInstanceListener.java (84%) rename impl/test/src/test/java/org/openworkflow/{ => sdk}/impl/test/UndefinedAuthReferenceTest.java (90%) rename impl/test/src/test/java/org/openworkflow/{ => sdk}/impl/test/WaitExecutorTest.java (94%) rename impl/test/src/test/java/org/openworkflow/{ => sdk}/impl/test/WorkflowDefinitionTest.java (93%) rename impl/test/src/test/java/org/openworkflow/{ => sdk}/impl/test/WorkflowExecutionListenerOutputTest.java (83%) rename impl/test/src/test/java/org/openworkflow/{ => sdk}/impl/test/WorkflowInstanceIdTest.java (84%) rename impl/test/src/test/java/org/openworkflow/{ => sdk}/impl/test/grpc/GrpcBiDirectionalStreamingTest.java (85%) rename impl/test/src/test/java/org/openworkflow/{ => sdk}/impl/test/grpc/GrpcClientStreamingTest.java (84%) rename impl/test/src/test/java/org/openworkflow/{ => sdk}/impl/test/grpc/GrpcServerStreamingTest.java (85%) rename impl/test/src/test/java/org/openworkflow/{ => sdk}/impl/test/grpc/GrpcUnaryArgsExprTest.java (84%) rename impl/test/src/test/java/org/openworkflow/{ => sdk}/impl/test/grpc/GrpcUnaryTest.java (85%) rename impl/test/src/test/java/org/openworkflow/{ => sdk}/impl/test/grpc/handlers/ContributorBiDiStreamingHandler.java (86%) rename impl/test/src/test/java/org/openworkflow/{ => sdk}/impl/test/grpc/handlers/ContributorClientStreamingHandler.java (90%) rename impl/test/src/test/java/org/openworkflow/{ => sdk}/impl/test/grpc/handlers/ContributorServerStreamingHandler.java (84%) rename impl/test/src/test/java/org/openworkflow/{ => sdk}/impl/test/grpc/handlers/ContributorUnaryArgsExprHandler.java (82%) rename impl/test/src/test/java/org/openworkflow/{ => sdk}/impl/test/grpc/handlers/PersonUnaryHandler.java (95%) rename impl/test/src/test/java/org/openworkflow/{ => sdk}/impl/test/junit/BinaryCheckUtil.java (97%) rename impl/test/src/test/java/org/openworkflow/{ => sdk}/impl/test/junit/DisabledIfProtocUnavailable.java (95%) rename impl/test/src/test/java/org/openworkflow/{ => sdk}/impl/test/junit/DisabledIfPythonUnavailable.java (95%) rename impl/test/src/test/java/org/openworkflow/{ => sdk}/impl/test/junit/ProtocCheckCondition.java (93%) rename impl/test/src/test/java/org/openworkflow/{ => sdk}/impl/test/junit/PythonCheckCondition.java (91%) delete mode 100644 impl/test/src/test/resources/workflows-samples/validation_test.yaml rename impl/validation/src/main/java/org/openworkflow/{ => sdk}/impl/jackson/schema/JsonSchemaValidator.java (93%) rename impl/validation/src/main/java/org/openworkflow/{ => sdk}/impl/jackson/schema/JsonSchemaValidatorFactory.java (77%) delete mode 100644 impl/validation/src/main/resources/META-INF/services/org.openworkflow.impl.schema.SchemaValidatorFactory create mode 100644 impl/validation/src/main/resources/META-INF/services/org.openworkflow.sdk.impl.schema.SchemaValidatorFactory rename mermaid/src/main/java/org/openworkflow/{ => sdk}/mermaid/CallNode.java (93%) rename mermaid/src/main/java/org/openworkflow/{ => sdk}/mermaid/DefaultNodeRenderer.java (97%) rename mermaid/src/main/java/org/openworkflow/{ => sdk}/mermaid/Edge.java (98%) rename mermaid/src/main/java/org/openworkflow/{ => sdk}/mermaid/EmitNode.java (89%) rename mermaid/src/main/java/org/openworkflow/{ => sdk}/mermaid/EndpointStringify.java (92%) rename mermaid/src/main/java/org/openworkflow/{ => sdk}/mermaid/ForNode.java (93%) rename mermaid/src/main/java/org/openworkflow/{ => sdk}/mermaid/ForkNode.java (94%) rename mermaid/src/main/java/org/openworkflow/{ => sdk}/mermaid/Ids.java (96%) rename mermaid/src/main/java/org/openworkflow/{ => sdk}/mermaid/IteratorNode.java (93%) rename mermaid/src/main/java/org/openworkflow/{ => sdk}/mermaid/ListenNode.java (94%) rename mermaid/src/main/java/org/openworkflow/{ => sdk}/mermaid/Mermaid.java (92%) rename mermaid/src/main/java/org/openworkflow/{ => sdk}/mermaid/MermaidGraph.java (92%) rename mermaid/src/main/java/org/openworkflow/{ => sdk}/mermaid/MermaidInk.java (98%) rename mermaid/src/main/java/org/openworkflow/{ => sdk}/mermaid/MermaidRenderer.java (95%) rename mermaid/src/main/java/org/openworkflow/{ => sdk}/mermaid/Node.java (98%) rename mermaid/src/main/java/org/openworkflow/{ => sdk}/mermaid/NodeBuilder.java (84%) rename mermaid/src/main/java/org/openworkflow/{ => sdk}/mermaid/NodeRenderer.java (96%) rename mermaid/src/main/java/org/openworkflow/{ => sdk}/mermaid/NodeType.java (96%) rename mermaid/src/main/java/org/openworkflow/{ => sdk}/mermaid/RaiseNode.java (92%) rename mermaid/src/main/java/org/openworkflow/{ => sdk}/mermaid/RunNode.java (93%) rename mermaid/src/main/java/org/openworkflow/{ => sdk}/mermaid/SubgraphNode.java (96%) rename mermaid/src/main/java/org/openworkflow/{ => sdk}/mermaid/SubgraphNodeRenderer.java (97%) rename mermaid/src/main/java/org/openworkflow/{ => sdk}/mermaid/SwitchNode.java (93%) rename mermaid/src/main/java/org/openworkflow/{ => sdk}/mermaid/TaskNode.java (91%) rename mermaid/src/main/java/org/openworkflow/{ => sdk}/mermaid/TaskSubgraphNode.java (93%) rename mermaid/src/main/java/org/openworkflow/{ => sdk}/mermaid/TryCatchNode.java (94%) rename mermaid/src/main/java/org/openworkflow/{ => sdk}/mermaid/WaitNode.java (94%) rename mermaid/src/test/java/org/openworkflow/{ => sdk}/mermaid/ClasspathYamlFinder.java (99%) rename mermaid/src/test/java/org/openworkflow/{ => sdk}/mermaid/MermaidSmokeTest.java (92%) rename serialization/src/main/java/org/openworkflow/{ => sdk}/serialization/DeserializeHelper.java (97%) rename serialization/src/main/java/org/openworkflow/{ => sdk}/serialization/SerializeHelper.java (89%) rename types/src/main/java/org/openworkflow/{ => sdk}/types/Defaults.java (95%) rename types/src/main/java/org/openworkflow/{ => sdk}/types/Errors.java (96%) diff --git a/README.md b/README.md index 2dc54c0b4..9f2300bdd 100644 --- a/README.md +++ b/README.md @@ -54,7 +54,7 @@ Add the following dependencies to your pom.xml `dependencies` section: ```xml - org.openworkflow + 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("org.openworkflow:openworkflow-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 `org.openworkflow.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/org/openworkflow/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/org/openworkflow/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 50d04ded9..abcac2081 100644 --- a/annotations/pom.xml +++ b/annotations/pom.xml @@ -1,7 +1,7 @@ 4.0.0 - org.openworkflow + org.openworkflow.sdk openworkflow-parent 8.0.0-SNAPSHOT diff --git a/annotations/src/main/java/org/openworkflow/annotations/AdditionalProperties.java b/annotations/src/main/java/org/openworkflow/sdk/annotations/AdditionalProperties.java similarity index 95% rename from annotations/src/main/java/org/openworkflow/annotations/AdditionalProperties.java rename to annotations/src/main/java/org/openworkflow/sdk/annotations/AdditionalProperties.java index 1c463e080..4a185161b 100644 --- a/annotations/src/main/java/org/openworkflow/annotations/AdditionalProperties.java +++ b/annotations/src/main/java/org/openworkflow/sdk/annotations/AdditionalProperties.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.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/org/openworkflow/annotations/ExclusiveUnion.java b/annotations/src/main/java/org/openworkflow/sdk/annotations/ExclusiveUnion.java similarity index 95% rename from annotations/src/main/java/org/openworkflow/annotations/ExclusiveUnion.java rename to annotations/src/main/java/org/openworkflow/sdk/annotations/ExclusiveUnion.java index 93a37d248..d404647bb 100644 --- a/annotations/src/main/java/org/openworkflow/annotations/ExclusiveUnion.java +++ b/annotations/src/main/java/org/openworkflow/sdk/annotations/ExclusiveUnion.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.annotations; +package org.openworkflow.sdk.annotations; import static java.lang.annotation.RetentionPolicy.RUNTIME; diff --git a/annotations/src/main/java/org/openworkflow/annotations/InclusiveUnion.java b/annotations/src/main/java/org/openworkflow/sdk/annotations/InclusiveUnion.java similarity index 95% rename from annotations/src/main/java/org/openworkflow/annotations/InclusiveUnion.java rename to annotations/src/main/java/org/openworkflow/sdk/annotations/InclusiveUnion.java index 87cf41852..9bbb4793a 100644 --- a/annotations/src/main/java/org/openworkflow/annotations/InclusiveUnion.java +++ b/annotations/src/main/java/org/openworkflow/sdk/annotations/InclusiveUnion.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.annotations; +package org.openworkflow.sdk.annotations; import static java.lang.annotation.RetentionPolicy.RUNTIME; diff --git a/annotations/src/main/java/org/openworkflow/annotations/Item.java b/annotations/src/main/java/org/openworkflow/sdk/annotations/Item.java similarity index 95% rename from annotations/src/main/java/org/openworkflow/annotations/Item.java rename to annotations/src/main/java/org/openworkflow/sdk/annotations/Item.java index 880888f7b..fd15f610f 100644 --- a/annotations/src/main/java/org/openworkflow/annotations/Item.java +++ b/annotations/src/main/java/org/openworkflow/sdk/annotations/Item.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.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/org/openworkflow/annotations/ItemKey.java b/annotations/src/main/java/org/openworkflow/sdk/annotations/ItemKey.java similarity index 95% rename from annotations/src/main/java/org/openworkflow/annotations/ItemKey.java rename to annotations/src/main/java/org/openworkflow/sdk/annotations/ItemKey.java index ef948673a..5348cda86 100644 --- a/annotations/src/main/java/org/openworkflow/annotations/ItemKey.java +++ b/annotations/src/main/java/org/openworkflow/sdk/annotations/ItemKey.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.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/org/openworkflow/annotations/ItemValue.java b/annotations/src/main/java/org/openworkflow/sdk/annotations/ItemValue.java similarity index 95% rename from annotations/src/main/java/org/openworkflow/annotations/ItemValue.java rename to annotations/src/main/java/org/openworkflow/sdk/annotations/ItemValue.java index 54b27c26f..e10be20e4 100644 --- a/annotations/src/main/java/org/openworkflow/annotations/ItemValue.java +++ b/annotations/src/main/java/org/openworkflow/sdk/annotations/ItemValue.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.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/org/openworkflow/annotations/OneOfSetter.java b/annotations/src/main/java/org/openworkflow/sdk/annotations/OneOfSetter.java similarity index 95% rename from annotations/src/main/java/org/openworkflow/annotations/OneOfSetter.java rename to annotations/src/main/java/org/openworkflow/sdk/annotations/OneOfSetter.java index 37b9c8375..f0bb21bba 100644 --- a/annotations/src/main/java/org/openworkflow/annotations/OneOfSetter.java +++ b/annotations/src/main/java/org/openworkflow/sdk/annotations/OneOfSetter.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.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/org/openworkflow/annotations/OneOfValueProvider.java b/annotations/src/main/java/org/openworkflow/sdk/annotations/OneOfValueProvider.java similarity index 94% rename from annotations/src/main/java/org/openworkflow/annotations/OneOfValueProvider.java rename to annotations/src/main/java/org/openworkflow/sdk/annotations/OneOfValueProvider.java index 0194d9372..98dd80209 100644 --- a/annotations/src/main/java/org/openworkflow/annotations/OneOfValueProvider.java +++ b/annotations/src/main/java/org/openworkflow/sdk/annotations/OneOfValueProvider.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.annotations; +package org.openworkflow.sdk.annotations; public interface OneOfValueProvider { T get(); diff --git a/api/pom.xml b/api/pom.xml index 4fdce5d82..e13af0d08 100644 --- a/api/pom.xml +++ b/api/pom.xml @@ -2,7 +2,7 @@ 4.0.0 - org.openworkflow + org.openworkflow.sdk openworkflow-parent 8.0.0-SNAPSHOT @@ -17,11 +17,11 @@ - org.openworkflow + org.openworkflow.sdk openworkflow-types - org.openworkflow + org.openworkflow.sdk openworkflow-serialization @@ -81,13 +81,13 @@ - org.openworkflow + org.openworkflow.sdk openworkflow-jackson-generator ${project.version} - org.openworkflow.api.types - org.openworkflow.api.types.jackson + org.openworkflow.sdk.api.types + org.openworkflow.sdk.api.types.jackson diff --git a/api/src/main/java/org/openworkflow/api/DirectReader.java b/api/src/main/java/org/openworkflow/sdk/api/DirectReader.java similarity index 94% rename from api/src/main/java/org/openworkflow/api/DirectReader.java rename to api/src/main/java/org/openworkflow/sdk/api/DirectReader.java index bbc0e976e..54769009d 100644 --- a/api/src/main/java/org/openworkflow/api/DirectReader.java +++ b/api/src/main/java/org/openworkflow/sdk/api/DirectReader.java @@ -13,12 +13,12 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.api; +package org.openworkflow.sdk.api; import java.io.IOException; import java.io.InputStream; import java.io.Reader; -import org.openworkflow.api.types.Workflow; +import org.openworkflow.sdk.api.types.Workflow; class DirectReader implements WorkflowReaderOperations { diff --git a/api/src/main/java/org/openworkflow/api/ObjectMapperFactory.java b/api/src/main/java/org/openworkflow/sdk/api/ObjectMapperFactory.java similarity index 88% rename from api/src/main/java/org/openworkflow/api/ObjectMapperFactory.java rename to api/src/main/java/org/openworkflow/sdk/api/ObjectMapperFactory.java index f0d07cda9..d99803e66 100644 --- a/api/src/main/java/org/openworkflow/api/ObjectMapperFactory.java +++ b/api/src/main/java/org/openworkflow/sdk/api/ObjectMapperFactory.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.api; +package org.openworkflow.sdk.api; import com.fasterxml.jackson.annotation.JsonInclude.Include; import com.fasterxml.jackson.databind.ObjectMapper; @@ -22,10 +22,10 @@ import com.fasterxml.jackson.dataformat.yaml.YAMLFactory; import com.fasterxml.jackson.dataformat.yaml.YAMLGenerator.Feature; import java.net.URI; -import org.openworkflow.api.types.jackson.JacksonMixInModule; -import org.openworkflow.serialization.BeanDeserializerModifierWithValidation; -import org.openworkflow.serialization.URIDeserializer; -import org.openworkflow.serialization.URISerializer; +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/org/openworkflow/api/ValidationReader.java b/api/src/main/java/org/openworkflow/sdk/api/ValidationReader.java similarity index 97% rename from api/src/main/java/org/openworkflow/api/ValidationReader.java rename to api/src/main/java/org/openworkflow/sdk/api/ValidationReader.java index 536525a17..97950caec 100644 --- a/api/src/main/java/org/openworkflow/api/ValidationReader.java +++ b/api/src/main/java/org/openworkflow/sdk/api/ValidationReader.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.api; +package org.openworkflow.sdk.api; import com.fasterxml.jackson.core.exc.StreamReadException; import com.fasterxml.jackson.databind.DatabindException; @@ -29,7 +29,7 @@ import java.io.UncheckedIOException; import java.util.Collection; import java.util.stream.Collectors; -import org.openworkflow.api.types.Workflow; +import org.openworkflow.sdk.api.types.Workflow; class ValidationReader implements WorkflowReaderOperations { private final Schema schemaObject; diff --git a/api/src/main/java/org/openworkflow/api/WorkflowFormat.java b/api/src/main/java/org/openworkflow/sdk/api/WorkflowFormat.java similarity index 98% rename from api/src/main/java/org/openworkflow/api/WorkflowFormat.java rename to api/src/main/java/org/openworkflow/sdk/api/WorkflowFormat.java index 37d6bb66f..ba79286e4 100644 --- a/api/src/main/java/org/openworkflow/api/WorkflowFormat.java +++ b/api/src/main/java/org/openworkflow/sdk/api/WorkflowFormat.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.api; +package org.openworkflow.sdk.api; import com.fasterxml.jackson.databind.ObjectMapper; import java.nio.file.Path; diff --git a/api/src/main/java/org/openworkflow/api/WorkflowReader.java b/api/src/main/java/org/openworkflow/sdk/api/WorkflowReader.java similarity index 98% rename from api/src/main/java/org/openworkflow/api/WorkflowReader.java rename to api/src/main/java/org/openworkflow/sdk/api/WorkflowReader.java index ecc00e6e6..49ca9143f 100644 --- a/api/src/main/java/org/openworkflow/api/WorkflowReader.java +++ b/api/src/main/java/org/openworkflow/sdk/api/WorkflowReader.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.api; +package org.openworkflow.sdk.api; import java.io.FileNotFoundException; import java.io.IOException; @@ -21,7 +21,7 @@ import java.io.Reader; import java.nio.file.Files; import java.nio.file.Path; -import org.openworkflow.api.types.Workflow; +import org.openworkflow.sdk.api.types.Workflow; /** Utility class for reading and parsing Open Workflow definitions from various sources. */ public class WorkflowReader { diff --git a/api/src/main/java/org/openworkflow/api/WorkflowReaderOperations.java b/api/src/main/java/org/openworkflow/sdk/api/WorkflowReaderOperations.java similarity index 92% rename from api/src/main/java/org/openworkflow/api/WorkflowReaderOperations.java rename to api/src/main/java/org/openworkflow/sdk/api/WorkflowReaderOperations.java index 09154c528..d0c2bfcc1 100644 --- a/api/src/main/java/org/openworkflow/api/WorkflowReaderOperations.java +++ b/api/src/main/java/org/openworkflow/sdk/api/WorkflowReaderOperations.java @@ -13,12 +13,12 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.api; +package org.openworkflow.sdk.api; import java.io.IOException; import java.io.InputStream; import java.io.Reader; -import org.openworkflow.api.types.Workflow; +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/org/openworkflow/api/WorkflowWriter.java b/api/src/main/java/org/openworkflow/sdk/api/WorkflowWriter.java similarity index 98% rename from api/src/main/java/org/openworkflow/api/WorkflowWriter.java rename to api/src/main/java/org/openworkflow/sdk/api/WorkflowWriter.java index a074b99bc..b808dfb8b 100644 --- a/api/src/main/java/org/openworkflow/api/WorkflowWriter.java +++ b/api/src/main/java/org/openworkflow/sdk/api/WorkflowWriter.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.api; +package org.openworkflow.sdk.api; import java.io.ByteArrayOutputStream; import java.io.IOException; @@ -21,7 +21,7 @@ import java.io.Writer; import java.nio.file.Files; import java.nio.file.Path; -import org.openworkflow.api.types.Workflow; +import org.openworkflow.sdk.api.types.Workflow; /** * Utility class for writing Open Workflow definitions to various outputs and formats. diff --git a/api/src/main/java/org/openworkflow/serialization/BeanDeserializerModifierWithValidation.java b/api/src/main/java/org/openworkflow/sdk/serialization/BeanDeserializerModifierWithValidation.java similarity index 96% rename from api/src/main/java/org/openworkflow/serialization/BeanDeserializerModifierWithValidation.java rename to api/src/main/java/org/openworkflow/sdk/serialization/BeanDeserializerModifierWithValidation.java index 2998c4d55..7353521ca 100644 --- a/api/src/main/java/org/openworkflow/serialization/BeanDeserializerModifierWithValidation.java +++ b/api/src/main/java/org/openworkflow/sdk/serialization/BeanDeserializerModifierWithValidation.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.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/org/openworkflow/serialization/BeanDeserializerWithValidation.java b/api/src/main/java/org/openworkflow/sdk/serialization/BeanDeserializerWithValidation.java similarity index 97% rename from api/src/main/java/org/openworkflow/serialization/BeanDeserializerWithValidation.java rename to api/src/main/java/org/openworkflow/sdk/serialization/BeanDeserializerWithValidation.java index 08c5b9341..b8c1728c6 100644 --- a/api/src/main/java/org/openworkflow/serialization/BeanDeserializerWithValidation.java +++ b/api/src/main/java/org/openworkflow/sdk/serialization/BeanDeserializerWithValidation.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.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/org/openworkflow/serialization/URIDeserializer.java b/api/src/main/java/org/openworkflow/sdk/serialization/URIDeserializer.java similarity index 96% rename from api/src/main/java/org/openworkflow/serialization/URIDeserializer.java rename to api/src/main/java/org/openworkflow/sdk/serialization/URIDeserializer.java index e5e164333..702afff53 100644 --- a/api/src/main/java/org/openworkflow/serialization/URIDeserializer.java +++ b/api/src/main/java/org/openworkflow/sdk/serialization/URIDeserializer.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.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/org/openworkflow/serialization/URISerializer.java b/api/src/main/java/org/openworkflow/sdk/serialization/URISerializer.java similarity index 96% rename from api/src/main/java/org/openworkflow/serialization/URISerializer.java rename to api/src/main/java/org/openworkflow/sdk/serialization/URISerializer.java index 272fe3de8..f4b8360a9 100644 --- a/api/src/main/java/org/openworkflow/serialization/URISerializer.java +++ b/api/src/main/java/org/openworkflow/sdk/serialization/URISerializer.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.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/org/openworkflow/api/ApiTest.java b/api/src/test/java/org/openworkflow/sdk/api/ApiTest.java similarity index 87% rename from api/src/test/java/org/openworkflow/api/ApiTest.java rename to api/src/test/java/org/openworkflow/sdk/api/ApiTest.java index 777283a90..eb925658f 100644 --- a/api/src/test/java/org/openworkflow/api/ApiTest.java +++ b/api/src/test/java/org/openworkflow/sdk/api/ApiTest.java @@ -13,25 +13,25 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.api; +package org.openworkflow.sdk.api; import static org.assertj.core.api.Assertions.assertThat; -import static org.openworkflow.api.WorkflowReader.readWorkflowFromClasspath; +import static org.openworkflow.sdk.api.WorkflowReader.readWorkflowFromClasspath; import java.io.IOException; import java.net.URI; import org.junit.jupiter.api.Test; -import org.openworkflow.api.types.BearerAuthenticationPolicy; -import org.openworkflow.api.types.CallFunction; -import org.openworkflow.api.types.CallHTTP; -import org.openworkflow.api.types.CallTask; -import org.openworkflow.api.types.HTTPArguments; -import org.openworkflow.api.types.OAuth2AuthenticationData.OAuth2AuthenticationDataGrant; -import org.openworkflow.api.types.OAuth2AuthenticationPolicy; -import org.openworkflow.api.types.OAuth2AuthenticationPropertiesEndpoints; -import org.openworkflow.api.types.OAuth2ConnectAuthenticationProperties; -import org.openworkflow.api.types.Task; -import org.openworkflow.api.types.Workflow; +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/org/openworkflow/api/FeaturesTest.java b/api/src/test/java/org/openworkflow/sdk/api/FeaturesTest.java similarity index 88% rename from api/src/test/java/org/openworkflow/api/FeaturesTest.java rename to api/src/test/java/org/openworkflow/sdk/api/FeaturesTest.java index 78c8f422b..544317946 100644 --- a/api/src/test/java/org/openworkflow/api/FeaturesTest.java +++ b/api/src/test/java/org/openworkflow/sdk/api/FeaturesTest.java @@ -13,22 +13,22 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.api; +package org.openworkflow.sdk.api; import static org.assertj.core.api.Assertions.assertThat; import static org.junit.jupiter.api.Assertions.assertNotNull; -import static org.openworkflow.api.WorkflowReader.readWorkflowFromClasspath; -import static org.openworkflow.api.WorkflowReader.validation; -import static org.openworkflow.api.WorkflowWriter.workflowAsBytes; -import static org.openworkflow.api.WorkflowWriter.workflowAsString; -import static org.openworkflow.api.WorkflowWriter.writeWorkflow; +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 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.api.types.Workflow; +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 b2a3c878f..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://openworkflow.cloud/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 b22b1c8c4..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://openworkflow.cloud/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 5aff15db7..a5d8896d3 100644 --- a/bom/pom.xml +++ b/bom/pom.xml @@ -2,7 +2,7 @@ 4.0.0 - org.openworkflow + org.openworkflow.sdk openworkflow-parent 8.0.0-SNAPSHOT diff --git a/examples/events/pom.xml b/examples/events/pom.xml index 139d8932b..f7534e2ef 100644 --- a/examples/events/pom.xml +++ b/examples/events/pom.xml @@ -1,7 +1,7 @@ 4.0.0 - org.openworkflow + org.openworkflow.sdk openworkflow-examples 8.0.0-SNAPSHOT @@ -15,7 +15,7 @@ - org.openworkflow + org.openworkflow.sdk openworkflow-impl-jackson diff --git a/examples/events/src/main/java/events/EventExample.java b/examples/events/src/main/java/events/EventExample.java index 5884c8758..bbde3a624 100644 --- a/examples/events/src/main/java/events/EventExample.java +++ b/examples/events/src/main/java/events/EventExample.java @@ -17,10 +17,10 @@ import java.io.IOException; import java.util.Map; -import org.openworkflow.api.WorkflowReader; -import org.openworkflow.impl.WorkflowApplication; -import org.openworkflow.impl.WorkflowDefinition; -import org.openworkflow.impl.WorkflowInstance; +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 8fcfea156..24d8f6722 100644 --- a/examples/pom.xml +++ b/examples/pom.xml @@ -1,7 +1,7 @@ 4.0.0 - org.openworkflow + org.openworkflow.sdk openworkflow-parent 8.0.0-SNAPSHOT ../pom.xml @@ -15,17 +15,17 @@ - org.openworkflow + org.openworkflow.sdk openworkflow-impl-core ${project.version} - org.openworkflow + org.openworkflow.sdk openworkflow-impl-http ${project.version} - org.openworkflow + org.openworkflow.sdk openworkflow-impl-jackson ${project.version} diff --git a/examples/simpleGet/pom.xml b/examples/simpleGet/pom.xml index b57c9abd8..748d5908e 100644 --- a/examples/simpleGet/pom.xml +++ b/examples/simpleGet/pom.xml @@ -1,7 +1,7 @@ 4.0.0 - org.openworkflow + org.openworkflow.sdk openworkflow-examples 8.0.0-SNAPSHOT @@ -9,16 +9,16 @@ Open Workflow :: Examples :: SimpleGet - org.openworkflow.impl.BlockingExample + org.openworkflow.sdk.impl.BlockingExample - org.openworkflow + org.openworkflow.sdk openworkflow-impl-jackson - org.openworkflow + org.openworkflow.sdk openworkflow-impl-http diff --git a/examples/simpleGet/src/main/java/org/openworkflow/impl/BlockingExample.java b/examples/simpleGet/src/main/java/org/openworkflow/sdk/impl/BlockingExample.java similarity index 93% rename from examples/simpleGet/src/main/java/org/openworkflow/impl/BlockingExample.java rename to examples/simpleGet/src/main/java/org/openworkflow/sdk/impl/BlockingExample.java index e07cf8bfe..abed8d0d1 100644 --- a/examples/simpleGet/src/main/java/org/openworkflow/impl/BlockingExample.java +++ b/examples/simpleGet/src/main/java/org/openworkflow/sdk/impl/BlockingExample.java @@ -13,11 +13,11 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl; +package org.openworkflow.sdk.impl; import java.io.IOException; import java.util.Map; -import org.openworkflow.api.WorkflowReader; +import org.openworkflow.sdk.api.WorkflowReader; import org.slf4j.Logger; import org.slf4j.LoggerFactory; diff --git a/examples/simpleGet/src/main/java/org/openworkflow/impl/NotBlockingExample.java b/examples/simpleGet/src/main/java/org/openworkflow/sdk/impl/NotBlockingExample.java similarity index 94% rename from examples/simpleGet/src/main/java/org/openworkflow/impl/NotBlockingExample.java rename to examples/simpleGet/src/main/java/org/openworkflow/sdk/impl/NotBlockingExample.java index d75716431..926ee63ef 100644 --- a/examples/simpleGet/src/main/java/org/openworkflow/impl/NotBlockingExample.java +++ b/examples/simpleGet/src/main/java/org/openworkflow/sdk/impl/NotBlockingExample.java @@ -13,11 +13,11 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl; +package org.openworkflow.sdk.impl; import java.io.IOException; import java.util.Map; -import org.openworkflow.api.WorkflowReader; +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 588fd907e..751456cf4 100644 --- a/fluent/README.md +++ b/fluent/README.md @@ -20,23 +20,23 @@ Add the modules you need to your Maven `pom.xml` (replace versions as appropriat ```xml - org.openworkflow + org.openworkflow.sdk openworkflow-fluent-spec - ${version.org.openworkflow} + ${version.org.openworkflow.sdk} - org.openworkflow + org.openworkflow.sdk openworkflow-fluent-func - ${version.org.openworkflow} + ${version.org.openworkflow.sdk} - org.openworkflow + org.openworkflow.sdk openworkflow-fluent-agentic - ${version.org.openworkflow} + ${version.org.openworkflow.sdk} ``` @@ -50,8 +50,8 @@ 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 org.openworkflow.api.types.Workflow; -import org.openworkflow.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 org.openworkflow.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 org.openworkflow.api.types.Workflow; -import org.openworkflow.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 org.openworkflow.api.types.Workflow; -import org.openworkflow.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 org.openworkflow.api.types.Workflow; -import org.openworkflow.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 { diff --git a/fluent/pom.xml b/fluent/pom.xml index 569b750cd..2e6a8793b 100644 --- a/fluent/pom.xml +++ b/fluent/pom.xml @@ -2,7 +2,7 @@ 4.0.0 - org.openworkflow + org.openworkflow.sdk openworkflow-parent 8.0.0-SNAPSHOT diff --git a/fluent/spec/pom.xml b/fluent/spec/pom.xml index 1d4a5270f..50e09a326 100644 --- a/fluent/spec/pom.xml +++ b/fluent/spec/pom.xml @@ -2,7 +2,7 @@ 4.0.0 - org.openworkflow + org.openworkflow.sdk openworkflow-fluent 8.0.0-SNAPSHOT @@ -17,7 +17,7 @@ - org.openworkflow + org.openworkflow.sdk openworkflow-types diff --git a/fluent/spec/src/main/java/org/openworkflow/fluent/spec/AbstractEmitTaskBuilder.java b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/AbstractEmitTaskBuilder.java similarity index 87% rename from fluent/spec/src/main/java/org/openworkflow/fluent/spec/AbstractEmitTaskBuilder.java rename to fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/AbstractEmitTaskBuilder.java index bd16b5b99..ec9e55b9d 100644 --- a/fluent/spec/src/main/java/org/openworkflow/fluent/spec/AbstractEmitTaskBuilder.java +++ b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/AbstractEmitTaskBuilder.java @@ -13,12 +13,12 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.fluent.spec; +package org.openworkflow.sdk.fluent.spec; import java.util.function.Consumer; -import org.openworkflow.api.types.EmitEventDefinition; -import org.openworkflow.api.types.EmitTask; -import org.openworkflow.api.types.EmitTaskConfiguration; +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/org/openworkflow/fluent/spec/AbstractEventConsumptionStrategyBuilder.java b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/AbstractEventConsumptionStrategyBuilder.java similarity index 91% rename from fluent/spec/src/main/java/org/openworkflow/fluent/spec/AbstractEventConsumptionStrategyBuilder.java rename to fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/AbstractEventConsumptionStrategyBuilder.java index cc4bf65ee..9b54d951b 100644 --- a/fluent/spec/src/main/java/org/openworkflow/fluent/spec/AbstractEventConsumptionStrategyBuilder.java +++ b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/AbstractEventConsumptionStrategyBuilder.java @@ -13,19 +13,19 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.fluent.spec; +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.api.types.AllEventConsumptionStrategy; -import org.openworkflow.api.types.AnyEventConsumptionStrategy; -import org.openworkflow.api.types.EventFilter; -import org.openworkflow.api.types.OneEventConsumptionStrategy; -import org.openworkflow.api.types.Until; -import org.openworkflow.fluent.spec.spi.EventConsumptionStrategyFluent; +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/org/openworkflow/fluent/spec/AbstractEventFilterBuilder.java b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/AbstractEventFilterBuilder.java similarity index 91% rename from fluent/spec/src/main/java/org/openworkflow/fluent/spec/AbstractEventFilterBuilder.java rename to fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/AbstractEventFilterBuilder.java index 6129c47ae..e98decd58 100644 --- a/fluent/spec/src/main/java/org/openworkflow/fluent/spec/AbstractEventFilterBuilder.java +++ b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/AbstractEventFilterBuilder.java @@ -13,11 +13,11 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.fluent.spec; +package org.openworkflow.sdk.fluent.spec; import java.util.function.Consumer; -import org.openworkflow.api.types.EventFilter; -import org.openworkflow.api.types.EventFilterCorrelate; +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/org/openworkflow/fluent/spec/AbstractEventPropertiesBuilder.java b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/AbstractEventPropertiesBuilder.java similarity index 89% rename from fluent/spec/src/main/java/org/openworkflow/fluent/spec/AbstractEventPropertiesBuilder.java rename to fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/AbstractEventPropertiesBuilder.java index 26fe0f77c..8a953db58 100644 --- a/fluent/spec/src/main/java/org/openworkflow/fluent/spec/AbstractEventPropertiesBuilder.java +++ b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/AbstractEventPropertiesBuilder.java @@ -13,16 +13,16 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.fluent.spec; +package org.openworkflow.sdk.fluent.spec; import java.net.URI; import java.net.URISyntaxException; import java.util.Date; -import org.openworkflow.api.types.EventData; -import org.openworkflow.api.types.EventProperties; -import org.openworkflow.api.types.EventSource; -import org.openworkflow.api.types.EventTime; -import org.openworkflow.api.types.UriTemplate; +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/org/openworkflow/fluent/spec/AbstractForkTaskBuilder.java b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/AbstractForkTaskBuilder.java similarity index 90% rename from fluent/spec/src/main/java/org/openworkflow/fluent/spec/AbstractForkTaskBuilder.java rename to fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/AbstractForkTaskBuilder.java index ca1fcac86..cff465df9 100644 --- a/fluent/spec/src/main/java/org/openworkflow/fluent/spec/AbstractForkTaskBuilder.java +++ b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/AbstractForkTaskBuilder.java @@ -13,18 +13,18 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.fluent.spec; +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.api.types.DoTask; -import org.openworkflow.api.types.ForkTask; -import org.openworkflow.api.types.ForkTaskConfiguration; -import org.openworkflow.api.types.Task; -import org.openworkflow.api.types.TaskItem; -import org.openworkflow.fluent.spec.spi.ForkTaskFluent; +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/org/openworkflow/fluent/spec/AbstractListenTaskBuilder.java b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/AbstractListenTaskBuilder.java similarity index 88% rename from fluent/spec/src/main/java/org/openworkflow/fluent/spec/AbstractListenTaskBuilder.java rename to fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/AbstractListenTaskBuilder.java index 1f6c0267e..ee1d1bf08 100644 --- a/fluent/spec/src/main/java/org/openworkflow/fluent/spec/AbstractListenTaskBuilder.java +++ b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/AbstractListenTaskBuilder.java @@ -13,16 +13,16 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.fluent.spec; +package org.openworkflow.sdk.fluent.spec; import java.util.function.Consumer; -import org.openworkflow.api.types.CorrelateProperty; -import org.openworkflow.api.types.ListenTask; -import org.openworkflow.api.types.ListenTaskConfiguration; -import org.openworkflow.api.types.ListenTo; -import org.openworkflow.api.types.TaskTimeout; -import org.openworkflow.api.types.Timeout; -import org.openworkflow.api.types.TimeoutAfter; +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/org/openworkflow/fluent/spec/BaseDoTaskBuilder.java b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/BaseDoTaskBuilder.java similarity index 95% rename from fluent/spec/src/main/java/org/openworkflow/fluent/spec/BaseDoTaskBuilder.java rename to fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/BaseDoTaskBuilder.java index d2b73a262..f880deb52 100644 --- a/fluent/spec/src/main/java/org/openworkflow/fluent/spec/BaseDoTaskBuilder.java +++ b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/BaseDoTaskBuilder.java @@ -13,11 +13,11 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.fluent.spec; +package org.openworkflow.sdk.fluent.spec; import java.util.Objects; import java.util.function.Consumer; -import org.openworkflow.api.types.DoTask; +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/org/openworkflow/fluent/spec/BaseRaiseTaskBuilder.java b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/BaseRaiseTaskBuilder.java similarity index 84% rename from fluent/spec/src/main/java/org/openworkflow/fluent/spec/BaseRaiseTaskBuilder.java rename to fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/BaseRaiseTaskBuilder.java index 542a6e67f..9b9d21aa1 100644 --- a/fluent/spec/src/main/java/org/openworkflow/fluent/spec/BaseRaiseTaskBuilder.java +++ b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/BaseRaiseTaskBuilder.java @@ -13,18 +13,18 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.fluent.spec; +package org.openworkflow.sdk.fluent.spec; import java.net.URI; import java.net.URISyntaxException; import java.util.function.Consumer; -import org.openworkflow.api.types.ErrorDetails; -import org.openworkflow.api.types.ErrorTitle; -import org.openworkflow.api.types.ErrorType; -import org.openworkflow.api.types.RaiseTask; -import org.openworkflow.api.types.RaiseTaskConfiguration; -import org.openworkflow.api.types.RaiseTaskError; -import org.openworkflow.api.types.UriTemplate; +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 org.openworkflow.api.types.Error error; + private final org.openworkflow.sdk.api.types.Error error; private RaiseTaskErrorBuilder() { - this.error = new org.openworkflow.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/org/openworkflow/fluent/spec/BaseTaskItemListBuilder.java b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/BaseTaskItemListBuilder.java similarity index 96% rename from fluent/spec/src/main/java/org/openworkflow/fluent/spec/BaseTaskItemListBuilder.java rename to fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/BaseTaskItemListBuilder.java index 3af0905f0..fea49c26e 100644 --- a/fluent/spec/src/main/java/org/openworkflow/fluent/spec/BaseTaskItemListBuilder.java +++ b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/BaseTaskItemListBuilder.java @@ -13,15 +13,15 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.fluent.spec; +package org.openworkflow.sdk.fluent.spec; import java.util.ArrayList; import java.util.Collections; import java.util.List; import java.util.Objects; import java.util.function.Consumer; -import org.openworkflow.api.types.TaskBase; -import org.openworkflow.api.types.TaskItem; +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/org/openworkflow/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/org/openworkflow/fluent/spec/BaseTryTaskBuilder.java rename to fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/BaseTryTaskBuilder.java index b902c5681..42843ae01 100644 --- a/fluent/spec/src/main/java/org/openworkflow/fluent/spec/BaseTryTaskBuilder.java +++ b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/BaseTryTaskBuilder.java @@ -13,29 +13,29 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.fluent.spec; +package org.openworkflow.sdk.fluent.spec; import java.util.ArrayList; import java.util.List; import java.util.function.Consumer; -import org.openworkflow.api.types.CatchErrors; -import org.openworkflow.api.types.Constant; -import org.openworkflow.api.types.ConstantBackoff; -import org.openworkflow.api.types.ErrorFilter; -import org.openworkflow.api.types.Exponential; -import org.openworkflow.api.types.ExponentialBackOff; -import org.openworkflow.api.types.Linear; -import org.openworkflow.api.types.LinearBackoff; -import org.openworkflow.api.types.Retry; -import org.openworkflow.api.types.RetryBackoff; -import org.openworkflow.api.types.RetryLimit; -import org.openworkflow.api.types.RetryLimitAttempt; -import org.openworkflow.api.types.RetryPolicy; -import org.openworkflow.api.types.RetryPolicyJitter; -import org.openworkflow.api.types.TaskItem; -import org.openworkflow.api.types.TimeoutAfter; -import org.openworkflow.api.types.TryTask; -import org.openworkflow.api.types.TryTaskCatch; +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/org/openworkflow/fluent/spec/BaseWorkflowBuilder.java b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/BaseWorkflowBuilder.java similarity index 91% rename from fluent/spec/src/main/java/org/openworkflow/fluent/spec/BaseWorkflowBuilder.java rename to fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/BaseWorkflowBuilder.java index 0f80709c7..cc55e4b3a 100644 --- a/fluent/spec/src/main/java/org/openworkflow/fluent/spec/BaseWorkflowBuilder.java +++ b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/BaseWorkflowBuilder.java @@ -13,23 +13,23 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.fluent.spec; +package org.openworkflow.sdk.fluent.spec; -import static org.openworkflow.types.Defaults.DSL; +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.api.types.DoTimeout; -import org.openworkflow.api.types.Document; -import org.openworkflow.api.types.Input; -import org.openworkflow.api.types.Output; -import org.openworkflow.api.types.TaskItem; -import org.openworkflow.api.types.Timeout; -import org.openworkflow.api.types.TimeoutAfter; -import org.openworkflow.api.types.Workflow; -import org.openworkflow.fluent.spec.spi.TransformationHandlers; +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/org/openworkflow/fluent/spec/BasicAuthenticationPolicyBuilder.java b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/BasicAuthenticationPolicyBuilder.java similarity index 85% rename from fluent/spec/src/main/java/org/openworkflow/fluent/spec/BasicAuthenticationPolicyBuilder.java rename to fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/BasicAuthenticationPolicyBuilder.java index 7e8ff5eb6..cb3a5a718 100644 --- a/fluent/spec/src/main/java/org/openworkflow/fluent/spec/BasicAuthenticationPolicyBuilder.java +++ b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/BasicAuthenticationPolicyBuilder.java @@ -13,12 +13,12 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.fluent.spec; +package org.openworkflow.sdk.fluent.spec; -import org.openworkflow.api.types.BasicAuthenticationPolicy; -import org.openworkflow.api.types.BasicAuthenticationPolicyConfiguration; -import org.openworkflow.api.types.BasicAuthenticationProperties; -import org.openworkflow.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/org/openworkflow/fluent/spec/BearerAuthenticationPolicyBuilder.java b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/BearerAuthenticationPolicyBuilder.java similarity index 84% rename from fluent/spec/src/main/java/org/openworkflow/fluent/spec/BearerAuthenticationPolicyBuilder.java rename to fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/BearerAuthenticationPolicyBuilder.java index e6c224e5d..27704246e 100644 --- a/fluent/spec/src/main/java/org/openworkflow/fluent/spec/BearerAuthenticationPolicyBuilder.java +++ b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/BearerAuthenticationPolicyBuilder.java @@ -13,12 +13,12 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.fluent.spec; +package org.openworkflow.sdk.fluent.spec; -import org.openworkflow.api.types.BearerAuthenticationPolicy; -import org.openworkflow.api.types.BearerAuthenticationPolicyConfiguration; -import org.openworkflow.api.types.BearerAuthenticationProperties; -import org.openworkflow.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/org/openworkflow/fluent/spec/CallGrpcTaskBuilder.java b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/CallGrpcTaskBuilder.java similarity index 82% rename from fluent/spec/src/main/java/org/openworkflow/fluent/spec/CallGrpcTaskBuilder.java rename to fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/CallGrpcTaskBuilder.java index fb5a96577..bda9eb062 100644 --- a/fluent/spec/src/main/java/org/openworkflow/fluent/spec/CallGrpcTaskBuilder.java +++ b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/CallGrpcTaskBuilder.java @@ -13,11 +13,11 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.fluent.spec; +package org.openworkflow.sdk.fluent.spec; -import org.openworkflow.api.types.CallGRPC; -import org.openworkflow.api.types.GRPCArguments; -import org.openworkflow.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/org/openworkflow/fluent/spec/CallHttpTaskBuilder.java b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/CallHttpTaskBuilder.java similarity index 87% rename from fluent/spec/src/main/java/org/openworkflow/fluent/spec/CallHttpTaskBuilder.java rename to fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/CallHttpTaskBuilder.java index 33b864b3d..ad0070f30 100644 --- a/fluent/spec/src/main/java/org/openworkflow/fluent/spec/CallHttpTaskBuilder.java +++ b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/CallHttpTaskBuilder.java @@ -13,11 +13,11 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.fluent.spec; +package org.openworkflow.sdk.fluent.spec; -import org.openworkflow.api.types.CallHTTP; -import org.openworkflow.api.types.HTTPArguments; -import org.openworkflow.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/org/openworkflow/fluent/spec/CallOpenAPITaskBuilder.java b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/CallOpenAPITaskBuilder.java similarity index 79% rename from fluent/spec/src/main/java/org/openworkflow/fluent/spec/CallOpenAPITaskBuilder.java rename to fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/CallOpenAPITaskBuilder.java index 51218143e..1eb086777 100644 --- a/fluent/spec/src/main/java/org/openworkflow/fluent/spec/CallOpenAPITaskBuilder.java +++ b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/CallOpenAPITaskBuilder.java @@ -13,12 +13,12 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.fluent.spec; +package org.openworkflow.sdk.fluent.spec; -import org.openworkflow.api.types.CallOpenAPI; -import org.openworkflow.api.types.OpenAPIArguments; -import org.openworkflow.api.types.WithOpenAPIParameters; -import org.openworkflow.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/org/openworkflow/fluent/spec/DigestAuthenticationPolicyBuilder.java b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/DigestAuthenticationPolicyBuilder.java similarity index 85% rename from fluent/spec/src/main/java/org/openworkflow/fluent/spec/DigestAuthenticationPolicyBuilder.java rename to fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/DigestAuthenticationPolicyBuilder.java index 8338b5eeb..8a1e25f3a 100644 --- a/fluent/spec/src/main/java/org/openworkflow/fluent/spec/DigestAuthenticationPolicyBuilder.java +++ b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/DigestAuthenticationPolicyBuilder.java @@ -13,12 +13,12 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.fluent.spec; +package org.openworkflow.sdk.fluent.spec; -import org.openworkflow.api.types.DigestAuthenticationPolicy; -import org.openworkflow.api.types.DigestAuthenticationPolicyConfiguration; -import org.openworkflow.api.types.DigestAuthenticationProperties; -import org.openworkflow.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/org/openworkflow/fluent/spec/DoTaskBuilder.java b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/DoTaskBuilder.java similarity index 97% rename from fluent/spec/src/main/java/org/openworkflow/fluent/spec/DoTaskBuilder.java rename to fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/DoTaskBuilder.java index f96d64e4e..a78913c04 100644 --- a/fluent/spec/src/main/java/org/openworkflow/fluent/spec/DoTaskBuilder.java +++ b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/DoTaskBuilder.java @@ -13,10 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.fluent.spec; +package org.openworkflow.sdk.fluent.spec; import java.util.function.Consumer; -import org.openworkflow.fluent.spec.spi.DoFluent; +import org.openworkflow.sdk.fluent.spec.spi.DoFluent; public class DoTaskBuilder extends BaseDoTaskBuilder implements DoFluent { diff --git a/fluent/spec/src/main/java/org/openworkflow/fluent/spec/DocumentBuilder.java b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/DocumentBuilder.java similarity index 93% rename from fluent/spec/src/main/java/org/openworkflow/fluent/spec/DocumentBuilder.java rename to fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/DocumentBuilder.java index f2c63e0f8..e8c5c5d8c 100644 --- a/fluent/spec/src/main/java/org/openworkflow/fluent/spec/DocumentBuilder.java +++ b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/DocumentBuilder.java @@ -13,12 +13,12 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.fluent.spec; +package org.openworkflow.sdk.fluent.spec; import java.util.function.Consumer; -import org.openworkflow.api.types.Document; -import org.openworkflow.api.types.WorkflowMetadata; -import org.openworkflow.api.types.WorkflowTags; +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/org/openworkflow/fluent/spec/DurationInlineBuilder.java b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/DurationInlineBuilder.java similarity index 93% rename from fluent/spec/src/main/java/org/openworkflow/fluent/spec/DurationInlineBuilder.java rename to fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/DurationInlineBuilder.java index 4e12b288a..42d50c378 100644 --- a/fluent/spec/src/main/java/org/openworkflow/fluent/spec/DurationInlineBuilder.java +++ b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/DurationInlineBuilder.java @@ -13,9 +13,9 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.fluent.spec; +package org.openworkflow.sdk.fluent.spec; -import org.openworkflow.api.types.DurationInline; +import org.openworkflow.sdk.api.types.DurationInline; public class DurationInlineBuilder { diff --git a/fluent/spec/src/main/java/org/openworkflow/fluent/spec/EmitTaskBuilder.java b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/EmitTaskBuilder.java similarity index 95% rename from fluent/spec/src/main/java/org/openworkflow/fluent/spec/EmitTaskBuilder.java rename to fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/EmitTaskBuilder.java index 9928707f8..f38b4e11d 100644 --- a/fluent/spec/src/main/java/org/openworkflow/fluent/spec/EmitTaskBuilder.java +++ b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/EmitTaskBuilder.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.fluent.spec; +package org.openworkflow.sdk.fluent.spec; public class EmitTaskBuilder extends AbstractEmitTaskBuilder { diff --git a/fluent/spec/src/main/java/org/openworkflow/fluent/spec/EventConsumptionStrategyBuilder.java b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/EventConsumptionStrategyBuilder.java similarity index 83% rename from fluent/spec/src/main/java/org/openworkflow/fluent/spec/EventConsumptionStrategyBuilder.java rename to fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/EventConsumptionStrategyBuilder.java index 8369b5c61..36e820887 100644 --- a/fluent/spec/src/main/java/org/openworkflow/fluent/spec/EventConsumptionStrategyBuilder.java +++ b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/EventConsumptionStrategyBuilder.java @@ -13,13 +13,13 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.fluent.spec; +package org.openworkflow.sdk.fluent.spec; -import org.openworkflow.api.types.AllEventConsumptionStrategy; -import org.openworkflow.api.types.AnyEventConsumptionStrategy; -import org.openworkflow.api.types.EventConsumptionStrategy; -import org.openworkflow.api.types.OneEventConsumptionStrategy; -import org.openworkflow.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/org/openworkflow/fluent/spec/EventFilterBuilder.java b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/EventFilterBuilder.java similarity index 95% rename from fluent/spec/src/main/java/org/openworkflow/fluent/spec/EventFilterBuilder.java rename to fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/EventFilterBuilder.java index b3590f802..174cfe57b 100644 --- a/fluent/spec/src/main/java/org/openworkflow/fluent/spec/EventFilterBuilder.java +++ b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/EventFilterBuilder.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.fluent.spec; +package org.openworkflow.sdk.fluent.spec; public class EventFilterBuilder extends AbstractEventFilterBuilder { diff --git a/fluent/spec/src/main/java/org/openworkflow/fluent/spec/EventPropertiesBuilder.java b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/EventPropertiesBuilder.java similarity index 95% rename from fluent/spec/src/main/java/org/openworkflow/fluent/spec/EventPropertiesBuilder.java rename to fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/EventPropertiesBuilder.java index bc65b32cd..9343ae7d2 100644 --- a/fluent/spec/src/main/java/org/openworkflow/fluent/spec/EventPropertiesBuilder.java +++ b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/EventPropertiesBuilder.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.fluent.spec; +package org.openworkflow.sdk.fluent.spec; public class EventPropertiesBuilder extends AbstractEventPropertiesBuilder { diff --git a/fluent/spec/src/main/java/org/openworkflow/fluent/spec/ExportBuilder.java b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/ExportBuilder.java similarity index 80% rename from fluent/spec/src/main/java/org/openworkflow/fluent/spec/ExportBuilder.java rename to fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/ExportBuilder.java index 3c4cc8bc1..081cc3ed6 100644 --- a/fluent/spec/src/main/java/org/openworkflow/fluent/spec/ExportBuilder.java +++ b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/ExportBuilder.java @@ -13,15 +13,15 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.fluent.spec; +package org.openworkflow.sdk.fluent.spec; -import org.openworkflow.api.types.Endpoint; -import org.openworkflow.api.types.Export; -import org.openworkflow.api.types.ExportAs; -import org.openworkflow.api.types.ExternalResource; -import org.openworkflow.api.types.SchemaExternal; -import org.openworkflow.api.types.SchemaInline; -import org.openworkflow.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/org/openworkflow/fluent/spec/ForEachTaskBuilder.java b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/ForEachTaskBuilder.java similarity index 89% rename from fluent/spec/src/main/java/org/openworkflow/fluent/spec/ForEachTaskBuilder.java rename to fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/ForEachTaskBuilder.java index 677914e76..d20fa1039 100644 --- a/fluent/spec/src/main/java/org/openworkflow/fluent/spec/ForEachTaskBuilder.java +++ b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/ForEachTaskBuilder.java @@ -13,16 +13,16 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.fluent.spec; +package org.openworkflow.sdk.fluent.spec; import java.util.List; import java.util.Objects; import java.util.function.Consumer; -import org.openworkflow.api.types.ForIn; -import org.openworkflow.api.types.ForTask; -import org.openworkflow.api.types.ForTaskConfiguration; -import org.openworkflow.api.types.TaskItem; -import org.openworkflow.fluent.spec.spi.ForEachTaskFluent; +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/org/openworkflow/fluent/spec/ForkTaskBuilder.java b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/ForkTaskBuilder.java similarity index 90% rename from fluent/spec/src/main/java/org/openworkflow/fluent/spec/ForkTaskBuilder.java rename to fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/ForkTaskBuilder.java index ea05026a3..7347a3a1a 100644 --- a/fluent/spec/src/main/java/org/openworkflow/fluent/spec/ForkTaskBuilder.java +++ b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/ForkTaskBuilder.java @@ -13,9 +13,9 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.fluent.spec; +package org.openworkflow.sdk.fluent.spec; -import org.openworkflow.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/org/openworkflow/fluent/spec/InputBuilder.java b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/InputBuilder.java similarity index 88% rename from fluent/spec/src/main/java/org/openworkflow/fluent/spec/InputBuilder.java rename to fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/InputBuilder.java index c0dd2ce66..dd4d3b6af 100644 --- a/fluent/spec/src/main/java/org/openworkflow/fluent/spec/InputBuilder.java +++ b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/InputBuilder.java @@ -13,15 +13,15 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.fluent.spec; - -import org.openworkflow.api.types.Endpoint; -import org.openworkflow.api.types.ExternalResource; -import org.openworkflow.api.types.Input; -import org.openworkflow.api.types.InputFrom; -import org.openworkflow.api.types.SchemaExternal; -import org.openworkflow.api.types.SchemaInline; -import org.openworkflow.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/org/openworkflow/fluent/spec/ListenTaskBuilder.java b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/ListenTaskBuilder.java similarity index 96% rename from fluent/spec/src/main/java/org/openworkflow/fluent/spec/ListenTaskBuilder.java rename to fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/ListenTaskBuilder.java index 90b0c9e2c..2443d6e90 100644 --- a/fluent/spec/src/main/java/org/openworkflow/fluent/spec/ListenTaskBuilder.java +++ b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/ListenTaskBuilder.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.fluent.spec; +package org.openworkflow.sdk.fluent.spec; /** * Fluent builder for a "listen" task in a Open Workflow. Enforces exactly one consumption strategy: diff --git a/fluent/spec/src/main/java/org/openworkflow/fluent/spec/ListenToBuilder.java b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/ListenToBuilder.java similarity index 82% rename from fluent/spec/src/main/java/org/openworkflow/fluent/spec/ListenToBuilder.java rename to fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/ListenToBuilder.java index dda467d7c..adf0bb901 100644 --- a/fluent/spec/src/main/java/org/openworkflow/fluent/spec/ListenToBuilder.java +++ b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/ListenToBuilder.java @@ -13,13 +13,13 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.fluent.spec; +package org.openworkflow.sdk.fluent.spec; -import org.openworkflow.api.types.AllEventConsumptionStrategy; -import org.openworkflow.api.types.AnyEventConsumptionStrategy; -import org.openworkflow.api.types.ListenTo; -import org.openworkflow.api.types.OneEventConsumptionStrategy; -import org.openworkflow.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/org/openworkflow/fluent/spec/ListenToConfigurerBuilder.java b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/ListenToConfigurerBuilder.java similarity index 98% rename from fluent/spec/src/main/java/org/openworkflow/fluent/spec/ListenToConfigurerBuilder.java rename to fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/ListenToConfigurerBuilder.java index aa33e92ea..cdadde82e 100644 --- a/fluent/spec/src/main/java/org/openworkflow/fluent/spec/ListenToConfigurerBuilder.java +++ b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/ListenToConfigurerBuilder.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.fluent.spec; +package org.openworkflow.sdk.fluent.spec; import java.util.function.Consumer; diff --git a/fluent/spec/src/main/java/org/openworkflow/fluent/spec/OAuth2AuthenticationPolicyBuilder.java b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/OAuth2AuthenticationPolicyBuilder.java similarity index 91% rename from fluent/spec/src/main/java/org/openworkflow/fluent/spec/OAuth2AuthenticationPolicyBuilder.java rename to fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/OAuth2AuthenticationPolicyBuilder.java index 5232225d2..9fe01da3a 100644 --- a/fluent/spec/src/main/java/org/openworkflow/fluent/spec/OAuth2AuthenticationPolicyBuilder.java +++ b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/OAuth2AuthenticationPolicyBuilder.java @@ -13,12 +13,12 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.fluent.spec; +package org.openworkflow.sdk.fluent.spec; import java.util.function.Consumer; -import org.openworkflow.api.types.OAuth2AuthenticationPolicy; -import org.openworkflow.api.types.OAuth2AuthenticationPolicyConfiguration; -import org.openworkflow.api.types.OAuth2AuthenticationPropertiesEndpoints; +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/org/openworkflow/fluent/spec/OIDCBuilder.java b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/OIDCBuilder.java similarity index 91% rename from fluent/spec/src/main/java/org/openworkflow/fluent/spec/OIDCBuilder.java rename to fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/OIDCBuilder.java index 5af015a77..c10290475 100644 --- a/fluent/spec/src/main/java/org/openworkflow/fluent/spec/OIDCBuilder.java +++ b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/OIDCBuilder.java @@ -13,17 +13,17 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.fluent.spec; +package org.openworkflow.sdk.fluent.spec; import java.util.List; import java.util.function.Consumer; -import org.openworkflow.api.types.AuthenticationPolicy; -import org.openworkflow.api.types.OAuth2AuthenticationData; -import org.openworkflow.api.types.OAuth2AuthenticationDataClient; -import org.openworkflow.api.types.OAuth2ConnectAuthenticationProperties; -import org.openworkflow.api.types.OAuth2TokenDefinition; -import org.openworkflow.api.types.OAuth2TokenRequest; -import org.openworkflow.api.types.SecretBasedAuthenticationPolicy; +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/org/openworkflow/fluent/spec/OpenIdConnectAuthenticationPolicyBuilder.java b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/OpenIdConnectAuthenticationPolicyBuilder.java similarity index 86% rename from fluent/spec/src/main/java/org/openworkflow/fluent/spec/OpenIdConnectAuthenticationPolicyBuilder.java rename to fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/OpenIdConnectAuthenticationPolicyBuilder.java index 1d713ce68..5a531344c 100644 --- a/fluent/spec/src/main/java/org/openworkflow/fluent/spec/OpenIdConnectAuthenticationPolicyBuilder.java +++ b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/OpenIdConnectAuthenticationPolicyBuilder.java @@ -13,10 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.fluent.spec; +package org.openworkflow.sdk.fluent.spec; -import org.openworkflow.api.types.OpenIdConnectAuthenticationPolicy; -import org.openworkflow.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/org/openworkflow/fluent/spec/OutputBuilder.java b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/OutputBuilder.java similarity index 80% rename from fluent/spec/src/main/java/org/openworkflow/fluent/spec/OutputBuilder.java rename to fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/OutputBuilder.java index a4f659e4b..cee274593 100644 --- a/fluent/spec/src/main/java/org/openworkflow/fluent/spec/OutputBuilder.java +++ b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/OutputBuilder.java @@ -13,15 +13,15 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.fluent.spec; +package org.openworkflow.sdk.fluent.spec; -import org.openworkflow.api.types.Endpoint; -import org.openworkflow.api.types.ExternalResource; -import org.openworkflow.api.types.Output; -import org.openworkflow.api.types.OutputAs; -import org.openworkflow.api.types.SchemaExternal; -import org.openworkflow.api.types.SchemaInline; -import org.openworkflow.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/org/openworkflow/fluent/spec/RaiseTaskBuilder.java b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/RaiseTaskBuilder.java similarity index 95% rename from fluent/spec/src/main/java/org/openworkflow/fluent/spec/RaiseTaskBuilder.java rename to fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/RaiseTaskBuilder.java index d1fe8b457..4381318f4 100644 --- a/fluent/spec/src/main/java/org/openworkflow/fluent/spec/RaiseTaskBuilder.java +++ b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/RaiseTaskBuilder.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.fluent.spec; +package org.openworkflow.sdk.fluent.spec; public class RaiseTaskBuilder extends BaseRaiseTaskBuilder { diff --git a/fluent/spec/src/main/java/org/openworkflow/fluent/spec/ReferenceableAuthenticationPolicyBuilder.java b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/ReferenceableAuthenticationPolicyBuilder.java similarity index 93% rename from fluent/spec/src/main/java/org/openworkflow/fluent/spec/ReferenceableAuthenticationPolicyBuilder.java rename to fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/ReferenceableAuthenticationPolicyBuilder.java index 3247add79..246359306 100644 --- a/fluent/spec/src/main/java/org/openworkflow/fluent/spec/ReferenceableAuthenticationPolicyBuilder.java +++ b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/ReferenceableAuthenticationPolicyBuilder.java @@ -13,12 +13,12 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.fluent.spec; +package org.openworkflow.sdk.fluent.spec; import java.util.function.Consumer; -import org.openworkflow.api.types.AuthenticationPolicyReference; -import org.openworkflow.api.types.AuthenticationPolicyUnion; -import org.openworkflow.api.types.ReferenceableAuthenticationPolicy; +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/org/openworkflow/fluent/spec/ScheduleBuilder.java b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/ScheduleBuilder.java similarity index 97% rename from fluent/spec/src/main/java/org/openworkflow/fluent/spec/ScheduleBuilder.java rename to fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/ScheduleBuilder.java index 5656f53ca..64a25f3af 100644 --- a/fluent/spec/src/main/java/org/openworkflow/fluent/spec/ScheduleBuilder.java +++ b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/ScheduleBuilder.java @@ -13,11 +13,11 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.fluent.spec; +package org.openworkflow.sdk.fluent.spec; import java.util.function.Consumer; -import org.openworkflow.api.types.Schedule; -import org.openworkflow.api.types.TimeoutAfter; +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/org/openworkflow/fluent/spec/SetTaskBuilder.java b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/SetTaskBuilder.java similarity index 88% rename from fluent/spec/src/main/java/org/openworkflow/fluent/spec/SetTaskBuilder.java rename to fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/SetTaskBuilder.java index 5eeaa7c2d..17c5f9c49 100644 --- a/fluent/spec/src/main/java/org/openworkflow/fluent/spec/SetTaskBuilder.java +++ b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/SetTaskBuilder.java @@ -13,11 +13,11 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.fluent.spec; +package org.openworkflow.sdk.fluent.spec; -import org.openworkflow.api.types.Set; -import org.openworkflow.api.types.SetTask; -import org.openworkflow.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/org/openworkflow/fluent/spec/SubscriptionIteratorBuilder.java b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/SubscriptionIteratorBuilder.java similarity index 92% rename from fluent/spec/src/main/java/org/openworkflow/fluent/spec/SubscriptionIteratorBuilder.java rename to fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/SubscriptionIteratorBuilder.java index dcc1d18d3..908a44753 100644 --- a/fluent/spec/src/main/java/org/openworkflow/fluent/spec/SubscriptionIteratorBuilder.java +++ b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/SubscriptionIteratorBuilder.java @@ -13,14 +13,14 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.fluent.spec; +package org.openworkflow.sdk.fluent.spec; import java.util.ArrayList; import java.util.List; import java.util.function.Consumer; -import org.openworkflow.api.types.SubscriptionIterator; -import org.openworkflow.api.types.TaskItem; -import org.openworkflow.fluent.spec.spi.SubscriptionIteratorFluent; +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/org/openworkflow/fluent/spec/SwitchTaskBuilder.java b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/SwitchTaskBuilder.java similarity index 89% rename from fluent/spec/src/main/java/org/openworkflow/fluent/spec/SwitchTaskBuilder.java rename to fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/SwitchTaskBuilder.java index ba03d9ae5..e267ee966 100644 --- a/fluent/spec/src/main/java/org/openworkflow/fluent/spec/SwitchTaskBuilder.java +++ b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/SwitchTaskBuilder.java @@ -13,14 +13,14 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.fluent.spec; +package org.openworkflow.sdk.fluent.spec; import java.util.ArrayList; import java.util.List; import java.util.function.Consumer; -import org.openworkflow.api.types.SwitchItem; -import org.openworkflow.api.types.SwitchTask; -import org.openworkflow.fluent.spec.spi.SwitchTaskFluent; +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/org/openworkflow/fluent/spec/TaskBaseBuilder.java b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/TaskBaseBuilder.java similarity index 86% rename from fluent/spec/src/main/java/org/openworkflow/fluent/spec/TaskBaseBuilder.java rename to fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/TaskBaseBuilder.java index e43133cf5..201677aa9 100644 --- a/fluent/spec/src/main/java/org/openworkflow/fluent/spec/TaskBaseBuilder.java +++ b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/TaskBaseBuilder.java @@ -13,20 +13,20 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.fluent.spec; +package org.openworkflow.sdk.fluent.spec; import java.util.function.Consumer; -import org.openworkflow.api.types.Export; -import org.openworkflow.api.types.FlowDirective; -import org.openworkflow.api.types.FlowDirectiveEnum; -import org.openworkflow.api.types.Input; -import org.openworkflow.api.types.Output; -import org.openworkflow.api.types.TaskBase; -import org.openworkflow.api.types.TaskTimeout; -import org.openworkflow.api.types.Timeout; -import org.openworkflow.api.types.TimeoutAfter; -import org.openworkflow.fluent.spec.spi.OutputFluent; -import org.openworkflow.fluent.spec.spi.TaskTransformationHandlers; +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 { diff --git a/fluent/spec/src/main/java/org/openworkflow/fluent/spec/TaskItemListBuilder.java b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/TaskItemListBuilder.java similarity index 95% rename from fluent/spec/src/main/java/org/openworkflow/fluent/spec/TaskItemListBuilder.java rename to fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/TaskItemListBuilder.java index d90a74df5..90d52ef43 100644 --- a/fluent/spec/src/main/java/org/openworkflow/fluent/spec/TaskItemListBuilder.java +++ b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/TaskItemListBuilder.java @@ -13,15 +13,15 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.fluent.spec; +package org.openworkflow.sdk.fluent.spec; import java.util.List; import java.util.function.Consumer; -import org.openworkflow.api.types.CallTask; -import org.openworkflow.api.types.Task; -import org.openworkflow.api.types.TaskItem; -import org.openworkflow.fluent.spec.configurers.CallGrpcConfigurer; -import org.openworkflow.fluent.spec.spi.DoFluent; +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/org/openworkflow/fluent/spec/TaskMetadataBuilder.java b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/TaskMetadataBuilder.java similarity index 94% rename from fluent/spec/src/main/java/org/openworkflow/fluent/spec/TaskMetadataBuilder.java rename to fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/TaskMetadataBuilder.java index aaa705677..cbc0c2f11 100644 --- a/fluent/spec/src/main/java/org/openworkflow/fluent/spec/TaskMetadataBuilder.java +++ b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/TaskMetadataBuilder.java @@ -13,9 +13,9 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.fluent.spec; +package org.openworkflow.sdk.fluent.spec; -import org.openworkflow.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/org/openworkflow/fluent/spec/TimeoutBuilder.java b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/TimeoutBuilder.java similarity index 92% rename from fluent/spec/src/main/java/org/openworkflow/fluent/spec/TimeoutBuilder.java rename to fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/TimeoutBuilder.java index cfdec56d9..5499b082a 100644 --- a/fluent/spec/src/main/java/org/openworkflow/fluent/spec/TimeoutBuilder.java +++ b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/TimeoutBuilder.java @@ -13,11 +13,11 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.fluent.spec; +package org.openworkflow.sdk.fluent.spec; import java.util.function.Consumer; -import org.openworkflow.api.types.Timeout; -import org.openworkflow.api.types.TimeoutAfter; +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/org/openworkflow/fluent/spec/TryTaskBuilder.java b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/TryTaskBuilder.java similarity index 95% rename from fluent/spec/src/main/java/org/openworkflow/fluent/spec/TryTaskBuilder.java rename to fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/TryTaskBuilder.java index 0508cefd7..2e3bba531 100644 --- a/fluent/spec/src/main/java/org/openworkflow/fluent/spec/TryTaskBuilder.java +++ b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/TryTaskBuilder.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.fluent.spec; +package org.openworkflow.sdk.fluent.spec; public class TryTaskBuilder> extends BaseTryTaskBuilder, T> { diff --git a/fluent/spec/src/main/java/org/openworkflow/fluent/spec/UriTemplateBuilder.java b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/UriTemplateBuilder.java similarity index 91% rename from fluent/spec/src/main/java/org/openworkflow/fluent/spec/UriTemplateBuilder.java rename to fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/UriTemplateBuilder.java index 24ba46c6f..74ce034c9 100644 --- a/fluent/spec/src/main/java/org/openworkflow/fluent/spec/UriTemplateBuilder.java +++ b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/UriTemplateBuilder.java @@ -13,11 +13,11 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.fluent.spec; +package org.openworkflow.sdk.fluent.spec; import java.net.URI; import java.net.URISyntaxException; -import org.openworkflow.api.types.UriTemplate; +import org.openworkflow.sdk.api.types.UriTemplate; public final class UriTemplateBuilder { diff --git a/fluent/spec/src/main/java/org/openworkflow/fluent/spec/UseAuthenticationsBuilder.java b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/UseAuthenticationsBuilder.java similarity index 90% rename from fluent/spec/src/main/java/org/openworkflow/fluent/spec/UseAuthenticationsBuilder.java rename to fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/UseAuthenticationsBuilder.java index 893dff16e..730af0d03 100644 --- a/fluent/spec/src/main/java/org/openworkflow/fluent/spec/UseAuthenticationsBuilder.java +++ b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/UseAuthenticationsBuilder.java @@ -13,13 +13,13 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.fluent.spec; +package org.openworkflow.sdk.fluent.spec; import java.util.function.Consumer; -import org.openworkflow.api.types.OAuth2AuthenticationData; -import org.openworkflow.api.types.UseAuthentications; -import org.openworkflow.fluent.spec.OAuth2AuthenticationPolicyBuilder.OAuth2AuthenticationPropertiesEndpointsBuilder; -import org.openworkflow.fluent.spec.dsl.DSL; +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/org/openworkflow/fluent/spec/UseBuilder.java b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/UseBuilder.java similarity index 88% rename from fluent/spec/src/main/java/org/openworkflow/fluent/spec/UseBuilder.java rename to fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/UseBuilder.java index 81681cfae..7a08c46bf 100644 --- a/fluent/spec/src/main/java/org/openworkflow/fluent/spec/UseBuilder.java +++ b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/UseBuilder.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.fluent.spec; +package org.openworkflow.sdk.fluent.spec; import java.net.URI; import java.net.URISyntaxException; @@ -21,17 +21,17 @@ import java.util.List; import java.util.Map; import java.util.function.Consumer; -import org.openworkflow.api.types.Error; -import org.openworkflow.api.types.ErrorDetails; -import org.openworkflow.api.types.ErrorTitle; -import org.openworkflow.api.types.ErrorType; -import org.openworkflow.api.types.RetryPolicy; -import org.openworkflow.api.types.UriTemplate; -import org.openworkflow.api.types.Use; -import org.openworkflow.api.types.UseAuthentications; -import org.openworkflow.api.types.UseErrors; -import org.openworkflow.api.types.UseRetries; -import org.openworkflow.fluent.spec.BaseTryTaskBuilder.RetryPolicyBuilder; +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/org/openworkflow/fluent/spec/WaitTaskBuilder.java b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/WaitTaskBuilder.java similarity index 92% rename from fluent/spec/src/main/java/org/openworkflow/fluent/spec/WaitTaskBuilder.java rename to fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/WaitTaskBuilder.java index 163588500..865527cd6 100644 --- a/fluent/spec/src/main/java/org/openworkflow/fluent/spec/WaitTaskBuilder.java +++ b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/WaitTaskBuilder.java @@ -13,14 +13,14 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.fluent.spec; +package org.openworkflow.sdk.fluent.spec; import java.time.Duration; import java.util.Objects; import java.util.function.Consumer; -import org.openworkflow.api.types.DurationInline; -import org.openworkflow.api.types.TimeoutAfter; -import org.openworkflow.api.types.WaitTask; +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/org/openworkflow/fluent/spec/WorkflowBuilder.java b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/WorkflowBuilder.java similarity index 90% rename from fluent/spec/src/main/java/org/openworkflow/fluent/spec/WorkflowBuilder.java rename to fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/WorkflowBuilder.java index 786730aa1..9123bb7ee 100644 --- a/fluent/spec/src/main/java/org/openworkflow/fluent/spec/WorkflowBuilder.java +++ b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/WorkflowBuilder.java @@ -13,10 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.fluent.spec; +package org.openworkflow.sdk.fluent.spec; -import static org.openworkflow.types.Defaults.DEFAULT_NAMESPACE; -import static org.openworkflow.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/org/openworkflow/fluent/spec/WorkflowTaskBuilder.java b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/WorkflowTaskBuilder.java similarity index 81% rename from fluent/spec/src/main/java/org/openworkflow/fluent/spec/WorkflowTaskBuilder.java rename to fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/WorkflowTaskBuilder.java index e04923f7e..346b36eab 100644 --- a/fluent/spec/src/main/java/org/openworkflow/fluent/spec/WorkflowTaskBuilder.java +++ b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/WorkflowTaskBuilder.java @@ -13,13 +13,13 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.fluent.spec; +package org.openworkflow.sdk.fluent.spec; -import org.openworkflow.api.types.RunTask; -import org.openworkflow.api.types.RunTaskConfigurationUnion; -import org.openworkflow.api.types.RunWorkflow; -import org.openworkflow.api.types.SubflowConfiguration; -import org.openworkflow.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/org/openworkflow/fluent/spec/configurers/AuthenticationConfigurer.java b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/configurers/AuthenticationConfigurer.java similarity index 85% rename from fluent/spec/src/main/java/org/openworkflow/fluent/spec/configurers/AuthenticationConfigurer.java rename to fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/configurers/AuthenticationConfigurer.java index 05a4469ff..b9b375694 100644 --- a/fluent/spec/src/main/java/org/openworkflow/fluent/spec/configurers/AuthenticationConfigurer.java +++ b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/configurers/AuthenticationConfigurer.java @@ -13,10 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.fluent.spec.configurers; +package org.openworkflow.sdk.fluent.spec.configurers; import java.util.function.Consumer; -import org.openworkflow.fluent.spec.ReferenceableAuthenticationPolicyBuilder; +import org.openworkflow.sdk.fluent.spec.ReferenceableAuthenticationPolicyBuilder; @FunctionalInterface public interface AuthenticationConfigurer diff --git a/fluent/spec/src/main/java/org/openworkflow/fluent/spec/configurers/CallGrpcConfigurer.java b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/configurers/CallGrpcConfigurer.java similarity index 86% rename from fluent/spec/src/main/java/org/openworkflow/fluent/spec/configurers/CallGrpcConfigurer.java rename to fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/configurers/CallGrpcConfigurer.java index 2a60c7c52..3a04c67f5 100644 --- a/fluent/spec/src/main/java/org/openworkflow/fluent/spec/configurers/CallGrpcConfigurer.java +++ b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/configurers/CallGrpcConfigurer.java @@ -13,10 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.fluent.spec.configurers; +package org.openworkflow.sdk.fluent.spec.configurers; import java.util.function.Consumer; -import org.openworkflow.fluent.spec.CallGrpcTaskBuilder; +import org.openworkflow.sdk.fluent.spec.CallGrpcTaskBuilder; @FunctionalInterface public interface CallGrpcConfigurer extends Consumer {} diff --git a/fluent/spec/src/main/java/org/openworkflow/fluent/spec/configurers/CallHttpConfigurer.java b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/configurers/CallHttpConfigurer.java similarity index 86% rename from fluent/spec/src/main/java/org/openworkflow/fluent/spec/configurers/CallHttpConfigurer.java rename to fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/configurers/CallHttpConfigurer.java index c8a22fc57..8c569e790 100644 --- a/fluent/spec/src/main/java/org/openworkflow/fluent/spec/configurers/CallHttpConfigurer.java +++ b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/configurers/CallHttpConfigurer.java @@ -13,10 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.fluent.spec.configurers; +package org.openworkflow.sdk.fluent.spec.configurers; import java.util.function.Consumer; -import org.openworkflow.fluent.spec.CallHttpTaskBuilder; +import org.openworkflow.sdk.fluent.spec.CallHttpTaskBuilder; @FunctionalInterface public interface CallHttpConfigurer extends Consumer {} diff --git a/fluent/spec/src/main/java/org/openworkflow/fluent/spec/configurers/CallOpenAPIConfigurer.java b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/configurers/CallOpenAPIConfigurer.java similarity index 86% rename from fluent/spec/src/main/java/org/openworkflow/fluent/spec/configurers/CallOpenAPIConfigurer.java rename to fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/configurers/CallOpenAPIConfigurer.java index ad3517928..9556b0ad0 100644 --- a/fluent/spec/src/main/java/org/openworkflow/fluent/spec/configurers/CallOpenAPIConfigurer.java +++ b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/configurers/CallOpenAPIConfigurer.java @@ -13,10 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.fluent.spec.configurers; +package org.openworkflow.sdk.fluent.spec.configurers; import java.util.function.Consumer; -import org.openworkflow.fluent.spec.CallOpenAPITaskBuilder; +import org.openworkflow.sdk.fluent.spec.CallOpenAPITaskBuilder; @FunctionalInterface public interface CallOpenAPIConfigurer extends Consumer {} diff --git a/fluent/spec/src/main/java/org/openworkflow/fluent/spec/configurers/EmitConfigurer.java b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/configurers/EmitConfigurer.java similarity index 87% rename from fluent/spec/src/main/java/org/openworkflow/fluent/spec/configurers/EmitConfigurer.java rename to fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/configurers/EmitConfigurer.java index 05edee1e3..9d4348ea8 100644 --- a/fluent/spec/src/main/java/org/openworkflow/fluent/spec/configurers/EmitConfigurer.java +++ b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/configurers/EmitConfigurer.java @@ -13,10 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.fluent.spec.configurers; +package org.openworkflow.sdk.fluent.spec.configurers; import java.util.function.Consumer; -import org.openworkflow.fluent.spec.EmitTaskBuilder; +import org.openworkflow.sdk.fluent.spec.EmitTaskBuilder; @FunctionalInterface public interface EmitConfigurer extends Consumer {} diff --git a/fluent/spec/src/main/java/org/openworkflow/fluent/spec/configurers/EventPropertiesConfigurer.java b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/configurers/EventPropertiesConfigurer.java similarity index 86% rename from fluent/spec/src/main/java/org/openworkflow/fluent/spec/configurers/EventPropertiesConfigurer.java rename to fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/configurers/EventPropertiesConfigurer.java index 6ddac8942..1a710b8b7 100644 --- a/fluent/spec/src/main/java/org/openworkflow/fluent/spec/configurers/EventPropertiesConfigurer.java +++ b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/configurers/EventPropertiesConfigurer.java @@ -13,10 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.fluent.spec.configurers; +package org.openworkflow.sdk.fluent.spec.configurers; import java.util.function.Consumer; -import org.openworkflow.fluent.spec.EventPropertiesBuilder; +import org.openworkflow.sdk.fluent.spec.EventPropertiesBuilder; @FunctionalInterface public interface EventPropertiesConfigurer extends Consumer {} diff --git a/fluent/spec/src/main/java/org/openworkflow/fluent/spec/configurers/ForEachConfigurer.java b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/configurers/ForEachConfigurer.java similarity index 81% rename from fluent/spec/src/main/java/org/openworkflow/fluent/spec/configurers/ForEachConfigurer.java rename to fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/configurers/ForEachConfigurer.java index 3a4f49ab5..30915c7c0 100644 --- a/fluent/spec/src/main/java/org/openworkflow/fluent/spec/configurers/ForEachConfigurer.java +++ b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/configurers/ForEachConfigurer.java @@ -13,11 +13,11 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.fluent.spec.configurers; +package org.openworkflow.sdk.fluent.spec.configurers; import java.util.function.Consumer; -import org.openworkflow.fluent.spec.ForEachTaskBuilder; -import org.openworkflow.fluent.spec.TaskItemListBuilder; +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/org/openworkflow/fluent/spec/configurers/ListenConfigurer.java b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/configurers/ListenConfigurer.java similarity index 87% rename from fluent/spec/src/main/java/org/openworkflow/fluent/spec/configurers/ListenConfigurer.java rename to fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/configurers/ListenConfigurer.java index 1808295db..46e6b82b4 100644 --- a/fluent/spec/src/main/java/org/openworkflow/fluent/spec/configurers/ListenConfigurer.java +++ b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/configurers/ListenConfigurer.java @@ -13,10 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.fluent.spec.configurers; +package org.openworkflow.sdk.fluent.spec.configurers; import java.util.function.Consumer; -import org.openworkflow.fluent.spec.ListenTaskBuilder; +import org.openworkflow.sdk.fluent.spec.ListenTaskBuilder; @FunctionalInterface public interface ListenConfigurer extends Consumer {} diff --git a/fluent/spec/src/main/java/org/openworkflow/fluent/spec/configurers/RaiseConfigurer.java b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/configurers/RaiseConfigurer.java similarity index 87% rename from fluent/spec/src/main/java/org/openworkflow/fluent/spec/configurers/RaiseConfigurer.java rename to fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/configurers/RaiseConfigurer.java index 95421e500..32af6fabb 100644 --- a/fluent/spec/src/main/java/org/openworkflow/fluent/spec/configurers/RaiseConfigurer.java +++ b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/configurers/RaiseConfigurer.java @@ -13,10 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.fluent.spec.configurers; +package org.openworkflow.sdk.fluent.spec.configurers; import java.util.function.Consumer; -import org.openworkflow.fluent.spec.RaiseTaskBuilder; +import org.openworkflow.sdk.fluent.spec.RaiseTaskBuilder; @FunctionalInterface public interface RaiseConfigurer extends Consumer {} diff --git a/fluent/spec/src/main/java/org/openworkflow/fluent/spec/configurers/RetryConfigurer.java b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/configurers/RetryConfigurer.java similarity index 87% rename from fluent/spec/src/main/java/org/openworkflow/fluent/spec/configurers/RetryConfigurer.java rename to fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/configurers/RetryConfigurer.java index e6856b141..54f7d248c 100644 --- a/fluent/spec/src/main/java/org/openworkflow/fluent/spec/configurers/RetryConfigurer.java +++ b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/configurers/RetryConfigurer.java @@ -13,9 +13,9 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.fluent.spec.configurers; +package org.openworkflow.sdk.fluent.spec.configurers; import java.util.function.Consumer; -import org.openworkflow.fluent.spec.TryTaskBuilder; +import org.openworkflow.sdk.fluent.spec.TryTaskBuilder; public interface RetryConfigurer extends Consumer {} diff --git a/fluent/spec/src/main/java/org/openworkflow/fluent/spec/configurers/SetConfigurer.java b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/configurers/SetConfigurer.java similarity index 87% rename from fluent/spec/src/main/java/org/openworkflow/fluent/spec/configurers/SetConfigurer.java rename to fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/configurers/SetConfigurer.java index 7a375b88a..7c0d6feef 100644 --- a/fluent/spec/src/main/java/org/openworkflow/fluent/spec/configurers/SetConfigurer.java +++ b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/configurers/SetConfigurer.java @@ -13,10 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.fluent.spec.configurers; +package org.openworkflow.sdk.fluent.spec.configurers; import java.util.function.Consumer; -import org.openworkflow.fluent.spec.SetTaskBuilder; +import org.openworkflow.sdk.fluent.spec.SetTaskBuilder; @FunctionalInterface public interface SetConfigurer extends Consumer {} diff --git a/fluent/spec/src/main/java/org/openworkflow/fluent/spec/configurers/SwitchConfigurer.java b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/configurers/SwitchConfigurer.java similarity index 87% rename from fluent/spec/src/main/java/org/openworkflow/fluent/spec/configurers/SwitchConfigurer.java rename to fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/configurers/SwitchConfigurer.java index d44289303..a817c182f 100644 --- a/fluent/spec/src/main/java/org/openworkflow/fluent/spec/configurers/SwitchConfigurer.java +++ b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/configurers/SwitchConfigurer.java @@ -13,10 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.fluent.spec.configurers; +package org.openworkflow.sdk.fluent.spec.configurers; import java.util.function.Consumer; -import org.openworkflow.fluent.spec.SwitchTaskBuilder; +import org.openworkflow.sdk.fluent.spec.SwitchTaskBuilder; @FunctionalInterface public interface SwitchConfigurer extends Consumer {} diff --git a/fluent/spec/src/main/java/org/openworkflow/fluent/spec/configurers/TasksConfigurer.java b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/configurers/TasksConfigurer.java similarity index 86% rename from fluent/spec/src/main/java/org/openworkflow/fluent/spec/configurers/TasksConfigurer.java rename to fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/configurers/TasksConfigurer.java index e9d010cac..84aa70446 100644 --- a/fluent/spec/src/main/java/org/openworkflow/fluent/spec/configurers/TasksConfigurer.java +++ b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/configurers/TasksConfigurer.java @@ -13,10 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.fluent.spec.configurers; +package org.openworkflow.sdk.fluent.spec.configurers; import java.util.function.Consumer; -import org.openworkflow.fluent.spec.TaskItemListBuilder; +import org.openworkflow.sdk.fluent.spec.TaskItemListBuilder; @FunctionalInterface public interface TasksConfigurer extends Consumer {} diff --git a/fluent/spec/src/main/java/org/openworkflow/fluent/spec/configurers/TryCatchConfigurer.java b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/configurers/TryCatchConfigurer.java similarity index 82% rename from fluent/spec/src/main/java/org/openworkflow/fluent/spec/configurers/TryCatchConfigurer.java rename to fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/configurers/TryCatchConfigurer.java index 0a72fef08..ef56d7574 100644 --- a/fluent/spec/src/main/java/org/openworkflow/fluent/spec/configurers/TryCatchConfigurer.java +++ b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/configurers/TryCatchConfigurer.java @@ -13,11 +13,11 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.fluent.spec.configurers; +package org.openworkflow.sdk.fluent.spec.configurers; import java.util.function.Consumer; -import org.openworkflow.fluent.spec.TaskItemListBuilder; -import org.openworkflow.fluent.spec.TryTaskBuilder; +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/org/openworkflow/fluent/spec/configurers/TryConfigurer.java b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/configurers/TryConfigurer.java similarity index 81% rename from fluent/spec/src/main/java/org/openworkflow/fluent/spec/configurers/TryConfigurer.java rename to fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/configurers/TryConfigurer.java index 38808ff83..dc3c56bcd 100644 --- a/fluent/spec/src/main/java/org/openworkflow/fluent/spec/configurers/TryConfigurer.java +++ b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/configurers/TryConfigurer.java @@ -13,10 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.fluent.spec.configurers; +package org.openworkflow.sdk.fluent.spec.configurers; import java.util.function.Consumer; -import org.openworkflow.fluent.spec.TaskItemListBuilder; -import org.openworkflow.fluent.spec.TryTaskBuilder; +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/org/openworkflow/fluent/spec/configurers/UseConfigurer.java b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/configurers/UseConfigurer.java similarity index 87% rename from fluent/spec/src/main/java/org/openworkflow/fluent/spec/configurers/UseConfigurer.java rename to fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/configurers/UseConfigurer.java index e2c06e05f..7d1e1b6ad 100644 --- a/fluent/spec/src/main/java/org/openworkflow/fluent/spec/configurers/UseConfigurer.java +++ b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/configurers/UseConfigurer.java @@ -13,10 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.fluent.spec.configurers; +package org.openworkflow.sdk.fluent.spec.configurers; import java.util.function.Consumer; -import org.openworkflow.fluent.spec.UseBuilder; +import org.openworkflow.sdk.fluent.spec.UseBuilder; @FunctionalInterface public interface UseConfigurer extends Consumer {} diff --git a/fluent/spec/src/main/java/org/openworkflow/fluent/spec/configurers/WorkflowConfigurer.java b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/configurers/WorkflowConfigurer.java similarity index 86% rename from fluent/spec/src/main/java/org/openworkflow/fluent/spec/configurers/WorkflowConfigurer.java rename to fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/configurers/WorkflowConfigurer.java index 640a2891b..2ba80b746 100644 --- a/fluent/spec/src/main/java/org/openworkflow/fluent/spec/configurers/WorkflowConfigurer.java +++ b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/configurers/WorkflowConfigurer.java @@ -13,10 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.fluent.spec.configurers; +package org.openworkflow.sdk.fluent.spec.configurers; import java.util.function.Consumer; -import org.openworkflow.fluent.spec.WorkflowTaskBuilder; +import org.openworkflow.sdk.fluent.spec.WorkflowTaskBuilder; @FunctionalInterface public interface WorkflowConfigurer extends Consumer {} diff --git a/fluent/spec/src/main/java/org/openworkflow/fluent/spec/dsl/AbstractEventFilterSpec.java b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/dsl/AbstractEventFilterSpec.java similarity index 87% rename from fluent/spec/src/main/java/org/openworkflow/fluent/spec/dsl/AbstractEventFilterSpec.java rename to fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/dsl/AbstractEventFilterSpec.java index 3a811d02b..df23b92d0 100644 --- a/fluent/spec/src/main/java/org/openworkflow/fluent/spec/dsl/AbstractEventFilterSpec.java +++ b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/dsl/AbstractEventFilterSpec.java @@ -13,14 +13,14 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.fluent.spec.dsl; +package org.openworkflow.sdk.fluent.spec.dsl; import java.util.ArrayList; import java.util.List; import java.util.function.Consumer; -import org.openworkflow.fluent.spec.AbstractEventFilterBuilder; -import org.openworkflow.fluent.spec.AbstractEventPropertiesBuilder; -import org.openworkflow.fluent.spec.AbstractListenTaskBuilder; +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/org/openworkflow/fluent/spec/dsl/BaseCallHttpSpec.java b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/dsl/BaseCallHttpSpec.java similarity index 96% rename from fluent/spec/src/main/java/org/openworkflow/fluent/spec/dsl/BaseCallHttpSpec.java rename to fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/dsl/BaseCallHttpSpec.java index 0bc83812a..1b8758351 100644 --- a/fluent/spec/src/main/java/org/openworkflow/fluent/spec/dsl/BaseCallHttpSpec.java +++ b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/dsl/BaseCallHttpSpec.java @@ -13,14 +13,14 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.fluent.spec.dsl; +package org.openworkflow.sdk.fluent.spec.dsl; import java.net.URI; import java.util.List; import java.util.Map; import java.util.function.Consumer; -import org.openworkflow.fluent.spec.configurers.AuthenticationConfigurer; -import org.openworkflow.fluent.spec.spi.CallHttpTaskFluent; +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/org/openworkflow/fluent/spec/dsl/BaseListenSpec.java b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/dsl/BaseListenSpec.java similarity index 93% rename from fluent/spec/src/main/java/org/openworkflow/fluent/spec/dsl/BaseListenSpec.java rename to fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/dsl/BaseListenSpec.java index acc36a931..31a4ec940 100644 --- a/fluent/spec/src/main/java/org/openworkflow/fluent/spec/dsl/BaseListenSpec.java +++ b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/dsl/BaseListenSpec.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.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 - * org.openworkflow.fluent.spec.ListenTaskBuilder} type LISTEN_TO - {@link - * org.openworkflow.fluent.spec.ListenToBuilder} type EVENT_FILTER - {@link - * org.openworkflow.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/org/openworkflow/fluent/spec/dsl/CallGrpcSpec.java b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/dsl/CallGrpcSpec.java similarity index 86% rename from fluent/spec/src/main/java/org/openworkflow/fluent/spec/dsl/CallGrpcSpec.java rename to fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/dsl/CallGrpcSpec.java index b120bee54..ef6716c8b 100644 --- a/fluent/spec/src/main/java/org/openworkflow/fluent/spec/dsl/CallGrpcSpec.java +++ b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/dsl/CallGrpcSpec.java @@ -13,16 +13,16 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.fluent.spec.dsl; +package org.openworkflow.sdk.fluent.spec.dsl; import java.util.ArrayList; import java.util.List; import java.util.Map; import java.util.function.Consumer; -import org.openworkflow.fluent.spec.CallGrpcTaskBuilder; -import org.openworkflow.fluent.spec.configurers.AuthenticationConfigurer; -import org.openworkflow.fluent.spec.configurers.CallGrpcConfigurer; -import org.openworkflow.fluent.spec.spi.CallGrpcTaskFluent; +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/org/openworkflow/fluent/spec/dsl/CallHttpSpec.java b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/dsl/CallHttpSpec.java similarity index 87% rename from fluent/spec/src/main/java/org/openworkflow/fluent/spec/dsl/CallHttpSpec.java rename to fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/dsl/CallHttpSpec.java index b8f7c2b5d..40fbd6ea8 100644 --- a/fluent/spec/src/main/java/org/openworkflow/fluent/spec/dsl/CallHttpSpec.java +++ b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/dsl/CallHttpSpec.java @@ -13,15 +13,15 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.fluent.spec.dsl; +package org.openworkflow.sdk.fluent.spec.dsl; import java.util.ArrayList; import java.util.List; import java.util.Objects; import java.util.function.Consumer; -import org.openworkflow.fluent.spec.CallHttpTaskBuilder; -import org.openworkflow.fluent.spec.configurers.CallHttpConfigurer; -import org.openworkflow.fluent.spec.spi.CallHttpTaskFluent; +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/org/openworkflow/fluent/spec/dsl/CallOpenAPISpec.java b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/dsl/CallOpenAPISpec.java similarity index 86% rename from fluent/spec/src/main/java/org/openworkflow/fluent/spec/dsl/CallOpenAPISpec.java rename to fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/dsl/CallOpenAPISpec.java index 163dfe0a5..8def35416 100644 --- a/fluent/spec/src/main/java/org/openworkflow/fluent/spec/dsl/CallOpenAPISpec.java +++ b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/dsl/CallOpenAPISpec.java @@ -13,18 +13,18 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.fluent.spec.dsl; +package org.openworkflow.sdk.fluent.spec.dsl; import java.net.URI; import java.util.ArrayList; import java.util.List; import java.util.Map; import java.util.function.Consumer; -import org.openworkflow.api.types.OpenAPIArguments; -import org.openworkflow.fluent.spec.CallOpenAPITaskBuilder; -import org.openworkflow.fluent.spec.configurers.AuthenticationConfigurer; -import org.openworkflow.fluent.spec.configurers.CallOpenAPIConfigurer; -import org.openworkflow.fluent.spec.spi.CallOpenAPITaskFluent; +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/org/openworkflow/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/org/openworkflow/fluent/spec/dsl/DSL.java rename to fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/dsl/DSL.java index 6110226b3..d0795dfb4 100644 --- a/fluent/spec/src/main/java/org/openworkflow/fluent/spec/dsl/DSL.java +++ b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/dsl/DSL.java @@ -13,40 +13,40 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.fluent.spec.dsl; +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.api.types.OAuth2AuthenticationData; -import org.openworkflow.fluent.spec.AbstractEventConsumptionStrategyBuilder; -import org.openworkflow.fluent.spec.DoTaskBuilder; -import org.openworkflow.fluent.spec.EmitTaskBuilder; -import org.openworkflow.fluent.spec.EventFilterBuilder; -import org.openworkflow.fluent.spec.ForkTaskBuilder; -import org.openworkflow.fluent.spec.OAuth2AuthenticationPolicyBuilder; -import org.openworkflow.fluent.spec.OAuth2AuthenticationPolicyBuilder.OAuth2AuthenticationPropertiesEndpointsBuilder; -import org.openworkflow.fluent.spec.ScheduleBuilder; -import org.openworkflow.fluent.spec.TaskItemListBuilder; -import org.openworkflow.fluent.spec.TimeoutBuilder; -import org.openworkflow.fluent.spec.TryTaskBuilder; -import org.openworkflow.fluent.spec.configurers.AuthenticationConfigurer; -import org.openworkflow.fluent.spec.configurers.CallGrpcConfigurer; -import org.openworkflow.fluent.spec.configurers.CallHttpConfigurer; -import org.openworkflow.fluent.spec.configurers.CallOpenAPIConfigurer; -import org.openworkflow.fluent.spec.configurers.ForEachConfigurer; -import org.openworkflow.fluent.spec.configurers.ListenConfigurer; -import org.openworkflow.fluent.spec.configurers.RaiseConfigurer; -import org.openworkflow.fluent.spec.configurers.RetryConfigurer; -import org.openworkflow.fluent.spec.configurers.SetConfigurer; -import org.openworkflow.fluent.spec.configurers.SwitchConfigurer; -import org.openworkflow.fluent.spec.configurers.TasksConfigurer; -import org.openworkflow.fluent.spec.configurers.TryCatchConfigurer; -import org.openworkflow.fluent.spec.configurers.TryConfigurer; -import org.openworkflow.fluent.spec.configurers.WorkflowConfigurer; -import org.openworkflow.types.Errors; +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. @@ -534,7 +534,7 @@ public static AuthenticationConfigurer oauth2( * *

Because the OAuth2-only {@code endpoints(...)} method is declared on {@link * OAuth2AuthenticationPolicyBuilder} (not on the shared {@link - * org.openworkflow.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 org.openworkflow.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 org.openworkflow.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/org/openworkflow/fluent/spec/dsl/EmitSpec.java b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/dsl/EmitSpec.java similarity index 80% rename from fluent/spec/src/main/java/org/openworkflow/fluent/spec/dsl/EmitSpec.java rename to fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/dsl/EmitSpec.java index fcbe165a0..1303742c1 100644 --- a/fluent/spec/src/main/java/org/openworkflow/fluent/spec/dsl/EmitSpec.java +++ b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/dsl/EmitSpec.java @@ -13,11 +13,11 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.fluent.spec.dsl; +package org.openworkflow.sdk.fluent.spec.dsl; -import org.openworkflow.fluent.spec.EmitTaskBuilder; -import org.openworkflow.fluent.spec.EventPropertiesBuilder; -import org.openworkflow.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/org/openworkflow/fluent/spec/dsl/EventEmitPropertiesSpec.java b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/dsl/EventEmitPropertiesSpec.java similarity index 92% rename from fluent/spec/src/main/java/org/openworkflow/fluent/spec/dsl/EventEmitPropertiesSpec.java rename to fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/dsl/EventEmitPropertiesSpec.java index 14cd21748..cc7f3a559 100644 --- a/fluent/spec/src/main/java/org/openworkflow/fluent/spec/dsl/EventEmitPropertiesSpec.java +++ b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/dsl/EventEmitPropertiesSpec.java @@ -13,12 +13,12 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.fluent.spec.dsl; +package org.openworkflow.sdk.fluent.spec.dsl; import java.time.Instant; import java.util.Date; import java.util.UUID; -import org.openworkflow.fluent.spec.AbstractEventPropertiesBuilder; +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/org/openworkflow/fluent/spec/dsl/EventFilterSpec.java b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/dsl/EventFilterSpec.java similarity index 83% rename from fluent/spec/src/main/java/org/openworkflow/fluent/spec/dsl/EventFilterSpec.java rename to fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/dsl/EventFilterSpec.java index 9006e576b..ee735b897 100644 --- a/fluent/spec/src/main/java/org/openworkflow/fluent/spec/dsl/EventFilterSpec.java +++ b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/dsl/EventFilterSpec.java @@ -13,10 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.fluent.spec.dsl; +package org.openworkflow.sdk.fluent.spec.dsl; -import org.openworkflow.fluent.spec.EventFilterBuilder; -import org.openworkflow.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/org/openworkflow/fluent/spec/dsl/EventPropertiesSpec.java b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/dsl/EventPropertiesSpec.java similarity index 93% rename from fluent/spec/src/main/java/org/openworkflow/fluent/spec/dsl/EventPropertiesSpec.java rename to fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/dsl/EventPropertiesSpec.java index f6895befe..e8e054368 100644 --- a/fluent/spec/src/main/java/org/openworkflow/fluent/spec/dsl/EventPropertiesSpec.java +++ b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/dsl/EventPropertiesSpec.java @@ -13,13 +13,13 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.fluent.spec.dsl; +package org.openworkflow.sdk.fluent.spec.dsl; import java.net.URI; import java.util.ArrayList; import java.util.List; import java.util.function.Consumer; -import org.openworkflow.fluent.spec.AbstractEventPropertiesBuilder; +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/org/openworkflow/fluent/spec/dsl/ExprEventEmitPropertiesSpec.java b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/dsl/ExprEventEmitPropertiesSpec.java similarity index 92% rename from fluent/spec/src/main/java/org/openworkflow/fluent/spec/dsl/ExprEventEmitPropertiesSpec.java rename to fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/dsl/ExprEventEmitPropertiesSpec.java index 60b5f4e64..7f330e352 100644 --- a/fluent/spec/src/main/java/org/openworkflow/fluent/spec/dsl/ExprEventEmitPropertiesSpec.java +++ b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/dsl/ExprEventEmitPropertiesSpec.java @@ -13,10 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.fluent.spec.dsl; +package org.openworkflow.sdk.fluent.spec.dsl; import java.util.Map; -import org.openworkflow.fluent.spec.AbstractEventPropertiesBuilder; +import org.openworkflow.sdk.fluent.spec.AbstractEventPropertiesBuilder; public abstract class ExprEventEmitPropertiesSpec< SELF, EVENT_PROPS extends AbstractEventPropertiesBuilder> diff --git a/fluent/spec/src/main/java/org/openworkflow/fluent/spec/dsl/ExprEventFilterSpec.java b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/dsl/ExprEventFilterSpec.java similarity index 91% rename from fluent/spec/src/main/java/org/openworkflow/fluent/spec/dsl/ExprEventFilterSpec.java rename to fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/dsl/ExprEventFilterSpec.java index 62ac77aa0..dd51feb52 100644 --- a/fluent/spec/src/main/java/org/openworkflow/fluent/spec/dsl/ExprEventFilterSpec.java +++ b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/dsl/ExprEventFilterSpec.java @@ -13,9 +13,9 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.fluent.spec.dsl; +package org.openworkflow.sdk.fluent.spec.dsl; -import org.openworkflow.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/org/openworkflow/fluent/spec/dsl/ListenSpec.java b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/dsl/ListenSpec.java similarity index 79% rename from fluent/spec/src/main/java/org/openworkflow/fluent/spec/dsl/ListenSpec.java rename to fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/dsl/ListenSpec.java index aa0f27ca5..255c590b7 100644 --- a/fluent/spec/src/main/java/org/openworkflow/fluent/spec/dsl/ListenSpec.java +++ b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/dsl/ListenSpec.java @@ -13,16 +13,16 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.fluent.spec.dsl; +package org.openworkflow.sdk.fluent.spec.dsl; import java.util.Objects; import java.util.function.Consumer; -import org.openworkflow.fluent.spec.AbstractEventConsumptionStrategyBuilder; -import org.openworkflow.fluent.spec.AbstractListenTaskBuilder; -import org.openworkflow.fluent.spec.EventFilterBuilder; -import org.openworkflow.fluent.spec.ListenTaskBuilder; -import org.openworkflow.fluent.spec.ListenToBuilder; -import org.openworkflow.fluent.spec.configurers.ListenConfigurer; +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/org/openworkflow/fluent/spec/dsl/RaiseSpec.java b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/dsl/RaiseSpec.java similarity index 90% rename from fluent/spec/src/main/java/org/openworkflow/fluent/spec/dsl/RaiseSpec.java rename to fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/dsl/RaiseSpec.java index 7fd8458f1..6bf81532a 100644 --- a/fluent/spec/src/main/java/org/openworkflow/fluent/spec/dsl/RaiseSpec.java +++ b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/dsl/RaiseSpec.java @@ -13,15 +13,15 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.fluent.spec.dsl; +package org.openworkflow.sdk.fluent.spec.dsl; import java.net.URI; import java.util.ArrayList; import java.util.List; import java.util.Objects; import java.util.function.Consumer; -import org.openworkflow.fluent.spec.RaiseTaskBuilder; -import org.openworkflow.fluent.spec.configurers.RaiseConfigurer; +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/org/openworkflow/fluent/spec/dsl/RetrySpec.java b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/dsl/RetrySpec.java similarity index 93% rename from fluent/spec/src/main/java/org/openworkflow/fluent/spec/dsl/RetrySpec.java rename to fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/dsl/RetrySpec.java index d372ab4e0..c11bad7d7 100644 --- a/fluent/spec/src/main/java/org/openworkflow/fluent/spec/dsl/RetrySpec.java +++ b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/dsl/RetrySpec.java @@ -13,14 +13,14 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.fluent.spec.dsl; +package org.openworkflow.sdk.fluent.spec.dsl; import java.util.LinkedList; import java.util.List; import java.util.function.Consumer; -import org.openworkflow.fluent.spec.DurationInlineBuilder; -import org.openworkflow.fluent.spec.TryTaskBuilder; -import org.openworkflow.fluent.spec.configurers.RetryConfigurer; +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/org/openworkflow/fluent/spec/dsl/SwitchSpec.java b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/dsl/SwitchSpec.java similarity index 89% rename from fluent/spec/src/main/java/org/openworkflow/fluent/spec/dsl/SwitchSpec.java rename to fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/dsl/SwitchSpec.java index f19681f4d..14baf7abc 100644 --- a/fluent/spec/src/main/java/org/openworkflow/fluent/spec/dsl/SwitchSpec.java +++ b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/dsl/SwitchSpec.java @@ -13,16 +13,16 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.fluent.spec.dsl; +package org.openworkflow.sdk.fluent.spec.dsl; import java.util.LinkedHashMap; import java.util.Map; import java.util.Objects; import java.util.function.Consumer; -import org.openworkflow.api.types.FlowDirectiveEnum; -import org.openworkflow.fluent.spec.SwitchTaskBuilder; -import org.openworkflow.fluent.spec.configurers.SwitchConfigurer; -import org.openworkflow.fluent.spec.spi.SwitchTaskFluent; +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/org/openworkflow/fluent/spec/dsl/TryCatchSpec.java b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/dsl/TryCatchSpec.java similarity index 87% rename from fluent/spec/src/main/java/org/openworkflow/fluent/spec/dsl/TryCatchSpec.java rename to fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/dsl/TryCatchSpec.java index 9f16aed4c..a46392e67 100644 --- a/fluent/spec/src/main/java/org/openworkflow/fluent/spec/dsl/TryCatchSpec.java +++ b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/dsl/TryCatchSpec.java @@ -13,17 +13,17 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.fluent.spec.dsl; +package org.openworkflow.sdk.fluent.spec.dsl; import java.net.URI; import java.util.LinkedList; import java.util.List; import java.util.function.Consumer; -import org.openworkflow.fluent.spec.TaskItemListBuilder; -import org.openworkflow.fluent.spec.TryTaskBuilder; -import org.openworkflow.fluent.spec.configurers.TasksConfigurer; -import org.openworkflow.fluent.spec.configurers.TryCatchConfigurer; -import org.openworkflow.types.Errors; +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/org/openworkflow/fluent/spec/dsl/TrySpec.java b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/dsl/TrySpec.java similarity index 80% rename from fluent/spec/src/main/java/org/openworkflow/fluent/spec/dsl/TrySpec.java rename to fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/dsl/TrySpec.java index a511372d5..809a707bc 100644 --- a/fluent/spec/src/main/java/org/openworkflow/fluent/spec/dsl/TrySpec.java +++ b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/dsl/TrySpec.java @@ -13,12 +13,12 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.fluent.spec.dsl; +package org.openworkflow.sdk.fluent.spec.dsl; -import org.openworkflow.fluent.spec.TaskItemListBuilder; -import org.openworkflow.fluent.spec.TryTaskBuilder; -import org.openworkflow.fluent.spec.configurers.TasksConfigurer; -import org.openworkflow.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/org/openworkflow/fluent/spec/dsl/UseSpec.java b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/dsl/UseSpec.java similarity index 86% rename from fluent/spec/src/main/java/org/openworkflow/fluent/spec/dsl/UseSpec.java rename to fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/dsl/UseSpec.java index 0a4f3f314..0035f5bdb 100644 --- a/fluent/spec/src/main/java/org/openworkflow/fluent/spec/dsl/UseSpec.java +++ b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/dsl/UseSpec.java @@ -13,14 +13,14 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.fluent.spec.dsl; +package org.openworkflow.sdk.fluent.spec.dsl; import java.util.LinkedList; import java.util.List; import java.util.function.Consumer; -import org.openworkflow.fluent.spec.UseBuilder; -import org.openworkflow.fluent.spec.configurers.AuthenticationConfigurer; -import org.openworkflow.fluent.spec.configurers.UseConfigurer; +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/org/openworkflow/fluent/spec/dsl/WorkflowSpec.java b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/dsl/WorkflowSpec.java similarity index 88% rename from fluent/spec/src/main/java/org/openworkflow/fluent/spec/dsl/WorkflowSpec.java rename to fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/dsl/WorkflowSpec.java index 241a82010..811518496 100644 --- a/fluent/spec/src/main/java/org/openworkflow/fluent/spec/dsl/WorkflowSpec.java +++ b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/dsl/WorkflowSpec.java @@ -13,15 +13,15 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.fluent.spec.dsl; +package org.openworkflow.sdk.fluent.spec.dsl; import java.util.ArrayList; import java.util.List; import java.util.Map; import java.util.function.Consumer; -import org.openworkflow.api.types.RunTaskConfiguration; -import org.openworkflow.fluent.spec.WorkflowTaskBuilder; -import org.openworkflow.fluent.spec.configurers.WorkflowConfigurer; +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/org/openworkflow/fluent/spec/spi/CallGrpcFluent.java b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/spi/CallGrpcFluent.java similarity index 89% rename from fluent/spec/src/main/java/org/openworkflow/fluent/spec/spi/CallGrpcFluent.java rename to fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/spi/CallGrpcFluent.java index 7f8a0724a..c89f7184c 100644 --- a/fluent/spec/src/main/java/org/openworkflow/fluent/spec/spi/CallGrpcFluent.java +++ b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/spi/CallGrpcFluent.java @@ -13,10 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.fluent.spec.spi; +package org.openworkflow.sdk.fluent.spec.spi; import java.util.function.Consumer; -import org.openworkflow.fluent.spec.TaskBaseBuilder; +import org.openworkflow.sdk.fluent.spec.TaskBaseBuilder; public interface CallGrpcFluent, LIST> { diff --git a/fluent/spec/src/main/java/org/openworkflow/fluent/spec/spi/CallGrpcTaskFluent.java b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/spi/CallGrpcTaskFluent.java similarity index 84% rename from fluent/spec/src/main/java/org/openworkflow/fluent/spec/spi/CallGrpcTaskFluent.java rename to fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/spi/CallGrpcTaskFluent.java index 0b7d60fb9..84fc99b98 100644 --- a/fluent/spec/src/main/java/org/openworkflow/fluent/spec/spi/CallGrpcTaskFluent.java +++ b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/spi/CallGrpcTaskFluent.java @@ -13,23 +13,23 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.fluent.spec.spi; +package org.openworkflow.sdk.fluent.spec.spi; import java.net.URI; import java.util.Map; -import org.openworkflow.api.types.CallGRPC; -import org.openworkflow.api.types.Endpoint; -import org.openworkflow.api.types.EndpointConfiguration; -import org.openworkflow.api.types.EndpointUri; -import org.openworkflow.api.types.ExternalResource; -import org.openworkflow.api.types.GRPCArguments; -import org.openworkflow.api.types.ReferenceableAuthenticationPolicy; -import org.openworkflow.api.types.UriTemplate; -import org.openworkflow.api.types.WithGRPCArguments; -import org.openworkflow.api.types.WithGRPCService; -import org.openworkflow.fluent.spec.ReferenceableAuthenticationPolicyBuilder; -import org.openworkflow.fluent.spec.TaskBaseBuilder; -import org.openworkflow.fluent.spec.configurers.AuthenticationConfigurer; +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/org/openworkflow/fluent/spec/spi/CallHttpFluent.java b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/spi/CallHttpFluent.java similarity index 89% rename from fluent/spec/src/main/java/org/openworkflow/fluent/spec/spi/CallHttpFluent.java rename to fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/spi/CallHttpFluent.java index 1392bb7a0..a0ce5b143 100644 --- a/fluent/spec/src/main/java/org/openworkflow/fluent/spec/spi/CallHttpFluent.java +++ b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/spi/CallHttpFluent.java @@ -13,10 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.fluent.spec.spi; +package org.openworkflow.sdk.fluent.spec.spi; import java.util.function.Consumer; -import org.openworkflow.fluent.spec.TaskBaseBuilder; +import org.openworkflow.sdk.fluent.spec.TaskBaseBuilder; public interface CallHttpFluent, LIST> { diff --git a/fluent/spec/src/main/java/org/openworkflow/fluent/spec/spi/CallHttpTaskFluent.java b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/spi/CallHttpTaskFluent.java similarity index 90% rename from fluent/spec/src/main/java/org/openworkflow/fluent/spec/spi/CallHttpTaskFluent.java rename to fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/spi/CallHttpTaskFluent.java index 462379fb9..ec20b0581 100644 --- a/fluent/spec/src/main/java/org/openworkflow/fluent/spec/spi/CallHttpTaskFluent.java +++ b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/spi/CallHttpTaskFluent.java @@ -13,25 +13,25 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.fluent.spec.spi; +package org.openworkflow.sdk.fluent.spec.spi; import java.net.URI; import java.util.Map; import java.util.function.Consumer; -import org.openworkflow.api.types.AuthenticationPolicyReference; -import org.openworkflow.api.types.CallHTTP; -import org.openworkflow.api.types.Endpoint; -import org.openworkflow.api.types.EndpointConfiguration; -import org.openworkflow.api.types.EndpointUri; -import org.openworkflow.api.types.HTTPArguments; -import org.openworkflow.api.types.HTTPHeaders; -import org.openworkflow.api.types.HTTPQuery; -import org.openworkflow.api.types.Headers; -import org.openworkflow.api.types.Query; -import org.openworkflow.api.types.ReferenceableAuthenticationPolicy; -import org.openworkflow.api.types.UriTemplate; -import org.openworkflow.fluent.spec.ReferenceableAuthenticationPolicyBuilder; -import org.openworkflow.fluent.spec.TaskBaseBuilder; +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/org/openworkflow/fluent/spec/spi/CallOpenAPIFluent.java b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/spi/CallOpenAPIFluent.java similarity index 89% rename from fluent/spec/src/main/java/org/openworkflow/fluent/spec/spi/CallOpenAPIFluent.java rename to fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/spi/CallOpenAPIFluent.java index 8d69fde5d..39cbe1781 100644 --- a/fluent/spec/src/main/java/org/openworkflow/fluent/spec/spi/CallOpenAPIFluent.java +++ b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/spi/CallOpenAPIFluent.java @@ -13,10 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.fluent.spec.spi; +package org.openworkflow.sdk.fluent.spec.spi; import java.util.function.Consumer; -import org.openworkflow.fluent.spec.TaskBaseBuilder; +import org.openworkflow.sdk.fluent.spec.TaskBaseBuilder; public interface CallOpenAPIFluent, LIST> { diff --git a/fluent/spec/src/main/java/org/openworkflow/fluent/spec/spi/CallOpenAPITaskFluent.java b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/spi/CallOpenAPITaskFluent.java similarity index 87% rename from fluent/spec/src/main/java/org/openworkflow/fluent/spec/spi/CallOpenAPITaskFluent.java rename to fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/spi/CallOpenAPITaskFluent.java index 492fa1261..0452d403e 100644 --- a/fluent/spec/src/main/java/org/openworkflow/fluent/spec/spi/CallOpenAPITaskFluent.java +++ b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/spi/CallOpenAPITaskFluent.java @@ -13,21 +13,21 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.fluent.spec.spi; +package org.openworkflow.sdk.fluent.spec.spi; import java.net.URI; import java.util.Map; -import org.openworkflow.api.types.CallOpenAPI; -import org.openworkflow.api.types.Endpoint; -import org.openworkflow.api.types.EndpointConfiguration; -import org.openworkflow.api.types.EndpointUri; -import org.openworkflow.api.types.ExternalResource; -import org.openworkflow.api.types.OpenAPIArguments; -import org.openworkflow.api.types.ReferenceableAuthenticationPolicy; -import org.openworkflow.api.types.UriTemplate; -import org.openworkflow.fluent.spec.ReferenceableAuthenticationPolicyBuilder; -import org.openworkflow.fluent.spec.TaskBaseBuilder; -import org.openworkflow.fluent.spec.configurers.AuthenticationConfigurer; +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/org/openworkflow/fluent/spec/spi/DoFluent.java b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/spi/DoFluent.java similarity index 62% rename from fluent/spec/src/main/java/org/openworkflow/fluent/spec/spi/DoFluent.java rename to fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/spi/DoFluent.java index 74637cde9..2a3a9c934 100644 --- a/fluent/spec/src/main/java/org/openworkflow/fluent/spec/spi/DoFluent.java +++ b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/spi/DoFluent.java @@ -13,22 +13,22 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.fluent.spec.spi; +package org.openworkflow.sdk.fluent.spec.spi; -import org.openworkflow.fluent.spec.CallGrpcTaskBuilder; -import org.openworkflow.fluent.spec.CallHttpTaskBuilder; -import org.openworkflow.fluent.spec.CallOpenAPITaskBuilder; -import org.openworkflow.fluent.spec.EmitTaskBuilder; -import org.openworkflow.fluent.spec.ForEachTaskBuilder; -import org.openworkflow.fluent.spec.ForkTaskBuilder; -import org.openworkflow.fluent.spec.ListenTaskBuilder; -import org.openworkflow.fluent.spec.RaiseTaskBuilder; -import org.openworkflow.fluent.spec.SetTaskBuilder; -import org.openworkflow.fluent.spec.SwitchTaskBuilder; -import org.openworkflow.fluent.spec.TaskItemListBuilder; -import org.openworkflow.fluent.spec.TryTaskBuilder; -import org.openworkflow.fluent.spec.WaitTaskBuilder; -import org.openworkflow.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. diff --git a/fluent/spec/src/main/java/org/openworkflow/fluent/spec/spi/EmitFluent.java b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/spi/EmitFluent.java similarity index 89% rename from fluent/spec/src/main/java/org/openworkflow/fluent/spec/spi/EmitFluent.java rename to fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/spi/EmitFluent.java index 8fbceff9a..71cbb3693 100644 --- a/fluent/spec/src/main/java/org/openworkflow/fluent/spec/spi/EmitFluent.java +++ b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/spi/EmitFluent.java @@ -13,10 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.fluent.spec.spi; +package org.openworkflow.sdk.fluent.spec.spi; import java.util.function.Consumer; -import org.openworkflow.fluent.spec.TaskBaseBuilder; +import org.openworkflow.sdk.fluent.spec.TaskBaseBuilder; public interface EmitFluent, LIST> { diff --git a/fluent/spec/src/main/java/org/openworkflow/fluent/spec/spi/EndpointUtil.java b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/spi/EndpointUtil.java similarity index 88% rename from fluent/spec/src/main/java/org/openworkflow/fluent/spec/spi/EndpointUtil.java rename to fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/spi/EndpointUtil.java index 3318df1af..eaf69cfb2 100644 --- a/fluent/spec/src/main/java/org/openworkflow/fluent/spec/spi/EndpointUtil.java +++ b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/spi/EndpointUtil.java @@ -13,15 +13,15 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.fluent.spec.spi; +package org.openworkflow.sdk.fluent.spec.spi; import java.net.URI; import java.util.Objects; -import org.openworkflow.api.types.Endpoint; -import org.openworkflow.api.types.EndpointConfiguration; -import org.openworkflow.api.types.EndpointUri; -import org.openworkflow.api.types.ReferenceableAuthenticationPolicy; -import org.openworkflow.api.types.UriTemplate; +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/org/openworkflow/fluent/spec/spi/EventConsumptionStrategyFluent.java b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/spi/EventConsumptionStrategyFluent.java similarity index 85% rename from fluent/spec/src/main/java/org/openworkflow/fluent/spec/spi/EventConsumptionStrategyFluent.java rename to fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/spi/EventConsumptionStrategyFluent.java index 46a25195a..f3e212649 100644 --- a/fluent/spec/src/main/java/org/openworkflow/fluent/spec/spi/EventConsumptionStrategyFluent.java +++ b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/spi/EventConsumptionStrategyFluent.java @@ -13,12 +13,12 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.fluent.spec.spi; +package org.openworkflow.sdk.fluent.spec.spi; import java.io.Serializable; import java.util.function.Consumer; -import org.openworkflow.fluent.spec.AbstractEventFilterBuilder; -import org.openworkflow.fluent.spec.EventConsumptionStrategyBuilder; +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/org/openworkflow/fluent/spec/spi/ForEachFluent.java b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/spi/ForEachFluent.java similarity index 89% rename from fluent/spec/src/main/java/org/openworkflow/fluent/spec/spi/ForEachFluent.java rename to fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/spi/ForEachFluent.java index b3f258e91..1c3eba205 100644 --- a/fluent/spec/src/main/java/org/openworkflow/fluent/spec/spi/ForEachFluent.java +++ b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/spi/ForEachFluent.java @@ -13,10 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.fluent.spec.spi; +package org.openworkflow.sdk.fluent.spec.spi; import java.util.function.Consumer; -import org.openworkflow.fluent.spec.TaskBaseBuilder; +import org.openworkflow.sdk.fluent.spec.TaskBaseBuilder; public interface ForEachFluent, LIST> { diff --git a/fluent/spec/src/main/java/org/openworkflow/fluent/spec/spi/ForEachTaskFluent.java b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/spi/ForEachTaskFluent.java similarity index 80% rename from fluent/spec/src/main/java/org/openworkflow/fluent/spec/spi/ForEachTaskFluent.java rename to fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/spi/ForEachTaskFluent.java index 47b003191..8eef6165e 100644 --- a/fluent/spec/src/main/java/org/openworkflow/fluent/spec/spi/ForEachTaskFluent.java +++ b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/spi/ForEachTaskFluent.java @@ -13,11 +13,11 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.fluent.spec.spi; +package org.openworkflow.sdk.fluent.spec.spi; -import org.openworkflow.api.types.ForTask; -import org.openworkflow.fluent.spec.BaseTaskItemListBuilder; -import org.openworkflow.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/org/openworkflow/fluent/spec/spi/ForkFluent.java b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/spi/ForkFluent.java similarity index 89% rename from fluent/spec/src/main/java/org/openworkflow/fluent/spec/spi/ForkFluent.java rename to fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/spi/ForkFluent.java index 748de39d8..d4fd01efb 100644 --- a/fluent/spec/src/main/java/org/openworkflow/fluent/spec/spi/ForkFluent.java +++ b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/spi/ForkFluent.java @@ -13,10 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.fluent.spec.spi; +package org.openworkflow.sdk.fluent.spec.spi; import java.util.function.Consumer; -import org.openworkflow.fluent.spec.TaskBaseBuilder; +import org.openworkflow.sdk.fluent.spec.TaskBaseBuilder; public interface ForkFluent, LIST> { diff --git a/fluent/spec/src/main/java/org/openworkflow/fluent/spec/spi/ForkTaskFluent.java b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/spi/ForkTaskFluent.java similarity index 82% rename from fluent/spec/src/main/java/org/openworkflow/fluent/spec/spi/ForkTaskFluent.java rename to fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/spi/ForkTaskFluent.java index 2730cbd41..691a1c63d 100644 --- a/fluent/spec/src/main/java/org/openworkflow/fluent/spec/spi/ForkTaskFluent.java +++ b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/spi/ForkTaskFluent.java @@ -13,12 +13,12 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.fluent.spec.spi; +package org.openworkflow.sdk.fluent.spec.spi; import java.util.function.Consumer; -import org.openworkflow.api.types.ForkTask; -import org.openworkflow.fluent.spec.BaseTaskItemListBuilder; -import org.openworkflow.fluent.spec.TaskBaseBuilder; +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/org/openworkflow/fluent/spec/spi/IteratorFluent.java b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/spi/IteratorFluent.java similarity index 90% rename from fluent/spec/src/main/java/org/openworkflow/fluent/spec/spi/IteratorFluent.java rename to fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/spi/IteratorFluent.java index 9144b1bb4..886e07f4b 100644 --- a/fluent/spec/src/main/java/org/openworkflow/fluent/spec/spi/IteratorFluent.java +++ b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/spi/IteratorFluent.java @@ -13,10 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.fluent.spec.spi; +package org.openworkflow.sdk.fluent.spec.spi; import java.util.function.Consumer; -import org.openworkflow.fluent.spec.BaseTaskItemListBuilder; +import org.openworkflow.sdk.fluent.spec.BaseTaskItemListBuilder; public interface IteratorFluent> { diff --git a/fluent/spec/src/main/java/org/openworkflow/fluent/spec/spi/ListenFluent.java b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/spi/ListenFluent.java similarity index 89% rename from fluent/spec/src/main/java/org/openworkflow/fluent/spec/spi/ListenFluent.java rename to fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/spi/ListenFluent.java index fe4ead69e..3b17b159f 100644 --- a/fluent/spec/src/main/java/org/openworkflow/fluent/spec/spi/ListenFluent.java +++ b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/spi/ListenFluent.java @@ -13,10 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.fluent.spec.spi; +package org.openworkflow.sdk.fluent.spec.spi; import java.util.function.Consumer; -import org.openworkflow.fluent.spec.TaskBaseBuilder; +import org.openworkflow.sdk.fluent.spec.TaskBaseBuilder; public interface ListenFluent, LIST> { diff --git a/fluent/spec/src/main/java/org/openworkflow/fluent/spec/spi/OutputFluent.java b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/spi/OutputFluent.java similarity index 84% rename from fluent/spec/src/main/java/org/openworkflow/fluent/spec/spi/OutputFluent.java rename to fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/spi/OutputFluent.java index af9739bbc..e1d9116fd 100644 --- a/fluent/spec/src/main/java/org/openworkflow/fluent/spec/spi/OutputFluent.java +++ b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/spi/OutputFluent.java @@ -13,11 +13,11 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.fluent.spec.spi; +package org.openworkflow.sdk.fluent.spec.spi; import java.util.function.Consumer; -import org.openworkflow.fluent.spec.ExportBuilder; -import org.openworkflow.fluent.spec.OutputBuilder; +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/org/openworkflow/fluent/spec/spi/RaiseFluent.java b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/spi/RaiseFluent.java similarity index 89% rename from fluent/spec/src/main/java/org/openworkflow/fluent/spec/spi/RaiseFluent.java rename to fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/spi/RaiseFluent.java index e69649851..c5eec55b2 100644 --- a/fluent/spec/src/main/java/org/openworkflow/fluent/spec/spi/RaiseFluent.java +++ b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/spi/RaiseFluent.java @@ -13,10 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.fluent.spec.spi; +package org.openworkflow.sdk.fluent.spec.spi; import java.util.function.Consumer; -import org.openworkflow.fluent.spec.TaskBaseBuilder; +import org.openworkflow.sdk.fluent.spec.TaskBaseBuilder; public interface RaiseFluent, LIST> { diff --git a/fluent/spec/src/main/java/org/openworkflow/fluent/spec/spi/SetFluent.java b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/spi/SetFluent.java similarity index 90% rename from fluent/spec/src/main/java/org/openworkflow/fluent/spec/spi/SetFluent.java rename to fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/spi/SetFluent.java index f3e178644..26463e118 100644 --- a/fluent/spec/src/main/java/org/openworkflow/fluent/spec/spi/SetFluent.java +++ b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/spi/SetFluent.java @@ -13,10 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.fluent.spec.spi; +package org.openworkflow.sdk.fluent.spec.spi; import java.util.function.Consumer; -import org.openworkflow.fluent.spec.TaskBaseBuilder; +import org.openworkflow.sdk.fluent.spec.TaskBaseBuilder; public interface SetFluent, LIST> { diff --git a/fluent/spec/src/main/java/org/openworkflow/fluent/spec/spi/SubscriptionIteratorFluent.java b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/spi/SubscriptionIteratorFluent.java similarity index 87% rename from fluent/spec/src/main/java/org/openworkflow/fluent/spec/spi/SubscriptionIteratorFluent.java rename to fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/spi/SubscriptionIteratorFluent.java index f5852cfd8..019ad10c5 100644 --- a/fluent/spec/src/main/java/org/openworkflow/fluent/spec/spi/SubscriptionIteratorFluent.java +++ b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/spi/SubscriptionIteratorFluent.java @@ -13,9 +13,9 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.fluent.spec.spi; +package org.openworkflow.sdk.fluent.spec.spi; -import org.openworkflow.fluent.spec.BaseTaskItemListBuilder; +import org.openworkflow.sdk.fluent.spec.BaseTaskItemListBuilder; public interface SubscriptionIteratorFluent> extends IteratorFluent, OutputFluent { diff --git a/fluent/spec/src/main/java/org/openworkflow/fluent/spec/spi/SwitchFluent.java b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/spi/SwitchFluent.java similarity index 89% rename from fluent/spec/src/main/java/org/openworkflow/fluent/spec/spi/SwitchFluent.java rename to fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/spi/SwitchFluent.java index e696d0841..b51fd5c61 100644 --- a/fluent/spec/src/main/java/org/openworkflow/fluent/spec/spi/SwitchFluent.java +++ b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/spi/SwitchFluent.java @@ -13,10 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.fluent.spec.spi; +package org.openworkflow.sdk.fluent.spec.spi; import java.util.function.Consumer; -import org.openworkflow.fluent.spec.TaskBaseBuilder; +import org.openworkflow.sdk.fluent.spec.TaskBaseBuilder; public interface SwitchFluent, LIST> { diff --git a/fluent/spec/src/main/java/org/openworkflow/fluent/spec/spi/SwitchTaskFluent.java b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/spi/SwitchTaskFluent.java similarity index 87% rename from fluent/spec/src/main/java/org/openworkflow/fluent/spec/spi/SwitchTaskFluent.java rename to fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/spi/SwitchTaskFluent.java index ddeb39c8c..9e47f79d0 100644 --- a/fluent/spec/src/main/java/org/openworkflow/fluent/spec/spi/SwitchTaskFluent.java +++ b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/spi/SwitchTaskFluent.java @@ -13,14 +13,14 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.fluent.spec.spi; +package org.openworkflow.sdk.fluent.spec.spi; import java.util.function.Consumer; -import org.openworkflow.api.types.FlowDirective; -import org.openworkflow.api.types.FlowDirectiveEnum; -import org.openworkflow.api.types.SwitchCase; -import org.openworkflow.api.types.SwitchTask; -import org.openworkflow.fluent.spec.TaskBaseBuilder; +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/org/openworkflow/fluent/spec/spi/TaskTransformationHandlers.java b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/spi/TaskTransformationHandlers.java similarity index 89% rename from fluent/spec/src/main/java/org/openworkflow/fluent/spec/spi/TaskTransformationHandlers.java rename to fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/spi/TaskTransformationHandlers.java index 47a92a03a..9f6fb8ca2 100644 --- a/fluent/spec/src/main/java/org/openworkflow/fluent/spec/spi/TaskTransformationHandlers.java +++ b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/spi/TaskTransformationHandlers.java @@ -13,9 +13,9 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.fluent.spec.spi; +package org.openworkflow.sdk.fluent.spec.spi; -import org.openworkflow.api.types.Export; +import org.openworkflow.sdk.api.types.Export; public interface TaskTransformationHandlers extends TransformationHandlers { diff --git a/fluent/spec/src/main/java/org/openworkflow/fluent/spec/spi/TransformationHandlers.java b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/spi/TransformationHandlers.java similarity index 84% rename from fluent/spec/src/main/java/org/openworkflow/fluent/spec/spi/TransformationHandlers.java rename to fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/spi/TransformationHandlers.java index e68e27e5c..65a64aee7 100644 --- a/fluent/spec/src/main/java/org/openworkflow/fluent/spec/spi/TransformationHandlers.java +++ b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/spi/TransformationHandlers.java @@ -13,10 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.fluent.spec.spi; +package org.openworkflow.sdk.fluent.spec.spi; -import org.openworkflow.api.types.Input; -import org.openworkflow.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/org/openworkflow/fluent/spec/spi/TryCatchFluent.java b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/spi/TryCatchFluent.java similarity index 89% rename from fluent/spec/src/main/java/org/openworkflow/fluent/spec/spi/TryCatchFluent.java rename to fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/spi/TryCatchFluent.java index db707a722..25d6dd9a3 100644 --- a/fluent/spec/src/main/java/org/openworkflow/fluent/spec/spi/TryCatchFluent.java +++ b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/spi/TryCatchFluent.java @@ -13,10 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.fluent.spec.spi; +package org.openworkflow.sdk.fluent.spec.spi; import java.util.function.Consumer; -import org.openworkflow.fluent.spec.TaskBaseBuilder; +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/org/openworkflow/fluent/spec/spi/WaitFluent.java b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/spi/WaitFluent.java similarity index 89% rename from fluent/spec/src/main/java/org/openworkflow/fluent/spec/spi/WaitFluent.java rename to fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/spi/WaitFluent.java index 85ba9d40f..58776efb7 100644 --- a/fluent/spec/src/main/java/org/openworkflow/fluent/spec/spi/WaitFluent.java +++ b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/spi/WaitFluent.java @@ -13,10 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.fluent.spec.spi; +package org.openworkflow.sdk.fluent.spec.spi; import java.util.function.Consumer; -import org.openworkflow.fluent.spec.TaskBaseBuilder; +import org.openworkflow.sdk.fluent.spec.TaskBaseBuilder; public interface WaitFluent, LIST> { diff --git a/fluent/spec/src/main/java/org/openworkflow/fluent/spec/spi/WorkflowFluent.java b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/spi/WorkflowFluent.java similarity index 90% rename from fluent/spec/src/main/java/org/openworkflow/fluent/spec/spi/WorkflowFluent.java rename to fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/spi/WorkflowFluent.java index 75100ee20..7c0b38c2b 100644 --- a/fluent/spec/src/main/java/org/openworkflow/fluent/spec/spi/WorkflowFluent.java +++ b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/spi/WorkflowFluent.java @@ -13,11 +13,11 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.fluent.spec.spi; +package org.openworkflow.sdk.fluent.spec.spi; import java.util.UUID; import java.util.function.Consumer; -import org.openworkflow.fluent.spec.TaskBaseBuilder; +import org.openworkflow.sdk.fluent.spec.TaskBaseBuilder; public interface WorkflowFluent, LIST> { diff --git a/fluent/spec/src/main/java/org/openworkflow/fluent/spec/spi/WorkflowTaskFluent.java b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/spi/WorkflowTaskFluent.java similarity index 88% rename from fluent/spec/src/main/java/org/openworkflow/fluent/spec/spi/WorkflowTaskFluent.java rename to fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/spi/WorkflowTaskFluent.java index ce9918786..0d27f818c 100644 --- a/fluent/spec/src/main/java/org/openworkflow/fluent/spec/spi/WorkflowTaskFluent.java +++ b/fluent/spec/src/main/java/org/openworkflow/sdk/fluent/spec/spi/WorkflowTaskFluent.java @@ -13,13 +13,13 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.fluent.spec.spi; +package org.openworkflow.sdk.fluent.spec.spi; import java.util.Map; -import org.openworkflow.api.types.RunTaskConfiguration; -import org.openworkflow.api.types.SubflowInput; -import org.openworkflow.fluent.spec.TaskBaseBuilder; -import org.openworkflow.fluent.spec.WorkflowTaskBuilder; +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/org/openworkflow/fluent/spec/InputBuilderTest.java b/fluent/spec/src/test/java/org/openworkflow/sdk/fluent/spec/InputBuilderTest.java similarity index 99% rename from fluent/spec/src/test/java/org/openworkflow/fluent/spec/InputBuilderTest.java rename to fluent/spec/src/test/java/org/openworkflow/sdk/fluent/spec/InputBuilderTest.java index 4d6229d43..1d8a3383d 100644 --- a/fluent/spec/src/test/java/org/openworkflow/fluent/spec/InputBuilderTest.java +++ b/fluent/spec/src/test/java/org/openworkflow/sdk/fluent/spec/InputBuilderTest.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.fluent.spec; +package org.openworkflow.sdk.fluent.spec; import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertNotNull; @@ -21,7 +21,7 @@ import java.util.Map; import org.junit.jupiter.api.Test; -import org.openworkflow.api.types.Input; +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/org/openworkflow/fluent/spec/ScheduleBuilderTest.java b/fluent/spec/src/test/java/org/openworkflow/sdk/fluent/spec/ScheduleBuilderTest.java similarity index 93% rename from fluent/spec/src/test/java/org/openworkflow/fluent/spec/ScheduleBuilderTest.java rename to fluent/spec/src/test/java/org/openworkflow/sdk/fluent/spec/ScheduleBuilderTest.java index e2c6ff859..7e42141cf 100644 --- a/fluent/spec/src/test/java/org/openworkflow/fluent/spec/ScheduleBuilderTest.java +++ b/fluent/spec/src/test/java/org/openworkflow/sdk/fluent/spec/ScheduleBuilderTest.java @@ -13,15 +13,15 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.fluent.spec; +package org.openworkflow.sdk.fluent.spec; import static org.assertj.core.api.Assertions.assertThat; import static org.assertj.core.api.Assertions.assertThatThrownBy; -import static org.openworkflow.fluent.spec.dsl.DSL.timeoutMinutes; -import static org.openworkflow.fluent.spec.dsl.DSL.timeoutSeconds; +import static org.openworkflow.sdk.fluent.spec.dsl.DSL.timeoutMinutes; +import static org.openworkflow.sdk.fluent.spec.dsl.DSL.timeoutSeconds; import org.junit.jupiter.api.Test; -import org.openworkflow.api.types.Schedule; +import org.openworkflow.sdk.api.types.Schedule; public class ScheduleBuilderTest { diff --git a/fluent/spec/src/test/java/org/openworkflow/fluent/spec/TaskItemDefaultNamingTest.java b/fluent/spec/src/test/java/org/openworkflow/sdk/fluent/spec/TaskItemDefaultNamingTest.java similarity index 98% rename from fluent/spec/src/test/java/org/openworkflow/fluent/spec/TaskItemDefaultNamingTest.java rename to fluent/spec/src/test/java/org/openworkflow/sdk/fluent/spec/TaskItemDefaultNamingTest.java index c94358f30..6ba2f08d9 100644 --- a/fluent/spec/src/test/java/org/openworkflow/fluent/spec/TaskItemDefaultNamingTest.java +++ b/fluent/spec/src/test/java/org/openworkflow/sdk/fluent/spec/TaskItemDefaultNamingTest.java @@ -13,21 +13,21 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.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.openworkflow.fluent.spec.dsl.DSL.http; +import static org.openworkflow.sdk.fluent.spec.dsl.DSL.http; import java.time.Duration; import java.util.List; import org.junit.jupiter.api.Test; -import org.openworkflow.api.types.ForkTaskConfiguration; -import org.openworkflow.api.types.SubscriptionIterator; -import org.openworkflow.api.types.TaskItem; -import org.openworkflow.api.types.TryTask; -import org.openworkflow.api.types.TryTaskCatch; -import org.openworkflow.api.types.Workflow; +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/org/openworkflow/fluent/spec/UseAuthenticationsBuilderTest.java b/fluent/spec/src/test/java/org/openworkflow/sdk/fluent/spec/UseAuthenticationsBuilderTest.java similarity index 97% rename from fluent/spec/src/test/java/org/openworkflow/fluent/spec/UseAuthenticationsBuilderTest.java rename to fluent/spec/src/test/java/org/openworkflow/sdk/fluent/spec/UseAuthenticationsBuilderTest.java index 9711eb1b2..174a20bf3 100644 --- a/fluent/spec/src/test/java/org/openworkflow/fluent/spec/UseAuthenticationsBuilderTest.java +++ b/fluent/spec/src/test/java/org/openworkflow/sdk/fluent/spec/UseAuthenticationsBuilderTest.java @@ -13,16 +13,16 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.fluent.spec; +package org.openworkflow.sdk.fluent.spec; import static org.assertj.core.api.Assertions.assertThat; import java.net.URI; import org.junit.jupiter.api.Test; -import org.openworkflow.api.types.AuthenticationPolicyUnion; -import org.openworkflow.api.types.OAuth2AuthenticationData.OAuth2AuthenticationDataGrant; -import org.openworkflow.api.types.UseAuthentications; -import org.openworkflow.api.types.Workflow; +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/org/openworkflow/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/org/openworkflow/fluent/spec/WorkflowBuilderTest.java rename to fluent/spec/src/test/java/org/openworkflow/sdk/fluent/spec/WorkflowBuilderTest.java index 3eaa82615..983312b29 100644 --- a/fluent/spec/src/test/java/org/openworkflow/fluent/spec/WorkflowBuilderTest.java +++ b/fluent/spec/src/test/java/org/openworkflow/sdk/fluent/spec/WorkflowBuilderTest.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.fluent.spec; +package org.openworkflow.sdk.fluent.spec; import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertInstanceOf; @@ -21,53 +21,53 @@ 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.fluent.spec.dsl.DSL.basic; -import static org.openworkflow.fluent.spec.dsl.DSL.call; -import static org.openworkflow.fluent.spec.dsl.DSL.cases; -import static org.openworkflow.fluent.spec.dsl.DSL.doTasks; -import static org.openworkflow.fluent.spec.dsl.DSL.emit; -import static org.openworkflow.fluent.spec.dsl.DSL.event; -import static org.openworkflow.fluent.spec.dsl.DSL.forEach; -import static org.openworkflow.fluent.spec.dsl.DSL.fork; -import static org.openworkflow.fluent.spec.dsl.DSL.http; -import static org.openworkflow.fluent.spec.dsl.DSL.listen; -import static org.openworkflow.fluent.spec.dsl.DSL.produced; -import static org.openworkflow.fluent.spec.dsl.DSL.raise; -import static org.openworkflow.fluent.spec.dsl.DSL.set; -import static org.openworkflow.fluent.spec.dsl.DSL.switchCase; -import static org.openworkflow.fluent.spec.dsl.DSL.tryCatch; +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 java.net.URI; import java.util.List; import java.util.Map; import org.junit.jupiter.api.Test; -import org.openworkflow.api.types.AuthenticationPolicyUnion; -import org.openworkflow.api.types.CallHTTP; -import org.openworkflow.api.types.CatchErrors; -import org.openworkflow.api.types.CorrelateProperty; -import org.openworkflow.api.types.Document; -import org.openworkflow.api.types.EmitEventDefinition; -import org.openworkflow.api.types.EmitTask; -import org.openworkflow.api.types.ErrorFilter; -import org.openworkflow.api.types.EventFilter; -import org.openworkflow.api.types.EventProperties; -import org.openworkflow.api.types.FlowDirectiveEnum; -import org.openworkflow.api.types.HTTPArguments; -import org.openworkflow.api.types.HTTPHeaders; -import org.openworkflow.api.types.HTTPQuery; -import org.openworkflow.api.types.ListenTask; -import org.openworkflow.api.types.OneEventConsumptionStrategy; -import org.openworkflow.api.types.RetryLimitAttempt; -import org.openworkflow.api.types.RetryPolicy; -import org.openworkflow.api.types.RunTaskConfiguration; -import org.openworkflow.api.types.SetTask; -import org.openworkflow.api.types.TaskItem; -import org.openworkflow.api.types.TaskMetadata; -import org.openworkflow.api.types.TryTask; -import org.openworkflow.api.types.TryTaskCatch; -import org.openworkflow.api.types.Use; -import org.openworkflow.api.types.UseAuthentications; -import org.openworkflow.api.types.Workflow; +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/org/openworkflow/fluent/spec/dsl/CallGrpcDslTest.java b/fluent/spec/src/test/java/org/openworkflow/sdk/fluent/spec/dsl/CallGrpcDslTest.java similarity index 95% rename from fluent/spec/src/test/java/org/openworkflow/fluent/spec/dsl/CallGrpcDslTest.java rename to fluent/spec/src/test/java/org/openworkflow/sdk/fluent/spec/dsl/CallGrpcDslTest.java index 82ba1ba98..541629884 100644 --- a/fluent/spec/src/test/java/org/openworkflow/fluent/spec/dsl/CallGrpcDslTest.java +++ b/fluent/spec/src/test/java/org/openworkflow/sdk/fluent/spec/dsl/CallGrpcDslTest.java @@ -13,18 +13,18 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.fluent.spec.dsl; +package org.openworkflow.sdk.fluent.spec.dsl; import static org.assertj.core.api.Assertions.assertThat; -import static org.openworkflow.fluent.spec.dsl.DSL.basic; -import static org.openworkflow.fluent.spec.dsl.DSL.call; -import static org.openworkflow.fluent.spec.dsl.DSL.grpc; +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 java.util.Map; import org.junit.jupiter.api.Test; -import org.openworkflow.api.types.Workflow; -import org.openworkflow.fluent.spec.WorkflowBuilder; -import org.openworkflow.fluent.spec.configurers.CallGrpcConfigurer; +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/org/openworkflow/fluent/spec/dsl/CallHttpAuthDslTest.java b/fluent/spec/src/test/java/org/openworkflow/sdk/fluent/spec/dsl/CallHttpAuthDslTest.java similarity index 94% rename from fluent/spec/src/test/java/org/openworkflow/fluent/spec/dsl/CallHttpAuthDslTest.java rename to fluent/spec/src/test/java/org/openworkflow/sdk/fluent/spec/dsl/CallHttpAuthDslTest.java index 07fab0f56..ab9492e76 100644 --- a/fluent/spec/src/test/java/org/openworkflow/fluent/spec/dsl/CallHttpAuthDslTest.java +++ b/fluent/spec/src/test/java/org/openworkflow/sdk/fluent/spec/dsl/CallHttpAuthDslTest.java @@ -13,22 +13,22 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.fluent.spec.dsl; +package org.openworkflow.sdk.fluent.spec.dsl; import static org.assertj.core.api.Assertions.assertThat; -import static org.openworkflow.fluent.spec.dsl.DSL.basic; -import static org.openworkflow.fluent.spec.dsl.DSL.bearer; -import static org.openworkflow.fluent.spec.dsl.DSL.call; -import static org.openworkflow.fluent.spec.dsl.DSL.digest; -import static org.openworkflow.fluent.spec.dsl.DSL.http; -import static org.openworkflow.fluent.spec.dsl.DSL.oauth2; -import static org.openworkflow.fluent.spec.dsl.DSL.oidc; +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 java.net.URI; import org.junit.jupiter.api.Test; -import org.openworkflow.api.types.OAuth2AuthenticationData; -import org.openworkflow.api.types.Workflow; -import org.openworkflow.fluent.spec.WorkflowBuilder; +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/org/openworkflow/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/org/openworkflow/fluent/spec/dsl/CallHttpDslExtensionsTest.java rename to fluent/spec/src/test/java/org/openworkflow/sdk/fluent/spec/dsl/CallHttpDslExtensionsTest.java index f8975347c..a553ac086 100644 --- a/fluent/spec/src/test/java/org/openworkflow/fluent/spec/dsl/CallHttpDslExtensionsTest.java +++ b/fluent/spec/src/test/java/org/openworkflow/sdk/fluent/spec/dsl/CallHttpDslExtensionsTest.java @@ -13,17 +13,17 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.fluent.spec.dsl; +package org.openworkflow.sdk.fluent.spec.dsl; import static org.assertj.core.api.Assertions.assertThat; -import static org.openworkflow.fluent.spec.dsl.DSL.call; -import static org.openworkflow.fluent.spec.dsl.DSL.http; +import static org.openworkflow.sdk.fluent.spec.dsl.DSL.call; +import static org.openworkflow.sdk.fluent.spec.dsl.DSL.http; import java.util.Map; import org.junit.jupiter.api.Test; -import org.openworkflow.api.types.CallHTTP; -import org.openworkflow.api.types.HTTPArguments; -import org.openworkflow.fluent.spec.WorkflowBuilder; +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/org/openworkflow/fluent/spec/dsl/CallOpenApiDslTest.java b/fluent/spec/src/test/java/org/openworkflow/sdk/fluent/spec/dsl/CallOpenApiDslTest.java similarity index 90% rename from fluent/spec/src/test/java/org/openworkflow/fluent/spec/dsl/CallOpenApiDslTest.java rename to fluent/spec/src/test/java/org/openworkflow/sdk/fluent/spec/dsl/CallOpenApiDslTest.java index 2c9e4cdeb..e0650e9ab 100644 --- a/fluent/spec/src/test/java/org/openworkflow/fluent/spec/dsl/CallOpenApiDslTest.java +++ b/fluent/spec/src/test/java/org/openworkflow/sdk/fluent/spec/dsl/CallOpenApiDslTest.java @@ -13,18 +13,18 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.fluent.spec.dsl; +package org.openworkflow.sdk.fluent.spec.dsl; import static org.assertj.core.api.Assertions.assertThat; -import static org.openworkflow.fluent.spec.dsl.DSL.basic; -import static org.openworkflow.fluent.spec.dsl.DSL.call; -import static org.openworkflow.fluent.spec.dsl.DSL.openapi; +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 java.util.Map; import org.junit.jupiter.api.Test; -import org.openworkflow.api.types.OpenAPIArguments; -import org.openworkflow.api.types.Workflow; -import org.openworkflow.fluent.spec.WorkflowBuilder; +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/org/openworkflow/fluent/spec/dsl/DSLScheduleTest.java b/fluent/spec/src/test/java/org/openworkflow/sdk/fluent/spec/dsl/DSLScheduleTest.java similarity index 84% rename from fluent/spec/src/test/java/org/openworkflow/fluent/spec/dsl/DSLScheduleTest.java rename to fluent/spec/src/test/java/org/openworkflow/sdk/fluent/spec/dsl/DSLScheduleTest.java index 687bd8d21..110501aa9 100644 --- a/fluent/spec/src/test/java/org/openworkflow/fluent/spec/dsl/DSLScheduleTest.java +++ b/fluent/spec/src/test/java/org/openworkflow/sdk/fluent/spec/dsl/DSLScheduleTest.java @@ -13,21 +13,21 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.fluent.spec.dsl; +package org.openworkflow.sdk.fluent.spec.dsl; import static org.assertj.core.api.Assertions.assertThat; -import static org.openworkflow.fluent.spec.dsl.DSL.after; -import static org.openworkflow.fluent.spec.dsl.DSL.cron; -import static org.openworkflow.fluent.spec.dsl.DSL.event; -import static org.openworkflow.fluent.spec.dsl.DSL.every; -import static org.openworkflow.fluent.spec.dsl.DSL.on; -import static org.openworkflow.fluent.spec.dsl.DSL.one; -import static org.openworkflow.fluent.spec.dsl.DSL.timeoutHours; -import static org.openworkflow.fluent.spec.dsl.DSL.timeoutMinutes; +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 org.junit.jupiter.api.Test; -import org.openworkflow.api.types.Workflow; -import org.openworkflow.fluent.spec.WorkflowBuilder; +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/org/openworkflow/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/org/openworkflow/fluent/spec/dsl/DSLTest.java rename to fluent/spec/src/test/java/org/openworkflow/sdk/fluent/spec/dsl/DSLTest.java index 83839e8f9..88ca75e0c 100644 --- a/fluent/spec/src/test/java/org/openworkflow/fluent/spec/dsl/DSLTest.java +++ b/fluent/spec/src/test/java/org/openworkflow/sdk/fluent/spec/dsl/DSLTest.java @@ -13,33 +13,33 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.fluent.spec.dsl; +package org.openworkflow.sdk.fluent.spec.dsl; import static org.assertj.core.api.Assertions.assertThat; -import static org.openworkflow.fluent.spec.dsl.DSL.auth; -import static org.openworkflow.fluent.spec.dsl.DSL.basic; -import static org.openworkflow.fluent.spec.dsl.DSL.bearer; -import static org.openworkflow.fluent.spec.dsl.DSL.call; -import static org.openworkflow.fluent.spec.dsl.DSL.error; -import static org.openworkflow.fluent.spec.dsl.DSL.event; -import static org.openworkflow.fluent.spec.dsl.DSL.http; -import static org.openworkflow.fluent.spec.dsl.DSL.openapi; -import static org.openworkflow.fluent.spec.dsl.DSL.produced; -import static org.openworkflow.fluent.spec.dsl.DSL.secrets; -import static org.openworkflow.fluent.spec.dsl.DSL.subflow; -import static org.openworkflow.fluent.spec.dsl.DSL.to; -import static org.openworkflow.fluent.spec.dsl.DSL.workflow; +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 java.net.URI; import java.util.Map; import org.junit.jupiter.api.Test; -import org.openworkflow.api.types.CorrelateProperty; -import org.openworkflow.api.types.HTTPArguments; -import org.openworkflow.api.types.ListenTaskConfiguration; -import org.openworkflow.api.types.RunTaskConfiguration; -import org.openworkflow.api.types.Workflow; -import org.openworkflow.fluent.spec.WorkflowBuilder; -import org.openworkflow.types.Errors; +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://openworkflow.cloud/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/org/openworkflow/fluent/spec/dsl/DSLTimeoutTest.java b/fluent/spec/src/test/java/org/openworkflow/sdk/fluent/spec/dsl/DSLTimeoutTest.java similarity index 91% rename from fluent/spec/src/test/java/org/openworkflow/fluent/spec/dsl/DSLTimeoutTest.java rename to fluent/spec/src/test/java/org/openworkflow/sdk/fluent/spec/dsl/DSLTimeoutTest.java index 53d1cc7bb..9439c7af3 100644 --- a/fluent/spec/src/test/java/org/openworkflow/fluent/spec/dsl/DSLTimeoutTest.java +++ b/fluent/spec/src/test/java/org/openworkflow/sdk/fluent/spec/dsl/DSLTimeoutTest.java @@ -13,19 +13,19 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.fluent.spec.dsl; +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.fluent.spec.dsl.DSL.call; -import static org.openworkflow.fluent.spec.dsl.DSL.timeoutMinutes; -import static org.openworkflow.fluent.spec.dsl.DSL.timeoutSeconds; +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 org.junit.jupiter.api.Test; -import org.openworkflow.api.types.DurationInline; -import org.openworkflow.api.types.Workflow; -import org.openworkflow.fluent.spec.WorkflowBuilder; -import org.openworkflow.fluent.spec.configurers.CallHttpConfigurer; +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/org/openworkflow/fluent/spec/dsl/DSLWaitTest.java b/fluent/spec/src/test/java/org/openworkflow/sdk/fluent/spec/dsl/DSLWaitTest.java similarity index 94% rename from fluent/spec/src/test/java/org/openworkflow/fluent/spec/dsl/DSLWaitTest.java rename to fluent/spec/src/test/java/org/openworkflow/sdk/fluent/spec/dsl/DSLWaitTest.java index e729a94f4..a9960f602 100644 --- a/fluent/spec/src/test/java/org/openworkflow/fluent/spec/dsl/DSLWaitTest.java +++ b/fluent/spec/src/test/java/org/openworkflow/sdk/fluent/spec/dsl/DSLWaitTest.java @@ -13,17 +13,17 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.fluent.spec.dsl; +package org.openworkflow.sdk.fluent.spec.dsl; import static org.assertj.core.api.Assertions.assertThat; -import static org.openworkflow.fluent.spec.dsl.DSL.waitMinutes; -import static org.openworkflow.fluent.spec.dsl.DSL.waitSeconds; +import static org.openworkflow.sdk.fluent.spec.dsl.DSL.waitMinutes; +import static org.openworkflow.sdk.fluent.spec.dsl.DSL.waitSeconds; import java.time.Duration; import org.junit.jupiter.api.Test; -import org.openworkflow.api.types.DurationInline; -import org.openworkflow.api.types.Workflow; -import org.openworkflow.fluent.spec.WorkflowBuilder; +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/org/openworkflow/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/org/openworkflow/fluent/spec/dsl/TryCatchDslTest.java rename to fluent/spec/src/test/java/org/openworkflow/sdk/fluent/spec/dsl/TryCatchDslTest.java index 3703d3b88..ec1daf75b 100644 --- a/fluent/spec/src/test/java/org/openworkflow/fluent/spec/dsl/TryCatchDslTest.java +++ b/fluent/spec/src/test/java/org/openworkflow/sdk/fluent/spec/dsl/TryCatchDslTest.java @@ -13,24 +13,24 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.fluent.spec.dsl; +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.fluent.spec.dsl.DSL.call; -import static org.openworkflow.fluent.spec.dsl.DSL.emit; -import static org.openworkflow.fluent.spec.dsl.DSL.error; -import static org.openworkflow.fluent.spec.dsl.DSL.http; -import static org.openworkflow.fluent.spec.dsl.DSL.raise; -import static org.openworkflow.fluent.spec.dsl.DSL.set; -import static org.openworkflow.fluent.spec.dsl.DSL.tryCatch; -import static org.openworkflow.fluent.spec.dsl.DSL.use; +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 java.net.URI; import org.junit.jupiter.api.Test; -import org.openworkflow.api.types.Workflow; -import org.openworkflow.fluent.spec.WorkflowBuilder; -import org.openworkflow.types.Errors; +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 fe4a06f99..3b36c95bb 100644 --- a/generators/jackson/pom.xml +++ b/generators/jackson/pom.xml @@ -2,7 +2,7 @@ 4.0.0 maven-plugin - org.openworkflow + org.openworkflow.sdk openworkflow-generators 8.0.0-SNAPSHOT @@ -66,11 +66,11 @@ provided - org.openworkflow + org.openworkflow.sdk openworkflow-types - org.openworkflow + org.openworkflow.sdk openworkflow-serialization diff --git a/generators/jackson/src/main/java/org/openworkflow/generator/graalvm/ReflectNativeFileHandler.java b/generators/jackson/src/main/java/org/openworkflow/sdk/generator/graalvm/ReflectNativeFileHandler.java similarity index 98% rename from generators/jackson/src/main/java/org/openworkflow/generator/graalvm/ReflectNativeFileHandler.java rename to generators/jackson/src/main/java/org/openworkflow/sdk/generator/graalvm/ReflectNativeFileHandler.java index d45d63a5c..8bda80fd1 100644 --- a/generators/jackson/src/main/java/org/openworkflow/generator/graalvm/ReflectNativeFileHandler.java +++ b/generators/jackson/src/main/java/org/openworkflow/sdk/generator/graalvm/ReflectNativeFileHandler.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.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/org/openworkflow/generator/jackson/GeneratorUtils.java b/generators/jackson/src/main/java/org/openworkflow/sdk/generator/jackson/GeneratorUtils.java similarity index 97% rename from generators/jackson/src/main/java/org/openworkflow/generator/jackson/GeneratorUtils.java rename to generators/jackson/src/main/java/org/openworkflow/sdk/generator/jackson/GeneratorUtils.java index 6ed5f338b..fba76199f 100644 --- a/generators/jackson/src/main/java/org/openworkflow/generator/jackson/GeneratorUtils.java +++ b/generators/jackson/src/main/java/org/openworkflow/sdk/generator/jackson/GeneratorUtils.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.generator.jackson; +package org.openworkflow.sdk.generator.jackson; import com.fasterxml.jackson.core.JsonGenerator; import com.fasterxml.jackson.core.JsonParser; @@ -34,8 +34,8 @@ import java.io.IOException; import java.util.Collection; import java.util.List; -import org.openworkflow.serialization.DeserializeHelper; -import org.openworkflow.serialization.SerializeHelper; +import org.openworkflow.sdk.serialization.DeserializeHelper; +import org.openworkflow.sdk.serialization.SerializeHelper; public class GeneratorUtils { diff --git a/generators/jackson/src/main/java/org/openworkflow/generator/jackson/JacksonMixInPojo.java b/generators/jackson/src/main/java/org/openworkflow/sdk/generator/jackson/JacksonMixInPojo.java similarity index 96% rename from generators/jackson/src/main/java/org/openworkflow/generator/jackson/JacksonMixInPojo.java rename to generators/jackson/src/main/java/org/openworkflow/sdk/generator/jackson/JacksonMixInPojo.java index 96ebff141..4ede3fb98 100644 --- a/generators/jackson/src/main/java/org/openworkflow/generator/jackson/JacksonMixInPojo.java +++ b/generators/jackson/src/main/java/org/openworkflow/sdk/generator/jackson/JacksonMixInPojo.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.generator.jackson; +package org.openworkflow.sdk.generator.jackson; import com.fasterxml.jackson.annotation.JsonAnyGetter; import com.fasterxml.jackson.annotation.JsonAnySetter; @@ -59,13 +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.annotations.AdditionalProperties; -import org.openworkflow.annotations.ExclusiveUnion; -import org.openworkflow.annotations.InclusiveUnion; -import org.openworkflow.annotations.Item; -import org.openworkflow.annotations.ItemKey; -import org.openworkflow.annotations.ItemValue; -import org.openworkflow.generator.graalvm.ReflectNativeFileHandler; +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 bb155c115..5303d1747 100644 --- a/generators/pom.xml +++ b/generators/pom.xml @@ -1,7 +1,7 @@ 4.0.0 - org.openworkflow + org.openworkflow.sdk openworkflow-parent 8.0.0-SNAPSHOT diff --git a/generators/types/pom.xml b/generators/types/pom.xml index f736748ef..df636b2b7 100644 --- a/generators/types/pom.xml +++ b/generators/types/pom.xml @@ -1,7 +1,7 @@ 4.0.0 - org.openworkflow + org.openworkflow.sdk openworkflow-generators 8.0.0-SNAPSHOT @@ -13,7 +13,7 @@ jsonschema2pojo-core - org.openworkflow + org.openworkflow.sdk openworkflow-annotations diff --git a/generators/types/src/main/java/org/openworkflow/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/org/openworkflow/generator/AllAnyOneOfSchemaRule.java rename to generators/types/src/main/java/org/openworkflow/sdk/generator/AllAnyOneOfSchemaRule.java index 3c901217f..5eb85460f 100644 --- a/generators/types/src/main/java/org/openworkflow/generator/AllAnyOneOfSchemaRule.java +++ b/generators/types/src/main/java/org/openworkflow/sdk/generator/AllAnyOneOfSchemaRule.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.generator; +package org.openworkflow.sdk.generator; import com.fasterxml.jackson.databind.JsonNode; import com.fasterxml.jackson.databind.node.ArrayNode; @@ -47,10 +47,10 @@ import org.jsonschema2pojo.exception.GenerationException; import org.jsonschema2pojo.rules.RuleFactory; import org.jsonschema2pojo.rules.SchemaRule; -import org.openworkflow.annotations.ExclusiveUnion; -import org.openworkflow.annotations.InclusiveUnion; -import org.openworkflow.annotations.OneOfSetter; -import org.openworkflow.annotations.OneOfValueProvider; +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/org/openworkflow/generator/CustomAnnotator.java b/generators/types/src/main/java/org/openworkflow/sdk/generator/CustomAnnotator.java similarity index 94% rename from generators/types/src/main/java/org/openworkflow/generator/CustomAnnotator.java rename to generators/types/src/main/java/org/openworkflow/sdk/generator/CustomAnnotator.java index 637010bc3..6b56cb732 100644 --- a/generators/types/src/main/java/org/openworkflow/generator/CustomAnnotator.java +++ b/generators/types/src/main/java/org/openworkflow/sdk/generator/CustomAnnotator.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.generator; +package org.openworkflow.sdk.generator; import com.fasterxml.jackson.databind.JsonNode; import com.sun.codemodel.JDefinedClass; @@ -22,7 +22,7 @@ import jakarta.validation.constraints.Pattern; import org.jsonschema2pojo.AbstractAnnotator; import org.jsonschema2pojo.GenerationConfig; -import org.openworkflow.annotations.AdditionalProperties; +import org.openworkflow.sdk.annotations.AdditionalProperties; public class CustomAnnotator extends AbstractAnnotator { diff --git a/generators/types/src/main/java/org/openworkflow/generator/EmptyObjectTypeRule.java b/generators/types/src/main/java/org/openworkflow/sdk/generator/EmptyObjectTypeRule.java similarity index 97% rename from generators/types/src/main/java/org/openworkflow/generator/EmptyObjectTypeRule.java rename to generators/types/src/main/java/org/openworkflow/sdk/generator/EmptyObjectTypeRule.java index e9208ceb7..54e193afe 100644 --- a/generators/types/src/main/java/org/openworkflow/generator/EmptyObjectTypeRule.java +++ b/generators/types/src/main/java/org/openworkflow/sdk/generator/EmptyObjectTypeRule.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.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/org/openworkflow/generator/GeneratorUtils.java b/generators/types/src/main/java/org/openworkflow/sdk/generator/GeneratorUtils.java similarity index 98% rename from generators/types/src/main/java/org/openworkflow/generator/GeneratorUtils.java rename to generators/types/src/main/java/org/openworkflow/sdk/generator/GeneratorUtils.java index c302c2845..21c06a7e0 100644 --- a/generators/types/src/main/java/org/openworkflow/generator/GeneratorUtils.java +++ b/generators/types/src/main/java/org/openworkflow/sdk/generator/GeneratorUtils.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.generator; +package org.openworkflow.sdk.generator; import com.sun.codemodel.JAnnotationArrayMember; import com.sun.codemodel.JDefinedClass; diff --git a/generators/types/src/main/java/org/openworkflow/generator/JTypeWrapper.java b/generators/types/src/main/java/org/openworkflow/sdk/generator/JTypeWrapper.java similarity index 89% rename from generators/types/src/main/java/org/openworkflow/generator/JTypeWrapper.java rename to generators/types/src/main/java/org/openworkflow/sdk/generator/JTypeWrapper.java index 86a51f73d..ac379feb2 100644 --- a/generators/types/src/main/java/org/openworkflow/generator/JTypeWrapper.java +++ b/generators/types/src/main/java/org/openworkflow/sdk/generator/JTypeWrapper.java @@ -13,10 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.generator; +package org.openworkflow.sdk.generator; -import static org.openworkflow.generator.AllAnyOneOfSchemaRule.PATTERN; -import static org.openworkflow.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/org/openworkflow/generator/RefNameHelper.java b/generators/types/src/main/java/org/openworkflow/sdk/generator/RefNameHelper.java similarity index 97% rename from generators/types/src/main/java/org/openworkflow/generator/RefNameHelper.java rename to generators/types/src/main/java/org/openworkflow/sdk/generator/RefNameHelper.java index 655baaa62..85c9e5ce1 100644 --- a/generators/types/src/main/java/org/openworkflow/generator/RefNameHelper.java +++ b/generators/types/src/main/java/org/openworkflow/sdk/generator/RefNameHelper.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.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/org/openworkflow/generator/UnevaluatedPropertiesRule.java b/generators/types/src/main/java/org/openworkflow/sdk/generator/UnevaluatedPropertiesRule.java similarity index 96% rename from generators/types/src/main/java/org/openworkflow/generator/UnevaluatedPropertiesRule.java rename to generators/types/src/main/java/org/openworkflow/sdk/generator/UnevaluatedPropertiesRule.java index 20d89cd7c..f51f7b338 100644 --- a/generators/types/src/main/java/org/openworkflow/generator/UnevaluatedPropertiesRule.java +++ b/generators/types/src/main/java/org/openworkflow/sdk/generator/UnevaluatedPropertiesRule.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.generator; +package org.openworkflow.sdk.generator; import com.fasterxml.jackson.databind.JsonNode; import com.sun.codemodel.JClassAlreadyExistsException; @@ -28,9 +28,9 @@ import org.jsonschema2pojo.rules.Rule; import org.jsonschema2pojo.rules.RuleFactory; import org.jsonschema2pojo.util.NameHelper; -import org.openworkflow.annotations.Item; -import org.openworkflow.annotations.ItemKey; -import org.openworkflow.annotations.ItemValue; +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/org/openworkflow/generator/UnreferencedFactory.java b/generators/types/src/main/java/org/openworkflow/sdk/generator/UnreferencedFactory.java similarity index 97% rename from generators/types/src/main/java/org/openworkflow/generator/UnreferencedFactory.java rename to generators/types/src/main/java/org/openworkflow/sdk/generator/UnreferencedFactory.java index 33d594972..06ea03163 100644 --- a/generators/types/src/main/java/org/openworkflow/generator/UnreferencedFactory.java +++ b/generators/types/src/main/java/org/openworkflow/sdk/generator/UnreferencedFactory.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.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 15adc10b8..cb772fdc2 100644 --- a/impl/README.md +++ b/impl/README.md @@ -120,19 +120,19 @@ Links below. ```xml - org.openworkflow + org.openworkflow.sdk openworkflow-impl-jackson - org.openworkflow + org.openworkflow.sdk openworkflow-impl-http - org.openworkflow + org.openworkflow.sdk openworkflow-impl-jackson-jwt ``` @@ -140,9 +140,9 @@ Links below. ### Gradle (Kotlin/Groovy) ```gradle -implementation("org.openworkflow:openworkflow-impl-jackson") -implementation("org.openworkflow:openworkflow-impl-http") // if using HTTP -implementation("org.openworkflow:openworkflow-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+**. @@ -186,8 +186,8 @@ Workflow output is {"id":10,"category":{"id":10,"name":"string"},"name":"doggie" Full examples: -* Blocking: [examples/simpleGet/src/main/java/org/openworkflow/impl/BlockingExample.java]() -* Non-blocking: [examples/simpleGet/src/main/java/org/openworkflow/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]() --- @@ -230,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/open-workflow-specification/sdk-java/blob/main/impl/core/src/main/java/org/openworkflow/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/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. diff --git a/impl/a2a/pom.xml b/impl/a2a/pom.xml index a42f69897..6cd8fde76 100644 --- a/impl/a2a/pom.xml +++ b/impl/a2a/pom.xml @@ -1,7 +1,7 @@ 4.0.0 - org.openworkflow + org.openworkflow.sdk openworkflow-impl 8.0.0-SNAPSHOT @@ -9,7 +9,7 @@ Open Workflow :: Impl :: A2A - org.openworkflow + org.openworkflow.sdk openworkflow-impl-core diff --git a/impl/a2a/src/main/java/org/openworkflow/impl/executors/a2a/A2AExceptionHandler.java b/impl/a2a/src/main/java/org/openworkflow/sdk/impl/executors/a2a/A2AExceptionHandler.java similarity index 88% rename from impl/a2a/src/main/java/org/openworkflow/impl/executors/a2a/A2AExceptionHandler.java rename to impl/a2a/src/main/java/org/openworkflow/sdk/impl/executors/a2a/A2AExceptionHandler.java index 9edec3ce3..cf8a1e723 100644 --- a/impl/a2a/src/main/java/org/openworkflow/impl/executors/a2a/A2AExceptionHandler.java +++ b/impl/a2a/src/main/java/org/openworkflow/sdk/impl/executors/a2a/A2AExceptionHandler.java @@ -13,12 +13,12 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.executors.a2a; +package org.openworkflow.sdk.impl.executors.a2a; import java.util.concurrent.CompletableFuture; import java.util.function.Consumer; -import org.openworkflow.impl.WorkflowModel; -import org.openworkflow.impl.WorkflowPosition; +import org.openworkflow.sdk.impl.WorkflowModel; +import org.openworkflow.sdk.impl.WorkflowPosition; class A2AExceptionHandler implements Consumer { diff --git a/impl/a2a/src/main/java/org/openworkflow/impl/executors/a2a/A2AExecutor.java b/impl/a2a/src/main/java/org/openworkflow/sdk/impl/executors/a2a/A2AExecutor.java similarity index 91% rename from impl/a2a/src/main/java/org/openworkflow/impl/executors/a2a/A2AExecutor.java rename to impl/a2a/src/main/java/org/openworkflow/sdk/impl/executors/a2a/A2AExecutor.java index 1888b185e..ba92ab502 100644 --- a/impl/a2a/src/main/java/org/openworkflow/impl/executors/a2a/A2AExecutor.java +++ b/impl/a2a/src/main/java/org/openworkflow/sdk/impl/executors/a2a/A2AExecutor.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.executors.a2a; +package org.openworkflow.sdk.impl.executors.a2a; import java.net.URI; import java.util.Map; @@ -25,11 +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.impl.TaskContext; -import org.openworkflow.impl.WorkflowContext; -import org.openworkflow.impl.WorkflowModel; -import org.openworkflow.impl.WorkflowValueResolver; -import org.openworkflow.impl.executors.CallableTask; +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/org/openworkflow/impl/executors/a2a/A2AExecutorBuilder.java b/impl/a2a/src/main/java/org/openworkflow/sdk/impl/executors/a2a/A2AExecutorBuilder.java similarity index 83% rename from impl/a2a/src/main/java/org/openworkflow/impl/executors/a2a/A2AExecutorBuilder.java rename to impl/a2a/src/main/java/org/openworkflow/sdk/impl/executors/a2a/A2AExecutorBuilder.java index f08cdaf5e..d01923882 100644 --- a/impl/a2a/src/main/java/org/openworkflow/impl/executors/a2a/A2AExecutorBuilder.java +++ b/impl/a2a/src/main/java/org/openworkflow/sdk/impl/executors/a2a/A2AExecutorBuilder.java @@ -13,22 +13,22 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.executors.a2a; +package org.openworkflow.sdk.impl.executors.a2a; import java.net.URI; import java.util.Map; import java.util.Optional; -import org.openworkflow.api.types.A2AArguments; -import org.openworkflow.api.types.CallA2A; -import org.openworkflow.api.types.Parameters; -import org.openworkflow.api.types.TaskBase; -import org.openworkflow.api.types.WithA2AParameters; -import org.openworkflow.impl.WorkflowDefinition; -import org.openworkflow.impl.WorkflowMutablePosition; -import org.openworkflow.impl.WorkflowUtils; -import org.openworkflow.impl.WorkflowValueResolver; -import org.openworkflow.impl.executors.CallableTaskBuilder; -import org.openworkflow.impl.executors.CallableTaskFactory; +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/org/openworkflow/impl/executors/a2a/A2ARequestDispatcher.java b/impl/a2a/src/main/java/org/openworkflow/sdk/impl/executors/a2a/A2ARequestDispatcher.java similarity index 84% rename from impl/a2a/src/main/java/org/openworkflow/impl/executors/a2a/A2ARequestDispatcher.java rename to impl/a2a/src/main/java/org/openworkflow/sdk/impl/executors/a2a/A2ARequestDispatcher.java index fd663745d..ca78c5f42 100644 --- a/impl/a2a/src/main/java/org/openworkflow/impl/executors/a2a/A2ARequestDispatcher.java +++ b/impl/a2a/src/main/java/org/openworkflow/sdk/impl/executors/a2a/A2ARequestDispatcher.java @@ -13,15 +13,15 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.executors.a2a; +package org.openworkflow.sdk.impl.executors.a2a; import java.util.Map; import java.util.concurrent.CompletableFuture; import org.a2aproject.sdk.client.Client; import org.a2aproject.sdk.spec.AgentCard; -import org.openworkflow.impl.TaskContext; -import org.openworkflow.impl.WorkflowContext; -import org.openworkflow.impl.WorkflowModel; +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/org/openworkflow/impl/executors/a2a/A2AUtils.java b/impl/a2a/src/main/java/org/openworkflow/sdk/impl/executors/a2a/A2AUtils.java similarity index 92% rename from impl/a2a/src/main/java/org/openworkflow/impl/executors/a2a/A2AUtils.java rename to impl/a2a/src/main/java/org/openworkflow/sdk/impl/executors/a2a/A2AUtils.java index 39cf5c155..96fdcfa32 100644 --- a/impl/a2a/src/main/java/org/openworkflow/impl/executors/a2a/A2AUtils.java +++ b/impl/a2a/src/main/java/org/openworkflow/sdk/impl/executors/a2a/A2AUtils.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.executors.a2a; +package org.openworkflow.sdk.impl.executors.a2a; import java.time.Instant; import java.util.Map; @@ -22,13 +22,13 @@ import java.util.function.Supplier; import org.a2aproject.sdk.spec.Message; import org.a2aproject.sdk.spec.Task; -import org.openworkflow.impl.WorkflowContext; -import org.openworkflow.impl.WorkflowError; -import org.openworkflow.impl.WorkflowException; -import org.openworkflow.impl.WorkflowModel; -import org.openworkflow.impl.WorkflowModelFactory; -import org.openworkflow.impl.WorkflowPosition; -import org.openworkflow.types.Errors; +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/org/openworkflow/impl/executors/a2a/CancelTaskDispatcher.java b/impl/a2a/src/main/java/org/openworkflow/sdk/impl/executors/a2a/CancelTaskDispatcher.java similarity index 85% rename from impl/a2a/src/main/java/org/openworkflow/impl/executors/a2a/CancelTaskDispatcher.java rename to impl/a2a/src/main/java/org/openworkflow/sdk/impl/executors/a2a/CancelTaskDispatcher.java index f797b804b..38e7a7f8e 100644 --- a/impl/a2a/src/main/java/org/openworkflow/impl/executors/a2a/CancelTaskDispatcher.java +++ b/impl/a2a/src/main/java/org/openworkflow/sdk/impl/executors/a2a/CancelTaskDispatcher.java @@ -13,18 +13,18 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.executors.a2a; +package org.openworkflow.sdk.impl.executors.a2a; -import static org.openworkflow.impl.executors.a2a.A2AUtils.param; +import static org.openworkflow.sdk.impl.executors.a2a.A2AUtils.param; 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.impl.TaskContext; -import org.openworkflow.impl.WorkflowContext; -import org.openworkflow.impl.WorkflowModel; +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/org/openworkflow/impl/executors/a2a/GetTaskDispatcher.java b/impl/a2a/src/main/java/org/openworkflow/sdk/impl/executors/a2a/GetTaskDispatcher.java similarity index 85% rename from impl/a2a/src/main/java/org/openworkflow/impl/executors/a2a/GetTaskDispatcher.java rename to impl/a2a/src/main/java/org/openworkflow/sdk/impl/executors/a2a/GetTaskDispatcher.java index b70421c40..4401ff04b 100644 --- a/impl/a2a/src/main/java/org/openworkflow/impl/executors/a2a/GetTaskDispatcher.java +++ b/impl/a2a/src/main/java/org/openworkflow/sdk/impl/executors/a2a/GetTaskDispatcher.java @@ -13,18 +13,18 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.executors.a2a; +package org.openworkflow.sdk.impl.executors.a2a; -import static org.openworkflow.impl.executors.a2a.A2AUtils.param; +import static org.openworkflow.sdk.impl.executors.a2a.A2AUtils.param; 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.impl.TaskContext; -import org.openworkflow.impl.WorkflowContext; -import org.openworkflow.impl.WorkflowModel; +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/org/openworkflow/impl/executors/a2a/ListTaskDispatcher.java b/impl/a2a/src/main/java/org/openworkflow/sdk/impl/executors/a2a/ListTaskDispatcher.java similarity index 84% rename from impl/a2a/src/main/java/org/openworkflow/impl/executors/a2a/ListTaskDispatcher.java rename to impl/a2a/src/main/java/org/openworkflow/sdk/impl/executors/a2a/ListTaskDispatcher.java index 0afad15f4..5bcbd3993 100644 --- a/impl/a2a/src/main/java/org/openworkflow/impl/executors/a2a/ListTaskDispatcher.java +++ b/impl/a2a/src/main/java/org/openworkflow/sdk/impl/executors/a2a/ListTaskDispatcher.java @@ -13,10 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.executors.a2a; +package org.openworkflow.sdk.impl.executors.a2a; -import static org.openworkflow.impl.executors.a2a.A2AUtils.enumParam; -import static org.openworkflow.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 java.time.Instant; import java.util.Map; @@ -27,11 +27,11 @@ import org.a2aproject.sdk.spec.AgentCard; import org.a2aproject.sdk.spec.ListTasksParams; import org.a2aproject.sdk.spec.TaskState; -import org.openworkflow.impl.TaskContext; -import org.openworkflow.impl.WorkflowContext; -import org.openworkflow.impl.WorkflowModel; -import org.openworkflow.impl.WorkflowModelCollection; -import org.openworkflow.impl.WorkflowModelFactory; +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/org/openworkflow/impl/executors/a2a/MessageConsumer.java b/impl/a2a/src/main/java/org/openworkflow/sdk/impl/executors/a2a/MessageConsumer.java similarity index 85% rename from impl/a2a/src/main/java/org/openworkflow/impl/executors/a2a/MessageConsumer.java rename to impl/a2a/src/main/java/org/openworkflow/sdk/impl/executors/a2a/MessageConsumer.java index 4893a13c2..b3f69d2a3 100644 --- a/impl/a2a/src/main/java/org/openworkflow/impl/executors/a2a/MessageConsumer.java +++ b/impl/a2a/src/main/java/org/openworkflow/sdk/impl/executors/a2a/MessageConsumer.java @@ -13,15 +13,15 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.executors.a2a; +package org.openworkflow.sdk.impl.executors.a2a; 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.impl.WorkflowDefinition; -import org.openworkflow.impl.WorkflowModel; -import org.openworkflow.impl.WorkflowModelFactory; +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/org/openworkflow/impl/executors/a2a/MessageConsumerFactory.java b/impl/a2a/src/main/java/org/openworkflow/sdk/impl/executors/a2a/MessageConsumerFactory.java similarity index 86% rename from impl/a2a/src/main/java/org/openworkflow/impl/executors/a2a/MessageConsumerFactory.java rename to impl/a2a/src/main/java/org/openworkflow/sdk/impl/executors/a2a/MessageConsumerFactory.java index c7c91c6c3..14afb1a86 100644 --- a/impl/a2a/src/main/java/org/openworkflow/impl/executors/a2a/MessageConsumerFactory.java +++ b/impl/a2a/src/main/java/org/openworkflow/sdk/impl/executors/a2a/MessageConsumerFactory.java @@ -13,13 +13,13 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.executors.a2a; +package org.openworkflow.sdk.impl.executors.a2a; import java.util.concurrent.CompletableFuture; import java.util.function.Consumer; -import org.openworkflow.impl.TaskContext; -import org.openworkflow.impl.WorkflowContext; -import org.openworkflow.impl.WorkflowModel; +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/org/openworkflow/impl/executors/a2a/MessageDispatcher.java b/impl/a2a/src/main/java/org/openworkflow/sdk/impl/executors/a2a/MessageDispatcher.java similarity index 88% rename from impl/a2a/src/main/java/org/openworkflow/impl/executors/a2a/MessageDispatcher.java rename to impl/a2a/src/main/java/org/openworkflow/sdk/impl/executors/a2a/MessageDispatcher.java index 4642ca31f..0d23b9e8f 100644 --- a/impl/a2a/src/main/java/org/openworkflow/impl/executors/a2a/MessageDispatcher.java +++ b/impl/a2a/src/main/java/org/openworkflow/sdk/impl/executors/a2a/MessageDispatcher.java @@ -13,11 +13,11 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.executors.a2a; +package org.openworkflow.sdk.impl.executors.a2a; -import static org.openworkflow.impl.executors.a2a.A2AUtils.isInstanceOrThrow; -import static org.openworkflow.impl.executors.a2a.A2AUtils.optionalParam; -import static org.openworkflow.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 java.util.ArrayList; import java.util.Collection; @@ -31,9 +31,9 @@ import org.a2aproject.sdk.spec.Message.Role; import org.a2aproject.sdk.spec.Part; import org.a2aproject.sdk.spec.TextPart; -import org.openworkflow.impl.TaskContext; -import org.openworkflow.impl.WorkflowContext; -import org.openworkflow.impl.WorkflowModel; +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/org/openworkflow/impl/executors/a2a/MessageSendConsumer.java b/impl/a2a/src/main/java/org/openworkflow/sdk/impl/executors/a2a/MessageSendConsumer.java similarity index 90% rename from impl/a2a/src/main/java/org/openworkflow/impl/executors/a2a/MessageSendConsumer.java rename to impl/a2a/src/main/java/org/openworkflow/sdk/impl/executors/a2a/MessageSendConsumer.java index 4d8fe1e74..4a7d0fd60 100644 --- a/impl/a2a/src/main/java/org/openworkflow/impl/executors/a2a/MessageSendConsumer.java +++ b/impl/a2a/src/main/java/org/openworkflow/sdk/impl/executors/a2a/MessageSendConsumer.java @@ -13,15 +13,15 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.executors.a2a; +package org.openworkflow.sdk.impl.executors.a2a; 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.impl.WorkflowDefinition; -import org.openworkflow.impl.WorkflowModel; +import org.openworkflow.sdk.impl.WorkflowDefinition; +import org.openworkflow.sdk.impl.WorkflowModel; class MessageSendConsumer extends MessageConsumer { diff --git a/impl/a2a/src/main/java/org/openworkflow/impl/executors/a2a/MessageStreamConsumer.java b/impl/a2a/src/main/java/org/openworkflow/sdk/impl/executors/a2a/MessageStreamConsumer.java similarity index 90% rename from impl/a2a/src/main/java/org/openworkflow/impl/executors/a2a/MessageStreamConsumer.java rename to impl/a2a/src/main/java/org/openworkflow/sdk/impl/executors/a2a/MessageStreamConsumer.java index 2f45133bd..0011c11ab 100644 --- a/impl/a2a/src/main/java/org/openworkflow/impl/executors/a2a/MessageStreamConsumer.java +++ b/impl/a2a/src/main/java/org/openworkflow/sdk/impl/executors/a2a/MessageStreamConsumer.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.executors.a2a; +package org.openworkflow.sdk.impl.executors.a2a; import java.util.concurrent.CompletableFuture; import org.a2aproject.sdk.client.ClientEvent; @@ -22,10 +22,10 @@ import org.a2aproject.sdk.client.TaskUpdateEvent; import org.a2aproject.sdk.spec.AgentCard; import org.a2aproject.sdk.spec.Task; -import org.openworkflow.impl.WorkflowDefinition; -import org.openworkflow.impl.WorkflowException; -import org.openworkflow.impl.WorkflowModel; -import org.openworkflow.impl.WorkflowPosition; +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/org.openworkflow.impl.executors.CallableTaskBuilder b/impl/a2a/src/main/resources/META-INF/services/org.openworkflow.impl.executors.CallableTaskBuilder deleted file mode 100644 index f570e2a7c..000000000 --- a/impl/a2a/src/main/resources/META-INF/services/org.openworkflow.impl.executors.CallableTaskBuilder +++ /dev/null @@ -1 +0,0 @@ -org.openworkflow.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 da3f9fc82..b2b4bf384 100644 --- a/impl/container/pom.xml +++ b/impl/container/pom.xml @@ -2,7 +2,7 @@ 4.0.0 - org.openworkflow + org.openworkflow.sdk openworkflow-impl 8.0.0-SNAPSHOT @@ -11,11 +11,11 @@ - org.openworkflow + org.openworkflow.sdk openworkflow-impl-core - org.openworkflow + org.openworkflow.sdk openworkflow-types diff --git a/impl/container/src/main/java/org/openworkflow/impl/container/executors/CommandPropertySetter.java b/impl/container/src/main/java/org/openworkflow/sdk/impl/container/executors/CommandPropertySetter.java similarity index 75% rename from impl/container/src/main/java/org/openworkflow/impl/container/executors/CommandPropertySetter.java rename to impl/container/src/main/java/org/openworkflow/sdk/impl/container/executors/CommandPropertySetter.java index f4191d7ec..88eec28db 100644 --- a/impl/container/src/main/java/org/openworkflow/impl/container/executors/CommandPropertySetter.java +++ b/impl/container/src/main/java/org/openworkflow/sdk/impl/container/executors/CommandPropertySetter.java @@ -13,19 +13,19 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.container.executors; +package org.openworkflow.sdk.impl.container.executors; -import static org.openworkflow.impl.WorkflowUtils.isValid; +import static org.openworkflow.sdk.impl.WorkflowUtils.isValid; import com.github.dockerjava.api.command.CreateContainerCmd; import java.util.Optional; -import org.openworkflow.api.types.Container; -import org.openworkflow.impl.TaskContext; -import org.openworkflow.impl.WorkflowContext; -import org.openworkflow.impl.WorkflowDefinition; -import org.openworkflow.impl.WorkflowModel; -import org.openworkflow.impl.WorkflowUtils; -import org.openworkflow.impl.WorkflowValueResolver; +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/org/openworkflow/impl/container/executors/ContainerEnvironmentPropertySetter.java b/impl/container/src/main/java/org/openworkflow/sdk/impl/container/executors/ContainerEnvironmentPropertySetter.java similarity index 81% rename from impl/container/src/main/java/org/openworkflow/impl/container/executors/ContainerEnvironmentPropertySetter.java rename to impl/container/src/main/java/org/openworkflow/sdk/impl/container/executors/ContainerEnvironmentPropertySetter.java index 9a7e346a1..eb360e084 100644 --- a/impl/container/src/main/java/org/openworkflow/impl/container/executors/ContainerEnvironmentPropertySetter.java +++ b/impl/container/src/main/java/org/openworkflow/sdk/impl/container/executors/ContainerEnvironmentPropertySetter.java @@ -13,18 +13,18 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.container.executors; +package org.openworkflow.sdk.impl.container.executors; import com.github.dockerjava.api.command.CreateContainerCmd; import java.util.Map; import java.util.Optional; -import org.openworkflow.api.types.Container; -import org.openworkflow.impl.TaskContext; -import org.openworkflow.impl.WorkflowContext; -import org.openworkflow.impl.WorkflowDefinition; -import org.openworkflow.impl.WorkflowModel; -import org.openworkflow.impl.WorkflowUtils; -import org.openworkflow.impl.WorkflowValueResolver; +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/org/openworkflow/impl/container/executors/ContainerPropertySetter.java b/impl/container/src/main/java/org/openworkflow/sdk/impl/container/executors/ContainerPropertySetter.java similarity index 81% rename from impl/container/src/main/java/org/openworkflow/impl/container/executors/ContainerPropertySetter.java rename to impl/container/src/main/java/org/openworkflow/sdk/impl/container/executors/ContainerPropertySetter.java index afbdeb0aa..c03d4299c 100644 --- a/impl/container/src/main/java/org/openworkflow/impl/container/executors/ContainerPropertySetter.java +++ b/impl/container/src/main/java/org/openworkflow/sdk/impl/container/executors/ContainerPropertySetter.java @@ -13,12 +13,12 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.container.executors; +package org.openworkflow.sdk.impl.container.executors; import com.github.dockerjava.api.command.CreateContainerCmd; -import org.openworkflow.impl.TaskContext; -import org.openworkflow.impl.WorkflowContext; -import org.openworkflow.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/org/openworkflow/impl/container/executors/ContainerRunner.java b/impl/container/src/main/java/org/openworkflow/sdk/impl/container/executors/ContainerRunner.java similarity index 93% rename from impl/container/src/main/java/org/openworkflow/impl/container/executors/ContainerRunner.java rename to impl/container/src/main/java/org/openworkflow/sdk/impl/container/executors/ContainerRunner.java index 053038002..c4d706c9e 100644 --- a/impl/container/src/main/java/org/openworkflow/impl/container/executors/ContainerRunner.java +++ b/impl/container/src/main/java/org/openworkflow/sdk/impl/container/executors/ContainerRunner.java @@ -13,10 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.container.executors; +package org.openworkflow.sdk.impl.container.executors; -import static org.openworkflow.api.types.ContainerLifetime.*; -import static org.openworkflow.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; @@ -36,13 +36,13 @@ import java.util.concurrent.TimeUnit; import java.util.concurrent.locks.Lock; import java.util.concurrent.locks.ReentrantLock; -import org.openworkflow.api.types.ContainerLifetime.ContainerCleanupPolicy; -import org.openworkflow.impl.TaskContext; -import org.openworkflow.impl.WorkflowContext; -import org.openworkflow.impl.WorkflowModel; -import org.openworkflow.impl.WorkflowUtils; -import org.openworkflow.impl.WorkflowValueResolver; -import org.openworkflow.impl.executors.CallableTask; +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/org/openworkflow/impl/container/executors/LifetimePropertySetter.java b/impl/container/src/main/java/org/openworkflow/sdk/impl/container/executors/LifetimePropertySetter.java similarity index 81% rename from impl/container/src/main/java/org/openworkflow/impl/container/executors/LifetimePropertySetter.java rename to impl/container/src/main/java/org/openworkflow/sdk/impl/container/executors/LifetimePropertySetter.java index a8956418c..a2ec55699 100644 --- a/impl/container/src/main/java/org/openworkflow/impl/container/executors/LifetimePropertySetter.java +++ b/impl/container/src/main/java/org/openworkflow/sdk/impl/container/executors/LifetimePropertySetter.java @@ -13,15 +13,15 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.container.executors; +package org.openworkflow.sdk.impl.container.executors; -import static org.openworkflow.api.types.ContainerLifetime.*; +import static org.openworkflow.sdk.api.types.ContainerLifetime.*; import com.github.dockerjava.api.command.CreateContainerCmd; -import org.openworkflow.api.types.Container; -import org.openworkflow.impl.TaskContext; -import org.openworkflow.impl.WorkflowContext; -import org.openworkflow.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/org/openworkflow/impl/container/executors/NamePropertySetter.java b/impl/container/src/main/java/org/openworkflow/sdk/impl/container/executors/NamePropertySetter.java similarity index 76% rename from impl/container/src/main/java/org/openworkflow/impl/container/executors/NamePropertySetter.java rename to impl/container/src/main/java/org/openworkflow/sdk/impl/container/executors/NamePropertySetter.java index 53f66cee5..dc3ae2de9 100644 --- a/impl/container/src/main/java/org/openworkflow/impl/container/executors/NamePropertySetter.java +++ b/impl/container/src/main/java/org/openworkflow/sdk/impl/container/executors/NamePropertySetter.java @@ -13,19 +13,19 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.container.executors; +package org.openworkflow.sdk.impl.container.executors; -import static org.openworkflow.impl.WorkflowUtils.isValid; +import static org.openworkflow.sdk.impl.WorkflowUtils.isValid; import com.github.dockerjava.api.command.CreateContainerCmd; import java.util.Optional; -import org.openworkflow.api.types.Container; -import org.openworkflow.impl.TaskContext; -import org.openworkflow.impl.WorkflowContext; -import org.openworkflow.impl.WorkflowDefinition; -import org.openworkflow.impl.WorkflowModel; -import org.openworkflow.impl.WorkflowUtils; -import org.openworkflow.impl.WorkflowValueResolver; +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/org/openworkflow/impl/container/executors/PortsPropertySetter.java b/impl/container/src/main/java/org/openworkflow/sdk/impl/container/executors/PortsPropertySetter.java similarity index 90% rename from impl/container/src/main/java/org/openworkflow/impl/container/executors/PortsPropertySetter.java rename to impl/container/src/main/java/org/openworkflow/sdk/impl/container/executors/PortsPropertySetter.java index 42771e6f0..302b2b287 100644 --- a/impl/container/src/main/java/org/openworkflow/impl/container/executors/PortsPropertySetter.java +++ b/impl/container/src/main/java/org/openworkflow/sdk/impl/container/executors/PortsPropertySetter.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.container.executors; +package org.openworkflow.sdk.impl.container.executors; import com.github.dockerjava.api.command.CreateContainerCmd; import com.github.dockerjava.api.model.ExposedPort; @@ -21,10 +21,10 @@ import java.util.ArrayList; import java.util.List; import java.util.Map; -import org.openworkflow.api.types.Container; -import org.openworkflow.impl.TaskContext; -import org.openworkflow.impl.WorkflowContext; -import org.openworkflow.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 PortsPropertySetter implements ContainerPropertySetter { diff --git a/impl/container/src/main/java/org/openworkflow/impl/container/executors/RunContainerExecutorBuilder.java b/impl/container/src/main/java/org/openworkflow/sdk/impl/container/executors/RunContainerExecutorBuilder.java similarity index 76% rename from impl/container/src/main/java/org/openworkflow/impl/container/executors/RunContainerExecutorBuilder.java rename to impl/container/src/main/java/org/openworkflow/sdk/impl/container/executors/RunContainerExecutorBuilder.java index 23fa41336..f1b4b5cad 100644 --- a/impl/container/src/main/java/org/openworkflow/impl/container/executors/RunContainerExecutorBuilder.java +++ b/impl/container/src/main/java/org/openworkflow/sdk/impl/container/executors/RunContainerExecutorBuilder.java @@ -13,23 +13,23 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.container.executors; +package org.openworkflow.sdk.impl.container.executors; import java.time.Duration; import java.util.ArrayList; import java.util.Collection; import java.util.Optional; -import org.openworkflow.api.types.Container; -import org.openworkflow.api.types.ContainerLifetime; -import org.openworkflow.api.types.ContainerLifetime.ContainerCleanupPolicy; -import org.openworkflow.api.types.RunContainer; -import org.openworkflow.api.types.RunTaskConfiguration; -import org.openworkflow.api.types.TimeoutAfter; -import org.openworkflow.impl.WorkflowDefinition; -import org.openworkflow.impl.WorkflowUtils; -import org.openworkflow.impl.WorkflowValueResolver; -import org.openworkflow.impl.executors.CallableTask; -import org.openworkflow.impl.executors.RunnableTaskBuilder; +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/org/openworkflow/impl/container/executors/VolumesPropertySetter.java b/impl/container/src/main/java/org/openworkflow/sdk/impl/container/executors/VolumesPropertySetter.java similarity index 85% rename from impl/container/src/main/java/org/openworkflow/impl/container/executors/VolumesPropertySetter.java rename to impl/container/src/main/java/org/openworkflow/sdk/impl/container/executors/VolumesPropertySetter.java index bd2f49b3d..dedae00c4 100644 --- a/impl/container/src/main/java/org/openworkflow/impl/container/executors/VolumesPropertySetter.java +++ b/impl/container/src/main/java/org/openworkflow/sdk/impl/container/executors/VolumesPropertySetter.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.container.executors; +package org.openworkflow.sdk.impl.container.executors; import com.github.dockerjava.api.command.CreateContainerCmd; import com.github.dockerjava.api.model.Bind; @@ -22,13 +22,13 @@ import java.util.Collection; import java.util.Map; import java.util.Objects; -import org.openworkflow.api.types.Container; -import org.openworkflow.impl.TaskContext; -import org.openworkflow.impl.WorkflowContext; -import org.openworkflow.impl.WorkflowDefinition; -import org.openworkflow.impl.WorkflowModel; -import org.openworkflow.impl.WorkflowUtils; -import org.openworkflow.impl.WorkflowValueResolver; +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/org.openworkflow.impl.executors.RunnableTaskBuilder b/impl/container/src/main/resources/META-INF/services/org.openworkflow.impl.executors.RunnableTaskBuilder deleted file mode 100644 index d1d01e619..000000000 --- a/impl/container/src/main/resources/META-INF/services/org.openworkflow.impl.executors.RunnableTaskBuilder +++ /dev/null @@ -1 +0,0 @@ -org.openworkflow.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 fed61f375..1001d74f7 100644 --- a/impl/core/pom.xml +++ b/impl/core/pom.xml @@ -1,7 +1,7 @@ 4.0.0 - org.openworkflow + org.openworkflow.sdk openworkflow-impl 8.0.0-SNAPSHOT @@ -9,7 +9,7 @@ Open Workflow :: Impl :: Core - org.openworkflow + org.openworkflow.sdk openworkflow-types diff --git a/impl/core/src/main/java/org/openworkflow/impl/AbstractWorkflowModel.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/AbstractWorkflowModel.java similarity index 98% rename from impl/core/src/main/java/org/openworkflow/impl/AbstractWorkflowModel.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/AbstractWorkflowModel.java index 7be8278bb..9b414c7e7 100644 --- a/impl/core/src/main/java/org/openworkflow/impl/AbstractWorkflowModel.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/AbstractWorkflowModel.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl; +package org.openworkflow.sdk.impl; import java.math.BigDecimal; import java.math.BigInteger; diff --git a/impl/core/src/main/java/org/openworkflow/impl/AuthorizationDescriptor.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/AuthorizationDescriptor.java similarity index 95% rename from impl/core/src/main/java/org/openworkflow/impl/AuthorizationDescriptor.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/AuthorizationDescriptor.java index 2ebbc59aa..661eba818 100644 --- a/impl/core/src/main/java/org/openworkflow/impl/AuthorizationDescriptor.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/AuthorizationDescriptor.java @@ -13,6 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl; +package org.openworkflow.sdk.impl; public record AuthorizationDescriptor(String scheme, String parameter) {} diff --git a/impl/core/src/main/java/org/openworkflow/impl/CollectionConversionUtils.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/CollectionConversionUtils.java similarity index 98% rename from impl/core/src/main/java/org/openworkflow/impl/CollectionConversionUtils.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/CollectionConversionUtils.java index e0672aa90..643b7ee63 100644 --- a/impl/core/src/main/java/org/openworkflow/impl/CollectionConversionUtils.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/CollectionConversionUtils.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl; +package org.openworkflow.sdk.impl; import java.lang.reflect.Array; import java.util.ArrayList; diff --git a/impl/core/src/main/java/org/openworkflow/impl/CompositeExpressionFactory.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/CompositeExpressionFactory.java similarity index 93% rename from impl/core/src/main/java/org/openworkflow/impl/CompositeExpressionFactory.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/CompositeExpressionFactory.java index 2d2da3c31..d0f41112f 100644 --- a/impl/core/src/main/java/org/openworkflow/impl/CompositeExpressionFactory.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/CompositeExpressionFactory.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl; +package org.openworkflow.sdk.impl; import io.cloudevents.CloudEventData; import java.time.OffsetDateTime; @@ -21,9 +21,9 @@ import java.util.Map; import java.util.Optional; import java.util.function.Function; -import org.openworkflow.api.types.TaskBase; -import org.openworkflow.impl.expressions.ExpressionDescriptor; -import org.openworkflow.impl.expressions.ExpressionFactory; +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/org/openworkflow/impl/DefaultExecutorServiceFactory.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/DefaultExecutorServiceFactory.java similarity index 96% rename from impl/core/src/main/java/org/openworkflow/impl/DefaultExecutorServiceFactory.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/DefaultExecutorServiceFactory.java index 5efd95d0c..958803503 100644 --- a/impl/core/src/main/java/org/openworkflow/impl/DefaultExecutorServiceFactory.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/DefaultExecutorServiceFactory.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl; +package org.openworkflow.sdk.impl; import java.util.concurrent.ExecutorService; import java.util.concurrent.Executors; diff --git a/impl/core/src/main/java/org/openworkflow/impl/ExecutorServiceFactory.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/ExecutorServiceFactory.java similarity index 95% rename from impl/core/src/main/java/org/openworkflow/impl/ExecutorServiceFactory.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/ExecutorServiceFactory.java index 55fc86096..79707fc18 100644 --- a/impl/core/src/main/java/org/openworkflow/impl/ExecutorServiceFactory.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/ExecutorServiceFactory.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl; +package org.openworkflow.sdk.impl; import java.util.concurrent.ExecutorService; import java.util.function.Supplier; diff --git a/impl/core/src/main/java/org/openworkflow/impl/FunctionReader.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/FunctionReader.java similarity index 83% rename from impl/core/src/main/java/org/openworkflow/impl/FunctionReader.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/FunctionReader.java index 577c3adcc..64f2ea601 100644 --- a/impl/core/src/main/java/org/openworkflow/impl/FunctionReader.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/FunctionReader.java @@ -13,10 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl; +package org.openworkflow.sdk.impl; import java.util.function.Function; -import org.openworkflow.api.types.Task; -import org.openworkflow.impl.resources.ExternalResourceHandler; +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/org/openworkflow/impl/LifecycleEvents.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/LifecycleEvents.java similarity index 98% rename from impl/core/src/main/java/org/openworkflow/impl/LifecycleEvents.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/LifecycleEvents.java index 063a2f04c..3a05a69e9 100644 --- a/impl/core/src/main/java/org/openworkflow/impl/LifecycleEvents.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/LifecycleEvents.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl; +package org.openworkflow.sdk.impl; /** * @see {} diff --git a/impl/core/src/main/java/org/openworkflow/impl/SchedulerListener.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/SchedulerListener.java similarity index 88% rename from impl/core/src/main/java/org/openworkflow/impl/SchedulerListener.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/SchedulerListener.java index 584e32ba2..d50402954 100644 --- a/impl/core/src/main/java/org/openworkflow/impl/SchedulerListener.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/SchedulerListener.java @@ -13,16 +13,16 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl; +package org.openworkflow.sdk.impl; import java.time.Duration; import java.util.Map; import java.util.concurrent.CompletableFuture; import java.util.concurrent.ConcurrentHashMap; -import org.openworkflow.impl.lifecycle.WorkflowCompletedEvent; -import org.openworkflow.impl.lifecycle.WorkflowExecutionCompletableListener; -import org.openworkflow.impl.scheduler.Cancellable; -import org.openworkflow.impl.scheduler.WorkflowScheduler; +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/org/openworkflow/impl/ServicePriority.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/ServicePriority.java similarity index 96% rename from impl/core/src/main/java/org/openworkflow/impl/ServicePriority.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/ServicePriority.java index 3b002f2b2..4bbfcd8a6 100644 --- a/impl/core/src/main/java/org/openworkflow/impl/ServicePriority.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/ServicePriority.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl; +package org.openworkflow.sdk.impl; public interface ServicePriority extends Comparable { diff --git a/impl/core/src/main/java/org/openworkflow/impl/StringBufferWorkflowPosition.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/StringBufferWorkflowPosition.java similarity index 98% rename from impl/core/src/main/java/org/openworkflow/impl/StringBufferWorkflowPosition.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/StringBufferWorkflowPosition.java index 5178d8a6a..3be0fe2b8 100644 --- a/impl/core/src/main/java/org/openworkflow/impl/StringBufferWorkflowPosition.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/StringBufferWorkflowPosition.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl; +package org.openworkflow.sdk.impl; public class StringBufferWorkflowPosition implements WorkflowMutablePosition { diff --git a/impl/core/src/main/java/org/openworkflow/impl/TaskContext.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/TaskContext.java similarity index 97% rename from impl/core/src/main/java/org/openworkflow/impl/TaskContext.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/TaskContext.java index ee0e0e3fa..39778b649 100644 --- a/impl/core/src/main/java/org/openworkflow/impl/TaskContext.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/TaskContext.java @@ -13,14 +13,14 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl; +package org.openworkflow.sdk.impl; import java.time.Instant; import java.util.HashMap; import java.util.Map; import java.util.Optional; -import org.openworkflow.api.types.TaskBase; -import org.openworkflow.impl.executors.TransitionInfo; +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/org/openworkflow/impl/TaskContextData.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/TaskContextData.java similarity index 92% rename from impl/core/src/main/java/org/openworkflow/impl/TaskContextData.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/TaskContextData.java index c03a7c197..a142fd551 100644 --- a/impl/core/src/main/java/org/openworkflow/impl/TaskContextData.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/TaskContextData.java @@ -13,10 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl; +package org.openworkflow.sdk.impl; import java.time.Instant; -import org.openworkflow.api.types.TaskBase; +import org.openworkflow.sdk.api.types.TaskBase; public interface TaskContextData { diff --git a/impl/core/src/main/java/org/openworkflow/impl/WorkflowApplication.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/WorkflowApplication.java similarity index 90% rename from impl/core/src/main/java/org/openworkflow/impl/WorkflowApplication.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/WorkflowApplication.java index afc686857..4a1152875 100644 --- a/impl/core/src/main/java/org/openworkflow/impl/WorkflowApplication.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/WorkflowApplication.java @@ -13,11 +13,11 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl; +package org.openworkflow.sdk.impl; -import static org.openworkflow.impl.WorkflowUtils.loadFirst; -import static org.openworkflow.impl.WorkflowUtils.safeClose; -import static org.openworkflow.impl.WorkflowUtils.safeShutdown; +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; @@ -40,44 +40,44 @@ import java.util.concurrent.ScheduledExecutorService; import java.util.function.Supplier; import java.util.stream.Collectors; -import org.openworkflow.api.types.SchemaInline; -import org.openworkflow.api.types.Workflow; -import org.openworkflow.impl.additional.NamedWorkflowAdditionalObject; -import org.openworkflow.impl.additional.WorkflowAdditionalObject; -import org.openworkflow.impl.auth.AuthProviderFactory; -import org.openworkflow.impl.auth.DefaultAuthProviderFactory; -import org.openworkflow.impl.config.ConfigManager; -import org.openworkflow.impl.config.ConfigSecretManager; -import org.openworkflow.impl.config.SecretManager; -import org.openworkflow.impl.config.SystemPropertyConfigManager; -import org.openworkflow.impl.events.CloudEventPredicateFactory; -import org.openworkflow.impl.events.DefaultCloudEventPredicateFactory; -import org.openworkflow.impl.events.EmitSourceResolver; -import org.openworkflow.impl.events.EventConsumer; -import org.openworkflow.impl.events.EventPublisher; -import org.openworkflow.impl.events.InMemoryEvents; -import org.openworkflow.impl.executors.CallableTaskProxyBuilder; -import org.openworkflow.impl.executors.DefaultTaskExecutorFactory; -import org.openworkflow.impl.executors.TaskExecutorFactory; -import org.openworkflow.impl.expressions.ExpressionFactory; -import org.openworkflow.impl.expressions.RuntimeDescriptor; -import org.openworkflow.impl.lifecycle.WorkflowExecutionCompletableListener; -import org.openworkflow.impl.lifecycle.WorkflowExecutionListener; -import org.openworkflow.impl.lifecycle.WorkflowExecutionListenerAdapter; -import org.openworkflow.impl.lifecycle.ce.DefaultLifeCycleCloudEventFactory; -import org.openworkflow.impl.lifecycle.ce.WorkflowLifeCycleCloudEventFactory; -import org.openworkflow.impl.resources.DefaultResourceLoaderFactory; -import org.openworkflow.impl.resources.ExternalResourceHandler; -import org.openworkflow.impl.resources.ResourceLoaderFactory; -import org.openworkflow.impl.resources.URITemplateResolver; -import org.openworkflow.impl.scheduler.AllStrategyCorrelationInfoFactory; -import org.openworkflow.impl.scheduler.CronResolver; -import org.openworkflow.impl.scheduler.CronResolverFactory; -import org.openworkflow.impl.scheduler.DefaultWorkflowScheduler; -import org.openworkflow.impl.scheduler.InMemoryAllStrategyCorrelationInfo; -import org.openworkflow.impl.scheduler.WorkflowScheduler; -import org.openworkflow.impl.schema.SchemaValidator; -import org.openworkflow.impl.schema.SchemaValidatorFactory; +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 { diff --git a/impl/core/src/main/java/org/openworkflow/impl/WorkflowContext.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/WorkflowContext.java similarity index 97% rename from impl/core/src/main/java/org/openworkflow/impl/WorkflowContext.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/WorkflowContext.java index 5afcd5971..d2cf5dfee 100644 --- a/impl/core/src/main/java/org/openworkflow/impl/WorkflowContext.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/WorkflowContext.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl; +package org.openworkflow.sdk.impl; public class WorkflowContext implements WorkflowContextData { private final WorkflowDefinition definition; diff --git a/impl/core/src/main/java/org/openworkflow/impl/WorkflowContextData.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/WorkflowContextData.java similarity index 95% rename from impl/core/src/main/java/org/openworkflow/impl/WorkflowContextData.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/WorkflowContextData.java index 385522bac..df404a6be 100644 --- a/impl/core/src/main/java/org/openworkflow/impl/WorkflowContextData.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/WorkflowContextData.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl; +package org.openworkflow.sdk.impl; public interface WorkflowContextData { diff --git a/impl/core/src/main/java/org/openworkflow/impl/WorkflowDecorator.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/WorkflowDecorator.java similarity index 97% rename from impl/core/src/main/java/org/openworkflow/impl/WorkflowDecorator.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/WorkflowDecorator.java index 280a15ceb..03907573f 100644 --- a/impl/core/src/main/java/org/openworkflow/impl/WorkflowDecorator.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/WorkflowDecorator.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl; +package org.openworkflow.sdk.impl; /** * Parent interface for decorating object requests with additional modifications.
diff --git a/impl/core/src/main/java/org/openworkflow/impl/WorkflowDefinition.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/WorkflowDefinition.java similarity index 87% rename from impl/core/src/main/java/org/openworkflow/impl/WorkflowDefinition.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/WorkflowDefinition.java index 37bfa1d33..d4fecfe3c 100644 --- a/impl/core/src/main/java/org/openworkflow/impl/WorkflowDefinition.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/WorkflowDefinition.java @@ -13,12 +13,12 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl; +package org.openworkflow.sdk.impl; -import static org.openworkflow.impl.WorkflowUtils.buildWorkflowFilter; -import static org.openworkflow.impl.WorkflowUtils.getSchemaValidator; -import static org.openworkflow.impl.WorkflowUtils.safeClose; -import static org.openworkflow.impl.WorkflowUtils.validationError; +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; @@ -29,18 +29,18 @@ import java.util.Objects; import java.util.Optional; import java.util.concurrent.ConcurrentHashMap; -import org.openworkflow.api.types.Input; -import org.openworkflow.api.types.Output; -import org.openworkflow.api.types.Schedule; -import org.openworkflow.api.types.Workflow; -import org.openworkflow.impl.events.EventRegistrationBuilderInfo; -import org.openworkflow.impl.executors.TaskExecutor; -import org.openworkflow.impl.executors.TaskExecutorHelper; -import org.openworkflow.impl.resources.ResourceLoader; -import org.openworkflow.impl.scheduler.Cancellable; -import org.openworkflow.impl.scheduler.ScheduledEventConsumer; -import org.openworkflow.impl.scheduler.WorkflowScheduler; -import org.openworkflow.impl.schema.SchemaValidator; +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/org/openworkflow/impl/WorkflowDefinitionData.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/WorkflowDefinitionData.java similarity index 90% rename from impl/core/src/main/java/org/openworkflow/impl/WorkflowDefinitionData.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/WorkflowDefinitionData.java index 0fed35705..56a4d2c2c 100644 --- a/impl/core/src/main/java/org/openworkflow/impl/WorkflowDefinitionData.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/WorkflowDefinitionData.java @@ -13,9 +13,9 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl; +package org.openworkflow.sdk.impl; -import org.openworkflow.api.types.Workflow; +import org.openworkflow.sdk.api.types.Workflow; public interface WorkflowDefinitionData { diff --git a/impl/core/src/main/java/org/openworkflow/impl/WorkflowDefinitionId.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/WorkflowDefinitionId.java similarity index 89% rename from impl/core/src/main/java/org/openworkflow/impl/WorkflowDefinitionId.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/WorkflowDefinitionId.java index ad57658b8..bcbc99beb 100644 --- a/impl/core/src/main/java/org/openworkflow/impl/WorkflowDefinitionId.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/WorkflowDefinitionId.java @@ -13,11 +13,11 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl; +package org.openworkflow.sdk.impl; -import org.openworkflow.api.types.Document; -import org.openworkflow.api.types.Workflow; -import org.openworkflow.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/org/openworkflow/impl/WorkflowError.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/WorkflowError.java similarity index 95% rename from impl/core/src/main/java/org/openworkflow/impl/WorkflowError.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/WorkflowError.java index 15990d31b..1acbef092 100644 --- a/impl/core/src/main/java/org/openworkflow/impl/WorkflowError.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/WorkflowError.java @@ -13,13 +13,13 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl; +package org.openworkflow.sdk.impl; import java.io.PrintWriter; import java.io.StringWriter; -import org.openworkflow.impl.lifecycle.TaskFailedEvent; -import org.openworkflow.impl.lifecycle.WorkflowFailedEvent; -import org.openworkflow.types.Errors; +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) { diff --git a/impl/core/src/main/java/org/openworkflow/impl/WorkflowException.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/WorkflowException.java similarity index 96% rename from impl/core/src/main/java/org/openworkflow/impl/WorkflowException.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/WorkflowException.java index 25de7a612..caffdbb95 100644 --- a/impl/core/src/main/java/org/openworkflow/impl/WorkflowException.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/WorkflowException.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl; +package org.openworkflow.sdk.impl; public class WorkflowException extends RuntimeException { diff --git a/impl/core/src/main/java/org/openworkflow/impl/WorkflowFilter.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/WorkflowFilter.java similarity index 95% rename from impl/core/src/main/java/org/openworkflow/impl/WorkflowFilter.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/WorkflowFilter.java index fc3cedb2a..b5f6d08ba 100644 --- a/impl/core/src/main/java/org/openworkflow/impl/WorkflowFilter.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/WorkflowFilter.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl; +package org.openworkflow.sdk.impl; @FunctionalInterface public interface WorkflowFilter { diff --git a/impl/core/src/main/java/org/openworkflow/impl/WorkflowInstance.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/WorkflowInstance.java similarity index 98% rename from impl/core/src/main/java/org/openworkflow/impl/WorkflowInstance.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/WorkflowInstance.java index 8d0d340e3..d9a9fc857 100644 --- a/impl/core/src/main/java/org/openworkflow/impl/WorkflowInstance.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/WorkflowInstance.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl; +package org.openworkflow.sdk.impl; import java.util.Optional; import java.util.concurrent.CompletableFuture; diff --git a/impl/core/src/main/java/org/openworkflow/impl/WorkflowInstanceData.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/WorkflowInstanceData.java similarity index 96% rename from impl/core/src/main/java/org/openworkflow/impl/WorkflowInstanceData.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/WorkflowInstanceData.java index 303896e3a..8e6c152e6 100644 --- a/impl/core/src/main/java/org/openworkflow/impl/WorkflowInstanceData.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/WorkflowInstanceData.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl; +package org.openworkflow.sdk.impl; import java.time.Instant; import java.util.Map; diff --git a/impl/core/src/main/java/org/openworkflow/impl/WorkflowInstanceIdFactory.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/WorkflowInstanceIdFactory.java similarity index 95% rename from impl/core/src/main/java/org/openworkflow/impl/WorkflowInstanceIdFactory.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/WorkflowInstanceIdFactory.java index 2095c8958..1d8976b07 100644 --- a/impl/core/src/main/java/org/openworkflow/impl/WorkflowInstanceIdFactory.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/WorkflowInstanceIdFactory.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl; +package org.openworkflow.sdk.impl; import java.util.function.Supplier; diff --git a/impl/core/src/main/java/org/openworkflow/impl/WorkflowModel.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/WorkflowModel.java similarity index 97% rename from impl/core/src/main/java/org/openworkflow/impl/WorkflowModel.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/WorkflowModel.java index e5bf6b574..efb817a0d 100644 --- a/impl/core/src/main/java/org/openworkflow/impl/WorkflowModel.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/WorkflowModel.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl; +package org.openworkflow.sdk.impl; import java.time.OffsetDateTime; import java.util.Collection; diff --git a/impl/core/src/main/java/org/openworkflow/impl/WorkflowModelCollection.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/WorkflowModelCollection.java similarity index 97% rename from impl/core/src/main/java/org/openworkflow/impl/WorkflowModelCollection.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/WorkflowModelCollection.java index df0d987b2..58aeb0bcd 100644 --- a/impl/core/src/main/java/org/openworkflow/impl/WorkflowModelCollection.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/WorkflowModelCollection.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl; +package org.openworkflow.sdk.impl; import io.cloudevents.CloudEventData; import java.time.OffsetDateTime; diff --git a/impl/core/src/main/java/org/openworkflow/impl/WorkflowModelFactory.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/WorkflowModelFactory.java similarity index 98% rename from impl/core/src/main/java/org/openworkflow/impl/WorkflowModelFactory.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/WorkflowModelFactory.java index 468e7e5af..546f20af8 100644 --- a/impl/core/src/main/java/org/openworkflow/impl/WorkflowModelFactory.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/WorkflowModelFactory.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl; +package org.openworkflow.sdk.impl; import io.cloudevents.CloudEvent; import io.cloudevents.CloudEventData; diff --git a/impl/core/src/main/java/org/openworkflow/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/org/openworkflow/impl/WorkflowMutableInstance.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/WorkflowMutableInstance.java index 9b9f3f8ed..c14f12d67 100644 --- a/impl/core/src/main/java/org/openworkflow/impl/WorkflowMutableInstance.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/WorkflowMutableInstance.java @@ -13,10 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl; +package org.openworkflow.sdk.impl; -import static org.openworkflow.impl.LifecycleEventsUtils.publishEvent; -import static org.openworkflow.impl.WorkflowUtils.validationError; +import static org.openworkflow.sdk.impl.LifecycleEventsUtils.publishEvent; +import static org.openworkflow.sdk.impl.WorkflowUtils.validationError; import java.time.Instant; import java.util.ArrayList; @@ -33,14 +33,14 @@ import java.util.concurrent.locks.ReentrantLock; import java.util.function.Function; import java.util.function.Supplier; -import org.openworkflow.impl.executors.TaskExecutorHelper; -import org.openworkflow.impl.lifecycle.WorkflowCancelledEvent; -import org.openworkflow.impl.lifecycle.WorkflowCompletedEvent; -import org.openworkflow.impl.lifecycle.WorkflowFailedEvent; -import org.openworkflow.impl.lifecycle.WorkflowResumedEvent; -import org.openworkflow.impl.lifecycle.WorkflowStartedEvent; -import org.openworkflow.impl.lifecycle.WorkflowStatusEvent; -import org.openworkflow.impl.lifecycle.WorkflowSuspendedEvent; +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/org/openworkflow/impl/WorkflowMutablePosition.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/WorkflowMutablePosition.java similarity index 96% rename from impl/core/src/main/java/org/openworkflow/impl/WorkflowMutablePosition.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/WorkflowMutablePosition.java index b9f7a7b8e..28cc3393e 100644 --- a/impl/core/src/main/java/org/openworkflow/impl/WorkflowMutablePosition.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/WorkflowMutablePosition.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl; +package org.openworkflow.sdk.impl; public interface WorkflowMutablePosition extends WorkflowPosition { WorkflowMutablePosition addProperty(String prop); diff --git a/impl/core/src/main/java/org/openworkflow/impl/WorkflowPosition.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/WorkflowPosition.java similarity index 95% rename from impl/core/src/main/java/org/openworkflow/impl/WorkflowPosition.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/WorkflowPosition.java index fc0e7fb67..4c5f9f5a1 100644 --- a/impl/core/src/main/java/org/openworkflow/impl/WorkflowPosition.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/WorkflowPosition.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl; +package org.openworkflow.sdk.impl; public interface WorkflowPosition { diff --git a/impl/core/src/main/java/org/openworkflow/impl/WorkflowPositionFactory.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/WorkflowPositionFactory.java similarity index 95% rename from impl/core/src/main/java/org/openworkflow/impl/WorkflowPositionFactory.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/WorkflowPositionFactory.java index b0837896f..315a54c0d 100644 --- a/impl/core/src/main/java/org/openworkflow/impl/WorkflowPositionFactory.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/WorkflowPositionFactory.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl; +package org.openworkflow.sdk.impl; import java.util.function.Supplier; diff --git a/impl/core/src/main/java/org/openworkflow/impl/WorkflowPredicate.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/WorkflowPredicate.java similarity index 95% rename from impl/core/src/main/java/org/openworkflow/impl/WorkflowPredicate.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/WorkflowPredicate.java index e2d39d67e..a3b1bb041 100644 --- a/impl/core/src/main/java/org/openworkflow/impl/WorkflowPredicate.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/WorkflowPredicate.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.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/org/openworkflow/impl/WorkflowStatus.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/WorkflowStatus.java similarity index 95% rename from impl/core/src/main/java/org/openworkflow/impl/WorkflowStatus.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/WorkflowStatus.java index 36db75455..be2c47032 100644 --- a/impl/core/src/main/java/org/openworkflow/impl/WorkflowStatus.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/WorkflowStatus.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl; +package org.openworkflow.sdk.impl; public enum WorkflowStatus { PENDING, diff --git a/impl/core/src/main/java/org/openworkflow/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/org/openworkflow/impl/WorkflowUtils.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/WorkflowUtils.java index 81752bd5d..b76a1a85a 100644 --- a/impl/core/src/main/java/org/openworkflow/impl/WorkflowUtils.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/WorkflowUtils.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl; +package org.openworkflow.sdk.impl; import java.net.URI; import java.net.URISyntaxException; @@ -24,24 +24,24 @@ import java.util.ServiceLoader; import java.util.concurrent.ExecutorService; import java.util.concurrent.TimeUnit; -import org.openworkflow.api.types.DurationInline; -import org.openworkflow.api.types.ExportAs; -import org.openworkflow.api.types.InputFrom; -import org.openworkflow.api.types.OutputAs; -import org.openworkflow.api.types.SchemaUnion; -import org.openworkflow.api.types.SecretBasedAuthenticationPolicy; -import org.openworkflow.api.types.TaskBase; -import org.openworkflow.api.types.TaskTimeout; -import org.openworkflow.api.types.Timeout; -import org.openworkflow.api.types.TimeoutAfter; -import org.openworkflow.api.types.UriTemplate; -import org.openworkflow.api.types.Workflow; -import org.openworkflow.impl.expressions.ExpressionDescriptor; -import org.openworkflow.impl.expressions.ExpressionFactory; -import org.openworkflow.impl.expressions.ExpressionUtils; -import org.openworkflow.impl.resources.ResourceLoader; -import org.openworkflow.impl.schema.SchemaValidator; -import org.openworkflow.impl.schema.SchemaValidatorFactory; +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/org/openworkflow/impl/WorkflowValueResolver.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/WorkflowValueResolver.java similarity index 95% rename from impl/core/src/main/java/org/openworkflow/impl/WorkflowValueResolver.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/WorkflowValueResolver.java index 6f2ebc9ca..a3c0a9363 100644 --- a/impl/core/src/main/java/org/openworkflow/impl/WorkflowValueResolver.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/WorkflowValueResolver.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.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/org/openworkflow/impl/additional/ConstantAdditionalObject.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/additional/ConstantAdditionalObject.java similarity index 85% rename from impl/core/src/main/java/org/openworkflow/impl/additional/ConstantAdditionalObject.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/additional/ConstantAdditionalObject.java index 780d9f06a..9297e9fbd 100644 --- a/impl/core/src/main/java/org/openworkflow/impl/additional/ConstantAdditionalObject.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/additional/ConstantAdditionalObject.java @@ -13,10 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.additional; +package org.openworkflow.sdk.impl.additional; -import org.openworkflow.impl.TaskContextData; -import org.openworkflow.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/org/openworkflow/impl/additional/NamedWorkflowAdditionalObject.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/additional/NamedWorkflowAdditionalObject.java similarity index 88% rename from impl/core/src/main/java/org/openworkflow/impl/additional/NamedWorkflowAdditionalObject.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/additional/NamedWorkflowAdditionalObject.java index 7d3719dac..756e84cb7 100644 --- a/impl/core/src/main/java/org/openworkflow/impl/additional/NamedWorkflowAdditionalObject.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/additional/NamedWorkflowAdditionalObject.java @@ -13,9 +13,9 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.additional; +package org.openworkflow.sdk.impl.additional; -import org.openworkflow.impl.NamedObject; +import org.openworkflow.sdk.impl.NamedObject; public interface NamedWorkflowAdditionalObject extends WorkflowAdditionalObject, NamedObject {} diff --git a/impl/core/src/main/java/org/openworkflow/impl/additional/SuppliedAdditionalObject.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/additional/SuppliedAdditionalObject.java similarity index 86% rename from impl/core/src/main/java/org/openworkflow/impl/additional/SuppliedAdditionalObject.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/additional/SuppliedAdditionalObject.java index d2d057d3e..6546f0661 100644 --- a/impl/core/src/main/java/org/openworkflow/impl/additional/SuppliedAdditionalObject.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/additional/SuppliedAdditionalObject.java @@ -13,11 +13,11 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.additional; +package org.openworkflow.sdk.impl.additional; import java.util.function.Supplier; -import org.openworkflow.impl.TaskContextData; -import org.openworkflow.impl.WorkflowContextData; +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/org/openworkflow/impl/additional/WorkflowAdditionalObject.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/additional/WorkflowAdditionalObject.java similarity index 83% rename from impl/core/src/main/java/org/openworkflow/impl/additional/WorkflowAdditionalObject.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/additional/WorkflowAdditionalObject.java index 10eacd53c..a2bb83a2a 100644 --- a/impl/core/src/main/java/org/openworkflow/impl/additional/WorkflowAdditionalObject.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/additional/WorkflowAdditionalObject.java @@ -13,11 +13,11 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.additional; +package org.openworkflow.sdk.impl.additional; import java.util.function.BiFunction; -import org.openworkflow.impl.TaskContextData; -import org.openworkflow.impl.WorkflowContextData; +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/org/openworkflow/impl/auth/AbstractAuthRequestBuilder.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/auth/AbstractAuthRequestBuilder.java similarity index 82% rename from impl/core/src/main/java/org/openworkflow/impl/auth/AbstractAuthRequestBuilder.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/auth/AbstractAuthRequestBuilder.java index dc8d7182a..a8b853fda 100644 --- a/impl/core/src/main/java/org/openworkflow/impl/auth/AbstractAuthRequestBuilder.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/auth/AbstractAuthRequestBuilder.java @@ -13,35 +13,35 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.auth; - -import static org.openworkflow.api.types.OAuth2AuthenticationDataClient.ClientAuthentication.CLIENT_SECRET_POST; -import static org.openworkflow.impl.WorkflowUtils.isValid; -import static org.openworkflow.impl.auth.AuthUtils.ACTOR; -import static org.openworkflow.impl.auth.AuthUtils.ACTOR_TOKEN; -import static org.openworkflow.impl.auth.AuthUtils.ACTOR_TOKEN_TYPE; -import static org.openworkflow.impl.auth.AuthUtils.AUDIENCES; -import static org.openworkflow.impl.auth.AuthUtils.AUTHENTICATION; -import static org.openworkflow.impl.auth.AuthUtils.CLIENT; -import static org.openworkflow.impl.auth.AuthUtils.ENCODING; -import static org.openworkflow.impl.auth.AuthUtils.REQUEST; -import static org.openworkflow.impl.auth.AuthUtils.SCOPES; -import static org.openworkflow.impl.auth.AuthUtils.SUBJECT; -import static org.openworkflow.impl.auth.AuthUtils.SUBJECT_TOKEN; -import static org.openworkflow.impl.auth.AuthUtils.SUBJECT_TOKEN_TYPE; -import static org.openworkflow.impl.auth.AuthUtils.TOKEN; -import static org.openworkflow.impl.auth.AuthUtils.TYPE; +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.api.types.OAuth2AuthenticationData; -import org.openworkflow.api.types.OAuth2AuthenticationDataClient; -import org.openworkflow.api.types.OAuth2TokenDefinition; -import org.openworkflow.impl.WorkflowApplication; -import org.openworkflow.impl.WorkflowUtils; +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/org/openworkflow/impl/auth/AccessTokenProvider.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/auth/AccessTokenProvider.java similarity index 81% rename from impl/core/src/main/java/org/openworkflow/impl/auth/AccessTokenProvider.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/auth/AccessTokenProvider.java index fd425574e..c1ef5f730 100644 --- a/impl/core/src/main/java/org/openworkflow/impl/auth/AccessTokenProvider.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/auth/AccessTokenProvider.java @@ -13,12 +13,12 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.auth; +package org.openworkflow.sdk.impl.auth; import java.util.concurrent.CompletableFuture; -import org.openworkflow.impl.TaskContext; -import org.openworkflow.impl.WorkflowContext; -import org.openworkflow.impl.WorkflowModel; +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/org/openworkflow/impl/auth/AccessTokenProviderFactory.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/auth/AccessTokenProviderFactory.java similarity index 90% rename from impl/core/src/main/java/org/openworkflow/impl/auth/AccessTokenProviderFactory.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/auth/AccessTokenProviderFactory.java index e5e1fe769..7eddaaf5c 100644 --- a/impl/core/src/main/java/org/openworkflow/impl/auth/AccessTokenProviderFactory.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/auth/AccessTokenProviderFactory.java @@ -13,10 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.auth; +package org.openworkflow.sdk.impl.auth; import java.util.List; -import org.openworkflow.impl.ServicePriority; +import org.openworkflow.sdk.impl.ServicePriority; public interface AccessTokenProviderFactory extends ServicePriority { diff --git a/impl/core/src/main/java/org/openworkflow/impl/auth/AuthProvider.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/auth/AuthProvider.java similarity index 82% rename from impl/core/src/main/java/org/openworkflow/impl/auth/AuthProvider.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/auth/AuthProvider.java index e7c29c1b6..ab36fa45d 100644 --- a/impl/core/src/main/java/org/openworkflow/impl/auth/AuthProvider.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/auth/AuthProvider.java @@ -13,13 +13,13 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.auth; +package org.openworkflow.sdk.impl.auth; import java.net.URI; import java.util.concurrent.CompletableFuture; -import org.openworkflow.impl.TaskContext; -import org.openworkflow.impl.WorkflowContext; -import org.openworkflow.impl.WorkflowModel; +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/org/openworkflow/impl/auth/AuthProviderFactory.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/auth/AuthProviderFactory.java similarity index 81% rename from impl/core/src/main/java/org/openworkflow/impl/auth/AuthProviderFactory.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/auth/AuthProviderFactory.java index 39fb391fa..00c0f93a9 100644 --- a/impl/core/src/main/java/org/openworkflow/impl/auth/AuthProviderFactory.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/auth/AuthProviderFactory.java @@ -13,12 +13,12 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.auth; +package org.openworkflow.sdk.impl.auth; import java.util.Optional; -import org.openworkflow.api.types.EndpointConfiguration; -import org.openworkflow.api.types.ReferenceableAuthenticationPolicy; -import org.openworkflow.impl.WorkflowDefinition; +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/org/openworkflow/impl/auth/AuthRequestBuilder.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/auth/AuthRequestBuilder.java similarity index 88% rename from impl/core/src/main/java/org/openworkflow/impl/auth/AuthRequestBuilder.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/auth/AuthRequestBuilder.java index 07f95151d..22e7fedce 100644 --- a/impl/core/src/main/java/org/openworkflow/impl/auth/AuthRequestBuilder.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/auth/AuthRequestBuilder.java @@ -13,10 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.auth; +package org.openworkflow.sdk.impl.auth; import java.util.Map; -import org.openworkflow.api.types.OAuth2AuthenticationData; +import org.openworkflow.sdk.api.types.OAuth2AuthenticationData; public interface AuthRequestBuilder { diff --git a/impl/core/src/main/java/org/openworkflow/impl/auth/AuthUtils.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/auth/AuthUtils.java similarity index 98% rename from impl/core/src/main/java/org/openworkflow/impl/auth/AuthUtils.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/auth/AuthUtils.java index a0f87f9c8..7193aed39 100644 --- a/impl/core/src/main/java/org/openworkflow/impl/auth/AuthUtils.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/auth/AuthUtils.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.auth; +package org.openworkflow.sdk.impl.auth; public class AuthUtils { diff --git a/impl/core/src/main/java/org/openworkflow/impl/auth/BasicAuthProvider.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/auth/BasicAuthProvider.java similarity index 77% rename from impl/core/src/main/java/org/openworkflow/impl/auth/BasicAuthProvider.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/auth/BasicAuthProvider.java index c66cac388..780bbfb24 100644 --- a/impl/core/src/main/java/org/openworkflow/impl/auth/BasicAuthProvider.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/auth/BasicAuthProvider.java @@ -13,24 +13,24 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.auth; +package org.openworkflow.sdk.impl.auth; -import static org.openworkflow.impl.WorkflowUtils.checkSecret; -import static org.openworkflow.impl.WorkflowUtils.secretProp; -import static org.openworkflow.impl.auth.AuthUtils.PASSWORD; -import static org.openworkflow.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 java.net.URI; import java.util.Base64; import java.util.concurrent.CompletableFuture; -import org.openworkflow.api.types.BasicAuthenticationPolicy; -import org.openworkflow.api.types.Workflow; -import org.openworkflow.impl.TaskContext; -import org.openworkflow.impl.WorkflowApplication; -import org.openworkflow.impl.WorkflowContext; -import org.openworkflow.impl.WorkflowModel; -import org.openworkflow.impl.WorkflowUtils; -import org.openworkflow.impl.WorkflowValueResolver; +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/org/openworkflow/impl/auth/BearerAuthProvider.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/auth/BearerAuthProvider.java similarity index 70% rename from impl/core/src/main/java/org/openworkflow/impl/auth/BearerAuthProvider.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/auth/BearerAuthProvider.java index e5cd6f271..0f02d5568 100644 --- a/impl/core/src/main/java/org/openworkflow/impl/auth/BearerAuthProvider.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/auth/BearerAuthProvider.java @@ -13,23 +13,23 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.auth; +package org.openworkflow.sdk.impl.auth; -import static org.openworkflow.impl.WorkflowUtils.checkSecret; -import static org.openworkflow.impl.WorkflowUtils.secretProp; -import static org.openworkflow.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 java.net.URI; import java.util.concurrent.CompletableFuture; -import org.openworkflow.api.types.BearerAuthenticationPolicy; -import org.openworkflow.api.types.BearerAuthenticationPolicyConfiguration; -import org.openworkflow.api.types.Workflow; -import org.openworkflow.impl.TaskContext; -import org.openworkflow.impl.WorkflowApplication; -import org.openworkflow.impl.WorkflowContext; -import org.openworkflow.impl.WorkflowModel; -import org.openworkflow.impl.WorkflowUtils; -import org.openworkflow.impl.WorkflowValueResolver; +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/org/openworkflow/impl/auth/ClientSecretBasic.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/auth/ClientSecretBasic.java similarity index 81% rename from impl/core/src/main/java/org/openworkflow/impl/auth/ClientSecretBasic.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/auth/ClientSecretBasic.java index 39abf472a..3053b5afc 100644 --- a/impl/core/src/main/java/org/openworkflow/impl/auth/ClientSecretBasic.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/auth/ClientSecretBasic.java @@ -13,20 +13,20 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.auth; +package org.openworkflow.sdk.impl.auth; -import static org.openworkflow.impl.auth.AuthUtils.CLIENT; -import static org.openworkflow.impl.auth.AuthUtils.GRANT; -import static org.openworkflow.impl.auth.AuthUtils.ID; -import static org.openworkflow.impl.auth.AuthUtils.PASSWORD; -import static org.openworkflow.impl.auth.AuthUtils.SECRET; -import static org.openworkflow.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 java.util.Base64; import java.util.Map; -import org.openworkflow.api.types.OAuth2AuthenticationData; -import org.openworkflow.impl.WorkflowApplication; -import org.openworkflow.impl.WorkflowUtils; +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/org/openworkflow/impl/auth/ClientSecretHandler.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/auth/ClientSecretHandler.java similarity index 85% rename from impl/core/src/main/java/org/openworkflow/impl/auth/ClientSecretHandler.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/auth/ClientSecretHandler.java index 539fb82cf..c80df8021 100644 --- a/impl/core/src/main/java/org/openworkflow/impl/auth/ClientSecretHandler.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/auth/ClientSecretHandler.java @@ -13,17 +13,17 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.auth; +package org.openworkflow.sdk.impl.auth; -import static org.openworkflow.api.types.OAuth2AuthenticationData.OAuth2AuthenticationDataGrant.CLIENT_CREDENTIALS; -import static org.openworkflow.api.types.OAuth2AuthenticationData.OAuth2AuthenticationDataGrant.PASSWORD; -import static org.openworkflow.api.types.OAuth2AuthenticationData.OAuth2AuthenticationDataGrant.URN_IETF_PARAMS_OAUTH_GRANT_TYPE_TOKEN_EXCHANGE; -import static org.openworkflow.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 java.util.Map; import java.util.Objects; -import org.openworkflow.api.types.OAuth2AuthenticationData; -import org.openworkflow.impl.WorkflowApplication; +import org.openworkflow.sdk.api.types.OAuth2AuthenticationData; +import org.openworkflow.sdk.impl.WorkflowApplication; abstract class ClientSecretHandler { diff --git a/impl/core/src/main/java/org/openworkflow/impl/auth/ClientSecretPost.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/auth/ClientSecretPost.java similarity index 80% rename from impl/core/src/main/java/org/openworkflow/impl/auth/ClientSecretPost.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/auth/ClientSecretPost.java index 57409ecba..8e05722df 100644 --- a/impl/core/src/main/java/org/openworkflow/impl/auth/ClientSecretPost.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/auth/ClientSecretPost.java @@ -13,19 +13,19 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.auth; +package org.openworkflow.sdk.impl.auth; -import static org.openworkflow.impl.auth.AuthUtils.CLIENT; -import static org.openworkflow.impl.auth.AuthUtils.GRANT; -import static org.openworkflow.impl.auth.AuthUtils.ID; -import static org.openworkflow.impl.auth.AuthUtils.PASSWORD; -import static org.openworkflow.impl.auth.AuthUtils.SECRET; -import static org.openworkflow.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 java.util.Map; -import org.openworkflow.api.types.OAuth2AuthenticationData; -import org.openworkflow.impl.WorkflowApplication; -import org.openworkflow.impl.WorkflowUtils; +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/org/openworkflow/impl/auth/CommonOAuthProvider.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/auth/CommonOAuthProvider.java similarity index 83% rename from impl/core/src/main/java/org/openworkflow/impl/auth/CommonOAuthProvider.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/auth/CommonOAuthProvider.java index 17aaaf4fa..4fcf48ddc 100644 --- a/impl/core/src/main/java/org/openworkflow/impl/auth/CommonOAuthProvider.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/auth/CommonOAuthProvider.java @@ -13,23 +13,23 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.auth; +package org.openworkflow.sdk.impl.auth; -import static org.openworkflow.impl.WorkflowUtils.checkSecret; -import static org.openworkflow.impl.WorkflowUtils.secret; +import static org.openworkflow.sdk.impl.WorkflowUtils.checkSecret; +import static org.openworkflow.sdk.impl.WorkflowUtils.secret; import java.net.URI; import java.util.Arrays; import java.util.Map; import java.util.concurrent.CompletableFuture; -import org.openworkflow.api.types.OAuth2AuthenticationData; -import org.openworkflow.api.types.SecretBasedAuthenticationPolicy; -import org.openworkflow.api.types.Workflow; -import org.openworkflow.impl.TaskContext; -import org.openworkflow.impl.WorkflowApplication; -import org.openworkflow.impl.WorkflowContext; -import org.openworkflow.impl.WorkflowModel; -import org.openworkflow.impl.WorkflowValueResolver; +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/org/openworkflow/impl/auth/DefaultAuthProviderFactory.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/auth/DefaultAuthProviderFactory.java similarity index 86% rename from impl/core/src/main/java/org/openworkflow/impl/auth/DefaultAuthProviderFactory.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/auth/DefaultAuthProviderFactory.java index a741a26fa..07b977147 100644 --- a/impl/core/src/main/java/org/openworkflow/impl/auth/DefaultAuthProviderFactory.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/auth/DefaultAuthProviderFactory.java @@ -13,18 +13,18 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.auth; +package org.openworkflow.sdk.impl.auth; import java.util.Optional; -import org.openworkflow.api.types.AuthenticationPolicyUnion; -import org.openworkflow.api.types.BasicAuthenticationPolicy; -import org.openworkflow.api.types.BearerAuthenticationPolicy; -import org.openworkflow.api.types.DigestAuthenticationPolicy; -import org.openworkflow.api.types.EndpointConfiguration; -import org.openworkflow.api.types.ReferenceableAuthenticationPolicy; -import org.openworkflow.api.types.Workflow; -import org.openworkflow.impl.WorkflowApplication; -import org.openworkflow.impl.WorkflowDefinition; +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/org/openworkflow/impl/auth/DigestAuthProvider.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/auth/DigestAuthProvider.java similarity index 91% rename from impl/core/src/main/java/org/openworkflow/impl/auth/DigestAuthProvider.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/auth/DigestAuthProvider.java index 9f853b337..26d87ccd2 100644 --- a/impl/core/src/main/java/org/openworkflow/impl/auth/DigestAuthProvider.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/auth/DigestAuthProvider.java @@ -13,12 +13,12 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.auth; +package org.openworkflow.sdk.impl.auth; -import static org.openworkflow.impl.WorkflowUtils.checkSecret; -import static org.openworkflow.impl.WorkflowUtils.secretProp; -import static org.openworkflow.impl.auth.AuthUtils.PASSWORD; -import static org.openworkflow.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 java.io.IOException; import java.net.HttpURLConnection; @@ -32,16 +32,16 @@ import java.util.concurrent.atomic.AtomicInteger; import java.util.regex.Matcher; import java.util.regex.Pattern; -import org.openworkflow.api.types.DigestAuthenticationPolicy; -import org.openworkflow.api.types.DigestAuthenticationProperties; -import org.openworkflow.api.types.Workflow; -import org.openworkflow.impl.TaskContext; -import org.openworkflow.impl.WorkflowApplication; -import org.openworkflow.impl.WorkflowContext; -import org.openworkflow.impl.WorkflowModel; -import org.openworkflow.impl.WorkflowUtils; -import org.openworkflow.impl.WorkflowValueResolver; -import org.openworkflow.impl.utils.RandomFactory; +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/org/openworkflow/impl/auth/HttpRequestInfo.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/auth/HttpRequestInfo.java similarity index 92% rename from impl/core/src/main/java/org/openworkflow/impl/auth/HttpRequestInfo.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/auth/HttpRequestInfo.java index c80caa06f..5bf459ee9 100644 --- a/impl/core/src/main/java/org/openworkflow/impl/auth/HttpRequestInfo.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/auth/HttpRequestInfo.java @@ -13,12 +13,12 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.auth; +package org.openworkflow.sdk.impl.auth; import java.net.URI; import java.util.Map; import java.util.Optional; -import org.openworkflow.impl.WorkflowValueResolver; +import org.openworkflow.sdk.impl.WorkflowValueResolver; public record HttpRequestInfo( Map> headers, diff --git a/impl/core/src/main/java/org/openworkflow/impl/auth/HttpRequestInfoBuilder.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/auth/HttpRequestInfoBuilder.java similarity index 92% rename from impl/core/src/main/java/org/openworkflow/impl/auth/HttpRequestInfoBuilder.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/auth/HttpRequestInfoBuilder.java index eb481c32c..f016d0b56 100644 --- a/impl/core/src/main/java/org/openworkflow/impl/auth/HttpRequestInfoBuilder.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/auth/HttpRequestInfoBuilder.java @@ -13,17 +13,17 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.auth; +package org.openworkflow.sdk.impl.auth; -import static org.openworkflow.api.types.OAuth2TokenRequest.Oauth2TokenRequestEncoding.APPLICATION_X_WWW_FORM_URLENCODED; +import static org.openworkflow.sdk.api.types.OAuth2TokenRequest.Oauth2TokenRequestEncoding.APPLICATION_X_WWW_FORM_URLENCODED; import java.net.URI; import java.util.HashMap; import java.util.Map; import java.util.Objects; import java.util.Optional; -import org.openworkflow.api.types.OAuth2TokenRequest; -import org.openworkflow.impl.WorkflowValueResolver; +import org.openworkflow.sdk.api.types.OAuth2TokenRequest; +import org.openworkflow.sdk.impl.WorkflowValueResolver; class HttpRequestInfoBuilder { diff --git a/impl/core/src/main/java/org/openworkflow/impl/auth/JWT.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/auth/JWT.java similarity index 98% rename from impl/core/src/main/java/org/openworkflow/impl/auth/JWT.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/auth/JWT.java index b3804d761..0726bc3a9 100644 --- a/impl/core/src/main/java/org/openworkflow/impl/auth/JWT.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/auth/JWT.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.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/org/openworkflow/impl/auth/JWTConverter.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/auth/JWTConverter.java similarity index 91% rename from impl/core/src/main/java/org/openworkflow/impl/auth/JWTConverter.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/auth/JWTConverter.java index dda62e2e5..e948ff3de 100644 --- a/impl/core/src/main/java/org/openworkflow/impl/auth/JWTConverter.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/auth/JWTConverter.java @@ -13,9 +13,9 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.auth; +package org.openworkflow.sdk.impl.auth; -import org.openworkflow.impl.ServicePriority; +import org.openworkflow.sdk.impl.ServicePriority; public interface JWTConverter extends ServicePriority { diff --git a/impl/core/src/main/java/org/openworkflow/impl/auth/JwtClientAssertion.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/auth/JwtClientAssertion.java similarity index 84% rename from impl/core/src/main/java/org/openworkflow/impl/auth/JwtClientAssertion.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/auth/JwtClientAssertion.java index 38c50b884..2000f6de5 100644 --- a/impl/core/src/main/java/org/openworkflow/impl/auth/JwtClientAssertion.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/auth/JwtClientAssertion.java @@ -13,23 +13,23 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.auth; +package org.openworkflow.sdk.impl.auth; -import static org.openworkflow.api.types.OAuth2AuthenticationData.OAuth2AuthenticationDataGrant.PASSWORD; -import static org.openworkflow.impl.auth.AuthUtils.ASSERTION; -import static org.openworkflow.impl.auth.AuthUtils.CLIENT; -import static org.openworkflow.impl.auth.AuthUtils.CLIENT_ASSERTION; -import static org.openworkflow.impl.auth.AuthUtils.CLIENT_ASSERTION_TYPE; -import static org.openworkflow.impl.auth.AuthUtils.CLIENT_ID; -import static org.openworkflow.impl.auth.AuthUtils.GRANT; -import static org.openworkflow.impl.auth.AuthUtils.ID; -import static org.openworkflow.impl.auth.AuthUtils.JWT_BEARER_ASSERTION_TYPE; -import static org.openworkflow.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 java.util.Map; -import org.openworkflow.api.types.OAuth2AuthenticationData; -import org.openworkflow.impl.WorkflowApplication; -import org.openworkflow.impl.WorkflowUtils; +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. diff --git a/impl/core/src/main/java/org/openworkflow/impl/auth/OAuth2AuthProvider.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/auth/OAuth2AuthProvider.java similarity index 87% rename from impl/core/src/main/java/org/openworkflow/impl/auth/OAuth2AuthProvider.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/auth/OAuth2AuthProvider.java index 2a90f6c3f..48a01737c 100644 --- a/impl/core/src/main/java/org/openworkflow/impl/auth/OAuth2AuthProvider.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/auth/OAuth2AuthProvider.java @@ -13,10 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.auth; +package org.openworkflow.sdk.impl.auth; -import org.openworkflow.api.types.Workflow; -import org.openworkflow.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/org/openworkflow/impl/auth/OAuthPolicyData.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/auth/OAuthPolicyData.java similarity index 79% rename from impl/core/src/main/java/org/openworkflow/impl/auth/OAuthPolicyData.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/auth/OAuthPolicyData.java index 75b04256e..bd36e2ac2 100644 --- a/impl/core/src/main/java/org/openworkflow/impl/auth/OAuthPolicyData.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/auth/OAuthPolicyData.java @@ -13,12 +13,12 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.auth; +package org.openworkflow.sdk.impl.auth; import java.util.Optional; -import org.openworkflow.api.types.AuthenticationPolicyUnion; -import org.openworkflow.api.types.OAuth2AuthenticationData; -import org.openworkflow.api.types.SecretBasedAuthenticationPolicy; +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/org/openworkflow/impl/auth/OAuthRequestBuilder.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/auth/OAuthRequestBuilder.java similarity index 87% rename from impl/core/src/main/java/org/openworkflow/impl/auth/OAuthRequestBuilder.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/auth/OAuthRequestBuilder.java index 5c51cebdb..6e5e43d6e 100644 --- a/impl/core/src/main/java/org/openworkflow/impl/auth/OAuthRequestBuilder.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/auth/OAuthRequestBuilder.java @@ -13,19 +13,19 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.auth; +package org.openworkflow.sdk.impl.auth; -import static org.openworkflow.impl.WorkflowUtils.concatURI; -import static org.openworkflow.impl.auth.AuthUtils.AUTHORITY; +import static org.openworkflow.sdk.impl.WorkflowUtils.concatURI; +import static org.openworkflow.sdk.impl.auth.AuthUtils.AUTHORITY; import java.net.URI; import java.util.Map; import java.util.Optional; -import org.openworkflow.api.types.OAuth2AuthenticationPropertiesEndpoints; -import org.openworkflow.api.types.OAuth2ConnectAuthenticationProperties; -import org.openworkflow.impl.WorkflowApplication; -import org.openworkflow.impl.WorkflowUtils; -import org.openworkflow.impl.WorkflowValueResolver; +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/org/openworkflow/impl/auth/OAuthScheme.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/auth/OAuthScheme.java similarity index 94% rename from impl/core/src/main/java/org/openworkflow/impl/auth/OAuthScheme.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/auth/OAuthScheme.java index 0fe460c77..f4d046029 100644 --- a/impl/core/src/main/java/org/openworkflow/impl/auth/OAuthScheme.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/auth/OAuthScheme.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.auth; +package org.openworkflow.sdk.impl.auth; public enum OAuthScheme { OAUTH2, diff --git a/impl/core/src/main/java/org/openworkflow/impl/auth/OAuthUtils.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/auth/OAuthUtils.java similarity index 80% rename from impl/core/src/main/java/org/openworkflow/impl/auth/OAuthUtils.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/auth/OAuthUtils.java index 5b3da7c99..26cdfefc7 100644 --- a/impl/core/src/main/java/org/openworkflow/impl/auth/OAuthUtils.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/auth/OAuthUtils.java @@ -13,17 +13,17 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.auth; +package org.openworkflow.sdk.impl.auth; import java.util.Optional; -import org.openworkflow.api.types.AuthenticationPolicyUnion; -import org.openworkflow.api.types.OAuth2AuthenticationPolicy; -import org.openworkflow.api.types.OAuth2AuthenticationPolicyConfiguration; -import org.openworkflow.api.types.OpenIdConnectAuthenticationPolicy; -import org.openworkflow.api.types.OpenIdConnectAuthenticationPolicyConfiguration; -import org.openworkflow.api.types.ReferenceableAuthenticationPolicy; -import org.openworkflow.api.types.Use; -import org.openworkflow.api.types.Workflow; +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/org/openworkflow/impl/auth/OpenIdAuthProvider.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/auth/OpenIdAuthProvider.java similarity index 87% rename from impl/core/src/main/java/org/openworkflow/impl/auth/OpenIdAuthProvider.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/auth/OpenIdAuthProvider.java index 8a562adda..979b79346 100644 --- a/impl/core/src/main/java/org/openworkflow/impl/auth/OpenIdAuthProvider.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/auth/OpenIdAuthProvider.java @@ -13,10 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.auth; +package org.openworkflow.sdk.impl.auth; -import org.openworkflow.api.types.Workflow; -import org.openworkflow.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/org/openworkflow/impl/auth/OpenIdRequestBuilder.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/auth/OpenIdRequestBuilder.java similarity index 84% rename from impl/core/src/main/java/org/openworkflow/impl/auth/OpenIdRequestBuilder.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/auth/OpenIdRequestBuilder.java index 9e5291e83..cb44532f6 100644 --- a/impl/core/src/main/java/org/openworkflow/impl/auth/OpenIdRequestBuilder.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/auth/OpenIdRequestBuilder.java @@ -13,17 +13,17 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.auth; +package org.openworkflow.sdk.impl.auth; -import static org.openworkflow.impl.auth.AuthUtils.AUTHORITY; +import static org.openworkflow.sdk.impl.auth.AuthUtils.AUTHORITY; import java.net.URI; import java.util.ArrayList; import java.util.List; import java.util.Map; -import org.openworkflow.api.types.OAuth2AuthenticationData; -import org.openworkflow.impl.WorkflowApplication; -import org.openworkflow.impl.WorkflowUtils; +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/org/openworkflow/impl/auth/TokenIntrospection.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/auth/TokenIntrospection.java similarity index 96% rename from impl/core/src/main/java/org/openworkflow/impl/auth/TokenIntrospection.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/auth/TokenIntrospection.java index cbb25eae6..74a9b713e 100644 --- a/impl/core/src/main/java/org/openworkflow/impl/auth/TokenIntrospection.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/auth/TokenIntrospection.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.auth; +package org.openworkflow.sdk.impl.auth; import java.util.Map; diff --git a/impl/core/src/main/java/org/openworkflow/impl/config/AbstractConfigManager.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/config/AbstractConfigManager.java similarity index 98% rename from impl/core/src/main/java/org/openworkflow/impl/config/AbstractConfigManager.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/config/AbstractConfigManager.java index 7830d4a30..d80401486 100644 --- a/impl/core/src/main/java/org/openworkflow/impl/config/AbstractConfigManager.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/config/AbstractConfigManager.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.config; +package org.openworkflow.sdk.impl.config; import java.time.Instant; import java.time.OffsetDateTime; diff --git a/impl/core/src/main/java/org/openworkflow/impl/config/ConfigManager.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/config/ConfigManager.java similarity index 91% rename from impl/core/src/main/java/org/openworkflow/impl/config/ConfigManager.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/config/ConfigManager.java index 15b670104..eb500caf7 100644 --- a/impl/core/src/main/java/org/openworkflow/impl/config/ConfigManager.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/config/ConfigManager.java @@ -13,12 +13,12 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.config; +package org.openworkflow.sdk.impl.config; import java.util.Collection; import java.util.List; import java.util.Optional; -import org.openworkflow.impl.ServicePriority; +import org.openworkflow.sdk.impl.ServicePriority; public interface ConfigManager extends ServicePriority { diff --git a/impl/core/src/main/java/org/openworkflow/impl/config/ConfigSecretManager.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/config/ConfigSecretManager.java similarity index 97% rename from impl/core/src/main/java/org/openworkflow/impl/config/ConfigSecretManager.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/config/ConfigSecretManager.java index b88308413..b97e27b8e 100644 --- a/impl/core/src/main/java/org/openworkflow/impl/config/ConfigSecretManager.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/config/ConfigSecretManager.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.config; +package org.openworkflow.sdk.impl.config; import java.util.HashMap; import java.util.Map; diff --git a/impl/core/src/main/java/org/openworkflow/impl/config/SecretManager.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/config/SecretManager.java similarity index 89% rename from impl/core/src/main/java/org/openworkflow/impl/config/SecretManager.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/config/SecretManager.java index a96c62a36..a2cb8d42f 100644 --- a/impl/core/src/main/java/org/openworkflow/impl/config/SecretManager.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/config/SecretManager.java @@ -13,10 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.config; +package org.openworkflow.sdk.impl.config; import java.util.Map; -import org.openworkflow.impl.ServicePriority; +import org.openworkflow.sdk.impl.ServicePriority; @FunctionalInterface public interface SecretManager extends ServicePriority { diff --git a/impl/core/src/main/java/org/openworkflow/impl/config/SystemPropertyConfigManager.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/config/SystemPropertyConfigManager.java similarity index 96% rename from impl/core/src/main/java/org/openworkflow/impl/config/SystemPropertyConfigManager.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/config/SystemPropertyConfigManager.java index 5bd892553..12e6a33de 100644 --- a/impl/core/src/main/java/org/openworkflow/impl/config/SystemPropertyConfigManager.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/config/SystemPropertyConfigManager.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.config; +package org.openworkflow.sdk.impl.config; public class SystemPropertyConfigManager extends AbstractConfigManager { diff --git a/impl/core/src/main/java/org/openworkflow/impl/events/AbstractTypeConsumer.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/events/AbstractTypeConsumer.java similarity index 93% rename from impl/core/src/main/java/org/openworkflow/impl/events/AbstractTypeConsumer.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/events/AbstractTypeConsumer.java index f750d289c..7e98f2480 100644 --- a/impl/core/src/main/java/org/openworkflow/impl/events/AbstractTypeConsumer.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/events/AbstractTypeConsumer.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.events; +package org.openworkflow.sdk.impl.events; import io.cloudevents.CloudEvent; import java.util.AbstractCollection; @@ -25,14 +25,14 @@ import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.CopyOnWriteArrayList; import java.util.function.Consumer; -import org.openworkflow.api.types.CorrelateProperty; -import org.openworkflow.api.types.EventFilter; -import org.openworkflow.api.types.EventFilterCorrelate; -import org.openworkflow.api.types.EventProperties; -import org.openworkflow.impl.TaskContext; -import org.openworkflow.impl.WorkflowApplication; -import org.openworkflow.impl.WorkflowContext; -import org.openworkflow.impl.WorkflowModel; +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/org/openworkflow/impl/events/CloudEventAttrPredicate.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/events/CloudEventAttrPredicate.java similarity index 84% rename from impl/core/src/main/java/org/openworkflow/impl/events/CloudEventAttrPredicate.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/events/CloudEventAttrPredicate.java index f8f4b67aa..ec83fce20 100644 --- a/impl/core/src/main/java/org/openworkflow/impl/events/CloudEventAttrPredicate.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/events/CloudEventAttrPredicate.java @@ -13,10 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.events; +package org.openworkflow.sdk.impl.events; -import org.openworkflow.impl.TaskContext; -import org.openworkflow.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/org/openworkflow/impl/events/CloudEventPredicate.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/events/CloudEventPredicate.java similarity index 85% rename from impl/core/src/main/java/org/openworkflow/impl/events/CloudEventPredicate.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/events/CloudEventPredicate.java index 6801c86ee..fa05d5562 100644 --- a/impl/core/src/main/java/org/openworkflow/impl/events/CloudEventPredicate.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/events/CloudEventPredicate.java @@ -13,11 +13,11 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.events; +package org.openworkflow.sdk.impl.events; import io.cloudevents.CloudEvent; -import org.openworkflow.impl.TaskContext; -import org.openworkflow.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/org/openworkflow/impl/events/CloudEventPredicateFactory.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/events/CloudEventPredicateFactory.java similarity index 79% rename from impl/core/src/main/java/org/openworkflow/impl/events/CloudEventPredicateFactory.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/events/CloudEventPredicateFactory.java index c72947dd1..8779fa359 100644 --- a/impl/core/src/main/java/org/openworkflow/impl/events/CloudEventPredicateFactory.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/events/CloudEventPredicateFactory.java @@ -13,11 +13,11 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.events; +package org.openworkflow.sdk.impl.events; -import org.openworkflow.api.types.EventProperties; -import org.openworkflow.impl.ServicePriority; -import org.openworkflow.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/org/openworkflow/impl/events/CloudEventUtils.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/events/CloudEventUtils.java similarity index 97% rename from impl/core/src/main/java/org/openworkflow/impl/events/CloudEventUtils.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/events/CloudEventUtils.java index a7ded202c..f78d1831d 100644 --- a/impl/core/src/main/java/org/openworkflow/impl/events/CloudEventUtils.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/events/CloudEventUtils.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.events; +package org.openworkflow.sdk.impl.events; import io.cloudevents.CloudEvent; import java.net.URI; diff --git a/impl/core/src/main/java/org/openworkflow/impl/events/CorrelationPredicate.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/events/CorrelationPredicate.java similarity index 89% rename from impl/core/src/main/java/org/openworkflow/impl/events/CorrelationPredicate.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/events/CorrelationPredicate.java index 1915ea519..62b69718a 100644 --- a/impl/core/src/main/java/org/openworkflow/impl/events/CorrelationPredicate.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/events/CorrelationPredicate.java @@ -13,18 +13,18 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.events; +package org.openworkflow.sdk.impl.events; import io.cloudevents.CloudEvent; import java.util.Objects; import java.util.Optional; -import org.openworkflow.api.types.CorrelateProperty; -import org.openworkflow.impl.TaskContext; -import org.openworkflow.impl.WorkflowApplication; -import org.openworkflow.impl.WorkflowContext; -import org.openworkflow.impl.WorkflowModel; -import org.openworkflow.impl.WorkflowValueResolver; -import org.openworkflow.impl.expressions.ExpressionDescriptor; +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/org/openworkflow/impl/events/DefaultCloudEventPredicate.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/events/DefaultCloudEventPredicate.java similarity index 91% rename from impl/core/src/main/java/org/openworkflow/impl/events/DefaultCloudEventPredicate.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/events/DefaultCloudEventPredicate.java index 6ae342a1c..1995faa9a 100644 --- a/impl/core/src/main/java/org/openworkflow/impl/events/DefaultCloudEventPredicate.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/events/DefaultCloudEventPredicate.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.events; +package org.openworkflow.sdk.impl.events; import io.cloudevents.CloudEvent; import io.cloudevents.CloudEventData; @@ -21,18 +21,18 @@ import java.time.OffsetDateTime; import java.util.Map; import java.util.Objects; -import org.openworkflow.api.types.EventData; -import org.openworkflow.api.types.EventDataschema; -import org.openworkflow.api.types.EventProperties; -import org.openworkflow.api.types.EventSource; -import org.openworkflow.api.types.EventTime; -import org.openworkflow.api.types.UriTemplate; -import org.openworkflow.impl.TaskContext; -import org.openworkflow.impl.WorkflowApplication; -import org.openworkflow.impl.WorkflowContext; -import org.openworkflow.impl.WorkflowModelFactory; -import org.openworkflow.impl.WorkflowPredicate; -import org.openworkflow.impl.expressions.ExpressionDescriptor; +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/org/openworkflow/impl/events/DefaultCloudEventPredicateFactory.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/events/DefaultCloudEventPredicateFactory.java similarity index 85% rename from impl/core/src/main/java/org/openworkflow/impl/events/DefaultCloudEventPredicateFactory.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/events/DefaultCloudEventPredicateFactory.java index 82fffe741..8bd044e91 100644 --- a/impl/core/src/main/java/org/openworkflow/impl/events/DefaultCloudEventPredicateFactory.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/events/DefaultCloudEventPredicateFactory.java @@ -13,10 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.events; +package org.openworkflow.sdk.impl.events; -import org.openworkflow.api.types.EventProperties; -import org.openworkflow.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/org/openworkflow/impl/events/EmitSourceResolver.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/events/EmitSourceResolver.java similarity index 81% rename from impl/core/src/main/java/org/openworkflow/impl/events/EmitSourceResolver.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/events/EmitSourceResolver.java index 541e264df..005761ce7 100644 --- a/impl/core/src/main/java/org/openworkflow/impl/events/EmitSourceResolver.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/events/EmitSourceResolver.java @@ -13,13 +13,13 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.events; +package org.openworkflow.sdk.impl.events; import java.net.URI; -import org.openworkflow.impl.TaskContext; -import org.openworkflow.impl.WorkflowContext; -import org.openworkflow.impl.WorkflowModel; -import org.openworkflow.impl.WorkflowValueResolver; +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/org/openworkflow/impl/events/EmittedEventDecorator.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/events/EmittedEventDecorator.java similarity index 89% rename from impl/core/src/main/java/org/openworkflow/impl/events/EmittedEventDecorator.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/events/EmittedEventDecorator.java index e6ee793c0..102f0cbde 100644 --- a/impl/core/src/main/java/org/openworkflow/impl/events/EmittedEventDecorator.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/events/EmittedEventDecorator.java @@ -13,10 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.events; +package org.openworkflow.sdk.impl.events; import io.cloudevents.core.builder.CloudEventBuilder; -import org.openworkflow.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/org/openworkflow/impl/events/EventConsumer.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/events/EventConsumer.java similarity index 81% rename from impl/core/src/main/java/org/openworkflow/impl/events/EventConsumer.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/events/EventConsumer.java index d82f24652..d8c9f3271 100644 --- a/impl/core/src/main/java/org/openworkflow/impl/events/EventConsumer.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/events/EventConsumer.java @@ -13,16 +13,16 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.events; +package org.openworkflow.sdk.impl.events; import io.cloudevents.CloudEvent; import java.util.Collection; import java.util.function.Consumer; -import org.openworkflow.api.types.EventFilter; -import org.openworkflow.impl.ServicePriority; -import org.openworkflow.impl.TaskContext; -import org.openworkflow.impl.WorkflowApplication; -import org.openworkflow.impl.WorkflowContext; +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/org/openworkflow/impl/events/EventPublisher.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/events/EventPublisher.java similarity index 95% rename from impl/core/src/main/java/org/openworkflow/impl/events/EventPublisher.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/events/EventPublisher.java index 2b971ad66..008874197 100644 --- a/impl/core/src/main/java/org/openworkflow/impl/events/EventPublisher.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/events/EventPublisher.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.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/org/openworkflow/impl/events/EventRegistration.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/events/EventRegistration.java similarity index 94% rename from impl/core/src/main/java/org/openworkflow/impl/events/EventRegistration.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/events/EventRegistration.java index 2b2492bfe..10c142e32 100644 --- a/impl/core/src/main/java/org/openworkflow/impl/events/EventRegistration.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/events/EventRegistration.java @@ -13,6 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.events; +package org.openworkflow.sdk.impl.events; public interface EventRegistration {} diff --git a/impl/core/src/main/java/org/openworkflow/impl/events/EventRegistrationBuilder.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/events/EventRegistrationBuilder.java similarity index 94% rename from impl/core/src/main/java/org/openworkflow/impl/events/EventRegistrationBuilder.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/events/EventRegistrationBuilder.java index 8ca6f7ced..182b257c0 100644 --- a/impl/core/src/main/java/org/openworkflow/impl/events/EventRegistrationBuilder.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/events/EventRegistrationBuilder.java @@ -13,6 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.events; +package org.openworkflow.sdk.impl.events; public interface EventRegistrationBuilder {} diff --git a/impl/core/src/main/java/org/openworkflow/impl/events/EventRegistrationBuilderCollection.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/events/EventRegistrationBuilderCollection.java similarity index 94% rename from impl/core/src/main/java/org/openworkflow/impl/events/EventRegistrationBuilderCollection.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/events/EventRegistrationBuilderCollection.java index 1f1d16c31..920dd0e81 100644 --- a/impl/core/src/main/java/org/openworkflow/impl/events/EventRegistrationBuilderCollection.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/events/EventRegistrationBuilderCollection.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.events; +package org.openworkflow.sdk.impl.events; import java.util.Collection; diff --git a/impl/core/src/main/java/org/openworkflow/impl/events/EventRegistrationBuilderInfo.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/events/EventRegistrationBuilderInfo.java similarity index 87% rename from impl/core/src/main/java/org/openworkflow/impl/events/EventRegistrationBuilderInfo.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/events/EventRegistrationBuilderInfo.java index 7b5a0e09c..541e88fed 100644 --- a/impl/core/src/main/java/org/openworkflow/impl/events/EventRegistrationBuilderInfo.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/events/EventRegistrationBuilderInfo.java @@ -13,21 +13,21 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.events; +package org.openworkflow.sdk.impl.events; import java.util.Collection; import java.util.List; import java.util.function.Function; import java.util.stream.Collectors; -import org.openworkflow.api.types.AllEventConsumptionStrategy; -import org.openworkflow.api.types.AnyEventConsumptionStrategy; -import org.openworkflow.api.types.EventConsumptionStrategy; -import org.openworkflow.api.types.EventFilter; -import org.openworkflow.api.types.ListenTo; -import org.openworkflow.api.types.OneEventConsumptionStrategy; -import org.openworkflow.api.types.Until; -import org.openworkflow.impl.WorkflowApplication; -import org.openworkflow.impl.WorkflowPredicate; +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/org/openworkflow/impl/events/EventRegistrationInfo.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/events/EventRegistrationInfo.java similarity index 94% rename from impl/core/src/main/java/org/openworkflow/impl/events/EventRegistrationInfo.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/events/EventRegistrationInfo.java index caa2f33e7..4ded3daf5 100644 --- a/impl/core/src/main/java/org/openworkflow/impl/events/EventRegistrationInfo.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/events/EventRegistrationInfo.java @@ -13,15 +13,15 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.events; +package org.openworkflow.sdk.impl.events; import io.cloudevents.CloudEvent; import java.util.ArrayList; import java.util.Collection; import java.util.concurrent.CompletableFuture; import java.util.function.BiConsumer; -import org.openworkflow.impl.TaskContext; -import org.openworkflow.impl.WorkflowContext; +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/org/openworkflow/impl/events/InMemoryEvents.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/events/InMemoryEvents.java similarity index 93% rename from impl/core/src/main/java/org/openworkflow/impl/events/InMemoryEvents.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/events/InMemoryEvents.java index da61812a6..274e2052c 100644 --- a/impl/core/src/main/java/org/openworkflow/impl/events/InMemoryEvents.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/events/InMemoryEvents.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.events; +package org.openworkflow.sdk.impl.events; import io.cloudevents.CloudEvent; import java.util.Map; @@ -21,8 +21,8 @@ import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.atomic.AtomicReference; import java.util.function.Consumer; -import org.openworkflow.impl.DefaultExecutorServiceFactory; -import org.openworkflow.impl.ExecutorServiceFactory; +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/org/openworkflow/impl/events/ModelAwareCloudEventPredicate.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/events/ModelAwareCloudEventPredicate.java similarity index 81% rename from impl/core/src/main/java/org/openworkflow/impl/events/ModelAwareCloudEventPredicate.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/events/ModelAwareCloudEventPredicate.java index e9f7a864f..236dd216c 100644 --- a/impl/core/src/main/java/org/openworkflow/impl/events/ModelAwareCloudEventPredicate.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/events/ModelAwareCloudEventPredicate.java @@ -13,11 +13,11 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.events; +package org.openworkflow.sdk.impl.events; -import org.openworkflow.impl.TaskContext; -import org.openworkflow.impl.WorkflowContext; -import org.openworkflow.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/org/openworkflow/impl/events/TypeEventRegistration.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/events/TypeEventRegistration.java similarity index 92% rename from impl/core/src/main/java/org/openworkflow/impl/events/TypeEventRegistration.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/events/TypeEventRegistration.java index 92dd1f486..afed91d21 100644 --- a/impl/core/src/main/java/org/openworkflow/impl/events/TypeEventRegistration.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/events/TypeEventRegistration.java @@ -13,14 +13,14 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.events; +package org.openworkflow.sdk.impl.events; import io.cloudevents.CloudEvent; import java.util.Collection; import java.util.Collections; import java.util.function.Consumer; -import org.openworkflow.impl.TaskContext; -import org.openworkflow.impl.WorkflowContext; +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/org/openworkflow/impl/events/TypeEventRegistrationBuilder.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/events/TypeEventRegistrationBuilder.java similarity index 96% rename from impl/core/src/main/java/org/openworkflow/impl/events/TypeEventRegistrationBuilder.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/events/TypeEventRegistrationBuilder.java index ddcbd4f46..b469bac25 100644 --- a/impl/core/src/main/java/org/openworkflow/impl/events/TypeEventRegistrationBuilder.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/events/TypeEventRegistrationBuilder.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.events; +package org.openworkflow.sdk.impl.events; import java.util.Collection; import java.util.Collections; diff --git a/impl/core/src/main/java/org/openworkflow/impl/executors/AbstractTaskExecutor.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/executors/AbstractTaskExecutor.java similarity index 87% rename from impl/core/src/main/java/org/openworkflow/impl/executors/AbstractTaskExecutor.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/executors/AbstractTaskExecutor.java index 685fc3d30..26978e529 100644 --- a/impl/core/src/main/java/org/openworkflow/impl/executors/AbstractTaskExecutor.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/executors/AbstractTaskExecutor.java @@ -13,12 +13,12 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.executors; +package org.openworkflow.sdk.impl.executors; -import static org.openworkflow.impl.LifecycleEventsUtils.publishEvent; -import static org.openworkflow.impl.WorkflowUtils.buildWorkflowFilter; -import static org.openworkflow.impl.WorkflowUtils.getSchemaValidator; -import static org.openworkflow.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 java.time.Duration; import java.time.Instant; @@ -29,33 +29,33 @@ import java.util.concurrent.CompletableFuture; import java.util.concurrent.CompletionException; import java.util.concurrent.TimeUnit; -import org.openworkflow.api.types.Export; -import org.openworkflow.api.types.FlowDirective; -import org.openworkflow.api.types.Input; -import org.openworkflow.api.types.Output; -import org.openworkflow.api.types.TaskBase; -import org.openworkflow.api.types.Workflow; -import org.openworkflow.impl.TaskContext; -import org.openworkflow.impl.WorkflowApplication; -import org.openworkflow.impl.WorkflowContext; -import org.openworkflow.impl.WorkflowDefinition; -import org.openworkflow.impl.WorkflowError; -import org.openworkflow.impl.WorkflowException; -import org.openworkflow.impl.WorkflowFilter; -import org.openworkflow.impl.WorkflowModel; -import org.openworkflow.impl.WorkflowMutablePosition; -import org.openworkflow.impl.WorkflowPosition; -import org.openworkflow.impl.WorkflowPredicate; -import org.openworkflow.impl.WorkflowStatus; -import org.openworkflow.impl.WorkflowUtils; -import org.openworkflow.impl.WorkflowValueResolver; -import org.openworkflow.impl.lifecycle.TaskCancelledEvent; -import org.openworkflow.impl.lifecycle.TaskCompletedEvent; -import org.openworkflow.impl.lifecycle.TaskFailedEvent; -import org.openworkflow.impl.lifecycle.TaskRetriedEvent; -import org.openworkflow.impl.lifecycle.TaskStartedEvent; -import org.openworkflow.impl.resources.ResourceLoader; -import org.openworkflow.impl.schema.SchemaValidator; +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/org/openworkflow/impl/executors/CallFunctionExecutorBuilder.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/executors/CallFunctionExecutorBuilder.java similarity index 87% rename from impl/core/src/main/java/org/openworkflow/impl/executors/CallFunctionExecutorBuilder.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/executors/CallFunctionExecutorBuilder.java index c4d06719e..23a916e20 100644 --- a/impl/core/src/main/java/org/openworkflow/impl/executors/CallFunctionExecutorBuilder.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/executors/CallFunctionExecutorBuilder.java @@ -13,23 +13,23 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.executors; +package org.openworkflow.sdk.impl.executors; import java.net.URI; import java.util.Map; import java.util.Optional; -import org.openworkflow.api.types.CallFunction; -import org.openworkflow.api.types.Catalog; -import org.openworkflow.api.types.FunctionArguments; -import org.openworkflow.api.types.Task; -import org.openworkflow.api.types.TaskBase; -import org.openworkflow.api.types.Use; -import org.openworkflow.impl.WorkflowDefinition; -import org.openworkflow.impl.WorkflowMutablePosition; -import org.openworkflow.impl.WorkflowUtils; -import org.openworkflow.impl.WorkflowValueResolver; -import org.openworkflow.impl.resources.ExternalResourceHandler; -import org.openworkflow.impl.resources.ResourceLoader; +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/org/openworkflow/impl/executors/CallTaskExecutor.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/executors/CallTaskExecutor.java similarity index 86% rename from impl/core/src/main/java/org/openworkflow/impl/executors/CallTaskExecutor.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/executors/CallTaskExecutor.java index 3cb0f37da..986a2ce05 100644 --- a/impl/core/src/main/java/org/openworkflow/impl/executors/CallTaskExecutor.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/executors/CallTaskExecutor.java @@ -13,16 +13,16 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.executors; +package org.openworkflow.sdk.impl.executors; import java.util.List; import java.util.concurrent.CompletableFuture; -import org.openworkflow.api.types.TaskBase; -import org.openworkflow.impl.TaskContext; -import org.openworkflow.impl.WorkflowContext; -import org.openworkflow.impl.WorkflowDefinition; -import org.openworkflow.impl.WorkflowModel; -import org.openworkflow.impl.WorkflowMutablePosition; +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/org/openworkflow/impl/executors/CallableTask.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/executors/CallableTask.java similarity index 81% rename from impl/core/src/main/java/org/openworkflow/impl/executors/CallableTask.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/executors/CallableTask.java index 9edf458e1..c34e47533 100644 --- a/impl/core/src/main/java/org/openworkflow/impl/executors/CallableTask.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/executors/CallableTask.java @@ -13,12 +13,12 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.executors; +package org.openworkflow.sdk.impl.executors; import java.util.concurrent.CompletableFuture; -import org.openworkflow.impl.TaskContext; -import org.openworkflow.impl.WorkflowContext; -import org.openworkflow.impl.WorkflowModel; +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/org/openworkflow/impl/executors/CallableTaskBuilder.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/executors/CallableTaskBuilder.java similarity index 77% rename from impl/core/src/main/java/org/openworkflow/impl/executors/CallableTaskBuilder.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/executors/CallableTaskBuilder.java index db2019608..22dedf37b 100644 --- a/impl/core/src/main/java/org/openworkflow/impl/executors/CallableTaskBuilder.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/executors/CallableTaskBuilder.java @@ -13,12 +13,12 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.executors; +package org.openworkflow.sdk.impl.executors; -import org.openworkflow.api.types.TaskBase; -import org.openworkflow.impl.ServicePriority; -import org.openworkflow.impl.WorkflowDefinition; -import org.openworkflow.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/org/openworkflow/impl/executors/CallableTaskFactory.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/executors/CallableTaskFactory.java similarity index 94% rename from impl/core/src/main/java/org/openworkflow/impl/executors/CallableTaskFactory.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/executors/CallableTaskFactory.java index 2a5628255..c79b6dcfb 100644 --- a/impl/core/src/main/java/org/openworkflow/impl/executors/CallableTaskFactory.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/executors/CallableTaskFactory.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.executors; +package org.openworkflow.sdk.impl.executors; import java.util.function.Supplier; diff --git a/impl/core/src/main/java/org/openworkflow/impl/executors/CallableTaskProxyBuilder.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/executors/CallableTaskProxyBuilder.java similarity index 85% rename from impl/core/src/main/java/org/openworkflow/impl/executors/CallableTaskProxyBuilder.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/executors/CallableTaskProxyBuilder.java index fbe28f639..9caa86851 100644 --- a/impl/core/src/main/java/org/openworkflow/impl/executors/CallableTaskProxyBuilder.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/executors/CallableTaskProxyBuilder.java @@ -13,10 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.executors; +package org.openworkflow.sdk.impl.executors; -import org.openworkflow.api.types.TaskBase; -import org.openworkflow.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/org/openworkflow/impl/executors/DefaultTaskExecutorFactory.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/executors/DefaultTaskExecutorFactory.java similarity index 74% rename from impl/core/src/main/java/org/openworkflow/impl/executors/DefaultTaskExecutorFactory.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/executors/DefaultTaskExecutorFactory.java index 3c17b9b2a..664c5b4d6 100644 --- a/impl/core/src/main/java/org/openworkflow/impl/executors/DefaultTaskExecutorFactory.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/executors/DefaultTaskExecutorFactory.java @@ -13,27 +13,27 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.executors; +package org.openworkflow.sdk.impl.executors; import java.util.List; -import org.openworkflow.api.types.CallTask; -import org.openworkflow.api.types.Task; -import org.openworkflow.api.types.TaskBase; -import org.openworkflow.impl.WorkflowApplication; -import org.openworkflow.impl.WorkflowDefinition; -import org.openworkflow.impl.WorkflowMutablePosition; -import org.openworkflow.impl.executors.CallTaskExecutor.CallTaskExecutorBuilder; -import org.openworkflow.impl.executors.DoExecutor.DoExecutorBuilder; -import org.openworkflow.impl.executors.EmitExecutor.EmitExecutorBuilder; -import org.openworkflow.impl.executors.ForExecutor.ForExecutorBuilder; -import org.openworkflow.impl.executors.ForkExecutor.ForkExecutorBuilder; -import org.openworkflow.impl.executors.ListenExecutor.ListenExecutorBuilder; -import org.openworkflow.impl.executors.RaiseExecutor.RaiseExecutorBuilder; -import org.openworkflow.impl.executors.RunTaskExecutor.RunTaskExecutorBuilder; -import org.openworkflow.impl.executors.SetExecutor.SetExecutorBuilder; -import org.openworkflow.impl.executors.SwitchExecutor.SwitchExecutorBuilder; -import org.openworkflow.impl.executors.TryExecutor.TryExecutorBuilder; -import org.openworkflow.impl.executors.WaitExecutor.WaitExecutorBuilder; +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/org/openworkflow/impl/executors/DoExecutor.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/executors/DoExecutor.java similarity index 83% rename from impl/core/src/main/java/org/openworkflow/impl/executors/DoExecutor.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/executors/DoExecutor.java index f44e9ef04..34ec5138a 100644 --- a/impl/core/src/main/java/org/openworkflow/impl/executors/DoExecutor.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/executors/DoExecutor.java @@ -13,16 +13,16 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.executors; +package org.openworkflow.sdk.impl.executors; import java.util.Optional; import java.util.concurrent.CompletableFuture; -import org.openworkflow.api.types.DoTask; -import org.openworkflow.impl.TaskContext; -import org.openworkflow.impl.WorkflowContext; -import org.openworkflow.impl.WorkflowDefinition; -import org.openworkflow.impl.WorkflowModel; -import org.openworkflow.impl.WorkflowMutablePosition; +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/org/openworkflow/impl/executors/EmitExecutor.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/executors/EmitExecutor.java similarity index 89% rename from impl/core/src/main/java/org/openworkflow/impl/executors/EmitExecutor.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/executors/EmitExecutor.java index a6a7c21d5..f58b0766c 100644 --- a/impl/core/src/main/java/org/openworkflow/impl/executors/EmitExecutor.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/executors/EmitExecutor.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.executors; +package org.openworkflow.sdk.impl.executors; import io.cloudevents.CloudEvent; import io.cloudevents.CloudEventData; @@ -24,24 +24,24 @@ import java.util.Map; import java.util.Optional; import java.util.concurrent.CompletableFuture; -import org.openworkflow.api.types.EmitTask; -import org.openworkflow.api.types.EventData; -import org.openworkflow.api.types.EventDataschema; -import org.openworkflow.api.types.EventProperties; -import org.openworkflow.api.types.EventSource; -import org.openworkflow.api.types.EventTime; -import org.openworkflow.impl.TaskContext; -import org.openworkflow.impl.WorkflowApplication; -import org.openworkflow.impl.WorkflowContext; -import org.openworkflow.impl.WorkflowDefinition; -import org.openworkflow.impl.WorkflowModel; -import org.openworkflow.impl.WorkflowMutablePosition; -import org.openworkflow.impl.WorkflowUtils; -import org.openworkflow.impl.WorkflowValueResolver; -import org.openworkflow.impl.events.CloudEventUtils; -import org.openworkflow.impl.events.EmittedEventDecorator; -import org.openworkflow.impl.events.EventPublisher; -import org.openworkflow.impl.expressions.ExpressionDescriptor; +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/org/openworkflow/impl/executors/ForExecutor.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/executors/ForExecutor.java similarity index 84% rename from impl/core/src/main/java/org/openworkflow/impl/executors/ForExecutor.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/executors/ForExecutor.java index 871fc700b..82f9cc3b5 100644 --- a/impl/core/src/main/java/org/openworkflow/impl/executors/ForExecutor.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/executors/ForExecutor.java @@ -13,23 +13,23 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.executors; +package org.openworkflow.sdk.impl.executors; import java.util.Collection; import java.util.Iterator; import java.util.Optional; import java.util.concurrent.CompletableFuture; -import org.openworkflow.api.types.ForIn; -import org.openworkflow.api.types.ForTask; -import org.openworkflow.impl.TaskContext; -import org.openworkflow.impl.WorkflowContext; -import org.openworkflow.impl.WorkflowDefinition; -import org.openworkflow.impl.WorkflowModel; -import org.openworkflow.impl.WorkflowMutablePosition; -import org.openworkflow.impl.WorkflowPredicate; -import org.openworkflow.impl.WorkflowUtils; -import org.openworkflow.impl.WorkflowValueResolver; -import org.openworkflow.impl.expressions.ExpressionDescriptor; +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/org/openworkflow/impl/executors/ForkExecutor.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/executors/ForkExecutor.java similarity index 90% rename from impl/core/src/main/java/org/openworkflow/impl/executors/ForkExecutor.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/executors/ForkExecutor.java index 2d6a4b34d..b51ad4b1b 100644 --- a/impl/core/src/main/java/org/openworkflow/impl/executors/ForkExecutor.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/executors/ForkExecutor.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.executors; +package org.openworkflow.sdk.impl.executors; import java.util.HashMap; import java.util.LinkedHashMap; @@ -24,13 +24,13 @@ import java.util.concurrent.ExecutorService; import java.util.stream.Collectors; import java.util.stream.Stream; -import org.openworkflow.api.types.ForkTask; -import org.openworkflow.api.types.ForkTaskConfiguration; -import org.openworkflow.impl.TaskContext; -import org.openworkflow.impl.WorkflowContext; -import org.openworkflow.impl.WorkflowDefinition; -import org.openworkflow.impl.WorkflowModel; -import org.openworkflow.impl.WorkflowMutablePosition; +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/org/openworkflow/impl/executors/ListenExecutor.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/executors/ListenExecutor.java similarity index 88% rename from impl/core/src/main/java/org/openworkflow/impl/executors/ListenExecutor.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/executors/ListenExecutor.java index e56724c5a..f9f0a0ccd 100644 --- a/impl/core/src/main/java/org/openworkflow/impl/executors/ListenExecutor.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/executors/ListenExecutor.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.executors; +package org.openworkflow.sdk.impl.executors; import io.cloudevents.CloudEvent; import java.util.ArrayList; @@ -22,25 +22,25 @@ import java.util.concurrent.CompletableFuture; import java.util.function.BiConsumer; import java.util.function.Function; -import org.openworkflow.api.types.ListenTask; -import org.openworkflow.api.types.ListenTaskConfiguration; -import org.openworkflow.api.types.ListenTaskConfiguration.ListenAndReadAs; -import org.openworkflow.api.types.SubscriptionIterator; -import org.openworkflow.api.types.Until; -import org.openworkflow.impl.TaskContext; -import org.openworkflow.impl.WorkflowContext; -import org.openworkflow.impl.WorkflowDefinition; -import org.openworkflow.impl.WorkflowModel; -import org.openworkflow.impl.WorkflowModelCollection; -import org.openworkflow.impl.WorkflowMutableInstance; -import org.openworkflow.impl.WorkflowMutablePosition; -import org.openworkflow.impl.WorkflowPredicate; -import org.openworkflow.impl.WorkflowStatus; -import org.openworkflow.impl.WorkflowUtils; -import org.openworkflow.impl.events.EventConsumer; -import org.openworkflow.impl.events.EventRegistrationBuilderCollection; -import org.openworkflow.impl.events.EventRegistrationBuilderInfo; -import org.openworkflow.impl.events.EventRegistrationInfo; +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/org/openworkflow/impl/executors/ProcessResult.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/executors/ProcessResult.java similarity index 93% rename from impl/core/src/main/java/org/openworkflow/impl/executors/ProcessResult.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/executors/ProcessResult.java index e8171e2c2..b9716cbff 100644 --- a/impl/core/src/main/java/org/openworkflow/impl/executors/ProcessResult.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/executors/ProcessResult.java @@ -13,6 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.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/org/openworkflow/impl/executors/RaiseExecutor.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/executors/RaiseExecutor.java similarity index 83% rename from impl/core/src/main/java/org/openworkflow/impl/executors/RaiseExecutor.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/executors/RaiseExecutor.java index f3a501714..c39aa10d4 100644 --- a/impl/core/src/main/java/org/openworkflow/impl/executors/RaiseExecutor.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/executors/RaiseExecutor.java @@ -13,30 +13,30 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.executors; +package org.openworkflow.sdk.impl.executors; import java.util.Map; import java.util.Optional; import java.util.concurrent.CompletableFuture; import java.util.function.BiFunction; -import org.openworkflow.api.types.Error; -import org.openworkflow.api.types.ErrorDetails; -import org.openworkflow.api.types.ErrorInstance; -import org.openworkflow.api.types.ErrorTitle; -import org.openworkflow.api.types.ErrorType; -import org.openworkflow.api.types.RaiseTask; -import org.openworkflow.api.types.RaiseTaskError; -import org.openworkflow.impl.TaskContext; -import org.openworkflow.impl.WorkflowApplication; -import org.openworkflow.impl.WorkflowContext; -import org.openworkflow.impl.WorkflowDefinition; -import org.openworkflow.impl.WorkflowError; -import org.openworkflow.impl.WorkflowError.Builder; -import org.openworkflow.impl.WorkflowException; -import org.openworkflow.impl.WorkflowModel; -import org.openworkflow.impl.WorkflowMutablePosition; -import org.openworkflow.impl.WorkflowUtils; -import org.openworkflow.impl.WorkflowValueResolver; +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/org/openworkflow/impl/executors/RegularTaskExecutor.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/executors/RegularTaskExecutor.java similarity index 85% rename from impl/core/src/main/java/org/openworkflow/impl/executors/RegularTaskExecutor.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/executors/RegularTaskExecutor.java index f26115269..f218ca50a 100644 --- a/impl/core/src/main/java/org/openworkflow/impl/executors/RegularTaskExecutor.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/executors/RegularTaskExecutor.java @@ -13,16 +13,16 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.executors; +package org.openworkflow.sdk.impl.executors; import java.util.Map; import java.util.concurrent.CompletableFuture; -import org.openworkflow.api.types.TaskBase; -import org.openworkflow.impl.TaskContext; -import org.openworkflow.impl.WorkflowContext; -import org.openworkflow.impl.WorkflowDefinition; -import org.openworkflow.impl.WorkflowModel; -import org.openworkflow.impl.WorkflowMutablePosition; +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/org/openworkflow/impl/executors/RunScriptExecutor.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/executors/RunScriptExecutor.java similarity index 83% rename from impl/core/src/main/java/org/openworkflow/impl/executors/RunScriptExecutor.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/executors/RunScriptExecutor.java index a11cc031b..6c9a551ca 100644 --- a/impl/core/src/main/java/org/openworkflow/impl/executors/RunScriptExecutor.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/executors/RunScriptExecutor.java @@ -13,21 +13,21 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.executors; +package org.openworkflow.sdk.impl.executors; import java.util.Map; import java.util.Optional; import java.util.concurrent.CompletableFuture; -import org.openworkflow.api.types.RunTaskConfiguration; -import org.openworkflow.api.types.RunTaskConfiguration.ProcessReturnType; -import org.openworkflow.impl.TaskContext; -import org.openworkflow.impl.WorkflowContext; -import org.openworkflow.impl.WorkflowError; -import org.openworkflow.impl.WorkflowException; -import org.openworkflow.impl.WorkflowModel; -import org.openworkflow.impl.WorkflowValueResolver; -import org.openworkflow.impl.scripts.ScriptContext; -import org.openworkflow.impl.scripts.ScriptRunner; +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/org/openworkflow/impl/executors/RunScriptExecutorBuilder.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/executors/RunScriptExecutorBuilder.java similarity index 83% rename from impl/core/src/main/java/org/openworkflow/impl/executors/RunScriptExecutorBuilder.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/executors/RunScriptExecutorBuilder.java index cd180ccf5..2f4d3de2d 100644 --- a/impl/core/src/main/java/org/openworkflow/impl/executors/RunScriptExecutorBuilder.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/executors/RunScriptExecutorBuilder.java @@ -13,20 +13,20 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.executors; +package org.openworkflow.sdk.impl.executors; import java.util.Objects; import java.util.Optional; -import org.openworkflow.api.types.RunScript; -import org.openworkflow.api.types.RunTaskConfiguration; -import org.openworkflow.api.types.Script; -import org.openworkflow.api.types.ScriptUnion; -import org.openworkflow.impl.WorkflowApplication; -import org.openworkflow.impl.WorkflowDefinition; -import org.openworkflow.impl.WorkflowUtils; -import org.openworkflow.impl.resources.ResourceLoaderUtils; -import org.openworkflow.impl.scripts.ScriptLanguageId; -import org.openworkflow.impl.scripts.ScriptRunner; +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/org/openworkflow/impl/executors/RunShellExecutor.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/executors/RunShellExecutor.java similarity index 89% rename from impl/core/src/main/java/org/openworkflow/impl/executors/RunShellExecutor.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/executors/RunShellExecutor.java index 12106875b..ee6ed1d74 100644 --- a/impl/core/src/main/java/org/openworkflow/impl/executors/RunShellExecutor.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/executors/RunShellExecutor.java @@ -13,9 +13,9 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.executors; +package org.openworkflow.sdk.impl.executors; -import static org.openworkflow.impl.scripts.ScriptUtils.uncheckedStart; +import static org.openworkflow.sdk.impl.scripts.ScriptUtils.uncheckedStart; import java.io.File; import java.util.ArrayList; @@ -23,12 +23,12 @@ import java.util.Map; import java.util.Optional; import java.util.concurrent.CompletableFuture; -import org.openworkflow.api.types.RunTaskConfiguration.ProcessReturnType; -import org.openworkflow.impl.TaskContext; -import org.openworkflow.impl.WorkflowContext; -import org.openworkflow.impl.WorkflowModel; -import org.openworkflow.impl.WorkflowValueResolver; -import org.openworkflow.impl.scripts.ScriptUtils; +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/org/openworkflow/impl/executors/RunShellExecutorBuilder.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/executors/RunShellExecutorBuilder.java similarity index 87% rename from impl/core/src/main/java/org/openworkflow/impl/executors/RunShellExecutorBuilder.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/executors/RunShellExecutorBuilder.java index 5d2ae794c..ac18d7672 100644 --- a/impl/core/src/main/java/org/openworkflow/impl/executors/RunShellExecutorBuilder.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/executors/RunShellExecutorBuilder.java @@ -13,15 +13,15 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.executors; +package org.openworkflow.sdk.impl.executors; import java.util.List; import java.util.Optional; -import org.openworkflow.api.types.RunShell; -import org.openworkflow.api.types.RunTaskConfiguration; -import org.openworkflow.api.types.Shell; -import org.openworkflow.impl.WorkflowDefinition; -import org.openworkflow.impl.WorkflowUtils; +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/org/openworkflow/impl/executors/RunTaskExecutor.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/executors/RunTaskExecutor.java similarity index 83% rename from impl/core/src/main/java/org/openworkflow/impl/executors/RunTaskExecutor.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/executors/RunTaskExecutor.java index 778d0c41b..bf831a2eb 100644 --- a/impl/core/src/main/java/org/openworkflow/impl/executors/RunTaskExecutor.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/executors/RunTaskExecutor.java @@ -13,16 +13,16 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.executors; +package org.openworkflow.sdk.impl.executors; import java.util.concurrent.CompletableFuture; -import org.openworkflow.api.types.RunTask; -import org.openworkflow.api.types.RunTaskConfiguration; -import org.openworkflow.impl.TaskContext; -import org.openworkflow.impl.WorkflowContext; -import org.openworkflow.impl.WorkflowDefinition; -import org.openworkflow.impl.WorkflowModel; -import org.openworkflow.impl.WorkflowMutablePosition; +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/org/openworkflow/impl/executors/RunWorkflowExecutor.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/executors/RunWorkflowExecutor.java similarity index 84% rename from impl/core/src/main/java/org/openworkflow/impl/executors/RunWorkflowExecutor.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/executors/RunWorkflowExecutor.java index dcda6a2c3..96dbae6a6 100644 --- a/impl/core/src/main/java/org/openworkflow/impl/executors/RunWorkflowExecutor.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/executors/RunWorkflowExecutor.java @@ -13,16 +13,16 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.executors; +package org.openworkflow.sdk.impl.executors; import java.util.Map; import java.util.concurrent.CompletableFuture; -import org.openworkflow.impl.TaskContext; -import org.openworkflow.impl.WorkflowContext; -import org.openworkflow.impl.WorkflowDefinition; -import org.openworkflow.impl.WorkflowDefinitionId; -import org.openworkflow.impl.WorkflowModel; -import org.openworkflow.impl.WorkflowValueResolver; +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/org/openworkflow/impl/executors/RunWorkflowExecutorBuilder.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/executors/RunWorkflowExecutorBuilder.java similarity index 76% rename from impl/core/src/main/java/org/openworkflow/impl/executors/RunWorkflowExecutorBuilder.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/executors/RunWorkflowExecutorBuilder.java index 9e72545ca..3dd4ce138 100644 --- a/impl/core/src/main/java/org/openworkflow/impl/executors/RunWorkflowExecutorBuilder.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/executors/RunWorkflowExecutorBuilder.java @@ -13,16 +13,16 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.executors; +package org.openworkflow.sdk.impl.executors; import java.util.Map; -import org.openworkflow.api.types.RunTaskConfiguration; -import org.openworkflow.api.types.RunWorkflow; -import org.openworkflow.api.types.SubflowConfiguration; -import org.openworkflow.api.types.SubflowInput; -import org.openworkflow.impl.WorkflowDefinition; -import org.openworkflow.impl.WorkflowDefinitionId; -import org.openworkflow.impl.WorkflowUtils; +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/org/openworkflow/impl/executors/RunnableTaskBuilder.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/executors/RunnableTaskBuilder.java similarity index 80% rename from impl/core/src/main/java/org/openworkflow/impl/executors/RunnableTaskBuilder.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/executors/RunnableTaskBuilder.java index c5ac15a40..d06d67b6f 100644 --- a/impl/core/src/main/java/org/openworkflow/impl/executors/RunnableTaskBuilder.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/executors/RunnableTaskBuilder.java @@ -13,11 +13,11 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.executors; +package org.openworkflow.sdk.impl.executors; -import org.openworkflow.api.types.RunTaskConfiguration; -import org.openworkflow.impl.ServicePriority; -import org.openworkflow.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/org/openworkflow/impl/executors/SetExecutor.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/executors/SetExecutor.java similarity index 77% rename from impl/core/src/main/java/org/openworkflow/impl/executors/SetExecutor.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/executors/SetExecutor.java index 0198dcc33..134351f57 100644 --- a/impl/core/src/main/java/org/openworkflow/impl/executors/SetExecutor.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/executors/SetExecutor.java @@ -13,19 +13,19 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.executors; +package org.openworkflow.sdk.impl.executors; import java.util.concurrent.CompletableFuture; -import org.openworkflow.api.types.Set; -import org.openworkflow.api.types.SetTask; -import org.openworkflow.api.types.SetTaskConfiguration; -import org.openworkflow.impl.TaskContext; -import org.openworkflow.impl.WorkflowContext; -import org.openworkflow.impl.WorkflowDefinition; -import org.openworkflow.impl.WorkflowFilter; -import org.openworkflow.impl.WorkflowModel; -import org.openworkflow.impl.WorkflowMutablePosition; -import org.openworkflow.impl.WorkflowUtils; +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/org/openworkflow/impl/executors/SwitchExecutor.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/executors/SwitchExecutor.java similarity index 86% rename from impl/core/src/main/java/org/openworkflow/impl/executors/SwitchExecutor.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/executors/SwitchExecutor.java index 39f1f68a7..a3f57a4ce 100644 --- a/impl/core/src/main/java/org/openworkflow/impl/executors/SwitchExecutor.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/executors/SwitchExecutor.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.executors; +package org.openworkflow.sdk.impl.executors; import java.util.HashMap; import java.util.Map; @@ -21,16 +21,16 @@ import java.util.Optional; import java.util.concurrent.CompletableFuture; import java.util.stream.Collectors; -import org.openworkflow.api.types.FlowDirective; -import org.openworkflow.api.types.SwitchCase; -import org.openworkflow.api.types.SwitchItem; -import org.openworkflow.api.types.SwitchTask; -import org.openworkflow.impl.TaskContext; -import org.openworkflow.impl.WorkflowContext; -import org.openworkflow.impl.WorkflowDefinition; -import org.openworkflow.impl.WorkflowMutablePosition; -import org.openworkflow.impl.WorkflowPredicate; -import org.openworkflow.impl.WorkflowUtils; +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/org/openworkflow/impl/executors/TaskExecutor.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/executors/TaskExecutor.java similarity index 79% rename from impl/core/src/main/java/org/openworkflow/impl/executors/TaskExecutor.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/executors/TaskExecutor.java index 43eb093c3..1df7e048f 100644 --- a/impl/core/src/main/java/org/openworkflow/impl/executors/TaskExecutor.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/executors/TaskExecutor.java @@ -13,14 +13,14 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.executors; +package org.openworkflow.sdk.impl.executors; import java.util.Optional; import java.util.concurrent.CompletableFuture; -import org.openworkflow.api.types.TaskBase; -import org.openworkflow.impl.TaskContext; -import org.openworkflow.impl.WorkflowContext; -import org.openworkflow.impl.WorkflowModel; +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/org/openworkflow/impl/executors/TaskExecutorBuilder.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/executors/TaskExecutorBuilder.java similarity index 89% rename from impl/core/src/main/java/org/openworkflow/impl/executors/TaskExecutorBuilder.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/executors/TaskExecutorBuilder.java index 5c8bc4131..13a3ca1ef 100644 --- a/impl/core/src/main/java/org/openworkflow/impl/executors/TaskExecutorBuilder.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/executors/TaskExecutorBuilder.java @@ -13,10 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.executors; +package org.openworkflow.sdk.impl.executors; import java.util.Map; -import org.openworkflow.api.types.TaskBase; +import org.openworkflow.sdk.api.types.TaskBase; public interface TaskExecutorBuilder { diff --git a/impl/core/src/main/java/org/openworkflow/impl/executors/TaskExecutorFactory.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/executors/TaskExecutorFactory.java similarity index 73% rename from impl/core/src/main/java/org/openworkflow/impl/executors/TaskExecutorFactory.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/executors/TaskExecutorFactory.java index b42ebd3e4..09a5d1a24 100644 --- a/impl/core/src/main/java/org/openworkflow/impl/executors/TaskExecutorFactory.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/executors/TaskExecutorFactory.java @@ -13,13 +13,13 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.executors; +package org.openworkflow.sdk.impl.executors; -import org.openworkflow.api.types.Task; -import org.openworkflow.api.types.TaskBase; -import org.openworkflow.impl.ServicePriority; -import org.openworkflow.impl.WorkflowDefinition; -import org.openworkflow.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/org/openworkflow/impl/executors/TaskExecutorHelper.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/executors/TaskExecutorHelper.java similarity index 90% rename from impl/core/src/main/java/org/openworkflow/impl/executors/TaskExecutorHelper.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/executors/TaskExecutorHelper.java index f7792e86b..e17b08948 100644 --- a/impl/core/src/main/java/org/openworkflow/impl/executors/TaskExecutorHelper.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/executors/TaskExecutorHelper.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.executors; +package org.openworkflow.sdk.impl.executors; import java.util.Iterator; import java.util.LinkedHashMap; @@ -22,13 +22,13 @@ import java.util.Optional; import java.util.concurrent.CompletableFuture; import java.util.stream.Collectors; -import org.openworkflow.api.types.TaskItem; -import org.openworkflow.impl.TaskContext; -import org.openworkflow.impl.WorkflowContext; -import org.openworkflow.impl.WorkflowDefinition; -import org.openworkflow.impl.WorkflowModel; -import org.openworkflow.impl.WorkflowMutablePosition; -import org.openworkflow.impl.WorkflowStatus; +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/org/openworkflow/impl/executors/TransitionInfo.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/executors/TransitionInfo.java similarity index 96% rename from impl/core/src/main/java/org/openworkflow/impl/executors/TransitionInfo.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/executors/TransitionInfo.java index 6b6d48192..a7c18ae4f 100644 --- a/impl/core/src/main/java/org/openworkflow/impl/executors/TransitionInfo.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/executors/TransitionInfo.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.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/org/openworkflow/impl/executors/TransitionInfoBuilder.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/executors/TransitionInfoBuilder.java similarity index 96% rename from impl/core/src/main/java/org/openworkflow/impl/executors/TransitionInfoBuilder.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/executors/TransitionInfoBuilder.java index d990078c8..cac8b087d 100644 --- a/impl/core/src/main/java/org/openworkflow/impl/executors/TransitionInfoBuilder.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/executors/TransitionInfoBuilder.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.executors; +package org.openworkflow.sdk.impl.executors; public record TransitionInfoBuilder(TaskExecutorBuilder next, boolean isEndNode) { diff --git a/impl/core/src/main/java/org/openworkflow/impl/executors/TryExecutor.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/executors/TryExecutor.java similarity index 90% rename from impl/core/src/main/java/org/openworkflow/impl/executors/TryExecutor.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/executors/TryExecutor.java index 285d450f5..acd91eeb1 100644 --- a/impl/core/src/main/java/org/openworkflow/impl/executors/TryExecutor.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/executors/TryExecutor.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.executors; +package org.openworkflow.sdk.impl.executors; import java.time.Duration; import java.util.List; @@ -25,32 +25,32 @@ import java.util.concurrent.TimeUnit; import java.util.concurrent.TimeoutException; import java.util.function.Predicate; -import org.openworkflow.api.types.CatchErrors; -import org.openworkflow.api.types.ErrorFilter; -import org.openworkflow.api.types.FlowDirective; -import org.openworkflow.api.types.Retry; -import org.openworkflow.api.types.RetryBackoff; -import org.openworkflow.api.types.RetryLimit; -import org.openworkflow.api.types.RetryPolicy; -import org.openworkflow.api.types.TaskItem; -import org.openworkflow.api.types.TryTask; -import org.openworkflow.api.types.TryTaskCatch; -import org.openworkflow.impl.TaskContext; -import org.openworkflow.impl.WorkflowContext; -import org.openworkflow.impl.WorkflowDefinition; -import org.openworkflow.impl.WorkflowError; -import org.openworkflow.impl.WorkflowException; -import org.openworkflow.impl.WorkflowModel; -import org.openworkflow.impl.WorkflowMutablePosition; -import org.openworkflow.impl.WorkflowPredicate; -import org.openworkflow.impl.WorkflowUtils; -import org.openworkflow.impl.WorkflowValueResolver; -import org.openworkflow.impl.executors.retry.ConstantRetryIntervalFunction; -import org.openworkflow.impl.executors.retry.DefaultRetryExecutor; -import org.openworkflow.impl.executors.retry.ExponentialRetryIntervalFunction; -import org.openworkflow.impl.executors.retry.LinearRetryIntervalFunction; -import org.openworkflow.impl.executors.retry.RetryExecutor; -import org.openworkflow.impl.executors.retry.RetryIntervalFunction; +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/org/openworkflow/impl/executors/WaitExecutor.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/executors/WaitExecutor.java similarity index 81% rename from impl/core/src/main/java/org/openworkflow/impl/executors/WaitExecutor.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/executors/WaitExecutor.java index 3975fcc7d..6ef5a3c21 100644 --- a/impl/core/src/main/java/org/openworkflow/impl/executors/WaitExecutor.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/executors/WaitExecutor.java @@ -13,20 +13,20 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.executors; +package org.openworkflow.sdk.impl.executors; import java.time.Duration; import java.util.concurrent.CompletableFuture; import java.util.concurrent.TimeUnit; -import org.openworkflow.api.types.WaitTask; -import org.openworkflow.impl.TaskContext; -import org.openworkflow.impl.WorkflowContext; -import org.openworkflow.impl.WorkflowDefinition; -import org.openworkflow.impl.WorkflowModel; -import org.openworkflow.impl.WorkflowMutablePosition; -import org.openworkflow.impl.WorkflowStatus; -import org.openworkflow.impl.WorkflowUtils; -import org.openworkflow.impl.WorkflowValueResolver; +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/org/openworkflow/impl/executors/retry/AbstractRetryIntervalFunction.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/executors/retry/AbstractRetryIntervalFunction.java similarity index 84% rename from impl/core/src/main/java/org/openworkflow/impl/executors/retry/AbstractRetryIntervalFunction.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/executors/retry/AbstractRetryIntervalFunction.java index f8c4dcd7f..3d6e27d36 100644 --- a/impl/core/src/main/java/org/openworkflow/impl/executors/retry/AbstractRetryIntervalFunction.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/executors/retry/AbstractRetryIntervalFunction.java @@ -13,18 +13,18 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.executors.retry; +package org.openworkflow.sdk.impl.executors.retry; import java.time.Duration; import java.util.Optional; -import org.openworkflow.api.types.RetryPolicyJitter; -import org.openworkflow.api.types.TimeoutAfter; -import org.openworkflow.impl.TaskContext; -import org.openworkflow.impl.WorkflowApplication; -import org.openworkflow.impl.WorkflowContext; -import org.openworkflow.impl.WorkflowModel; -import org.openworkflow.impl.WorkflowUtils; -import org.openworkflow.impl.WorkflowValueResolver; +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/org/openworkflow/impl/executors/retry/ConstantRetryIntervalFunction.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/executors/retry/ConstantRetryIntervalFunction.java similarity index 82% rename from impl/core/src/main/java/org/openworkflow/impl/executors/retry/ConstantRetryIntervalFunction.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/executors/retry/ConstantRetryIntervalFunction.java index cab3b0629..691afa47c 100644 --- a/impl/core/src/main/java/org/openworkflow/impl/executors/retry/ConstantRetryIntervalFunction.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/executors/retry/ConstantRetryIntervalFunction.java @@ -13,12 +13,12 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.executors.retry; +package org.openworkflow.sdk.impl.executors.retry; import java.time.Duration; -import org.openworkflow.api.types.RetryPolicyJitter; -import org.openworkflow.api.types.TimeoutAfter; -import org.openworkflow.impl.WorkflowApplication; +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/org/openworkflow/impl/executors/retry/DefaultRetryExecutor.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/executors/retry/DefaultRetryExecutor.java similarity index 88% rename from impl/core/src/main/java/org/openworkflow/impl/executors/retry/DefaultRetryExecutor.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/executors/retry/DefaultRetryExecutor.java index 60c0a0c4a..06cc0a7b3 100644 --- a/impl/core/src/main/java/org/openworkflow/impl/executors/retry/DefaultRetryExecutor.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/executors/retry/DefaultRetryExecutor.java @@ -13,17 +13,17 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.executors.retry; +package org.openworkflow.sdk.impl.executors.retry; import java.time.Duration; import java.util.Optional; import java.util.concurrent.CompletableFuture; import java.util.concurrent.TimeUnit; -import org.openworkflow.impl.TaskContext; -import org.openworkflow.impl.WorkflowContext; -import org.openworkflow.impl.WorkflowModel; -import org.openworkflow.impl.WorkflowPredicate; -import org.openworkflow.impl.WorkflowUtils; +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/org/openworkflow/impl/executors/retry/ExponentialRetryIntervalFunction.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/executors/retry/ExponentialRetryIntervalFunction.java similarity index 84% rename from impl/core/src/main/java/org/openworkflow/impl/executors/retry/ExponentialRetryIntervalFunction.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/executors/retry/ExponentialRetryIntervalFunction.java index 23a04d52f..fbcd210d0 100644 --- a/impl/core/src/main/java/org/openworkflow/impl/executors/retry/ExponentialRetryIntervalFunction.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/executors/retry/ExponentialRetryIntervalFunction.java @@ -13,12 +13,12 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.executors.retry; +package org.openworkflow.sdk.impl.executors.retry; import java.time.Duration; -import org.openworkflow.api.types.RetryPolicyJitter; -import org.openworkflow.api.types.TimeoutAfter; -import org.openworkflow.impl.WorkflowApplication; +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/org/openworkflow/impl/executors/retry/LinearRetryIntervalFunction.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/executors/retry/LinearRetryIntervalFunction.java similarity index 82% rename from impl/core/src/main/java/org/openworkflow/impl/executors/retry/LinearRetryIntervalFunction.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/executors/retry/LinearRetryIntervalFunction.java index ff74b9a8d..bd36463b2 100644 --- a/impl/core/src/main/java/org/openworkflow/impl/executors/retry/LinearRetryIntervalFunction.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/executors/retry/LinearRetryIntervalFunction.java @@ -13,12 +13,12 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.executors.retry; +package org.openworkflow.sdk.impl.executors.retry; import java.time.Duration; -import org.openworkflow.api.types.RetryPolicyJitter; -import org.openworkflow.api.types.TimeoutAfter; -import org.openworkflow.impl.WorkflowApplication; +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/org/openworkflow/impl/executors/retry/RetryExecutor.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/executors/retry/RetryExecutor.java similarity index 83% rename from impl/core/src/main/java/org/openworkflow/impl/executors/retry/RetryExecutor.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/executors/retry/RetryExecutor.java index 17984c68f..28e7120d3 100644 --- a/impl/core/src/main/java/org/openworkflow/impl/executors/retry/RetryExecutor.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/executors/retry/RetryExecutor.java @@ -13,13 +13,13 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.executors.retry; +package org.openworkflow.sdk.impl.executors.retry; import java.util.Optional; import java.util.concurrent.CompletableFuture; -import org.openworkflow.impl.TaskContext; -import org.openworkflow.impl.WorkflowContext; -import org.openworkflow.impl.WorkflowModel; +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/org/openworkflow/impl/executors/retry/RetryIntervalFunction.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/executors/retry/RetryIntervalFunction.java similarity index 81% rename from impl/core/src/main/java/org/openworkflow/impl/executors/retry/RetryIntervalFunction.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/executors/retry/RetryIntervalFunction.java index b51e92b42..47d6eb885 100644 --- a/impl/core/src/main/java/org/openworkflow/impl/executors/retry/RetryIntervalFunction.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/executors/retry/RetryIntervalFunction.java @@ -13,12 +13,12 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.executors.retry; +package org.openworkflow.sdk.impl.executors.retry; import java.time.Duration; -import org.openworkflow.impl.TaskContext; -import org.openworkflow.impl.WorkflowContext; -import org.openworkflow.impl.WorkflowModel; +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/org/openworkflow/impl/expressions/AbstractExpressionFactory.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/expressions/AbstractExpressionFactory.java similarity index 93% rename from impl/core/src/main/java/org/openworkflow/impl/expressions/AbstractExpressionFactory.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/expressions/AbstractExpressionFactory.java index a1d77d460..ee1f81f8b 100644 --- a/impl/core/src/main/java/org/openworkflow/impl/expressions/AbstractExpressionFactory.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/expressions/AbstractExpressionFactory.java @@ -13,15 +13,15 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.expressions; +package org.openworkflow.sdk.impl.expressions; import io.cloudevents.CloudEventData; import java.time.OffsetDateTime; import java.util.Collection; import java.util.Map; -import org.openworkflow.impl.WorkflowFilter; -import org.openworkflow.impl.WorkflowModelFactory; -import org.openworkflow.impl.WorkflowValueResolver; +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/org/openworkflow/impl/expressions/AbstractProxyCollection.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/expressions/AbstractProxyCollection.java similarity index 97% rename from impl/core/src/main/java/org/openworkflow/impl/expressions/AbstractProxyCollection.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/expressions/AbstractProxyCollection.java index 4dd3e990a..75fe8613f 100644 --- a/impl/core/src/main/java/org/openworkflow/impl/expressions/AbstractProxyCollection.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/expressions/AbstractProxyCollection.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.expressions; +package org.openworkflow.sdk.impl.expressions; import java.util.Collection; diff --git a/impl/core/src/main/java/org/openworkflow/impl/expressions/DateTimeDescriptor.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/expressions/DateTimeDescriptor.java similarity index 96% rename from impl/core/src/main/java/org/openworkflow/impl/expressions/DateTimeDescriptor.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/expressions/DateTimeDescriptor.java index 4fe1f6c7b..b217df2be 100644 --- a/impl/core/src/main/java/org/openworkflow/impl/expressions/DateTimeDescriptor.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/expressions/DateTimeDescriptor.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.expressions; +package org.openworkflow.sdk.impl.expressions; import java.time.Instant; diff --git a/impl/core/src/main/java/org/openworkflow/impl/expressions/ExpressionDescriptor.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/expressions/ExpressionDescriptor.java similarity index 95% rename from impl/core/src/main/java/org/openworkflow/impl/expressions/ExpressionDescriptor.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/expressions/ExpressionDescriptor.java index 58644616e..efa817aba 100644 --- a/impl/core/src/main/java/org/openworkflow/impl/expressions/ExpressionDescriptor.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/expressions/ExpressionDescriptor.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.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/org/openworkflow/impl/expressions/ExpressionFactory.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/expressions/ExpressionFactory.java similarity index 85% rename from impl/core/src/main/java/org/openworkflow/impl/expressions/ExpressionFactory.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/expressions/ExpressionFactory.java index 354f8eee1..09980364a 100644 --- a/impl/core/src/main/java/org/openworkflow/impl/expressions/ExpressionFactory.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/expressions/ExpressionFactory.java @@ -13,18 +13,18 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.expressions; +package org.openworkflow.sdk.impl.expressions; import io.cloudevents.CloudEventData; import java.time.OffsetDateTime; import java.util.Collection; import java.util.Map; import java.util.Optional; -import org.openworkflow.api.types.TaskBase; -import org.openworkflow.impl.WorkflowFilter; -import org.openworkflow.impl.WorkflowModelFactory; -import org.openworkflow.impl.WorkflowPredicate; -import org.openworkflow.impl.WorkflowValueResolver; +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/org/openworkflow/impl/expressions/ExpressionUtils.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/expressions/ExpressionUtils.java similarity index 96% rename from impl/core/src/main/java/org/openworkflow/impl/expressions/ExpressionUtils.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/expressions/ExpressionUtils.java index 01377d7b9..146a92c14 100644 --- a/impl/core/src/main/java/org/openworkflow/impl/expressions/ExpressionUtils.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/expressions/ExpressionUtils.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.expressions; +package org.openworkflow.sdk.impl.expressions; public class ExpressionUtils { diff --git a/impl/core/src/main/java/org/openworkflow/impl/expressions/ExpressionValidationException.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/expressions/ExpressionValidationException.java similarity index 95% rename from impl/core/src/main/java/org/openworkflow/impl/expressions/ExpressionValidationException.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/expressions/ExpressionValidationException.java index 1db401e7c..86d9c1194 100644 --- a/impl/core/src/main/java/org/openworkflow/impl/expressions/ExpressionValidationException.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/expressions/ExpressionValidationException.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.expressions; +package org.openworkflow.sdk.impl.expressions; public class ExpressionValidationException extends RuntimeException { diff --git a/impl/core/src/main/java/org/openworkflow/impl/expressions/ObjectExpression.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/expressions/ObjectExpression.java similarity index 79% rename from impl/core/src/main/java/org/openworkflow/impl/expressions/ObjectExpression.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/expressions/ObjectExpression.java index b52864d65..ef31c9714 100644 --- a/impl/core/src/main/java/org/openworkflow/impl/expressions/ObjectExpression.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/expressions/ObjectExpression.java @@ -13,11 +13,11 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.expressions; +package org.openworkflow.sdk.impl.expressions; -import org.openworkflow.impl.TaskContext; -import org.openworkflow.impl.WorkflowContext; -import org.openworkflow.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/org/openworkflow/impl/expressions/ObjectExpressionFactory.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/expressions/ObjectExpressionFactory.java similarity index 92% rename from impl/core/src/main/java/org/openworkflow/impl/expressions/ObjectExpressionFactory.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/expressions/ObjectExpressionFactory.java index 8fc0f7851..ce162558e 100644 --- a/impl/core/src/main/java/org/openworkflow/impl/expressions/ObjectExpressionFactory.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/expressions/ObjectExpressionFactory.java @@ -13,17 +13,17 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.expressions; +package org.openworkflow.sdk.impl.expressions; import java.util.Collection; import java.util.Map; import java.util.Optional; -import org.openworkflow.api.types.TaskBase; -import org.openworkflow.impl.TaskContext; -import org.openworkflow.impl.WorkflowContext; -import org.openworkflow.impl.WorkflowModel; -import org.openworkflow.impl.WorkflowPredicate; -import org.openworkflow.impl.WorkflowValueResolver; +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/org/openworkflow/impl/expressions/ProxyCollection.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/expressions/ProxyCollection.java similarity index 96% rename from impl/core/src/main/java/org/openworkflow/impl/expressions/ProxyCollection.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/expressions/ProxyCollection.java index 262c5c85e..ac44a5a8b 100644 --- a/impl/core/src/main/java/org/openworkflow/impl/expressions/ProxyCollection.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/expressions/ProxyCollection.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.expressions; +package org.openworkflow.sdk.impl.expressions; import java.util.Collection; import java.util.Iterator; diff --git a/impl/core/src/main/java/org/openworkflow/impl/expressions/ProxyIterator.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/expressions/ProxyIterator.java similarity index 96% rename from impl/core/src/main/java/org/openworkflow/impl/expressions/ProxyIterator.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/expressions/ProxyIterator.java index 19782d1f4..8b46b8ac8 100644 --- a/impl/core/src/main/java/org/openworkflow/impl/expressions/ProxyIterator.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/expressions/ProxyIterator.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.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/org/openworkflow/impl/expressions/ProxyMap.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/expressions/ProxyMap.java similarity index 98% rename from impl/core/src/main/java/org/openworkflow/impl/expressions/ProxyMap.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/expressions/ProxyMap.java index d39e4490e..744eb9e36 100644 --- a/impl/core/src/main/java/org/openworkflow/impl/expressions/ProxyMap.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/expressions/ProxyMap.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.expressions; +package org.openworkflow.sdk.impl.expressions; import java.util.Collection; import java.util.Iterator; diff --git a/impl/core/src/main/java/org/openworkflow/impl/expressions/RuntimeDescriptor.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/expressions/RuntimeDescriptor.java similarity index 94% rename from impl/core/src/main/java/org/openworkflow/impl/expressions/RuntimeDescriptor.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/expressions/RuntimeDescriptor.java index 31581528e..7024dd56b 100644 --- a/impl/core/src/main/java/org/openworkflow/impl/expressions/RuntimeDescriptor.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/expressions/RuntimeDescriptor.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.expressions; +package org.openworkflow.sdk.impl.expressions; import java.util.Map; diff --git a/impl/core/src/main/java/org/openworkflow/impl/expressions/TaskDescriptor.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/expressions/TaskDescriptor.java similarity index 85% rename from impl/core/src/main/java/org/openworkflow/impl/expressions/TaskDescriptor.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/expressions/TaskDescriptor.java index 27703eec0..ca81f6ce3 100644 --- a/impl/core/src/main/java/org/openworkflow/impl/expressions/TaskDescriptor.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/expressions/TaskDescriptor.java @@ -13,11 +13,11 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.expressions; +package org.openworkflow.sdk.impl.expressions; -import org.openworkflow.api.types.TaskBase; -import org.openworkflow.impl.TaskContext; -import org.openworkflow.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/org/openworkflow/impl/expressions/WorkflowDescriptor.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/expressions/WorkflowDescriptor.java similarity index 81% rename from impl/core/src/main/java/org/openworkflow/impl/expressions/WorkflowDescriptor.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/expressions/WorkflowDescriptor.java index 6eb221953..8f73225b0 100644 --- a/impl/core/src/main/java/org/openworkflow/impl/expressions/WorkflowDescriptor.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/expressions/WorkflowDescriptor.java @@ -13,12 +13,12 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.expressions; +package org.openworkflow.sdk.impl.expressions; -import org.openworkflow.api.types.TaskBase; -import org.openworkflow.api.types.Workflow; -import org.openworkflow.impl.WorkflowContext; -import org.openworkflow.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/org/openworkflow/impl/lifecycle/EventType.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/lifecycle/EventType.java similarity index 94% rename from impl/core/src/main/java/org/openworkflow/impl/lifecycle/EventType.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/lifecycle/EventType.java index 11ea92d69..ce64985ee 100644 --- a/impl/core/src/main/java/org/openworkflow/impl/lifecycle/EventType.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/lifecycle/EventType.java @@ -13,9 +13,9 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.lifecycle; +package org.openworkflow.sdk.impl.lifecycle; -import org.openworkflow.impl.LifecycleEvents; +import org.openworkflow.sdk.impl.LifecycleEvents; public enum EventType { TASK_STARTED(LifecycleEvents.TASK_STARTED), diff --git a/impl/core/src/main/java/org/openworkflow/impl/lifecycle/TaskCancelledEvent.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/lifecycle/TaskCancelledEvent.java similarity index 86% rename from impl/core/src/main/java/org/openworkflow/impl/lifecycle/TaskCancelledEvent.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/lifecycle/TaskCancelledEvent.java index 572bd6875..b3c250b8e 100644 --- a/impl/core/src/main/java/org/openworkflow/impl/lifecycle/TaskCancelledEvent.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/lifecycle/TaskCancelledEvent.java @@ -13,10 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.lifecycle; +package org.openworkflow.sdk.impl.lifecycle; -import org.openworkflow.impl.TaskContext; -import org.openworkflow.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/org/openworkflow/impl/lifecycle/TaskCompletedEvent.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/lifecycle/TaskCompletedEvent.java similarity index 86% rename from impl/core/src/main/java/org/openworkflow/impl/lifecycle/TaskCompletedEvent.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/lifecycle/TaskCompletedEvent.java index 9eba04926..119138cea 100644 --- a/impl/core/src/main/java/org/openworkflow/impl/lifecycle/TaskCompletedEvent.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/lifecycle/TaskCompletedEvent.java @@ -13,10 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.lifecycle; +package org.openworkflow.sdk.impl.lifecycle; -import org.openworkflow.impl.TaskContext; -import org.openworkflow.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/org/openworkflow/impl/lifecycle/TaskEvent.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/lifecycle/TaskEvent.java similarity index 85% rename from impl/core/src/main/java/org/openworkflow/impl/lifecycle/TaskEvent.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/lifecycle/TaskEvent.java index 66a28c326..57c8a1314 100644 --- a/impl/core/src/main/java/org/openworkflow/impl/lifecycle/TaskEvent.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/lifecycle/TaskEvent.java @@ -13,10 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.lifecycle; +package org.openworkflow.sdk.impl.lifecycle; -import org.openworkflow.impl.TaskContextData; -import org.openworkflow.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/org/openworkflow/impl/lifecycle/TaskFailedEvent.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/lifecycle/TaskFailedEvent.java similarity index 87% rename from impl/core/src/main/java/org/openworkflow/impl/lifecycle/TaskFailedEvent.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/lifecycle/TaskFailedEvent.java index be3a61ef2..4a20c7483 100644 --- a/impl/core/src/main/java/org/openworkflow/impl/lifecycle/TaskFailedEvent.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/lifecycle/TaskFailedEvent.java @@ -13,10 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.lifecycle; +package org.openworkflow.sdk.impl.lifecycle; -import org.openworkflow.impl.TaskContext; -import org.openworkflow.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/org/openworkflow/impl/lifecycle/TaskResumedEvent.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/lifecycle/TaskResumedEvent.java similarity index 85% rename from impl/core/src/main/java/org/openworkflow/impl/lifecycle/TaskResumedEvent.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/lifecycle/TaskResumedEvent.java index 64435e2b3..7447deed1 100644 --- a/impl/core/src/main/java/org/openworkflow/impl/lifecycle/TaskResumedEvent.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/lifecycle/TaskResumedEvent.java @@ -13,10 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.lifecycle; +package org.openworkflow.sdk.impl.lifecycle; -import org.openworkflow.impl.TaskContext; -import org.openworkflow.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/org/openworkflow/impl/lifecycle/TaskRetriedEvent.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/lifecycle/TaskRetriedEvent.java similarity index 85% rename from impl/core/src/main/java/org/openworkflow/impl/lifecycle/TaskRetriedEvent.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/lifecycle/TaskRetriedEvent.java index 9e2e56177..e7a38cf23 100644 --- a/impl/core/src/main/java/org/openworkflow/impl/lifecycle/TaskRetriedEvent.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/lifecycle/TaskRetriedEvent.java @@ -13,10 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.lifecycle; +package org.openworkflow.sdk.impl.lifecycle; -import org.openworkflow.impl.TaskContext; -import org.openworkflow.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/org/openworkflow/impl/lifecycle/TaskStartedEvent.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/lifecycle/TaskStartedEvent.java similarity index 85% rename from impl/core/src/main/java/org/openworkflow/impl/lifecycle/TaskStartedEvent.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/lifecycle/TaskStartedEvent.java index 254825921..f7c8ec9c0 100644 --- a/impl/core/src/main/java/org/openworkflow/impl/lifecycle/TaskStartedEvent.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/lifecycle/TaskStartedEvent.java @@ -13,10 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.lifecycle; +package org.openworkflow.sdk.impl.lifecycle; -import org.openworkflow.impl.TaskContext; -import org.openworkflow.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/org/openworkflow/impl/lifecycle/TaskSuspendedEvent.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/lifecycle/TaskSuspendedEvent.java similarity index 86% rename from impl/core/src/main/java/org/openworkflow/impl/lifecycle/TaskSuspendedEvent.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/lifecycle/TaskSuspendedEvent.java index 35bd78100..c9d031446 100644 --- a/impl/core/src/main/java/org/openworkflow/impl/lifecycle/TaskSuspendedEvent.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/lifecycle/TaskSuspendedEvent.java @@ -13,10 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.lifecycle; +package org.openworkflow.sdk.impl.lifecycle; -import org.openworkflow.impl.TaskContext; -import org.openworkflow.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/org/openworkflow/impl/lifecycle/TraceExecutionListener.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/lifecycle/TraceExecutionListener.java similarity index 98% rename from impl/core/src/main/java/org/openworkflow/impl/lifecycle/TraceExecutionListener.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/lifecycle/TraceExecutionListener.java index 69bf77eeb..b2f745527 100644 --- a/impl/core/src/main/java/org/openworkflow/impl/lifecycle/TraceExecutionListener.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/lifecycle/TraceExecutionListener.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.lifecycle; +package org.openworkflow.sdk.impl.lifecycle; import org.slf4j.Logger; import org.slf4j.LoggerFactory; diff --git a/impl/core/src/main/java/org/openworkflow/impl/lifecycle/WorkflowCancelledEvent.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/lifecycle/WorkflowCancelledEvent.java similarity index 89% rename from impl/core/src/main/java/org/openworkflow/impl/lifecycle/WorkflowCancelledEvent.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/lifecycle/WorkflowCancelledEvent.java index 023db9e56..1e1d10adc 100644 --- a/impl/core/src/main/java/org/openworkflow/impl/lifecycle/WorkflowCancelledEvent.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/lifecycle/WorkflowCancelledEvent.java @@ -13,9 +13,9 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.lifecycle; +package org.openworkflow.sdk.impl.lifecycle; -import org.openworkflow.impl.WorkflowContextData; +import org.openworkflow.sdk.impl.WorkflowContextData; public class WorkflowCancelledEvent extends WorkflowEvent { diff --git a/impl/core/src/main/java/org/openworkflow/impl/lifecycle/WorkflowCompletedEvent.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/lifecycle/WorkflowCompletedEvent.java similarity index 87% rename from impl/core/src/main/java/org/openworkflow/impl/lifecycle/WorkflowCompletedEvent.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/lifecycle/WorkflowCompletedEvent.java index a83a652f7..5d6209d2d 100644 --- a/impl/core/src/main/java/org/openworkflow/impl/lifecycle/WorkflowCompletedEvent.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/lifecycle/WorkflowCompletedEvent.java @@ -13,10 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.lifecycle; +package org.openworkflow.sdk.impl.lifecycle; -import org.openworkflow.impl.WorkflowContextData; -import org.openworkflow.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/org/openworkflow/impl/lifecycle/WorkflowEvent.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/lifecycle/WorkflowEvent.java similarity index 91% rename from impl/core/src/main/java/org/openworkflow/impl/lifecycle/WorkflowEvent.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/lifecycle/WorkflowEvent.java index 1e9190310..c74f1ceac 100644 --- a/impl/core/src/main/java/org/openworkflow/impl/lifecycle/WorkflowEvent.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/lifecycle/WorkflowEvent.java @@ -13,10 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.lifecycle; +package org.openworkflow.sdk.impl.lifecycle; import java.time.OffsetDateTime; -import org.openworkflow.impl.WorkflowContextData; +import org.openworkflow.sdk.impl.WorkflowContextData; public abstract class WorkflowEvent { diff --git a/impl/core/src/main/java/org/openworkflow/impl/lifecycle/WorkflowExecutionCompletableListener.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/lifecycle/WorkflowExecutionCompletableListener.java similarity index 96% rename from impl/core/src/main/java/org/openworkflow/impl/lifecycle/WorkflowExecutionCompletableListener.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/lifecycle/WorkflowExecutionCompletableListener.java index 5d02a3a27..94b13397b 100644 --- a/impl/core/src/main/java/org/openworkflow/impl/lifecycle/WorkflowExecutionCompletableListener.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/lifecycle/WorkflowExecutionCompletableListener.java @@ -13,10 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.lifecycle; +package org.openworkflow.sdk.impl.lifecycle; import java.util.concurrent.CompletableFuture; -import org.openworkflow.impl.ServicePriority; +import org.openworkflow.sdk.impl.ServicePriority; public interface WorkflowExecutionCompletableListener extends AutoCloseable, ServicePriority { diff --git a/impl/core/src/main/java/org/openworkflow/impl/lifecycle/WorkflowExecutionListener.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/lifecycle/WorkflowExecutionListener.java similarity index 94% rename from impl/core/src/main/java/org/openworkflow/impl/lifecycle/WorkflowExecutionListener.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/lifecycle/WorkflowExecutionListener.java index a903cb166..47fb7fcd9 100644 --- a/impl/core/src/main/java/org/openworkflow/impl/lifecycle/WorkflowExecutionListener.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/lifecycle/WorkflowExecutionListener.java @@ -13,9 +13,9 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.lifecycle; +package org.openworkflow.sdk.impl.lifecycle; -import org.openworkflow.impl.ServicePriority; +import org.openworkflow.sdk.impl.ServicePriority; public interface WorkflowExecutionListener extends AutoCloseable, ServicePriority { diff --git a/impl/core/src/main/java/org/openworkflow/impl/lifecycle/WorkflowExecutionListenerAdapter.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/lifecycle/WorkflowExecutionListenerAdapter.java similarity index 99% rename from impl/core/src/main/java/org/openworkflow/impl/lifecycle/WorkflowExecutionListenerAdapter.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/lifecycle/WorkflowExecutionListenerAdapter.java index efed1b43c..e3bf79f6b 100644 --- a/impl/core/src/main/java/org/openworkflow/impl/lifecycle/WorkflowExecutionListenerAdapter.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/lifecycle/WorkflowExecutionListenerAdapter.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.lifecycle; +package org.openworkflow.sdk.impl.lifecycle; import java.util.concurrent.CompletableFuture; diff --git a/impl/core/src/main/java/org/openworkflow/impl/lifecycle/WorkflowFailedEvent.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/lifecycle/WorkflowFailedEvent.java similarity index 90% rename from impl/core/src/main/java/org/openworkflow/impl/lifecycle/WorkflowFailedEvent.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/lifecycle/WorkflowFailedEvent.java index 87eea4a71..d45736076 100644 --- a/impl/core/src/main/java/org/openworkflow/impl/lifecycle/WorkflowFailedEvent.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/lifecycle/WorkflowFailedEvent.java @@ -13,9 +13,9 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.lifecycle; +package org.openworkflow.sdk.impl.lifecycle; -import org.openworkflow.impl.WorkflowContextData; +import org.openworkflow.sdk.impl.WorkflowContextData; public class WorkflowFailedEvent extends WorkflowEvent { diff --git a/impl/core/src/main/java/org/openworkflow/impl/lifecycle/WorkflowResumedEvent.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/lifecycle/WorkflowResumedEvent.java similarity index 89% rename from impl/core/src/main/java/org/openworkflow/impl/lifecycle/WorkflowResumedEvent.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/lifecycle/WorkflowResumedEvent.java index 6a28a3db0..dc0146876 100644 --- a/impl/core/src/main/java/org/openworkflow/impl/lifecycle/WorkflowResumedEvent.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/lifecycle/WorkflowResumedEvent.java @@ -13,9 +13,9 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.lifecycle; +package org.openworkflow.sdk.impl.lifecycle; -import org.openworkflow.impl.WorkflowContextData; +import org.openworkflow.sdk.impl.WorkflowContextData; public class WorkflowResumedEvent extends WorkflowEvent { diff --git a/impl/core/src/main/java/org/openworkflow/impl/lifecycle/WorkflowStartedEvent.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/lifecycle/WorkflowStartedEvent.java similarity index 89% rename from impl/core/src/main/java/org/openworkflow/impl/lifecycle/WorkflowStartedEvent.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/lifecycle/WorkflowStartedEvent.java index 7af350533..901750a63 100644 --- a/impl/core/src/main/java/org/openworkflow/impl/lifecycle/WorkflowStartedEvent.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/lifecycle/WorkflowStartedEvent.java @@ -13,9 +13,9 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.lifecycle; +package org.openworkflow.sdk.impl.lifecycle; -import org.openworkflow.impl.WorkflowContextData; +import org.openworkflow.sdk.impl.WorkflowContextData; public class WorkflowStartedEvent extends WorkflowEvent { diff --git a/impl/core/src/main/java/org/openworkflow/impl/lifecycle/WorkflowStatusEvent.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/lifecycle/WorkflowStatusEvent.java similarity index 88% rename from impl/core/src/main/java/org/openworkflow/impl/lifecycle/WorkflowStatusEvent.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/lifecycle/WorkflowStatusEvent.java index 8ef6084ad..a17dd8d55 100644 --- a/impl/core/src/main/java/org/openworkflow/impl/lifecycle/WorkflowStatusEvent.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/lifecycle/WorkflowStatusEvent.java @@ -13,10 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.lifecycle; +package org.openworkflow.sdk.impl.lifecycle; -import org.openworkflow.impl.WorkflowContextData; -import org.openworkflow.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/org/openworkflow/impl/lifecycle/WorkflowSuspendedEvent.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/lifecycle/WorkflowSuspendedEvent.java similarity index 89% rename from impl/core/src/main/java/org/openworkflow/impl/lifecycle/WorkflowSuspendedEvent.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/lifecycle/WorkflowSuspendedEvent.java index 7c60f98f4..9a90597c3 100644 --- a/impl/core/src/main/java/org/openworkflow/impl/lifecycle/WorkflowSuspendedEvent.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/lifecycle/WorkflowSuspendedEvent.java @@ -13,9 +13,9 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.lifecycle; +package org.openworkflow.sdk.impl.lifecycle; -import org.openworkflow.impl.WorkflowContextData; +import org.openworkflow.sdk.impl.WorkflowContextData; public class WorkflowSuspendedEvent extends WorkflowEvent { diff --git a/impl/core/src/main/java/org/openworkflow/impl/lifecycle/ce/AbstractLifeCyclePublisher.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/lifecycle/ce/AbstractLifeCyclePublisher.java similarity index 81% rename from impl/core/src/main/java/org/openworkflow/impl/lifecycle/ce/AbstractLifeCyclePublisher.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/lifecycle/ce/AbstractLifeCyclePublisher.java index 521e98927..ffe1e6ad0 100644 --- a/impl/core/src/main/java/org/openworkflow/impl/lifecycle/ce/AbstractLifeCyclePublisher.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/lifecycle/ce/AbstractLifeCyclePublisher.java @@ -13,23 +13,23 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.lifecycle.ce; - -import static org.openworkflow.impl.LifecycleEvents.APPLICATION_ID_EXTENSION; -import static org.openworkflow.impl.LifecycleEvents.TASK_CANCELLED; -import static org.openworkflow.impl.LifecycleEvents.TASK_COMPLETED; -import static org.openworkflow.impl.LifecycleEvents.TASK_FAULTED; -import static org.openworkflow.impl.LifecycleEvents.TASK_RESUMED; -import static org.openworkflow.impl.LifecycleEvents.TASK_RETRIED; -import static org.openworkflow.impl.LifecycleEvents.TASK_STARTED; -import static org.openworkflow.impl.LifecycleEvents.TASK_SUSPENDED; -import static org.openworkflow.impl.LifecycleEvents.WORKFLOW_CANCELLED; -import static org.openworkflow.impl.LifecycleEvents.WORKFLOW_COMPLETED; -import static org.openworkflow.impl.LifecycleEvents.WORKFLOW_FAULTED; -import static org.openworkflow.impl.LifecycleEvents.WORKFLOW_RESUMED; -import static org.openworkflow.impl.LifecycleEvents.WORKFLOW_STARTED; -import static org.openworkflow.impl.LifecycleEvents.WORKFLOW_STATUS_CHANGED; -import static org.openworkflow.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; @@ -40,24 +40,24 @@ import java.util.Collection; import java.util.Set; import java.util.function.Function; -import org.openworkflow.impl.WorkflowApplication; -import org.openworkflow.impl.events.CloudEventUtils; -import org.openworkflow.impl.lifecycle.TaskCancelledEvent; -import org.openworkflow.impl.lifecycle.TaskCompletedEvent; -import org.openworkflow.impl.lifecycle.TaskFailedEvent; -import org.openworkflow.impl.lifecycle.TaskResumedEvent; -import org.openworkflow.impl.lifecycle.TaskRetriedEvent; -import org.openworkflow.impl.lifecycle.TaskStartedEvent; -import org.openworkflow.impl.lifecycle.TaskSuspendedEvent; -import org.openworkflow.impl.lifecycle.WorkflowCancelledEvent; -import org.openworkflow.impl.lifecycle.WorkflowCompletedEvent; -import org.openworkflow.impl.lifecycle.WorkflowEvent; -import org.openworkflow.impl.lifecycle.WorkflowExecutionListener; -import org.openworkflow.impl.lifecycle.WorkflowFailedEvent; -import org.openworkflow.impl.lifecycle.WorkflowResumedEvent; -import org.openworkflow.impl.lifecycle.WorkflowStartedEvent; -import org.openworkflow.impl.lifecycle.WorkflowStatusEvent; -import org.openworkflow.impl.lifecycle.WorkflowSuspendedEvent; +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/org/openworkflow/impl/lifecycle/ce/DefaultLifeCycleCloudEventFactory.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/lifecycle/ce/DefaultLifeCycleCloudEventFactory.java similarity index 73% rename from impl/core/src/main/java/org/openworkflow/impl/lifecycle/ce/DefaultLifeCycleCloudEventFactory.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/lifecycle/ce/DefaultLifeCycleCloudEventFactory.java index b0bcebf4b..e7688d012 100644 --- a/impl/core/src/main/java/org/openworkflow/impl/lifecycle/ce/DefaultLifeCycleCloudEventFactory.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/lifecycle/ce/DefaultLifeCycleCloudEventFactory.java @@ -13,24 +13,24 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.lifecycle.ce; +package org.openworkflow.sdk.impl.lifecycle.ce; import io.cloudevents.CloudEvent; import io.cloudevents.core.builder.CloudEventBuilder; -import org.openworkflow.impl.lifecycle.TaskCancelledEvent; -import org.openworkflow.impl.lifecycle.TaskCompletedEvent; -import org.openworkflow.impl.lifecycle.TaskFailedEvent; -import org.openworkflow.impl.lifecycle.TaskResumedEvent; -import org.openworkflow.impl.lifecycle.TaskRetriedEvent; -import org.openworkflow.impl.lifecycle.TaskStartedEvent; -import org.openworkflow.impl.lifecycle.TaskSuspendedEvent; -import org.openworkflow.impl.lifecycle.WorkflowCancelledEvent; -import org.openworkflow.impl.lifecycle.WorkflowCompletedEvent; -import org.openworkflow.impl.lifecycle.WorkflowFailedEvent; -import org.openworkflow.impl.lifecycle.WorkflowResumedEvent; -import org.openworkflow.impl.lifecycle.WorkflowStartedEvent; -import org.openworkflow.impl.lifecycle.WorkflowStatusEvent; -import org.openworkflow.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/org/openworkflow/impl/lifecycle/ce/InputOutputLifeCycleCloudEventFactory.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/lifecycle/ce/InputOutputLifeCycleCloudEventFactory.java similarity index 80% rename from impl/core/src/main/java/org/openworkflow/impl/lifecycle/ce/InputOutputLifeCycleCloudEventFactory.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/lifecycle/ce/InputOutputLifeCycleCloudEventFactory.java index 45809fff4..cfe92a612 100644 --- a/impl/core/src/main/java/org/openworkflow/impl/lifecycle/ce/InputOutputLifeCycleCloudEventFactory.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/lifecycle/ce/InputOutputLifeCycleCloudEventFactory.java @@ -13,12 +13,12 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.lifecycle.ce; +package org.openworkflow.sdk.impl.lifecycle.ce; -import org.openworkflow.impl.lifecycle.TaskCompletedEvent; -import org.openworkflow.impl.lifecycle.TaskStartedEvent; -import org.openworkflow.impl.lifecycle.WorkflowCompletedEvent; -import org.openworkflow.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/org/openworkflow/impl/lifecycle/ce/TaskCEData.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/lifecycle/ce/TaskCEData.java similarity index 88% rename from impl/core/src/main/java/org/openworkflow/impl/lifecycle/ce/TaskCEData.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/lifecycle/ce/TaskCEData.java index 7900c5521..fcc93b54f 100644 --- a/impl/core/src/main/java/org/openworkflow/impl/lifecycle/ce/TaskCEData.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/lifecycle/ce/TaskCEData.java @@ -13,13 +13,13 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.lifecycle.ce; +package org.openworkflow.sdk.impl.lifecycle.ce; -import static org.openworkflow.impl.lifecycle.ce.WorkflowCEData.id; -import static org.openworkflow.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 java.util.Objects; -import org.openworkflow.impl.lifecycle.TaskEvent; +import org.openworkflow.sdk.impl.lifecycle.TaskEvent; public class TaskCEData { diff --git a/impl/core/src/main/java/org/openworkflow/impl/lifecycle/ce/TaskCancelledCEData.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/lifecycle/ce/TaskCancelledCEData.java similarity index 94% rename from impl/core/src/main/java/org/openworkflow/impl/lifecycle/ce/TaskCancelledCEData.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/lifecycle/ce/TaskCancelledCEData.java index 1dd7097b1..76bc75f8c 100644 --- a/impl/core/src/main/java/org/openworkflow/impl/lifecycle/ce/TaskCancelledCEData.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/lifecycle/ce/TaskCancelledCEData.java @@ -13,11 +13,11 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.lifecycle.ce; +package org.openworkflow.sdk.impl.lifecycle.ce; import java.time.OffsetDateTime; import java.util.Objects; -import org.openworkflow.impl.lifecycle.TaskCancelledEvent; +import org.openworkflow.sdk.impl.lifecycle.TaskCancelledEvent; public class TaskCancelledCEData extends TaskCEData { private OffsetDateTime cancelledAt; diff --git a/impl/core/src/main/java/org/openworkflow/impl/lifecycle/ce/TaskCompletedCEData.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/lifecycle/ce/TaskCompletedCEData.java similarity index 94% rename from impl/core/src/main/java/org/openworkflow/impl/lifecycle/ce/TaskCompletedCEData.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/lifecycle/ce/TaskCompletedCEData.java index 8542e84f7..f0ae437de 100644 --- a/impl/core/src/main/java/org/openworkflow/impl/lifecycle/ce/TaskCompletedCEData.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/lifecycle/ce/TaskCompletedCEData.java @@ -13,11 +13,11 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.lifecycle.ce; +package org.openworkflow.sdk.impl.lifecycle.ce; import java.time.OffsetDateTime; import java.util.Objects; -import org.openworkflow.impl.lifecycle.TaskCompletedEvent; +import org.openworkflow.sdk.impl.lifecycle.TaskCompletedEvent; public class TaskCompletedCEData extends TaskCEData { diff --git a/impl/core/src/main/java/org/openworkflow/impl/lifecycle/ce/TaskCompletedCEDataWithOutput.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/lifecycle/ce/TaskCompletedCEDataWithOutput.java similarity index 93% rename from impl/core/src/main/java/org/openworkflow/impl/lifecycle/ce/TaskCompletedCEDataWithOutput.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/lifecycle/ce/TaskCompletedCEDataWithOutput.java index fa91647b5..ff2a4c132 100644 --- a/impl/core/src/main/java/org/openworkflow/impl/lifecycle/ce/TaskCompletedCEDataWithOutput.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/lifecycle/ce/TaskCompletedCEDataWithOutput.java @@ -13,10 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.lifecycle.ce; +package org.openworkflow.sdk.impl.lifecycle.ce; import java.util.Objects; -import org.openworkflow.impl.lifecycle.TaskCompletedEvent; +import org.openworkflow.sdk.impl.lifecycle.TaskCompletedEvent; public class TaskCompletedCEDataWithOutput extends TaskCompletedCEData { diff --git a/impl/core/src/main/java/org/openworkflow/impl/lifecycle/ce/TaskFailedCEData.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/lifecycle/ce/TaskFailedCEData.java similarity index 93% rename from impl/core/src/main/java/org/openworkflow/impl/lifecycle/ce/TaskFailedCEData.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/lifecycle/ce/TaskFailedCEData.java index f3734a87d..2eb3cd311 100644 --- a/impl/core/src/main/java/org/openworkflow/impl/lifecycle/ce/TaskFailedCEData.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/lifecycle/ce/TaskFailedCEData.java @@ -13,12 +13,12 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.lifecycle.ce; +package org.openworkflow.sdk.impl.lifecycle.ce; import java.time.OffsetDateTime; import java.util.Objects; -import org.openworkflow.impl.WorkflowError; -import org.openworkflow.impl.lifecycle.TaskFailedEvent; +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/org/openworkflow/impl/lifecycle/ce/TaskResumedCEData.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/lifecycle/ce/TaskResumedCEData.java similarity index 94% rename from impl/core/src/main/java/org/openworkflow/impl/lifecycle/ce/TaskResumedCEData.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/lifecycle/ce/TaskResumedCEData.java index 739d1c1c2..cc05f69e4 100644 --- a/impl/core/src/main/java/org/openworkflow/impl/lifecycle/ce/TaskResumedCEData.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/lifecycle/ce/TaskResumedCEData.java @@ -13,11 +13,11 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.lifecycle.ce; +package org.openworkflow.sdk.impl.lifecycle.ce; import java.time.OffsetDateTime; import java.util.Objects; -import org.openworkflow.impl.lifecycle.TaskResumedEvent; +import org.openworkflow.sdk.impl.lifecycle.TaskResumedEvent; public class TaskResumedCEData extends TaskCEData { private OffsetDateTime resumedAt; diff --git a/impl/core/src/main/java/org/openworkflow/impl/lifecycle/ce/TaskRetriedCEData.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/lifecycle/ce/TaskRetriedCEData.java similarity index 94% rename from impl/core/src/main/java/org/openworkflow/impl/lifecycle/ce/TaskRetriedCEData.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/lifecycle/ce/TaskRetriedCEData.java index bd82c2731..26ad7826b 100644 --- a/impl/core/src/main/java/org/openworkflow/impl/lifecycle/ce/TaskRetriedCEData.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/lifecycle/ce/TaskRetriedCEData.java @@ -13,11 +13,11 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.lifecycle.ce; +package org.openworkflow.sdk.impl.lifecycle.ce; import java.time.OffsetDateTime; import java.util.Objects; -import org.openworkflow.impl.lifecycle.TaskRetriedEvent; +import org.openworkflow.sdk.impl.lifecycle.TaskRetriedEvent; public class TaskRetriedCEData extends TaskCEData { private OffsetDateTime retriedAt; diff --git a/impl/core/src/main/java/org/openworkflow/impl/lifecycle/ce/TaskStartedCEData.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/lifecycle/ce/TaskStartedCEData.java similarity index 94% rename from impl/core/src/main/java/org/openworkflow/impl/lifecycle/ce/TaskStartedCEData.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/lifecycle/ce/TaskStartedCEData.java index 54b630e80..c92c93883 100644 --- a/impl/core/src/main/java/org/openworkflow/impl/lifecycle/ce/TaskStartedCEData.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/lifecycle/ce/TaskStartedCEData.java @@ -13,11 +13,11 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.lifecycle.ce; +package org.openworkflow.sdk.impl.lifecycle.ce; import java.time.OffsetDateTime; import java.util.Objects; -import org.openworkflow.impl.lifecycle.TaskStartedEvent; +import org.openworkflow.sdk.impl.lifecycle.TaskStartedEvent; public class TaskStartedCEData extends TaskCEData { private OffsetDateTime startedAt; diff --git a/impl/core/src/main/java/org/openworkflow/impl/lifecycle/ce/TaskStartedCEDataWithInput.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/lifecycle/ce/TaskStartedCEDataWithInput.java similarity index 93% rename from impl/core/src/main/java/org/openworkflow/impl/lifecycle/ce/TaskStartedCEDataWithInput.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/lifecycle/ce/TaskStartedCEDataWithInput.java index 07470ca51..7d3ef76d5 100644 --- a/impl/core/src/main/java/org/openworkflow/impl/lifecycle/ce/TaskStartedCEDataWithInput.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/lifecycle/ce/TaskStartedCEDataWithInput.java @@ -13,10 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.lifecycle.ce; +package org.openworkflow.sdk.impl.lifecycle.ce; import java.util.Objects; -import org.openworkflow.impl.lifecycle.TaskStartedEvent; +import org.openworkflow.sdk.impl.lifecycle.TaskStartedEvent; public class TaskStartedCEDataWithInput extends TaskStartedCEData { private Object input; diff --git a/impl/core/src/main/java/org/openworkflow/impl/lifecycle/ce/TaskSuspendedCEData.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/lifecycle/ce/TaskSuspendedCEData.java similarity index 94% rename from impl/core/src/main/java/org/openworkflow/impl/lifecycle/ce/TaskSuspendedCEData.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/lifecycle/ce/TaskSuspendedCEData.java index 10545a5e1..3eb90f16d 100644 --- a/impl/core/src/main/java/org/openworkflow/impl/lifecycle/ce/TaskSuspendedCEData.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/lifecycle/ce/TaskSuspendedCEData.java @@ -13,11 +13,11 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.lifecycle.ce; +package org.openworkflow.sdk.impl.lifecycle.ce; import java.time.OffsetDateTime; import java.util.Objects; -import org.openworkflow.impl.lifecycle.TaskSuspendedEvent; +import org.openworkflow.sdk.impl.lifecycle.TaskSuspendedEvent; public class TaskSuspendedCEData extends TaskCEData { diff --git a/impl/core/src/main/java/org/openworkflow/impl/lifecycle/ce/WorkflowCEData.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/lifecycle/ce/WorkflowCEData.java similarity index 90% rename from impl/core/src/main/java/org/openworkflow/impl/lifecycle/ce/WorkflowCEData.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/lifecycle/ce/WorkflowCEData.java index ea50d8dbf..597be9527 100644 --- a/impl/core/src/main/java/org/openworkflow/impl/lifecycle/ce/WorkflowCEData.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/lifecycle/ce/WorkflowCEData.java @@ -13,12 +13,12 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.lifecycle.ce; +package org.openworkflow.sdk.impl.lifecycle.ce; -import static org.openworkflow.impl.lifecycle.ce.WorkflowDefinitionCEData.ref; +import static org.openworkflow.sdk.impl.lifecycle.ce.WorkflowDefinitionCEData.ref; import java.util.Objects; -import org.openworkflow.impl.lifecycle.WorkflowEvent; +import org.openworkflow.sdk.impl.lifecycle.WorkflowEvent; public class WorkflowCEData { diff --git a/impl/core/src/main/java/org/openworkflow/impl/lifecycle/ce/WorkflowCancelledCEData.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/lifecycle/ce/WorkflowCancelledCEData.java similarity index 94% rename from impl/core/src/main/java/org/openworkflow/impl/lifecycle/ce/WorkflowCancelledCEData.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/lifecycle/ce/WorkflowCancelledCEData.java index 502687d15..883194a26 100644 --- a/impl/core/src/main/java/org/openworkflow/impl/lifecycle/ce/WorkflowCancelledCEData.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/lifecycle/ce/WorkflowCancelledCEData.java @@ -13,11 +13,11 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.lifecycle.ce; +package org.openworkflow.sdk.impl.lifecycle.ce; import java.time.OffsetDateTime; import java.util.Objects; -import org.openworkflow.impl.lifecycle.WorkflowCancelledEvent; +import org.openworkflow.sdk.impl.lifecycle.WorkflowCancelledEvent; public class WorkflowCancelledCEData extends WorkflowCEData { private OffsetDateTime cancelledAt; diff --git a/impl/core/src/main/java/org/openworkflow/impl/lifecycle/ce/WorkflowCompletedCEData.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/lifecycle/ce/WorkflowCompletedCEData.java similarity index 94% rename from impl/core/src/main/java/org/openworkflow/impl/lifecycle/ce/WorkflowCompletedCEData.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/lifecycle/ce/WorkflowCompletedCEData.java index ea89e7ee5..7c63dc1c8 100644 --- a/impl/core/src/main/java/org/openworkflow/impl/lifecycle/ce/WorkflowCompletedCEData.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/lifecycle/ce/WorkflowCompletedCEData.java @@ -13,11 +13,11 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.lifecycle.ce; +package org.openworkflow.sdk.impl.lifecycle.ce; import java.time.OffsetDateTime; import java.util.Objects; -import org.openworkflow.impl.lifecycle.WorkflowCompletedEvent; +import org.openworkflow.sdk.impl.lifecycle.WorkflowCompletedEvent; public class WorkflowCompletedCEData extends WorkflowCEData { public WorkflowCompletedCEData(WorkflowCompletedEvent ev) { diff --git a/impl/core/src/main/java/org/openworkflow/impl/lifecycle/ce/WorkflowCompletedCEDataWithOutput.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/lifecycle/ce/WorkflowCompletedCEDataWithOutput.java similarity index 93% rename from impl/core/src/main/java/org/openworkflow/impl/lifecycle/ce/WorkflowCompletedCEDataWithOutput.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/lifecycle/ce/WorkflowCompletedCEDataWithOutput.java index 0adf9f6b1..089915941 100644 --- a/impl/core/src/main/java/org/openworkflow/impl/lifecycle/ce/WorkflowCompletedCEDataWithOutput.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/lifecycle/ce/WorkflowCompletedCEDataWithOutput.java @@ -13,10 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.lifecycle.ce; +package org.openworkflow.sdk.impl.lifecycle.ce; import java.util.Objects; -import org.openworkflow.impl.lifecycle.WorkflowCompletedEvent; +import org.openworkflow.sdk.impl.lifecycle.WorkflowCompletedEvent; public class WorkflowCompletedCEDataWithOutput extends WorkflowCompletedCEData { diff --git a/impl/core/src/main/java/org/openworkflow/impl/lifecycle/ce/WorkflowDefinitionCEData.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/lifecycle/ce/WorkflowDefinitionCEData.java similarity index 85% rename from impl/core/src/main/java/org/openworkflow/impl/lifecycle/ce/WorkflowDefinitionCEData.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/lifecycle/ce/WorkflowDefinitionCEData.java index af77b8bc4..d7cbf3ffb 100644 --- a/impl/core/src/main/java/org/openworkflow/impl/lifecycle/ce/WorkflowDefinitionCEData.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/lifecycle/ce/WorkflowDefinitionCEData.java @@ -13,10 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.lifecycle.ce; +package org.openworkflow.sdk.impl.lifecycle.ce; -import org.openworkflow.impl.WorkflowDefinitionId; -import org.openworkflow.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/org/openworkflow/impl/lifecycle/ce/WorkflowFailedCEData.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/lifecycle/ce/WorkflowFailedCEData.java similarity index 93% rename from impl/core/src/main/java/org/openworkflow/impl/lifecycle/ce/WorkflowFailedCEData.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/lifecycle/ce/WorkflowFailedCEData.java index 54e6b7cdb..921fb509e 100644 --- a/impl/core/src/main/java/org/openworkflow/impl/lifecycle/ce/WorkflowFailedCEData.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/lifecycle/ce/WorkflowFailedCEData.java @@ -13,12 +13,12 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.lifecycle.ce; +package org.openworkflow.sdk.impl.lifecycle.ce; import java.time.OffsetDateTime; import java.util.Objects; -import org.openworkflow.impl.WorkflowError; -import org.openworkflow.impl.lifecycle.WorkflowFailedEvent; +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/org/openworkflow/impl/lifecycle/ce/WorkflowLifeCycleCloudEventFactory.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/lifecycle/ce/WorkflowLifeCycleCloudEventFactory.java similarity index 62% rename from impl/core/src/main/java/org/openworkflow/impl/lifecycle/ce/WorkflowLifeCycleCloudEventFactory.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/lifecycle/ce/WorkflowLifeCycleCloudEventFactory.java index 84aeb0df9..0983ad134 100644 --- a/impl/core/src/main/java/org/openworkflow/impl/lifecycle/ce/WorkflowLifeCycleCloudEventFactory.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/lifecycle/ce/WorkflowLifeCycleCloudEventFactory.java @@ -13,24 +13,24 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.lifecycle.ce; +package org.openworkflow.sdk.impl.lifecycle.ce; import io.cloudevents.CloudEvent; import io.cloudevents.core.builder.CloudEventBuilder; -import org.openworkflow.impl.lifecycle.TaskCancelledEvent; -import org.openworkflow.impl.lifecycle.TaskCompletedEvent; -import org.openworkflow.impl.lifecycle.TaskFailedEvent; -import org.openworkflow.impl.lifecycle.TaskResumedEvent; -import org.openworkflow.impl.lifecycle.TaskRetriedEvent; -import org.openworkflow.impl.lifecycle.TaskStartedEvent; -import org.openworkflow.impl.lifecycle.TaskSuspendedEvent; -import org.openworkflow.impl.lifecycle.WorkflowCancelledEvent; -import org.openworkflow.impl.lifecycle.WorkflowCompletedEvent; -import org.openworkflow.impl.lifecycle.WorkflowFailedEvent; -import org.openworkflow.impl.lifecycle.WorkflowResumedEvent; -import org.openworkflow.impl.lifecycle.WorkflowStartedEvent; -import org.openworkflow.impl.lifecycle.WorkflowStatusEvent; -import org.openworkflow.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/org/openworkflow/impl/lifecycle/ce/WorkflowResumedCEData.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/lifecycle/ce/WorkflowResumedCEData.java similarity index 94% rename from impl/core/src/main/java/org/openworkflow/impl/lifecycle/ce/WorkflowResumedCEData.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/lifecycle/ce/WorkflowResumedCEData.java index 00e7bcbb5..d3550bae8 100644 --- a/impl/core/src/main/java/org/openworkflow/impl/lifecycle/ce/WorkflowResumedCEData.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/lifecycle/ce/WorkflowResumedCEData.java @@ -13,11 +13,11 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.lifecycle.ce; +package org.openworkflow.sdk.impl.lifecycle.ce; import java.time.OffsetDateTime; import java.util.Objects; -import org.openworkflow.impl.lifecycle.WorkflowResumedEvent; +import org.openworkflow.sdk.impl.lifecycle.WorkflowResumedEvent; public class WorkflowResumedCEData extends WorkflowCEData { private OffsetDateTime resumedAt; diff --git a/impl/core/src/main/java/org/openworkflow/impl/lifecycle/ce/WorkflowStartedCEData.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/lifecycle/ce/WorkflowStartedCEData.java similarity index 94% rename from impl/core/src/main/java/org/openworkflow/impl/lifecycle/ce/WorkflowStartedCEData.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/lifecycle/ce/WorkflowStartedCEData.java index ea7683feb..3ee199743 100644 --- a/impl/core/src/main/java/org/openworkflow/impl/lifecycle/ce/WorkflowStartedCEData.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/lifecycle/ce/WorkflowStartedCEData.java @@ -13,11 +13,11 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.lifecycle.ce; +package org.openworkflow.sdk.impl.lifecycle.ce; import java.time.OffsetDateTime; import java.util.Objects; -import org.openworkflow.impl.lifecycle.WorkflowStartedEvent; +import org.openworkflow.sdk.impl.lifecycle.WorkflowStartedEvent; public class WorkflowStartedCEData extends WorkflowCEData { private OffsetDateTime startedAt; diff --git a/impl/core/src/main/java/org/openworkflow/impl/lifecycle/ce/WorkflowStartedCEDataWithInput.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/lifecycle/ce/WorkflowStartedCEDataWithInput.java similarity index 93% rename from impl/core/src/main/java/org/openworkflow/impl/lifecycle/ce/WorkflowStartedCEDataWithInput.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/lifecycle/ce/WorkflowStartedCEDataWithInput.java index 4588a4301..acb5ea812 100644 --- a/impl/core/src/main/java/org/openworkflow/impl/lifecycle/ce/WorkflowStartedCEDataWithInput.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/lifecycle/ce/WorkflowStartedCEDataWithInput.java @@ -13,10 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.lifecycle.ce; +package org.openworkflow.sdk.impl.lifecycle.ce; import java.util.Objects; -import org.openworkflow.impl.lifecycle.WorkflowStartedEvent; +import org.openworkflow.sdk.impl.lifecycle.WorkflowStartedEvent; public class WorkflowStartedCEDataWithInput extends WorkflowStartedCEData { diff --git a/impl/core/src/main/java/org/openworkflow/impl/lifecycle/ce/WorkflowStatusCEDataEvent.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/lifecycle/ce/WorkflowStatusCEDataEvent.java similarity index 93% rename from impl/core/src/main/java/org/openworkflow/impl/lifecycle/ce/WorkflowStatusCEDataEvent.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/lifecycle/ce/WorkflowStatusCEDataEvent.java index 0786caba1..b01d47a52 100644 --- a/impl/core/src/main/java/org/openworkflow/impl/lifecycle/ce/WorkflowStatusCEDataEvent.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/lifecycle/ce/WorkflowStatusCEDataEvent.java @@ -13,12 +13,12 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.lifecycle.ce; +package org.openworkflow.sdk.impl.lifecycle.ce; import java.time.OffsetDateTime; import java.util.Objects; -import org.openworkflow.impl.WorkflowStatus; -import org.openworkflow.impl.lifecycle.WorkflowStatusEvent; +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/org/openworkflow/impl/lifecycle/ce/WorkflowSuspendedCEData.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/lifecycle/ce/WorkflowSuspendedCEData.java similarity index 94% rename from impl/core/src/main/java/org/openworkflow/impl/lifecycle/ce/WorkflowSuspendedCEData.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/lifecycle/ce/WorkflowSuspendedCEData.java index 6dbf7c919..1e302670c 100644 --- a/impl/core/src/main/java/org/openworkflow/impl/lifecycle/ce/WorkflowSuspendedCEData.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/lifecycle/ce/WorkflowSuspendedCEData.java @@ -13,11 +13,11 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.lifecycle.ce; +package org.openworkflow.sdk.impl.lifecycle.ce; import java.time.OffsetDateTime; import java.util.Objects; -import org.openworkflow.impl.lifecycle.WorkflowSuspendedEvent; +import org.openworkflow.sdk.impl.lifecycle.WorkflowSuspendedEvent; public class WorkflowSuspendedCEData extends WorkflowCEData { private OffsetDateTime suspendedAt; diff --git a/impl/core/src/main/java/org/openworkflow/impl/marshaller/AbstractInputBuffer.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/marshaller/AbstractInputBuffer.java similarity index 98% rename from impl/core/src/main/java/org/openworkflow/impl/marshaller/AbstractInputBuffer.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/marshaller/AbstractInputBuffer.java index a3b0357fa..08e44ec67 100644 --- a/impl/core/src/main/java/org/openworkflow/impl/marshaller/AbstractInputBuffer.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/marshaller/AbstractInputBuffer.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.marshaller; +package org.openworkflow.sdk.impl.marshaller; import java.time.Instant; import java.util.ArrayList; @@ -128,7 +128,7 @@ protected Class readClass() { try { return Class.forName( className.startsWith("io.serverlessworkflow.") - ? className.replaceFirst("io.serverlessworkflow.", "org.openworkflow.") + ? className.replaceFirst("io.serverlessworkflow.", "org.openworkflow.sdk.") : className); } catch (ClassNotFoundException ex) { throw new IllegalStateException(ex); diff --git a/impl/core/src/main/java/org/openworkflow/impl/marshaller/AbstractOutputBuffer.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/marshaller/AbstractOutputBuffer.java similarity index 97% rename from impl/core/src/main/java/org/openworkflow/impl/marshaller/AbstractOutputBuffer.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/marshaller/AbstractOutputBuffer.java index f7f5221ed..c90134521 100644 --- a/impl/core/src/main/java/org/openworkflow/impl/marshaller/AbstractOutputBuffer.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/marshaller/AbstractOutputBuffer.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.marshaller; +package org.openworkflow.sdk.impl.marshaller; import java.net.URI; import java.time.Instant; @@ -21,7 +21,7 @@ import java.util.Collection; import java.util.Map; import java.util.concurrent.ConcurrentHashMap; -import org.openworkflow.impl.WorkflowModel; +import org.openworkflow.sdk.impl.WorkflowModel; public abstract class AbstractOutputBuffer implements WorkflowOutputBuffer { diff --git a/impl/core/src/main/java/org/openworkflow/impl/marshaller/CustomObjectMarshaller.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/marshaller/CustomObjectMarshaller.java similarity index 89% rename from impl/core/src/main/java/org/openworkflow/impl/marshaller/CustomObjectMarshaller.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/marshaller/CustomObjectMarshaller.java index 62b01f06f..b383724e7 100644 --- a/impl/core/src/main/java/org/openworkflow/impl/marshaller/CustomObjectMarshaller.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/marshaller/CustomObjectMarshaller.java @@ -13,9 +13,9 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.marshaller; +package org.openworkflow.sdk.impl.marshaller; -import org.openworkflow.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/org/openworkflow/impl/marshaller/DefaultBufferFactory.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/marshaller/DefaultBufferFactory.java similarity index 97% rename from impl/core/src/main/java/org/openworkflow/impl/marshaller/DefaultBufferFactory.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/marshaller/DefaultBufferFactory.java index 81910e5e0..d477b1b1d 100644 --- a/impl/core/src/main/java/org/openworkflow/impl/marshaller/DefaultBufferFactory.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/marshaller/DefaultBufferFactory.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.marshaller; +package org.openworkflow.sdk.impl.marshaller; import java.io.InputStream; import java.io.OutputStream; diff --git a/impl/core/src/main/java/org/openworkflow/impl/marshaller/DefaultInputBuffer.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/marshaller/DefaultInputBuffer.java similarity index 98% rename from impl/core/src/main/java/org/openworkflow/impl/marshaller/DefaultInputBuffer.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/marshaller/DefaultInputBuffer.java index 3efa01d43..ed37644c1 100644 --- a/impl/core/src/main/java/org/openworkflow/impl/marshaller/DefaultInputBuffer.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/marshaller/DefaultInputBuffer.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.marshaller; +package org.openworkflow.sdk.impl.marshaller; import java.io.DataInputStream; import java.io.IOException; diff --git a/impl/core/src/main/java/org/openworkflow/impl/marshaller/DefaultOutputBuffer.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/marshaller/DefaultOutputBuffer.java similarity index 98% rename from impl/core/src/main/java/org/openworkflow/impl/marshaller/DefaultOutputBuffer.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/marshaller/DefaultOutputBuffer.java index cae8913ec..4af88d977 100644 --- a/impl/core/src/main/java/org/openworkflow/impl/marshaller/DefaultOutputBuffer.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/marshaller/DefaultOutputBuffer.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.marshaller; +package org.openworkflow.sdk.impl.marshaller; import java.io.DataOutputStream; import java.io.IOException; diff --git a/impl/core/src/main/java/org/openworkflow/impl/marshaller/MarshallingUtils.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/marshaller/MarshallingUtils.java similarity index 99% rename from impl/core/src/main/java/org/openworkflow/impl/marshaller/MarshallingUtils.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/marshaller/MarshallingUtils.java index c9b847c5a..f396df5d7 100644 --- a/impl/core/src/main/java/org/openworkflow/impl/marshaller/MarshallingUtils.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/marshaller/MarshallingUtils.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.marshaller; +package org.openworkflow.sdk.impl.marshaller; import io.cloudevents.CloudEvent; import io.cloudevents.core.builder.CloudEventBuilder; @@ -31,7 +31,7 @@ import java.util.Set; import java.util.function.BiConsumer; import java.util.function.Function; -import org.openworkflow.impl.WorkflowModel; +import org.openworkflow.sdk.impl.WorkflowModel; import org.slf4j.Logger; import org.slf4j.LoggerFactory; diff --git a/impl/core/src/main/java/org/openworkflow/impl/marshaller/TaskStatus.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/marshaller/TaskStatus.java similarity index 93% rename from impl/core/src/main/java/org/openworkflow/impl/marshaller/TaskStatus.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/marshaller/TaskStatus.java index 012824833..37f9da80f 100644 --- a/impl/core/src/main/java/org/openworkflow/impl/marshaller/TaskStatus.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/marshaller/TaskStatus.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.marshaller; +package org.openworkflow.sdk.impl.marshaller; public enum TaskStatus { COMPLETED, diff --git a/impl/core/src/main/java/org/openworkflow/impl/marshaller/Type.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/marshaller/Type.java similarity index 94% rename from impl/core/src/main/java/org/openworkflow/impl/marshaller/Type.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/marshaller/Type.java index 05298ef42..65e41f72c 100644 --- a/impl/core/src/main/java/org/openworkflow/impl/marshaller/Type.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/marshaller/Type.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.marshaller; +package org.openworkflow.sdk.impl.marshaller; enum Type { BYTE, diff --git a/impl/core/src/main/java/org/openworkflow/impl/marshaller/WorkflowBufferFactory.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/marshaller/WorkflowBufferFactory.java similarity index 94% rename from impl/core/src/main/java/org/openworkflow/impl/marshaller/WorkflowBufferFactory.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/marshaller/WorkflowBufferFactory.java index aa15d6d9f..cede12be8 100644 --- a/impl/core/src/main/java/org/openworkflow/impl/marshaller/WorkflowBufferFactory.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/marshaller/WorkflowBufferFactory.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.marshaller; +package org.openworkflow.sdk.impl.marshaller; import java.io.InputStream; import java.io.OutputStream; diff --git a/impl/core/src/main/java/org/openworkflow/impl/marshaller/WorkflowInputBuffer.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/marshaller/WorkflowInputBuffer.java similarity index 96% rename from impl/core/src/main/java/org/openworkflow/impl/marshaller/WorkflowInputBuffer.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/marshaller/WorkflowInputBuffer.java index c77ecdc15..87cad598b 100644 --- a/impl/core/src/main/java/org/openworkflow/impl/marshaller/WorkflowInputBuffer.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/marshaller/WorkflowInputBuffer.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.marshaller; +package org.openworkflow.sdk.impl.marshaller; import java.io.Closeable; import java.net.URI; diff --git a/impl/core/src/main/java/org/openworkflow/impl/marshaller/WorkflowOutputBuffer.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/marshaller/WorkflowOutputBuffer.java similarity index 97% rename from impl/core/src/main/java/org/openworkflow/impl/marshaller/WorkflowOutputBuffer.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/marshaller/WorkflowOutputBuffer.java index ffe2fb7a6..61dfd34b4 100644 --- a/impl/core/src/main/java/org/openworkflow/impl/marshaller/WorkflowOutputBuffer.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/marshaller/WorkflowOutputBuffer.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.marshaller; +package org.openworkflow.sdk.impl.marshaller; import java.net.URI; import java.time.Instant; diff --git a/impl/core/src/main/java/org/openworkflow/impl/resources/CachedResource.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/resources/CachedResource.java similarity index 94% rename from impl/core/src/main/java/org/openworkflow/impl/resources/CachedResource.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/resources/CachedResource.java index fc1327f59..c0e201cd1 100644 --- a/impl/core/src/main/java/org/openworkflow/impl/resources/CachedResource.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/resources/CachedResource.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.resources; +package org.openworkflow.sdk.impl.resources; import java.time.Instant; diff --git a/impl/core/src/main/java/org/openworkflow/impl/resources/ClasspathResource.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/resources/ClasspathResource.java similarity index 97% rename from impl/core/src/main/java/org/openworkflow/impl/resources/ClasspathResource.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/resources/ClasspathResource.java index d141cd7ca..0fa344685 100644 --- a/impl/core/src/main/java/org/openworkflow/impl/resources/ClasspathResource.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/resources/ClasspathResource.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.resources; +package org.openworkflow.sdk.impl.resources; import java.io.IOException; import java.io.InputStream; diff --git a/impl/core/src/main/java/org/openworkflow/impl/resources/DefaultResourceLoader.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/resources/DefaultResourceLoader.java similarity index 96% rename from impl/core/src/main/java/org/openworkflow/impl/resources/DefaultResourceLoader.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/resources/DefaultResourceLoader.java index 7700fda6f..00857854c 100644 --- a/impl/core/src/main/java/org/openworkflow/impl/resources/DefaultResourceLoader.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/resources/DefaultResourceLoader.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.resources; +package org.openworkflow.sdk.impl.resources; import java.net.MalformedURLException; import java.net.URI; @@ -23,7 +23,7 @@ import java.util.Optional; import java.util.concurrent.ConcurrentHashMap; import java.util.function.Function; -import org.openworkflow.impl.WorkflowApplication; +import org.openworkflow.sdk.impl.WorkflowApplication; public class DefaultResourceLoader extends ResourceLoader { diff --git a/impl/core/src/main/java/org/openworkflow/impl/resources/DefaultResourceLoaderFactory.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/resources/DefaultResourceLoaderFactory.java similarity index 91% rename from impl/core/src/main/java/org/openworkflow/impl/resources/DefaultResourceLoaderFactory.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/resources/DefaultResourceLoaderFactory.java index 24494f870..3199c4168 100644 --- a/impl/core/src/main/java/org/openworkflow/impl/resources/DefaultResourceLoaderFactory.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/resources/DefaultResourceLoaderFactory.java @@ -13,10 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.resources; +package org.openworkflow.sdk.impl.resources; import java.nio.file.Path; -import org.openworkflow.impl.WorkflowApplication; +import org.openworkflow.sdk.impl.WorkflowApplication; public class DefaultResourceLoaderFactory implements ResourceLoaderFactory { diff --git a/impl/core/src/main/java/org/openworkflow/impl/resources/ExternalResourceHandler.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/resources/ExternalResourceHandler.java similarity index 95% rename from impl/core/src/main/java/org/openworkflow/impl/resources/ExternalResourceHandler.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/resources/ExternalResourceHandler.java index 07dd42cc2..74cffbe98 100644 --- a/impl/core/src/main/java/org/openworkflow/impl/resources/ExternalResourceHandler.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/resources/ExternalResourceHandler.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.resources; +package org.openworkflow.sdk.impl.resources; import java.io.IOException; import java.io.InputStream; diff --git a/impl/core/src/main/java/org/openworkflow/impl/resources/FileResource.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/resources/FileResource.java similarity index 97% rename from impl/core/src/main/java/org/openworkflow/impl/resources/FileResource.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/resources/FileResource.java index ac7bf3f90..72b0dc4aa 100644 --- a/impl/core/src/main/java/org/openworkflow/impl/resources/FileResource.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/resources/FileResource.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.resources; +package org.openworkflow.sdk.impl.resources; import java.io.IOException; import java.io.InputStream; diff --git a/impl/core/src/main/java/org/openworkflow/impl/resources/GitHubHelper.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/resources/GitHubHelper.java similarity index 96% rename from impl/core/src/main/java/org/openworkflow/impl/resources/GitHubHelper.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/resources/GitHubHelper.java index a7f62069c..d57f17892 100644 --- a/impl/core/src/main/java/org/openworkflow/impl/resources/GitHubHelper.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/resources/GitHubHelper.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.resources; +package org.openworkflow.sdk.impl.resources; import java.io.UncheckedIOException; import java.net.MalformedURLException; diff --git a/impl/core/src/main/java/org/openworkflow/impl/resources/HttpResource.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/resources/HttpResource.java similarity index 96% rename from impl/core/src/main/java/org/openworkflow/impl/resources/HttpResource.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/resources/HttpResource.java index 4748665d4..4a80859d0 100644 --- a/impl/core/src/main/java/org/openworkflow/impl/resources/HttpResource.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/resources/HttpResource.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.resources; +package org.openworkflow.sdk.impl.resources; import java.io.IOException; import java.io.InputStream; @@ -24,7 +24,7 @@ import java.time.Instant; import java.util.Objects; import java.util.Optional; -import org.openworkflow.impl.auth.AuthUtils; +import org.openworkflow.sdk.impl.auth.AuthUtils; public class HttpResource implements ExternalResourceHandler { diff --git a/impl/core/src/main/java/org/openworkflow/impl/resources/ResourceLoader.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/resources/ResourceLoader.java similarity index 87% rename from impl/core/src/main/java/org/openworkflow/impl/resources/ResourceLoader.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/resources/ResourceLoader.java index 6fab2e8b2..346291c32 100644 --- a/impl/core/src/main/java/org/openworkflow/impl/resources/ResourceLoader.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/resources/ResourceLoader.java @@ -13,24 +13,24 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.resources; +package org.openworkflow.sdk.impl.resources; -import static org.openworkflow.impl.WorkflowUtils.getURISupplier; +import static org.openworkflow.sdk.impl.WorkflowUtils.getURISupplier; import java.net.URI; import java.util.Optional; import java.util.function.Function; -import org.openworkflow.api.types.Endpoint; -import org.openworkflow.api.types.EndpointUri; -import org.openworkflow.api.types.ExternalResource; -import org.openworkflow.api.types.UriTemplate; -import org.openworkflow.impl.TaskContext; -import org.openworkflow.impl.WorkflowApplication; -import org.openworkflow.impl.WorkflowContext; -import org.openworkflow.impl.WorkflowModel; -import org.openworkflow.impl.WorkflowValueResolver; -import org.openworkflow.impl.auth.AuthUtils; -import org.openworkflow.impl.expressions.ExpressionDescriptor; +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/org/openworkflow/impl/resources/ResourceLoaderFactory.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/resources/ResourceLoaderFactory.java similarity index 88% rename from impl/core/src/main/java/org/openworkflow/impl/resources/ResourceLoaderFactory.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/resources/ResourceLoaderFactory.java index 0abc5344f..d57799871 100644 --- a/impl/core/src/main/java/org/openworkflow/impl/resources/ResourceLoaderFactory.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/resources/ResourceLoaderFactory.java @@ -13,10 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.resources; +package org.openworkflow.sdk.impl.resources; import java.nio.file.Path; -import org.openworkflow.impl.WorkflowApplication; +import org.openworkflow.sdk.impl.WorkflowApplication; public interface ResourceLoaderFactory { ResourceLoader getResourceLoader(WorkflowApplication application, Path path); diff --git a/impl/core/src/main/java/org/openworkflow/impl/resources/ResourceLoaderUtils.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/resources/ResourceLoaderUtils.java similarity index 95% rename from impl/core/src/main/java/org/openworkflow/impl/resources/ResourceLoaderUtils.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/resources/ResourceLoaderUtils.java index d90b0e8f7..dfae30c66 100644 --- a/impl/core/src/main/java/org/openworkflow/impl/resources/ResourceLoaderUtils.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/resources/ResourceLoaderUtils.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.resources; +package org.openworkflow.sdk.impl.resources; import java.io.IOException; import java.io.InputStream; diff --git a/impl/core/src/main/java/org/openworkflow/impl/resources/URITemplateResolver.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/resources/URITemplateResolver.java similarity index 77% rename from impl/core/src/main/java/org/openworkflow/impl/resources/URITemplateResolver.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/resources/URITemplateResolver.java index 4039d6201..ace9b68b3 100644 --- a/impl/core/src/main/java/org/openworkflow/impl/resources/URITemplateResolver.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/resources/URITemplateResolver.java @@ -13,13 +13,13 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.resources; +package org.openworkflow.sdk.impl.resources; import java.net.URI; -import org.openworkflow.impl.ServicePriority; -import org.openworkflow.impl.TaskContext; -import org.openworkflow.impl.WorkflowContext; -import org.openworkflow.impl.WorkflowModel; +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/org/openworkflow/impl/scheduler/AllStrategyCorrelationInfo.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/scheduler/AllStrategyCorrelationInfo.java similarity index 87% rename from impl/core/src/main/java/org/openworkflow/impl/scheduler/AllStrategyCorrelationInfo.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/scheduler/AllStrategyCorrelationInfo.java index 4e395d1de..5c071ebfa 100644 --- a/impl/core/src/main/java/org/openworkflow/impl/scheduler/AllStrategyCorrelationInfo.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/scheduler/AllStrategyCorrelationInfo.java @@ -13,14 +13,14 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.scheduler; +package org.openworkflow.sdk.impl.scheduler; import io.cloudevents.CloudEvent; import java.util.Collection; import java.util.Map; import java.util.function.Consumer; -import org.openworkflow.impl.WorkflowInstance; -import org.openworkflow.impl.events.EventRegistrationBuilder; +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/org/openworkflow/impl/scheduler/AllStrategyCorrelationInfoFactory.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/scheduler/AllStrategyCorrelationInfoFactory.java similarity index 88% rename from impl/core/src/main/java/org/openworkflow/impl/scheduler/AllStrategyCorrelationInfoFactory.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/scheduler/AllStrategyCorrelationInfoFactory.java index 71d7f9e21..3f43306b0 100644 --- a/impl/core/src/main/java/org/openworkflow/impl/scheduler/AllStrategyCorrelationInfoFactory.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/scheduler/AllStrategyCorrelationInfoFactory.java @@ -13,10 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.scheduler; +package org.openworkflow.sdk.impl.scheduler; import java.util.function.Function; -import org.openworkflow.impl.WorkflowDefinition; +import org.openworkflow.sdk.impl.WorkflowDefinition; public interface AllStrategyCorrelationInfoFactory extends Function {} diff --git a/impl/core/src/main/java/org/openworkflow/impl/scheduler/Cancellable.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/scheduler/Cancellable.java similarity index 93% rename from impl/core/src/main/java/org/openworkflow/impl/scheduler/Cancellable.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/scheduler/Cancellable.java index e03b12d34..5506f86f7 100644 --- a/impl/core/src/main/java/org/openworkflow/impl/scheduler/Cancellable.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/scheduler/Cancellable.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.scheduler; +package org.openworkflow.sdk.impl.scheduler; public interface Cancellable { void cancel(); diff --git a/impl/core/src/main/java/org/openworkflow/impl/scheduler/CronResolver.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/scheduler/CronResolver.java similarity index 94% rename from impl/core/src/main/java/org/openworkflow/impl/scheduler/CronResolver.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/scheduler/CronResolver.java index 64ebc71f5..5fc167786 100644 --- a/impl/core/src/main/java/org/openworkflow/impl/scheduler/CronResolver.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/scheduler/CronResolver.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.scheduler; +package org.openworkflow.sdk.impl.scheduler; import java.time.Duration; import java.util.Optional; diff --git a/impl/core/src/main/java/org/openworkflow/impl/scheduler/CronResolverFactory.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/scheduler/CronResolverFactory.java similarity index 88% rename from impl/core/src/main/java/org/openworkflow/impl/scheduler/CronResolverFactory.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/scheduler/CronResolverFactory.java index e4ab9ddad..8c7c8e539 100644 --- a/impl/core/src/main/java/org/openworkflow/impl/scheduler/CronResolverFactory.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/scheduler/CronResolverFactory.java @@ -13,9 +13,9 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.scheduler; +package org.openworkflow.sdk.impl.scheduler; -import org.openworkflow.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/org/openworkflow/impl/scheduler/DefaultWorkflowScheduler.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/scheduler/DefaultWorkflowScheduler.java similarity index 94% rename from impl/core/src/main/java/org/openworkflow/impl/scheduler/DefaultWorkflowScheduler.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/scheduler/DefaultWorkflowScheduler.java index 75c2d28a6..791919323 100644 --- a/impl/core/src/main/java/org/openworkflow/impl/scheduler/DefaultWorkflowScheduler.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/scheduler/DefaultWorkflowScheduler.java @@ -13,15 +13,15 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.scheduler; +package org.openworkflow.sdk.impl.scheduler; 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.impl.WorkflowDefinition; -import org.openworkflow.impl.WorkflowInstance; +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/org/openworkflow/impl/scheduler/EventWorkflowScheduler.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/scheduler/EventWorkflowScheduler.java similarity index 83% rename from impl/core/src/main/java/org/openworkflow/impl/scheduler/EventWorkflowScheduler.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/scheduler/EventWorkflowScheduler.java index ebfb43b39..b04595be0 100644 --- a/impl/core/src/main/java/org/openworkflow/impl/scheduler/EventWorkflowScheduler.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/scheduler/EventWorkflowScheduler.java @@ -13,13 +13,13 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.scheduler; +package org.openworkflow.sdk.impl.scheduler; import io.cloudevents.CloudEvent; import java.util.function.Function; -import org.openworkflow.impl.WorkflowDefinition; -import org.openworkflow.impl.WorkflowModel; -import org.openworkflow.impl.events.EventRegistrationBuilderInfo; +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/org/openworkflow/impl/scheduler/ExecutorServiceWorkflowScheduler.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/scheduler/ExecutorServiceWorkflowScheduler.java similarity index 95% rename from impl/core/src/main/java/org/openworkflow/impl/scheduler/ExecutorServiceWorkflowScheduler.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/scheduler/ExecutorServiceWorkflowScheduler.java index 3ce929d14..6aeca6a7f 100644 --- a/impl/core/src/main/java/org/openworkflow/impl/scheduler/ExecutorServiceWorkflowScheduler.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/scheduler/ExecutorServiceWorkflowScheduler.java @@ -13,12 +13,12 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.scheduler; +package org.openworkflow.sdk.impl.scheduler; import java.time.Duration; import java.util.concurrent.ScheduledExecutorService; import java.util.concurrent.TimeUnit; -import org.openworkflow.impl.WorkflowDefinition; +import org.openworkflow.sdk.impl.WorkflowDefinition; public abstract class ExecutorServiceWorkflowScheduler extends EventWorkflowScheduler { diff --git a/impl/core/src/main/java/org/openworkflow/impl/scheduler/InMemoryAllStrategyCorrelationInfo.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/scheduler/InMemoryAllStrategyCorrelationInfo.java similarity index 96% rename from impl/core/src/main/java/org/openworkflow/impl/scheduler/InMemoryAllStrategyCorrelationInfo.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/scheduler/InMemoryAllStrategyCorrelationInfo.java index d6484330e..edb121e7f 100644 --- a/impl/core/src/main/java/org/openworkflow/impl/scheduler/InMemoryAllStrategyCorrelationInfo.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/scheduler/InMemoryAllStrategyCorrelationInfo.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.scheduler; +package org.openworkflow.sdk.impl.scheduler; import io.cloudevents.CloudEvent; import java.util.Collection; @@ -22,7 +22,7 @@ import java.util.LinkedHashSet; import java.util.Map; import java.util.function.Consumer; -import org.openworkflow.impl.events.EventRegistrationBuilder; +import org.openworkflow.sdk.impl.events.EventRegistrationBuilder; public class InMemoryAllStrategyCorrelationInfo implements AllStrategyCorrelationInfo { diff --git a/impl/core/src/main/java/org/openworkflow/impl/scheduler/ScheduledEventConsumer.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/scheduler/ScheduledEventConsumer.java similarity index 85% rename from impl/core/src/main/java/org/openworkflow/impl/scheduler/ScheduledEventConsumer.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/scheduler/ScheduledEventConsumer.java index 75bc8b02e..c8d2775db 100644 --- a/impl/core/src/main/java/org/openworkflow/impl/scheduler/ScheduledEventConsumer.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/scheduler/ScheduledEventConsumer.java @@ -13,23 +13,23 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.scheduler; +package org.openworkflow.sdk.impl.scheduler; -import static org.openworkflow.impl.WorkflowUtils.safeClose; +import static org.openworkflow.sdk.impl.WorkflowUtils.safeClose; import io.cloudevents.CloudEvent; import java.util.ArrayList; import java.util.Collection; import java.util.Map; import java.util.function.Function; -import org.openworkflow.impl.WorkflowDefinition; -import org.openworkflow.impl.WorkflowInstance; -import org.openworkflow.impl.WorkflowModel; -import org.openworkflow.impl.WorkflowModelCollection; -import org.openworkflow.impl.events.EventConsumer; -import org.openworkflow.impl.events.EventRegistration; -import org.openworkflow.impl.events.EventRegistrationBuilder; -import org.openworkflow.impl.events.EventRegistrationBuilderInfo; +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/org/openworkflow/impl/scheduler/ScheduledInstanceRunnable.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/scheduler/ScheduledInstanceRunnable.java similarity index 91% rename from impl/core/src/main/java/org/openworkflow/impl/scheduler/ScheduledInstanceRunnable.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/scheduler/ScheduledInstanceRunnable.java index 3129740e8..1b3ca419f 100644 --- a/impl/core/src/main/java/org/openworkflow/impl/scheduler/ScheduledInstanceRunnable.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/scheduler/ScheduledInstanceRunnable.java @@ -13,12 +13,12 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.scheduler; +package org.openworkflow.sdk.impl.scheduler; import java.util.function.Consumer; -import org.openworkflow.impl.WorkflowDefinition; -import org.openworkflow.impl.WorkflowInstance; -import org.openworkflow.impl.WorkflowModel; +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/org/openworkflow/impl/scheduler/ScheduledServiceCancellable.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/scheduler/ScheduledServiceCancellable.java similarity index 95% rename from impl/core/src/main/java/org/openworkflow/impl/scheduler/ScheduledServiceCancellable.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/scheduler/ScheduledServiceCancellable.java index 270900ce3..57f60f7c7 100644 --- a/impl/core/src/main/java/org/openworkflow/impl/scheduler/ScheduledServiceCancellable.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/scheduler/ScheduledServiceCancellable.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.scheduler; +package org.openworkflow.sdk.impl.scheduler; import java.util.concurrent.ScheduledFuture; diff --git a/impl/core/src/main/java/org/openworkflow/impl/scheduler/WorkflowScheduler.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/scheduler/WorkflowScheduler.java similarity index 88% rename from impl/core/src/main/java/org/openworkflow/impl/scheduler/WorkflowScheduler.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/scheduler/WorkflowScheduler.java index 743fb4497..e9d3bc553 100644 --- a/impl/core/src/main/java/org/openworkflow/impl/scheduler/WorkflowScheduler.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/scheduler/WorkflowScheduler.java @@ -13,14 +13,14 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.scheduler; +package org.openworkflow.sdk.impl.scheduler; import io.cloudevents.CloudEvent; import java.time.Duration; import java.util.function.Function; -import org.openworkflow.impl.WorkflowDefinition; -import org.openworkflow.impl.WorkflowModel; -import org.openworkflow.impl.events.EventRegistrationBuilderInfo; +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/org/openworkflow/impl/schema/AbstractSchemaValidator.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/schema/AbstractSchemaValidator.java similarity index 89% rename from impl/core/src/main/java/org/openworkflow/impl/schema/AbstractSchemaValidator.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/schema/AbstractSchemaValidator.java index 404c6d1f6..0b6f70c4a 100644 --- a/impl/core/src/main/java/org/openworkflow/impl/schema/AbstractSchemaValidator.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/schema/AbstractSchemaValidator.java @@ -13,12 +13,12 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.schema; +package org.openworkflow.sdk.impl.schema; import java.util.Optional; -import org.openworkflow.impl.WorkflowError; -import org.openworkflow.impl.WorkflowModel; -import org.openworkflow.types.Errors; +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/org/openworkflow/impl/schema/SchemaValidator.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/schema/SchemaValidator.java similarity index 84% rename from impl/core/src/main/java/org/openworkflow/impl/schema/SchemaValidator.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/schema/SchemaValidator.java index d0490a844..0ccec4588 100644 --- a/impl/core/src/main/java/org/openworkflow/impl/schema/SchemaValidator.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/schema/SchemaValidator.java @@ -13,11 +13,11 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.schema; +package org.openworkflow.sdk.impl.schema; import java.util.Optional; -import org.openworkflow.impl.WorkflowError; -import org.openworkflow.impl.WorkflowModel; +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/org/openworkflow/impl/schema/SchemaValidatorFactory.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/schema/SchemaValidatorFactory.java similarity index 79% rename from impl/core/src/main/java/org/openworkflow/impl/schema/SchemaValidatorFactory.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/schema/SchemaValidatorFactory.java index 3ca925d38..1ab8bba15 100644 --- a/impl/core/src/main/java/org/openworkflow/impl/schema/SchemaValidatorFactory.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/schema/SchemaValidatorFactory.java @@ -13,11 +13,11 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.schema; +package org.openworkflow.sdk.impl.schema; -import org.openworkflow.api.types.SchemaInline; -import org.openworkflow.impl.ServicePriority; -import org.openworkflow.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/org/openworkflow/impl/scripts/ScriptContext.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/scripts/ScriptContext.java similarity index 88% rename from impl/core/src/main/java/org/openworkflow/impl/scripts/ScriptContext.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/scripts/ScriptContext.java index 9f4c95977..8b3e5568b 100644 --- a/impl/core/src/main/java/org/openworkflow/impl/scripts/ScriptContext.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/scripts/ScriptContext.java @@ -13,10 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.scripts; +package org.openworkflow.sdk.impl.scripts; import java.util.Map; -import org.openworkflow.api.types.RunTaskConfiguration; +import org.openworkflow.sdk.api.types.RunTaskConfiguration; public record ScriptContext( Map args, diff --git a/impl/core/src/main/java/org/openworkflow/impl/scripts/ScriptLanguageId.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/scripts/ScriptLanguageId.java similarity index 96% rename from impl/core/src/main/java/org/openworkflow/impl/scripts/ScriptLanguageId.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/scripts/ScriptLanguageId.java index 4a5e517a6..e43b34717 100644 --- a/impl/core/src/main/java/org/openworkflow/impl/scripts/ScriptLanguageId.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/scripts/ScriptLanguageId.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.scripts; +package org.openworkflow.sdk.impl.scripts; import java.util.Arrays; diff --git a/impl/core/src/main/java/org/openworkflow/impl/scripts/ScriptRunner.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/scripts/ScriptRunner.java similarity index 79% rename from impl/core/src/main/java/org/openworkflow/impl/scripts/ScriptRunner.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/scripts/ScriptRunner.java index 045252726..ac71e3667 100644 --- a/impl/core/src/main/java/org/openworkflow/impl/scripts/ScriptRunner.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/scripts/ScriptRunner.java @@ -13,13 +13,13 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.scripts; +package org.openworkflow.sdk.impl.scripts; -import org.openworkflow.impl.ServicePriority; -import org.openworkflow.impl.TaskContext; -import org.openworkflow.impl.WorkflowContext; -import org.openworkflow.impl.WorkflowModel; -import org.openworkflow.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/org/openworkflow/impl/scripts/ScriptUtils.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/scripts/ScriptUtils.java similarity index 85% rename from impl/core/src/main/java/org/openworkflow/impl/scripts/ScriptUtils.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/scripts/ScriptUtils.java index a81d8f060..5d10deda6 100644 --- a/impl/core/src/main/java/org/openworkflow/impl/scripts/ScriptUtils.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/scripts/ScriptUtils.java @@ -13,17 +13,17 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.scripts; +package org.openworkflow.sdk.impl.scripts; import java.io.IOException; import java.io.UncheckedIOException; import java.util.Map; -import org.openworkflow.api.types.RunTaskConfiguration; -import org.openworkflow.api.types.RunTaskConfiguration.ProcessReturnType; -import org.openworkflow.impl.WorkflowDefinition; -import org.openworkflow.impl.WorkflowModel; -import org.openworkflow.impl.WorkflowModelFactory; -import org.openworkflow.impl.executors.ProcessResult; +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("org.openworkflow.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/org/openworkflow/impl/scripts/StreamSuppliers.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/scripts/StreamSuppliers.java similarity index 98% rename from impl/core/src/main/java/org/openworkflow/impl/scripts/StreamSuppliers.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/scripts/StreamSuppliers.java index 4d36e1c0e..bfe683ab9 100644 --- a/impl/core/src/main/java/org/openworkflow/impl/scripts/StreamSuppliers.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/scripts/StreamSuppliers.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.scripts; +package org.openworkflow.sdk.impl.scripts; import java.io.ByteArrayOutputStream; import java.io.IOException; diff --git a/impl/core/src/main/java/org/openworkflow/impl/utils/RandomFactory.java b/impl/core/src/main/java/org/openworkflow/sdk/impl/utils/RandomFactory.java similarity index 95% rename from impl/core/src/main/java/org/openworkflow/impl/utils/RandomFactory.java rename to impl/core/src/main/java/org/openworkflow/sdk/impl/utils/RandomFactory.java index 45a0c04ee..bcea6a1f5 100644 --- a/impl/core/src/main/java/org/openworkflow/impl/utils/RandomFactory.java +++ b/impl/core/src/main/java/org/openworkflow/sdk/impl/utils/RandomFactory.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.utils; +package org.openworkflow.sdk.impl.utils; import java.util.Random; diff --git a/impl/core/src/main/resources/META-INF/native-image/org.openworkflow/openworkflow-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 85% rename from impl/core/src/main/resources/META-INF/native-image/org.openworkflow/openworkflow-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 e9ed61f89..1273e1e0b 100644 --- a/impl/core/src/main/resources/META-INF/native-image/org.openworkflow/openworkflow-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": "org.openworkflow.impl.executors.ProcessResult", + "name": "org.openworkflow.sdk.impl.executors.ProcessResult", "queryAllPublicConstructors": true, "queryAllDeclaredConstructors": true, "queryAllPublicMethods": true, @@ -15,7 +15,7 @@ "allDeclaredClasses": true }, { - "name": "org.openworkflow.impl.WorkflowError", + "name": "org.openworkflow.sdk.impl.WorkflowError", "queryAllPublicConstructors": true, "queryAllDeclaredConstructors": true, "queryAllPublicMethods": true, @@ -30,7 +30,7 @@ "allDeclaredClasses": true }, { - "name": "org.openworkflow.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": "org.openworkflow.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": "org.openworkflow.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": "org.openworkflow.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": "org.openworkflow.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": "org.openworkflow.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": "org.openworkflow.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": "org.openworkflow.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": "org.openworkflow.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": "org.openworkflow.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": "org.openworkflow.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": "org.openworkflow.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": "org.openworkflow.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": "org.openworkflow.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": "org.openworkflow.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": "org.openworkflow.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": "org.openworkflow.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": "org.openworkflow.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": "org.openworkflow.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": "org.openworkflow.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": "org.openworkflow.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/org.openworkflow.impl.executors.CallableTaskBuilder b/impl/core/src/main/resources/META-INF/services/org.openworkflow.impl.executors.CallableTaskBuilder deleted file mode 100644 index 6b9c6e692..000000000 --- a/impl/core/src/main/resources/META-INF/services/org.openworkflow.impl.executors.CallableTaskBuilder +++ /dev/null @@ -1 +0,0 @@ -org.openworkflow.impl.executors.CallFunctionExecutorBuilder \ No newline at end of file diff --git a/impl/core/src/main/resources/META-INF/services/org.openworkflow.impl.executors.RunnableTaskBuilder b/impl/core/src/main/resources/META-INF/services/org.openworkflow.impl.executors.RunnableTaskBuilder deleted file mode 100644 index df2f6240e..000000000 --- a/impl/core/src/main/resources/META-INF/services/org.openworkflow.impl.executors.RunnableTaskBuilder +++ /dev/null @@ -1,3 +0,0 @@ -org.openworkflow.impl.executors.RunWorkflowExecutorBuilder -org.openworkflow.impl.executors.RunShellExecutorBuilder -org.openworkflow.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/org/openworkflow/impl/LowestPriority.java b/impl/core/src/test/java/org/openworkflow/sdk/impl/LowestPriority.java similarity index 95% rename from impl/core/src/test/java/org/openworkflow/impl/LowestPriority.java rename to impl/core/src/test/java/org/openworkflow/sdk/impl/LowestPriority.java index 40529d091..4477cb927 100644 --- a/impl/core/src/test/java/org/openworkflow/impl/LowestPriority.java +++ b/impl/core/src/test/java/org/openworkflow/sdk/impl/LowestPriority.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl; +package org.openworkflow.sdk.impl; public class LowestPriority implements ServicePriority { public int priority() { diff --git a/impl/core/src/test/java/org/openworkflow/impl/LowestPriorityListener.java b/impl/core/src/test/java/org/openworkflow/sdk/impl/LowestPriorityListener.java similarity index 87% rename from impl/core/src/test/java/org/openworkflow/impl/LowestPriorityListener.java rename to impl/core/src/test/java/org/openworkflow/sdk/impl/LowestPriorityListener.java index 04ca463e5..408b8bc6a 100644 --- a/impl/core/src/test/java/org/openworkflow/impl/LowestPriorityListener.java +++ b/impl/core/src/test/java/org/openworkflow/sdk/impl/LowestPriorityListener.java @@ -13,9 +13,9 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl; +package org.openworkflow.sdk.impl; -import org.openworkflow.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/org/openworkflow/impl/MediumPriority.java b/impl/core/src/test/java/org/openworkflow/sdk/impl/MediumPriority.java similarity index 95% rename from impl/core/src/test/java/org/openworkflow/impl/MediumPriority.java rename to impl/core/src/test/java/org/openworkflow/sdk/impl/MediumPriority.java index 91ea292d9..7cec4e561 100644 --- a/impl/core/src/test/java/org/openworkflow/impl/MediumPriority.java +++ b/impl/core/src/test/java/org/openworkflow/sdk/impl/MediumPriority.java @@ -13,6 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl; +package org.openworkflow.sdk.impl; public class MediumPriority implements ServicePriority {} diff --git a/impl/core/src/test/java/org/openworkflow/impl/MediumPriorityListener.java b/impl/core/src/test/java/org/openworkflow/sdk/impl/MediumPriorityListener.java similarity index 91% rename from impl/core/src/test/java/org/openworkflow/impl/MediumPriorityListener.java rename to impl/core/src/test/java/org/openworkflow/sdk/impl/MediumPriorityListener.java index 88f601439..907c0ebf8 100644 --- a/impl/core/src/test/java/org/openworkflow/impl/MediumPriorityListener.java +++ b/impl/core/src/test/java/org/openworkflow/sdk/impl/MediumPriorityListener.java @@ -13,10 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl; +package org.openworkflow.sdk.impl; import java.util.Objects; -import org.openworkflow.impl.lifecycle.WorkflowExecutionCompletableListener; +import org.openworkflow.sdk.impl.lifecycle.WorkflowExecutionCompletableListener; public class MediumPriorityListener implements WorkflowExecutionCompletableListener { diff --git a/impl/core/src/test/java/org/openworkflow/impl/ServicePriorityTest.java b/impl/core/src/test/java/org/openworkflow/sdk/impl/ServicePriorityTest.java similarity index 96% rename from impl/core/src/test/java/org/openworkflow/impl/ServicePriorityTest.java rename to impl/core/src/test/java/org/openworkflow/sdk/impl/ServicePriorityTest.java index 31ea1bad7..715ddae6e 100644 --- a/impl/core/src/test/java/org/openworkflow/impl/ServicePriorityTest.java +++ b/impl/core/src/test/java/org/openworkflow/sdk/impl/ServicePriorityTest.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl; +package org.openworkflow.sdk.impl; import static org.assertj.core.api.Assertions.assertThat; diff --git a/impl/core/src/test/java/org/openworkflow/impl/TopPriority.java b/impl/core/src/test/java/org/openworkflow/sdk/impl/TopPriority.java similarity index 95% rename from impl/core/src/test/java/org/openworkflow/impl/TopPriority.java rename to impl/core/src/test/java/org/openworkflow/sdk/impl/TopPriority.java index 76bb53cf4..c07c40470 100644 --- a/impl/core/src/test/java/org/openworkflow/impl/TopPriority.java +++ b/impl/core/src/test/java/org/openworkflow/sdk/impl/TopPriority.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl; +package org.openworkflow.sdk.impl; public class TopPriority implements ServicePriority { public int priority() { diff --git a/impl/core/src/test/java/org/openworkflow/impl/TopPriorityListener.java b/impl/core/src/test/java/org/openworkflow/sdk/impl/TopPriorityListener.java similarity index 87% rename from impl/core/src/test/java/org/openworkflow/impl/TopPriorityListener.java rename to impl/core/src/test/java/org/openworkflow/sdk/impl/TopPriorityListener.java index 986912fb0..93ae960cb 100644 --- a/impl/core/src/test/java/org/openworkflow/impl/TopPriorityListener.java +++ b/impl/core/src/test/java/org/openworkflow/sdk/impl/TopPriorityListener.java @@ -13,9 +13,9 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl; +package org.openworkflow.sdk.impl; -import org.openworkflow.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/org/openworkflow/impl/WorkflowAdditionalObjectTest.java b/impl/core/src/test/java/org/openworkflow/sdk/impl/WorkflowAdditionalObjectTest.java similarity index 95% rename from impl/core/src/test/java/org/openworkflow/impl/WorkflowAdditionalObjectTest.java rename to impl/core/src/test/java/org/openworkflow/sdk/impl/WorkflowAdditionalObjectTest.java index 03bc69a71..9dc7e76b7 100644 --- a/impl/core/src/test/java/org/openworkflow/impl/WorkflowAdditionalObjectTest.java +++ b/impl/core/src/test/java/org/openworkflow/sdk/impl/WorkflowAdditionalObjectTest.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl; +package org.openworkflow.sdk.impl; import static org.assertj.core.api.Assertions.assertThat; import static org.mockito.Mockito.mock; @@ -25,8 +25,8 @@ import java.util.function.Supplier; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; -import org.openworkflow.impl.additional.WorkflowAdditionalObject; -import org.openworkflow.impl.lifecycle.WorkflowExecutionCompletableListener; +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/org/openworkflow/impl/WorkflowListenerTest.java b/impl/core/src/test/java/org/openworkflow/sdk/impl/WorkflowListenerTest.java similarity index 95% rename from impl/core/src/test/java/org/openworkflow/impl/WorkflowListenerTest.java rename to impl/core/src/test/java/org/openworkflow/sdk/impl/WorkflowListenerTest.java index 888f0d88b..85a98ca7f 100644 --- a/impl/core/src/test/java/org/openworkflow/impl/WorkflowListenerTest.java +++ b/impl/core/src/test/java/org/openworkflow/sdk/impl/WorkflowListenerTest.java @@ -13,14 +13,14 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl; +package org.openworkflow.sdk.impl; import static org.assertj.core.api.Assertions.assertThat; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; import org.mockito.Mockito; -import org.openworkflow.impl.lifecycle.WorkflowExecutionCompletableListener; +import org.openworkflow.sdk.impl.lifecycle.WorkflowExecutionCompletableListener; public class WorkflowListenerTest { diff --git a/impl/core/src/test/java/org/openworkflow/impl/WorkflowUtilsTest.java b/impl/core/src/test/java/org/openworkflow/sdk/impl/WorkflowUtilsTest.java similarity index 98% rename from impl/core/src/test/java/org/openworkflow/impl/WorkflowUtilsTest.java rename to impl/core/src/test/java/org/openworkflow/sdk/impl/WorkflowUtilsTest.java index 93ff62e04..15c35a5cc 100644 --- a/impl/core/src/test/java/org/openworkflow/impl/WorkflowUtilsTest.java +++ b/impl/core/src/test/java/org/openworkflow/sdk/impl/WorkflowUtilsTest.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl; +package org.openworkflow.sdk.impl; import static org.junit.jupiter.api.Assertions.assertEquals; diff --git a/impl/core/src/test/java/org/openworkflow/impl/auth/JWTTest.java b/impl/core/src/test/java/org/openworkflow/sdk/impl/auth/JWTTest.java similarity index 96% rename from impl/core/src/test/java/org/openworkflow/impl/auth/JWTTest.java rename to impl/core/src/test/java/org/openworkflow/sdk/impl/auth/JWTTest.java index 91af67be0..5229b6dc9 100644 --- a/impl/core/src/test/java/org/openworkflow/impl/auth/JWTTest.java +++ b/impl/core/src/test/java/org/openworkflow/sdk/impl/auth/JWTTest.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.auth; +package org.openworkflow.sdk.impl.auth; import static org.assertj.core.api.Assertions.assertThat; diff --git a/impl/core/src/test/java/org/openworkflow/impl/marshaller/Employee.java b/impl/core/src/test/java/org/openworkflow/sdk/impl/marshaller/Employee.java similarity index 93% rename from impl/core/src/test/java/org/openworkflow/impl/marshaller/Employee.java rename to impl/core/src/test/java/org/openworkflow/sdk/impl/marshaller/Employee.java index 79f6d235a..da0b62344 100644 --- a/impl/core/src/test/java/org/openworkflow/impl/marshaller/Employee.java +++ b/impl/core/src/test/java/org/openworkflow/sdk/impl/marshaller/Employee.java @@ -13,6 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.marshaller; +package org.openworkflow.sdk.impl.marshaller; class Employee extends Person {} diff --git a/impl/core/src/test/java/org/openworkflow/impl/marshaller/MarshallingUtilsTest.java b/impl/core/src/test/java/org/openworkflow/sdk/impl/marshaller/MarshallingUtilsTest.java similarity index 98% rename from impl/core/src/test/java/org/openworkflow/impl/marshaller/MarshallingUtilsTest.java rename to impl/core/src/test/java/org/openworkflow/sdk/impl/marshaller/MarshallingUtilsTest.java index 585aac980..108673405 100644 --- a/impl/core/src/test/java/org/openworkflow/impl/marshaller/MarshallingUtilsTest.java +++ b/impl/core/src/test/java/org/openworkflow/sdk/impl/marshaller/MarshallingUtilsTest.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.marshaller; +package org.openworkflow.sdk.impl.marshaller; import static org.assertj.core.api.Assertions.assertThat; diff --git a/impl/core/src/test/java/org/openworkflow/impl/marshaller/NonSerializableClass.java b/impl/core/src/test/java/org/openworkflow/sdk/impl/marshaller/NonSerializableClass.java similarity index 93% rename from impl/core/src/test/java/org/openworkflow/impl/marshaller/NonSerializableClass.java rename to impl/core/src/test/java/org/openworkflow/sdk/impl/marshaller/NonSerializableClass.java index ae0e75f21..1041a3449 100644 --- a/impl/core/src/test/java/org/openworkflow/impl/marshaller/NonSerializableClass.java +++ b/impl/core/src/test/java/org/openworkflow/sdk/impl/marshaller/NonSerializableClass.java @@ -13,6 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.marshaller; +package org.openworkflow.sdk.impl.marshaller; class NonSerializableClass {} diff --git a/impl/core/src/test/java/org/openworkflow/impl/marshaller/Person.java b/impl/core/src/test/java/org/openworkflow/sdk/impl/marshaller/Person.java similarity index 93% rename from impl/core/src/test/java/org/openworkflow/impl/marshaller/Person.java rename to impl/core/src/test/java/org/openworkflow/sdk/impl/marshaller/Person.java index 67121d125..be5c3a3a6 100644 --- a/impl/core/src/test/java/org/openworkflow/impl/marshaller/Person.java +++ b/impl/core/src/test/java/org/openworkflow/sdk/impl/marshaller/Person.java @@ -13,6 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.marshaller; +package org.openworkflow.sdk.impl.marshaller; class Person {} diff --git a/impl/core/src/test/java/org/openworkflow/impl/marshaller/SerializableClass.java b/impl/core/src/test/java/org/openworkflow/sdk/impl/marshaller/SerializableClass.java similarity index 94% rename from impl/core/src/test/java/org/openworkflow/impl/marshaller/SerializableClass.java rename to impl/core/src/test/java/org/openworkflow/sdk/impl/marshaller/SerializableClass.java index fd9e8b09f..e6beac1ea 100644 --- a/impl/core/src/test/java/org/openworkflow/impl/marshaller/SerializableClass.java +++ b/impl/core/src/test/java/org/openworkflow/sdk/impl/marshaller/SerializableClass.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.marshaller; +package org.openworkflow.sdk.impl.marshaller; import java.io.Serializable; diff --git a/impl/core/src/test/java/org/openworkflow/impl/marshaller/Student.java b/impl/core/src/test/java/org/openworkflow/sdk/impl/marshaller/Student.java similarity index 93% rename from impl/core/src/test/java/org/openworkflow/impl/marshaller/Student.java rename to impl/core/src/test/java/org/openworkflow/sdk/impl/marshaller/Student.java index fbfe0be16..86acf7bf5 100644 --- a/impl/core/src/test/java/org/openworkflow/impl/marshaller/Student.java +++ b/impl/core/src/test/java/org/openworkflow/sdk/impl/marshaller/Student.java @@ -13,6 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.marshaller; +package org.openworkflow.sdk.impl.marshaller; class Student extends Employee {} diff --git a/impl/core/src/test/resources/META-INF/services/org.openworkflow.impl.ServicePriority b/impl/core/src/test/resources/META-INF/services/org.openworkflow.impl.ServicePriority deleted file mode 100644 index 909a7de84..000000000 --- a/impl/core/src/test/resources/META-INF/services/org.openworkflow.impl.ServicePriority +++ /dev/null @@ -1,3 +0,0 @@ -org.openworkflow.impl.LowestPriority -org.openworkflow.impl.TopPriority -org.openworkflow.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 4c12c03ea..5db6eae77 100644 --- a/impl/cron/pom.xml +++ b/impl/cron/pom.xml @@ -1,7 +1,7 @@ 4.0.0 - org.openworkflow + org.openworkflow.sdk openworkflow-impl 8.0.0-SNAPSHOT @@ -13,7 +13,7 @@ cron-utils
- org.openworkflow + org.openworkflow.sdk openworkflow-impl-core
diff --git a/impl/cron/src/main/java/org/openworkflow/impl/cron/CronUtilsResolver.java b/impl/cron/src/main/java/org/openworkflow/sdk/impl/cron/CronUtilsResolver.java similarity index 92% rename from impl/cron/src/main/java/org/openworkflow/impl/cron/CronUtilsResolver.java rename to impl/cron/src/main/java/org/openworkflow/sdk/impl/cron/CronUtilsResolver.java index 5fd1e8e76..c53f58131 100644 --- a/impl/cron/src/main/java/org/openworkflow/impl/cron/CronUtilsResolver.java +++ b/impl/cron/src/main/java/org/openworkflow/sdk/impl/cron/CronUtilsResolver.java @@ -13,14 +13,14 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.cron; +package org.openworkflow.sdk.impl.cron; import com.cronutils.model.Cron; import com.cronutils.model.time.ExecutionTime; import java.time.Duration; import java.time.ZonedDateTime; import java.util.Optional; -import org.openworkflow.impl.scheduler.CronResolver; +import org.openworkflow.sdk.impl.scheduler.CronResolver; class CronUtilsResolver implements CronResolver { diff --git a/impl/cron/src/main/java/org/openworkflow/impl/cron/CronUtilsResolverFactory.java b/impl/cron/src/main/java/org/openworkflow/sdk/impl/cron/CronUtilsResolverFactory.java similarity index 88% rename from impl/cron/src/main/java/org/openworkflow/impl/cron/CronUtilsResolverFactory.java rename to impl/cron/src/main/java/org/openworkflow/sdk/impl/cron/CronUtilsResolverFactory.java index 454942b36..e8bb1e0a9 100644 --- a/impl/cron/src/main/java/org/openworkflow/impl/cron/CronUtilsResolverFactory.java +++ b/impl/cron/src/main/java/org/openworkflow/sdk/impl/cron/CronUtilsResolverFactory.java @@ -13,13 +13,13 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.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 org.openworkflow.impl.scheduler.CronResolver; -import org.openworkflow.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/org.openworkflow.impl.scheduler.CronResolverFactory b/impl/cron/src/main/resources/META-INF/services/org.openworkflow.impl.scheduler.CronResolverFactory deleted file mode 100644 index d3824a43d..000000000 --- a/impl/cron/src/main/resources/META-INF/services/org.openworkflow.impl.scheduler.CronResolverFactory +++ /dev/null @@ -1 +0,0 @@ -org.openworkflow.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 ae5a956a8..926098e32 100644 --- a/impl/function/pom.xml +++ b/impl/function/pom.xml @@ -1,7 +1,7 @@ 4.0.0 - org.openworkflow + org.openworkflow.sdk openworkflow-impl 8.0.0-SNAPSHOT @@ -9,15 +9,15 @@ Open Workflow :: Impl :: Function - org.openworkflow + org.openworkflow.sdk openworkflow-api - org.openworkflow + org.openworkflow.sdk openworkflow-impl-core - org.openworkflow + org.openworkflow.sdk openworkflow-impl-json diff --git a/impl/function/src/main/java/org/openworkflow/impl/jackson/function/JacksonFunctionReader.java b/impl/function/src/main/java/org/openworkflow/sdk/impl/jackson/function/JacksonFunctionReader.java similarity index 80% rename from impl/function/src/main/java/org/openworkflow/impl/jackson/function/JacksonFunctionReader.java rename to impl/function/src/main/java/org/openworkflow/sdk/impl/jackson/function/JacksonFunctionReader.java index af9efafeb..9450c37e7 100644 --- a/impl/function/src/main/java/org/openworkflow/impl/jackson/function/JacksonFunctionReader.java +++ b/impl/function/src/main/java/org/openworkflow/sdk/impl/jackson/function/JacksonFunctionReader.java @@ -13,15 +13,15 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.jackson.function; +package org.openworkflow.sdk.impl.jackson.function; import java.io.IOException; import java.io.InputStream; import java.io.UncheckedIOException; -import org.openworkflow.api.WorkflowFormat; -import org.openworkflow.api.types.Task; -import org.openworkflow.impl.FunctionReader; -import org.openworkflow.impl.resources.ExternalResourceHandler; +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/org.openworkflow.impl.FunctionReader b/impl/function/src/main/resources/META-INF/services/org.openworkflow.impl.FunctionReader deleted file mode 100644 index c7ac1cde3..000000000 --- a/impl/function/src/main/resources/META-INF/services/org.openworkflow.impl.FunctionReader +++ /dev/null @@ -1 +0,0 @@ -org.openworkflow.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 17fa53fb1..781e7b2cb 100644 --- a/impl/grpc/pom.xml +++ b/impl/grpc/pom.xml @@ -1,7 +1,7 @@ 4.0.0 - org.openworkflow + org.openworkflow.sdk openworkflow-impl 8.0.0-SNAPSHOT @@ -10,7 +10,7 @@ - org.openworkflow + org.openworkflow.sdk openworkflow-impl-core @@ -22,7 +22,7 @@ protobuf-java-util - org.openworkflow + org.openworkflow.sdk openworkflow-impl-json diff --git a/impl/grpc/src/main/java/org/openworkflow/impl/executors/grpc/CollectionStreamObserver.java b/impl/grpc/src/main/java/org/openworkflow/sdk/impl/executors/grpc/CollectionStreamObserver.java similarity index 83% rename from impl/grpc/src/main/java/org/openworkflow/impl/executors/grpc/CollectionStreamObserver.java rename to impl/grpc/src/main/java/org/openworkflow/sdk/impl/executors/grpc/CollectionStreamObserver.java index 4dba8a551..a8a464afa 100644 --- a/impl/grpc/src/main/java/org/openworkflow/impl/executors/grpc/CollectionStreamObserver.java +++ b/impl/grpc/src/main/java/org/openworkflow/sdk/impl/executors/grpc/CollectionStreamObserver.java @@ -13,12 +13,12 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.executors.grpc; +package org.openworkflow.sdk.impl.executors.grpc; import com.google.protobuf.Message; -import org.openworkflow.impl.TaskContext; -import org.openworkflow.impl.WorkflowContext; -import org.openworkflow.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/org/openworkflow/impl/executors/grpc/FileDescriptorReader.java b/impl/grpc/src/main/java/org/openworkflow/sdk/impl/executors/grpc/FileDescriptorReader.java similarity index 98% rename from impl/grpc/src/main/java/org/openworkflow/impl/executors/grpc/FileDescriptorReader.java rename to impl/grpc/src/main/java/org/openworkflow/sdk/impl/executors/grpc/FileDescriptorReader.java index ef912de13..b8dd8cdd9 100644 --- a/impl/grpc/src/main/java/org/openworkflow/impl/executors/grpc/FileDescriptorReader.java +++ b/impl/grpc/src/main/java/org/openworkflow/sdk/impl/executors/grpc/FileDescriptorReader.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.executors.grpc; +package org.openworkflow.sdk.impl.executors.grpc; import com.github.os72.protocjar.Protoc; import com.google.protobuf.DescriptorProtos; @@ -37,7 +37,7 @@ import java.util.List; import java.util.Map; import java.util.Objects; -import org.openworkflow.impl.resources.ExternalResourceHandler; +import org.openworkflow.sdk.impl.resources.ExternalResourceHandler; import org.slf4j.Logger; import org.slf4j.LoggerFactory; diff --git a/impl/grpc/src/main/java/org/openworkflow/impl/executors/grpc/GrpcExecutor.java b/impl/grpc/src/main/java/org/openworkflow/sdk/impl/executors/grpc/GrpcExecutor.java similarity index 96% rename from impl/grpc/src/main/java/org/openworkflow/impl/executors/grpc/GrpcExecutor.java rename to impl/grpc/src/main/java/org/openworkflow/sdk/impl/executors/grpc/GrpcExecutor.java index 40251e701..31102fce5 100644 --- a/impl/grpc/src/main/java/org/openworkflow/impl/executors/grpc/GrpcExecutor.java +++ b/impl/grpc/src/main/java/org/openworkflow/sdk/impl/executors/grpc/GrpcExecutor.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.executors.grpc; +package org.openworkflow.sdk.impl.executors.grpc; import com.google.protobuf.DescriptorProtos; import com.google.protobuf.Descriptors; @@ -34,12 +34,12 @@ import java.util.Optional; import java.util.concurrent.CompletableFuture; import java.util.function.UnaryOperator; -import org.openworkflow.impl.TaskContext; -import org.openworkflow.impl.WorkflowContext; -import org.openworkflow.impl.WorkflowModel; -import org.openworkflow.impl.WorkflowModelCollection; -import org.openworkflow.impl.WorkflowValueResolver; -import org.openworkflow.impl.executors.CallableTask; +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/org/openworkflow/impl/executors/grpc/GrpcExecutorBuilder.java b/impl/grpc/src/main/java/org/openworkflow/sdk/impl/executors/grpc/GrpcExecutorBuilder.java similarity index 80% rename from impl/grpc/src/main/java/org/openworkflow/impl/executors/grpc/GrpcExecutorBuilder.java rename to impl/grpc/src/main/java/org/openworkflow/sdk/impl/executors/grpc/GrpcExecutorBuilder.java index 4cf3fe2a6..c7eb0b9d5 100644 --- a/impl/grpc/src/main/java/org/openworkflow/impl/executors/grpc/GrpcExecutorBuilder.java +++ b/impl/grpc/src/main/java/org/openworkflow/sdk/impl/executors/grpc/GrpcExecutorBuilder.java @@ -13,21 +13,21 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.executors.grpc; +package org.openworkflow.sdk.impl.executors.grpc; import com.google.protobuf.Descriptors; import com.google.protobuf.Descriptors.FileDescriptor; import java.util.Map; import java.util.Objects; -import org.openworkflow.api.types.CallGRPC; -import org.openworkflow.api.types.GRPCArguments; -import org.openworkflow.api.types.TaskBase; -import org.openworkflow.api.types.WithGRPCService; -import org.openworkflow.impl.WorkflowDefinition; -import org.openworkflow.impl.WorkflowMutablePosition; -import org.openworkflow.impl.WorkflowUtils; -import org.openworkflow.impl.executors.CallableTaskBuilder; -import org.openworkflow.impl.executors.CallableTaskFactory; +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/org/openworkflow/impl/executors/grpc/ItemStreamObserver.java b/impl/grpc/src/main/java/org/openworkflow/sdk/impl/executors/grpc/ItemStreamObserver.java similarity index 84% rename from impl/grpc/src/main/java/org/openworkflow/impl/executors/grpc/ItemStreamObserver.java rename to impl/grpc/src/main/java/org/openworkflow/sdk/impl/executors/grpc/ItemStreamObserver.java index 444b0972f..8fbaf9785 100644 --- a/impl/grpc/src/main/java/org/openworkflow/impl/executors/grpc/ItemStreamObserver.java +++ b/impl/grpc/src/main/java/org/openworkflow/sdk/impl/executors/grpc/ItemStreamObserver.java @@ -13,12 +13,12 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.executors.grpc; +package org.openworkflow.sdk.impl.executors.grpc; import com.google.protobuf.Message; -import org.openworkflow.impl.TaskContext; -import org.openworkflow.impl.WorkflowContext; -import org.openworkflow.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/org/openworkflow/impl/executors/grpc/ModelStreamObserver.java b/impl/grpc/src/main/java/org/openworkflow/sdk/impl/executors/grpc/ModelStreamObserver.java similarity index 82% rename from impl/grpc/src/main/java/org/openworkflow/impl/executors/grpc/ModelStreamObserver.java rename to impl/grpc/src/main/java/org/openworkflow/sdk/impl/executors/grpc/ModelStreamObserver.java index ef90c007a..9528f1852 100644 --- a/impl/grpc/src/main/java/org/openworkflow/impl/executors/grpc/ModelStreamObserver.java +++ b/impl/grpc/src/main/java/org/openworkflow/sdk/impl/executors/grpc/ModelStreamObserver.java @@ -13,17 +13,17 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.executors.grpc; +package org.openworkflow.sdk.impl.executors.grpc; import com.google.protobuf.Message; import io.grpc.stub.StreamObserver; import java.util.concurrent.CompletableFuture; -import org.openworkflow.impl.TaskContext; -import org.openworkflow.impl.WorkflowContext; -import org.openworkflow.impl.WorkflowError; -import org.openworkflow.impl.WorkflowException; -import org.openworkflow.impl.WorkflowModel; -import org.openworkflow.impl.WorkflowModelFactory; +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/org/openworkflow/impl/executors/grpc/ProtobufMessageUtils.java b/impl/grpc/src/main/java/org/openworkflow/sdk/impl/executors/grpc/ProtobufMessageUtils.java similarity index 90% rename from impl/grpc/src/main/java/org/openworkflow/impl/executors/grpc/ProtobufMessageUtils.java rename to impl/grpc/src/main/java/org/openworkflow/sdk/impl/executors/grpc/ProtobufMessageUtils.java index 4f2b460c2..421b89082 100644 --- a/impl/grpc/src/main/java/org/openworkflow/impl/executors/grpc/ProtobufMessageUtils.java +++ b/impl/grpc/src/main/java/org/openworkflow/sdk/impl/executors/grpc/ProtobufMessageUtils.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.executors.grpc; +package org.openworkflow.sdk.impl.executors.grpc; import com.google.protobuf.Descriptors; import com.google.protobuf.DynamicMessage; @@ -22,9 +22,9 @@ import java.io.IOException; import java.io.UncheckedIOException; import java.util.Map; -import org.openworkflow.impl.WorkflowModel; -import org.openworkflow.impl.WorkflowModelFactory; -import org.openworkflow.impl.jackson.JsonUtils; +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/org.openworkflow.impl.executors.CallableTaskBuilder b/impl/grpc/src/main/resources/META-INF/services/org.openworkflow.impl.executors.CallableTaskBuilder deleted file mode 100644 index 5aa02023d..000000000 --- a/impl/grpc/src/main/resources/META-INF/services/org.openworkflow.impl.executors.CallableTaskBuilder +++ /dev/null @@ -1 +0,0 @@ -org.openworkflow.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 b8e1ef1e8..9e467b4e5 100644 --- a/impl/http/pom.xml +++ b/impl/http/pom.xml @@ -1,7 +1,7 @@ 4.0.0 - org.openworkflow + org.openworkflow.sdk openworkflow-impl 8.0.0-SNAPSHOT @@ -9,7 +9,7 @@ Open Workflow :: Impl :: HTTP - org.openworkflow + org.openworkflow.sdk openworkflow-impl-template-resolver diff --git a/impl/http/src/main/java/org/openworkflow/impl/executors/http/AbstractRequestExecutor.java b/impl/http/src/main/java/org/openworkflow/sdk/impl/executors/http/AbstractRequestExecutor.java similarity index 91% rename from impl/http/src/main/java/org/openworkflow/impl/executors/http/AbstractRequestExecutor.java rename to impl/http/src/main/java/org/openworkflow/sdk/impl/executors/http/AbstractRequestExecutor.java index ec8c25771..e30257372 100644 --- a/impl/http/src/main/java/org/openworkflow/impl/executors/http/AbstractRequestExecutor.java +++ b/impl/http/src/main/java/org/openworkflow/sdk/impl/executors/http/AbstractRequestExecutor.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.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; @@ -30,14 +30,14 @@ import java.util.concurrent.CompletableFuture; import java.util.concurrent.ExecutorService; import java.util.concurrent.TimeoutException; -import org.openworkflow.impl.TaskContext; -import org.openworkflow.impl.WorkflowContext; -import org.openworkflow.impl.WorkflowError; -import org.openworkflow.impl.WorkflowException; -import org.openworkflow.impl.WorkflowModel; -import org.openworkflow.impl.auth.AuthProvider; -import org.openworkflow.impl.auth.AuthUtils; -import org.openworkflow.types.Errors; +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/org/openworkflow/impl/executors/http/CallableTaskHttpExecutorBuilder.java b/impl/http/src/main/java/org/openworkflow/sdk/impl/executors/http/CallableTaskHttpExecutorBuilder.java similarity index 79% rename from impl/http/src/main/java/org/openworkflow/impl/executors/http/CallableTaskHttpExecutorBuilder.java rename to impl/http/src/main/java/org/openworkflow/sdk/impl/executors/http/CallableTaskHttpExecutorBuilder.java index b4d6351ea..22e83bf19 100644 --- a/impl/http/src/main/java/org/openworkflow/impl/executors/http/CallableTaskHttpExecutorBuilder.java +++ b/impl/http/src/main/java/org/openworkflow/sdk/impl/executors/http/CallableTaskHttpExecutorBuilder.java @@ -13,20 +13,20 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.executors.http; +package org.openworkflow.sdk.impl.executors.http; -import static org.openworkflow.impl.WorkflowUtils.buildMapResolver; +import static org.openworkflow.sdk.impl.WorkflowUtils.buildMapResolver; import java.net.URI; -import org.openworkflow.api.types.CallHTTP; -import org.openworkflow.api.types.Endpoint; -import org.openworkflow.api.types.HTTPArguments; -import org.openworkflow.api.types.TaskBase; -import org.openworkflow.impl.WorkflowDefinition; -import org.openworkflow.impl.WorkflowMutablePosition; -import org.openworkflow.impl.WorkflowValueResolver; -import org.openworkflow.impl.executors.CallableTaskBuilder; -import org.openworkflow.impl.executors.CallableTaskFactory; +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/org/openworkflow/impl/executors/http/HttpClientResolver.java b/impl/http/src/main/java/org/openworkflow/sdk/impl/executors/http/HttpClientResolver.java similarity index 89% rename from impl/http/src/main/java/org/openworkflow/impl/executors/http/HttpClientResolver.java rename to impl/http/src/main/java/org/openworkflow/sdk/impl/executors/http/HttpClientResolver.java index 38983d496..c34e28336 100644 --- a/impl/http/src/main/java/org/openworkflow/impl/executors/http/HttpClientResolver.java +++ b/impl/http/src/main/java/org/openworkflow/sdk/impl/executors/http/HttpClientResolver.java @@ -13,15 +13,15 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.executors.http; +package org.openworkflow.sdk.impl.executors.http; 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.impl.TaskContext; -import org.openworkflow.impl.WorkflowApplication; -import org.openworkflow.impl.WorkflowContext; +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/org/openworkflow/impl/executors/http/HttpConverterResolver.java b/impl/http/src/main/java/org/openworkflow/sdk/impl/executors/http/HttpConverterResolver.java similarity index 90% rename from impl/http/src/main/java/org/openworkflow/impl/executors/http/HttpConverterResolver.java rename to impl/http/src/main/java/org/openworkflow/sdk/impl/executors/http/HttpConverterResolver.java index a173dc1cb..783b7066d 100644 --- a/impl/http/src/main/java/org/openworkflow/impl/executors/http/HttpConverterResolver.java +++ b/impl/http/src/main/java/org/openworkflow/sdk/impl/executors/http/HttpConverterResolver.java @@ -13,10 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.executors.http; +package org.openworkflow.sdk.impl.executors.http; -import org.openworkflow.impl.TaskContext; -import org.openworkflow.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/org/openworkflow/impl/executors/http/HttpExecutor.java b/impl/http/src/main/java/org/openworkflow/sdk/impl/executors/http/HttpExecutor.java similarity index 89% rename from impl/http/src/main/java/org/openworkflow/impl/executors/http/HttpExecutor.java rename to impl/http/src/main/java/org/openworkflow/sdk/impl/executors/http/HttpExecutor.java index c833c87c9..ba6be80c4 100644 --- a/impl/http/src/main/java/org/openworkflow/impl/executors/http/HttpExecutor.java +++ b/impl/http/src/main/java/org/openworkflow/sdk/impl/executors/http/HttpExecutor.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.executors.http; +package org.openworkflow.sdk.impl.executors.http; import jakarta.ws.rs.client.Invocation.Builder; import jakarta.ws.rs.client.WebTarget; @@ -23,12 +23,12 @@ import java.util.Map.Entry; import java.util.Optional; import java.util.concurrent.CompletableFuture; -import org.openworkflow.impl.TaskContext; -import org.openworkflow.impl.WorkflowContext; -import org.openworkflow.impl.WorkflowModel; -import org.openworkflow.impl.WorkflowUtils; -import org.openworkflow.impl.WorkflowValueResolver; -import org.openworkflow.impl.executors.CallableTask; +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/org/openworkflow/impl/executors/http/HttpExecutorBuilder.java b/impl/http/src/main/java/org/openworkflow/sdk/impl/executors/http/HttpExecutorBuilder.java similarity index 92% rename from impl/http/src/main/java/org/openworkflow/impl/executors/http/HttpExecutorBuilder.java rename to impl/http/src/main/java/org/openworkflow/sdk/impl/executors/http/HttpExecutorBuilder.java index df720eae5..db15d100e 100644 --- a/impl/http/src/main/java/org/openworkflow/impl/executors/http/HttpExecutorBuilder.java +++ b/impl/http/src/main/java/org/openworkflow/sdk/impl/executors/http/HttpExecutorBuilder.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.executors.http; +package org.openworkflow.sdk.impl.executors.http; import jakarta.ws.rs.HttpMethod; import java.net.URI; @@ -23,13 +23,13 @@ import java.util.List; import java.util.Map; import java.util.Optional; -import org.openworkflow.api.types.ReferenceableAuthenticationPolicy; -import org.openworkflow.api.types.Use; -import org.openworkflow.api.types.UseAuthentications; -import org.openworkflow.impl.WorkflowDefinition; -import org.openworkflow.impl.WorkflowUtils; -import org.openworkflow.impl.WorkflowValueResolver; -import org.openworkflow.impl.auth.AuthProvider; +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/org/openworkflow/impl/executors/http/HttpModelConverter.java b/impl/http/src/main/java/org/openworkflow/sdk/impl/executors/http/HttpModelConverter.java similarity index 90% rename from impl/http/src/main/java/org/openworkflow/impl/executors/http/HttpModelConverter.java rename to impl/http/src/main/java/org/openworkflow/sdk/impl/executors/http/HttpModelConverter.java index 02b33198b..0e9ff3097 100644 --- a/impl/http/src/main/java/org/openworkflow/impl/executors/http/HttpModelConverter.java +++ b/impl/http/src/main/java/org/openworkflow/sdk/impl/executors/http/HttpModelConverter.java @@ -13,12 +13,12 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.executors.http; +package org.openworkflow.sdk.impl.executors.http; import jakarta.ws.rs.client.Entity; import jakarta.ws.rs.core.Response; -import org.openworkflow.impl.WorkflowError; -import org.openworkflow.impl.WorkflowModel; +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/org/openworkflow/impl/executors/http/HttpRequestDecorator.java b/impl/http/src/main/java/org/openworkflow/sdk/impl/executors/http/HttpRequestDecorator.java similarity index 89% rename from impl/http/src/main/java/org/openworkflow/impl/executors/http/HttpRequestDecorator.java rename to impl/http/src/main/java/org/openworkflow/sdk/impl/executors/http/HttpRequestDecorator.java index db5ae7d1d..e8d46dfc2 100644 --- a/impl/http/src/main/java/org/openworkflow/impl/executors/http/HttpRequestDecorator.java +++ b/impl/http/src/main/java/org/openworkflow/sdk/impl/executors/http/HttpRequestDecorator.java @@ -13,10 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.executors.http; +package org.openworkflow.sdk.impl.executors.http; import jakarta.ws.rs.client.Invocation; -import org.openworkflow.impl.WorkflowDecorator; +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/org/openworkflow/impl/executors/http/RequestExecutor.java b/impl/http/src/main/java/org/openworkflow/sdk/impl/executors/http/RequestExecutor.java similarity index 82% rename from impl/http/src/main/java/org/openworkflow/impl/executors/http/RequestExecutor.java rename to impl/http/src/main/java/org/openworkflow/sdk/impl/executors/http/RequestExecutor.java index f6bf9705c..f1dcffe3e 100644 --- a/impl/http/src/main/java/org/openworkflow/impl/executors/http/RequestExecutor.java +++ b/impl/http/src/main/java/org/openworkflow/sdk/impl/executors/http/RequestExecutor.java @@ -13,14 +13,14 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.executors.http; +package org.openworkflow.sdk.impl.executors.http; import jakarta.ws.rs.client.Invocation.Builder; import java.net.URI; import java.util.concurrent.CompletableFuture; -import org.openworkflow.impl.TaskContext; -import org.openworkflow.impl.WorkflowContext; -import org.openworkflow.impl.WorkflowModel; +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/org/openworkflow/impl/executors/http/WithBodyRequestExecutor.java b/impl/http/src/main/java/org/openworkflow/sdk/impl/executors/http/WithBodyRequestExecutor.java similarity index 78% rename from impl/http/src/main/java/org/openworkflow/impl/executors/http/WithBodyRequestExecutor.java rename to impl/http/src/main/java/org/openworkflow/sdk/impl/executors/http/WithBodyRequestExecutor.java index 9da7af6b2..399939288 100644 --- a/impl/http/src/main/java/org/openworkflow/impl/executors/http/WithBodyRequestExecutor.java +++ b/impl/http/src/main/java/org/openworkflow/sdk/impl/executors/http/WithBodyRequestExecutor.java @@ -13,18 +13,18 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.executors.http; +package org.openworkflow.sdk.impl.executors.http; import jakarta.ws.rs.client.Invocation.Builder; import jakarta.ws.rs.core.Response; import java.util.Optional; -import org.openworkflow.impl.TaskContext; -import org.openworkflow.impl.WorkflowApplication; -import org.openworkflow.impl.WorkflowContext; -import org.openworkflow.impl.WorkflowFilter; -import org.openworkflow.impl.WorkflowModel; -import org.openworkflow.impl.WorkflowUtils; -import org.openworkflow.impl.auth.AuthProvider; +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/org/openworkflow/impl/executors/http/WithoutBodyRequestExecutor.java b/impl/http/src/main/java/org/openworkflow/sdk/impl/executors/http/WithoutBodyRequestExecutor.java similarity index 82% rename from impl/http/src/main/java/org/openworkflow/impl/executors/http/WithoutBodyRequestExecutor.java rename to impl/http/src/main/java/org/openworkflow/sdk/impl/executors/http/WithoutBodyRequestExecutor.java index 46bdd2957..7fbe835fe 100644 --- a/impl/http/src/main/java/org/openworkflow/impl/executors/http/WithoutBodyRequestExecutor.java +++ b/impl/http/src/main/java/org/openworkflow/sdk/impl/executors/http/WithoutBodyRequestExecutor.java @@ -13,15 +13,15 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.executors.http; +package org.openworkflow.sdk.impl.executors.http; import jakarta.ws.rs.client.Invocation.Builder; import jakarta.ws.rs.core.Response; import java.util.Optional; -import org.openworkflow.impl.TaskContext; -import org.openworkflow.impl.WorkflowContext; -import org.openworkflow.impl.WorkflowModel; -import org.openworkflow.impl.auth.AuthProvider; +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/org/openworkflow/impl/executors/http/auth/JaxRSAccessTokenProvider.java b/impl/http/src/main/java/org/openworkflow/sdk/impl/executors/http/auth/JaxRSAccessTokenProvider.java similarity index 89% rename from impl/http/src/main/java/org/openworkflow/impl/executors/http/auth/JaxRSAccessTokenProvider.java rename to impl/http/src/main/java/org/openworkflow/sdk/impl/executors/http/auth/JaxRSAccessTokenProvider.java index 779750e37..f7a612fe2 100644 --- a/impl/http/src/main/java/org/openworkflow/impl/executors/http/auth/JaxRSAccessTokenProvider.java +++ b/impl/http/src/main/java/org/openworkflow/sdk/impl/executors/http/auth/JaxRSAccessTokenProvider.java @@ -13,9 +13,9 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.executors.http.auth; +package org.openworkflow.sdk.impl.executors.http.auth; -import static org.openworkflow.api.types.OAuth2TokenRequest.Oauth2TokenRequestEncoding.APPLICATION_X_WWW_FORM_URLENCODED; +import static org.openworkflow.sdk.api.types.OAuth2TokenRequest.Oauth2TokenRequestEncoding.APPLICATION_X_WWW_FORM_URLENCODED; import jakarta.ws.rs.ProcessingException; import jakarta.ws.rs.client.Client; @@ -31,16 +31,16 @@ import java.util.List; import java.util.Map; import java.util.concurrent.CompletableFuture; -import org.openworkflow.impl.TaskContext; -import org.openworkflow.impl.WorkflowContext; -import org.openworkflow.impl.WorkflowError; -import org.openworkflow.impl.WorkflowException; -import org.openworkflow.impl.WorkflowModel; -import org.openworkflow.impl.auth.AccessTokenProvider; -import org.openworkflow.impl.auth.HttpRequestInfo; -import org.openworkflow.impl.auth.JWT; -import org.openworkflow.impl.auth.JWTConverter; -import org.openworkflow.impl.executors.http.HttpClientResolver; +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/org/openworkflow/impl/executors/http/auth/JaxRSAccessTokenProviderFactory.java b/impl/http/src/main/java/org/openworkflow/sdk/impl/executors/http/auth/JaxRSAccessTokenProviderFactory.java similarity index 76% rename from impl/http/src/main/java/org/openworkflow/impl/executors/http/auth/JaxRSAccessTokenProviderFactory.java rename to impl/http/src/main/java/org/openworkflow/sdk/impl/executors/http/auth/JaxRSAccessTokenProviderFactory.java index 75995010e..ddbc71bba 100644 --- a/impl/http/src/main/java/org/openworkflow/impl/executors/http/auth/JaxRSAccessTokenProviderFactory.java +++ b/impl/http/src/main/java/org/openworkflow/sdk/impl/executors/http/auth/JaxRSAccessTokenProviderFactory.java @@ -13,13 +13,13 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.executors.http.auth; +package org.openworkflow.sdk.impl.executors.http.auth; import java.util.List; -import org.openworkflow.impl.auth.AccessTokenProvider; -import org.openworkflow.impl.auth.AccessTokenProviderFactory; -import org.openworkflow.impl.auth.HttpRequestInfo; -import org.openworkflow.impl.auth.JWTConverter; +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/org.openworkflow.impl.auth.AccessTokenProviderFactory b/impl/http/src/main/resources/META-INF/services/org.openworkflow.impl.auth.AccessTokenProviderFactory deleted file mode 100644 index 414ec4a64..000000000 --- a/impl/http/src/main/resources/META-INF/services/org.openworkflow.impl.auth.AccessTokenProviderFactory +++ /dev/null @@ -1 +0,0 @@ -org.openworkflow.impl.executors.http.auth.JaxRSAccessTokenProviderFactory \ No newline at end of file diff --git a/impl/http/src/main/resources/META-INF/services/org.openworkflow.impl.executors.CallableTaskBuilder b/impl/http/src/main/resources/META-INF/services/org.openworkflow.impl.executors.CallableTaskBuilder deleted file mode 100644 index b546b112e..000000000 --- a/impl/http/src/main/resources/META-INF/services/org.openworkflow.impl.executors.CallableTaskBuilder +++ /dev/null @@ -1 +0,0 @@ -org.openworkflow.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 745e88d38..0df977746 100644 --- a/impl/jackson/pom.xml +++ b/impl/jackson/pom.xml @@ -1,7 +1,7 @@ 4.0.0 - org.openworkflow + org.openworkflow.sdk openworkflow-impl 8.0.0-SNAPSHOT @@ -9,35 +9,35 @@ Open Workflow :: Impl :: Jackson - org.openworkflow + org.openworkflow.sdk openworkflow-impl-core - org.openworkflow + org.openworkflow.sdk openworkflow-impl-jq - org.openworkflow + org.openworkflow.sdk openworkflow-impl-template-resolver - org.openworkflow + org.openworkflow.sdk openworkflow-impl-model - org.openworkflow + org.openworkflow.sdk openworkflow-impl-validation - org.openworkflow + org.openworkflow.sdk openworkflow-impl-function - org.openworkflow + org.openworkflow.sdk openworkflow-impl-lifecycle-events - org.openworkflow + org.openworkflow.sdk openworkflow-impl-cron diff --git a/impl/javascript/pom.xml b/impl/javascript/pom.xml index 4497d672d..233d8b1af 100644 --- a/impl/javascript/pom.xml +++ b/impl/javascript/pom.xml @@ -1,7 +1,7 @@ 4.0.0 - org.openworkflow + org.openworkflow.sdk openworkflow-impl 8.0.0-SNAPSHOT @@ -9,7 +9,7 @@ Open Workflow :: Impl :: Script JavaScript - org.openworkflow + org.openworkflow.sdk openworkflow-impl-core diff --git a/impl/javascript/src/main/java/org/openworkflow/impl/executors/script/js/JavaScriptScriptTaskRunner.java b/impl/javascript/src/main/java/org/openworkflow/sdk/impl/executors/script/js/JavaScriptScriptTaskRunner.java similarity index 85% rename from impl/javascript/src/main/java/org/openworkflow/impl/executors/script/js/JavaScriptScriptTaskRunner.java rename to impl/javascript/src/main/java/org/openworkflow/sdk/impl/executors/script/js/JavaScriptScriptTaskRunner.java index e54c5f92d..68a68e9a5 100644 --- a/impl/javascript/src/main/java/org/openworkflow/impl/executors/script/js/JavaScriptScriptTaskRunner.java +++ b/impl/javascript/src/main/java/org/openworkflow/sdk/impl/executors/script/js/JavaScriptScriptTaskRunner.java @@ -13,21 +13,21 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.executors.script.js; +package org.openworkflow.sdk.impl.executors.script.js; 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.impl.TaskContext; -import org.openworkflow.impl.WorkflowContext; -import org.openworkflow.impl.WorkflowModel; -import org.openworkflow.impl.scripts.ScriptContext; -import org.openworkflow.impl.scripts.ScriptLanguageId; -import org.openworkflow.impl.scripts.ScriptRunner; -import org.openworkflow.impl.scripts.ScriptUtils; -import org.openworkflow.impl.scripts.StreamSuppliers; +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/org.openworkflow.impl.scripts.ScriptRunner b/impl/javascript/src/main/resources/META-INF/services/org.openworkflow.impl.scripts.ScriptRunner deleted file mode 100644 index 208114b03..000000000 --- a/impl/javascript/src/main/resources/META-INF/services/org.openworkflow.impl.scripts.ScriptRunner +++ /dev/null @@ -1 +0,0 @@ -org.openworkflow.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 e03a51153..02881777f 100644 --- a/impl/jq/pom.xml +++ b/impl/jq/pom.xml @@ -1,7 +1,7 @@ 4.0.0 - org.openworkflow + org.openworkflow.sdk openworkflow-impl 8.0.0-SNAPSHOT @@ -13,7 +13,7 @@ jackson-jq - org.openworkflow + org.openworkflow.sdk openworkflow-impl-json @@ -29,7 +29,7 @@ mockito-core - org.openworkflow + org.openworkflow.sdk openworkflow-impl-model test diff --git a/impl/jq/src/main/java/org/openworkflow/impl/expressions/jq/JQExpression.java b/impl/jq/src/main/java/org/openworkflow/sdk/impl/expressions/jq/JQExpression.java similarity index 84% rename from impl/jq/src/main/java/org/openworkflow/impl/expressions/jq/JQExpression.java rename to impl/jq/src/main/java/org/openworkflow/sdk/impl/expressions/jq/JQExpression.java index 95a398454..82b8ab7f8 100644 --- a/impl/jq/src/main/java/org/openworkflow/impl/expressions/jq/JQExpression.java +++ b/impl/jq/src/main/java/org/openworkflow/sdk/impl/expressions/jq/JQExpression.java @@ -13,9 +13,9 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.expressions.jq; +package org.openworkflow.sdk.impl.expressions.jq; -import static org.openworkflow.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; @@ -26,17 +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.impl.AuthorizationDescriptor; -import org.openworkflow.impl.TaskContext; -import org.openworkflow.impl.WorkflowContext; -import org.openworkflow.impl.WorkflowError; -import org.openworkflow.impl.WorkflowException; -import org.openworkflow.impl.WorkflowModel; -import org.openworkflow.impl.expressions.ObjectExpression; -import org.openworkflow.impl.expressions.TaskDescriptor; -import org.openworkflow.impl.expressions.WorkflowDescriptor; -import org.openworkflow.impl.jackson.FunctionJsonNode; -import org.openworkflow.impl.jackson.JsonUtils; +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/org/openworkflow/impl/expressions/jq/JQExpressionFactory.java b/impl/jq/src/main/java/org/openworkflow/sdk/impl/expressions/jq/JQExpressionFactory.java similarity index 91% rename from impl/jq/src/main/java/org/openworkflow/impl/expressions/jq/JQExpressionFactory.java rename to impl/jq/src/main/java/org/openworkflow/sdk/impl/expressions/jq/JQExpressionFactory.java index d101dc84b..be628a846 100644 --- a/impl/jq/src/main/java/org/openworkflow/impl/expressions/jq/JQExpressionFactory.java +++ b/impl/jq/src/main/java/org/openworkflow/sdk/impl/expressions/jq/JQExpressionFactory.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.expressions.jq; +package org.openworkflow.sdk.impl.expressions.jq; import io.cloudevents.CloudEventData; import io.cloudevents.jackson.JsonCloudEventData; @@ -26,10 +26,10 @@ import net.thisptr.jackson.jq.Scope; import net.thisptr.jackson.jq.Versions; import net.thisptr.jackson.jq.exception.JsonQueryException; -import org.openworkflow.impl.expressions.ExpressionUtils; -import org.openworkflow.impl.expressions.ObjectExpression; -import org.openworkflow.impl.expressions.ObjectExpressionFactory; -import org.openworkflow.impl.jackson.JsonUtils; +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/org.openworkflow.impl.expressions.ExpressionFactory b/impl/jq/src/main/resources/META-INF/services/org.openworkflow.impl.expressions.ExpressionFactory deleted file mode 100644 index 90dcdaa54..000000000 --- a/impl/jq/src/main/resources/META-INF/services/org.openworkflow.impl.expressions.ExpressionFactory +++ /dev/null @@ -1 +0,0 @@ -org.openworkflow.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/org/openworkflow/impl/expressions/jq/JQExpressionFactoryTest.java b/impl/jq/src/test/java/org/openworkflow/sdk/impl/expressions/jq/JQExpressionFactoryTest.java similarity index 89% rename from impl/jq/src/test/java/org/openworkflow/impl/expressions/jq/JQExpressionFactoryTest.java rename to impl/jq/src/test/java/org/openworkflow/sdk/impl/expressions/jq/JQExpressionFactoryTest.java index 3284decfc..67b2aefd4 100644 --- a/impl/jq/src/test/java/org/openworkflow/impl/expressions/jq/JQExpressionFactoryTest.java +++ b/impl/jq/src/test/java/org/openworkflow/sdk/impl/expressions/jq/JQExpressionFactoryTest.java @@ -13,10 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.expressions.jq; +package org.openworkflow.sdk.impl.expressions.jq; import static org.assertj.core.api.Assertions.assertThat; -import static org.openworkflow.impl.WorkflowUtils.loadFirst; +import static org.openworkflow.sdk.impl.WorkflowUtils.loadFirst; import java.util.Collection; import java.util.Iterator; @@ -25,11 +25,11 @@ import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; import org.mockito.Mockito; -import org.openworkflow.impl.WorkflowContext; -import org.openworkflow.impl.WorkflowModelFactory; -import org.openworkflow.impl.WorkflowValueResolver; -import org.openworkflow.impl.expressions.ExpressionDescriptor; -import org.openworkflow.impl.jackson.JsonUtils; +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 6b51f5e08..eba1b1334 100644 --- a/impl/json-utils/pom.xml +++ b/impl/json-utils/pom.xml @@ -1,7 +1,7 @@ 4.0.0 - org.openworkflow + org.openworkflow.sdk openworkflow-impl 8.0.0-SNAPSHOT @@ -13,7 +13,7 @@ jackson-databind - org.openworkflow + org.openworkflow.sdk openworkflow-impl-core diff --git a/impl/json-utils/src/main/java/org/openworkflow/impl/jackson/FunctionBaseJsonNode.java b/impl/json-utils/src/main/java/org/openworkflow/sdk/impl/jackson/FunctionBaseJsonNode.java similarity index 98% rename from impl/json-utils/src/main/java/org/openworkflow/impl/jackson/FunctionBaseJsonNode.java rename to impl/json-utils/src/main/java/org/openworkflow/sdk/impl/jackson/FunctionBaseJsonNode.java index faf5f37bd..7d0083c9b 100644 --- a/impl/json-utils/src/main/java/org/openworkflow/impl/jackson/FunctionBaseJsonNode.java +++ b/impl/json-utils/src/main/java/org/openworkflow/sdk/impl/jackson/FunctionBaseJsonNode.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.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/org/openworkflow/impl/jackson/FunctionJsonNode.java b/impl/json-utils/src/main/java/org/openworkflow/sdk/impl/jackson/FunctionJsonNode.java similarity index 96% rename from impl/json-utils/src/main/java/org/openworkflow/impl/jackson/FunctionJsonNode.java rename to impl/json-utils/src/main/java/org/openworkflow/sdk/impl/jackson/FunctionJsonNode.java index 94809f25f..5cb800a48 100644 --- a/impl/json-utils/src/main/java/org/openworkflow/impl/jackson/FunctionJsonNode.java +++ b/impl/json-utils/src/main/java/org/openworkflow/sdk/impl/jackson/FunctionJsonNode.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.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/org/openworkflow/impl/jackson/JacksonCloudEventUtils.java b/impl/json-utils/src/main/java/org/openworkflow/sdk/impl/jackson/JacksonCloudEventUtils.java similarity index 98% rename from impl/json-utils/src/main/java/org/openworkflow/impl/jackson/JacksonCloudEventUtils.java rename to impl/json-utils/src/main/java/org/openworkflow/sdk/impl/jackson/JacksonCloudEventUtils.java index c30390227..7d7a5aa9e 100644 --- a/impl/json-utils/src/main/java/org/openworkflow/impl/jackson/JacksonCloudEventUtils.java +++ b/impl/json-utils/src/main/java/org/openworkflow/sdk/impl/jackson/JacksonCloudEventUtils.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.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/org/openworkflow/impl/jackson/JsonUtils.java b/impl/json-utils/src/main/java/org/openworkflow/sdk/impl/jackson/JsonUtils.java similarity index 99% rename from impl/json-utils/src/main/java/org/openworkflow/impl/jackson/JsonUtils.java rename to impl/json-utils/src/main/java/org/openworkflow/sdk/impl/jackson/JsonUtils.java index 25a27eaf6..0da058750 100644 --- a/impl/json-utils/src/main/java/org/openworkflow/impl/jackson/JsonUtils.java +++ b/impl/json-utils/src/main/java/org/openworkflow/sdk/impl/jackson/JsonUtils.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.jackson; +package org.openworkflow.sdk.impl.jackson; import com.fasterxml.jackson.core.JsonProcessingException; import com.fasterxml.jackson.databind.JsonNode; @@ -52,7 +52,7 @@ import java.util.function.Function; import java.util.function.Supplier; import java.util.stream.Collector; -import org.openworkflow.impl.WorkflowModel; +import org.openworkflow.sdk.impl.WorkflowModel; public class JsonUtils { diff --git a/impl/json-utils/src/main/java/org/openworkflow/impl/jackson/MergeUtils.java b/impl/json-utils/src/main/java/org/openworkflow/sdk/impl/jackson/MergeUtils.java similarity index 98% rename from impl/json-utils/src/main/java/org/openworkflow/impl/jackson/MergeUtils.java rename to impl/json-utils/src/main/java/org/openworkflow/sdk/impl/jackson/MergeUtils.java index d5407f687..9f9d1fc8b 100644 --- a/impl/json-utils/src/main/java/org/openworkflow/impl/jackson/MergeUtils.java +++ b/impl/json-utils/src/main/java/org/openworkflow/sdk/impl/jackson/MergeUtils.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.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/org/openworkflow/impl/jackson/ObjectMapperFactory.java b/impl/json-utils/src/main/java/org/openworkflow/sdk/impl/jackson/ObjectMapperFactory.java similarity index 89% rename from impl/json-utils/src/main/java/org/openworkflow/impl/jackson/ObjectMapperFactory.java rename to impl/json-utils/src/main/java/org/openworkflow/sdk/impl/jackson/ObjectMapperFactory.java index 92f4bd80d..04c742d5f 100644 --- a/impl/json-utils/src/main/java/org/openworkflow/impl/jackson/ObjectMapperFactory.java +++ b/impl/json-utils/src/main/java/org/openworkflow/sdk/impl/jackson/ObjectMapperFactory.java @@ -13,10 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.jackson; +package org.openworkflow.sdk.impl.jackson; import com.fasterxml.jackson.databind.ObjectMapper; import java.util.function.Supplier; -import org.openworkflow.impl.ServicePriority; +import org.openworkflow.sdk.impl.ServicePriority; public interface ObjectMapperFactory extends Supplier, ServicePriority {} diff --git a/impl/json-utils/src/main/java/org/openworkflow/impl/jackson/ObjectMapperFactoryProvider.java b/impl/json-utils/src/main/java/org/openworkflow/sdk/impl/jackson/ObjectMapperFactoryProvider.java similarity index 95% rename from impl/json-utils/src/main/java/org/openworkflow/impl/jackson/ObjectMapperFactoryProvider.java rename to impl/json-utils/src/main/java/org/openworkflow/sdk/impl/jackson/ObjectMapperFactoryProvider.java index daf89c328..40c4de571 100644 --- a/impl/json-utils/src/main/java/org/openworkflow/impl/jackson/ObjectMapperFactoryProvider.java +++ b/impl/json-utils/src/main/java/org/openworkflow/sdk/impl/jackson/ObjectMapperFactoryProvider.java @@ -13,9 +13,9 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.jackson; +package org.openworkflow.sdk.impl.jackson; -import static org.openworkflow.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/org/openworkflow/impl/jackson/JacksonCloudEventUtilsTest.java b/impl/json-utils/src/test/java/org/openworkflow/sdk/impl/jackson/JacksonCloudEventUtilsTest.java similarity index 99% rename from impl/json-utils/src/test/java/org/openworkflow/impl/jackson/JacksonCloudEventUtilsTest.java rename to impl/json-utils/src/test/java/org/openworkflow/sdk/impl/jackson/JacksonCloudEventUtilsTest.java index 375366628..4bdef169b 100644 --- a/impl/json-utils/src/test/java/org/openworkflow/impl/jackson/JacksonCloudEventUtilsTest.java +++ b/impl/json-utils/src/test/java/org/openworkflow/sdk/impl/jackson/JacksonCloudEventUtilsTest.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.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/org/openworkflow/impl/jackson/JsonUtilsStaticInitTest.java b/impl/json-utils/src/test/java/org/openworkflow/sdk/impl/jackson/JsonUtilsStaticInitTest.java similarity index 97% rename from impl/json-utils/src/test/java/org/openworkflow/impl/jackson/JsonUtilsStaticInitTest.java rename to impl/json-utils/src/test/java/org/openworkflow/sdk/impl/jackson/JsonUtilsStaticInitTest.java index 90bd7841a..ecd8b950f 100644 --- a/impl/json-utils/src/test/java/org/openworkflow/impl/jackson/JsonUtilsStaticInitTest.java +++ b/impl/json-utils/src/test/java/org/openworkflow/sdk/impl/jackson/JsonUtilsStaticInitTest.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.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 5b1c7afa4..07a53570c 100644 --- a/impl/jwt-impl/pom.xml +++ b/impl/jwt-impl/pom.xml @@ -2,7 +2,7 @@ 4.0.0 - org.openworkflow + org.openworkflow.sdk openworkflow-impl 8.0.0-SNAPSHOT @@ -12,11 +12,11 @@ - org.openworkflow + org.openworkflow.sdk openworkflow-impl-http - org.openworkflow + org.openworkflow.sdk openworkflow-impl-json diff --git a/impl/jwt-impl/src/main/java/org/openworkflow/impl/executors/http/jackson/JacksonModelConverterFactory.java b/impl/jwt-impl/src/main/java/org/openworkflow/sdk/impl/executors/http/jackson/JacksonModelConverterFactory.java similarity index 77% rename from impl/jwt-impl/src/main/java/org/openworkflow/impl/executors/http/jackson/JacksonModelConverterFactory.java rename to impl/jwt-impl/src/main/java/org/openworkflow/sdk/impl/executors/http/jackson/JacksonModelConverterFactory.java index 95dc87246..8b77e5a5d 100644 --- a/impl/jwt-impl/src/main/java/org/openworkflow/impl/executors/http/jackson/JacksonModelConverterFactory.java +++ b/impl/jwt-impl/src/main/java/org/openworkflow/sdk/impl/executors/http/jackson/JacksonModelConverterFactory.java @@ -13,14 +13,14 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.executors.http.jackson; +package org.openworkflow.sdk.impl.executors.http.jackson; import com.fasterxml.jackson.databind.JsonNode; -import org.openworkflow.impl.TaskContextData; -import org.openworkflow.impl.WorkflowContextData; -import org.openworkflow.impl.additional.NamedWorkflowAdditionalObject; -import org.openworkflow.impl.executors.http.HttpConverterResolver; -import org.openworkflow.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/org/openworkflow/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 89% rename from impl/jwt-impl/src/main/java/org/openworkflow/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 1551c3a4a..bdd0b0db0 100644 --- a/impl/jwt-impl/src/main/java/org/openworkflow/impl/executors/http/oauth/jackson/JacksonJWTConverter.java +++ b/impl/jwt-impl/src/main/java/org/openworkflow/sdk/impl/executors/http/oauth/jackson/JacksonJWTConverter.java @@ -13,16 +13,16 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.executors.http.oauth.jackson; +package org.openworkflow.sdk.impl.executors.http.oauth.jackson; import com.fasterxml.jackson.core.type.TypeReference; import java.io.IOException; import java.nio.charset.StandardCharsets; import java.util.Base64; import java.util.Map; -import org.openworkflow.impl.auth.JWT; -import org.openworkflow.impl.auth.JWTConverter; -import org.openworkflow.impl.jackson.JsonUtils; +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/org.openworkflow.impl.additional.NamedWorkflowAdditionalObject b/impl/jwt-impl/src/main/resources/META-INF/services/org.openworkflow.impl.additional.NamedWorkflowAdditionalObject deleted file mode 100644 index 4c0fad4dd..000000000 --- a/impl/jwt-impl/src/main/resources/META-INF/services/org.openworkflow.impl.additional.NamedWorkflowAdditionalObject +++ /dev/null @@ -1 +0,0 @@ -org.openworkflow.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.impl.auth.JWTConverter b/impl/jwt-impl/src/main/resources/META-INF/services/org.openworkflow.impl.auth.JWTConverter deleted file mode 100644 index 980c846aa..000000000 --- a/impl/jwt-impl/src/main/resources/META-INF/services/org.openworkflow.impl.auth.JWTConverter +++ /dev/null @@ -1 +0,0 @@ -org.openworkflow.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/org/openworkflow/impl/http/jwt/JacksonJWTImplTest.java b/impl/jwt-impl/src/test/java/org/openworkflow/sdk/impl/http/jwt/JacksonJWTImplTest.java similarity index 96% rename from impl/jwt-impl/src/test/java/org/openworkflow/impl/http/jwt/JacksonJWTImplTest.java rename to impl/jwt-impl/src/test/java/org/openworkflow/sdk/impl/http/jwt/JacksonJWTImplTest.java index 7d89cbb0a..5e63129e1 100644 --- a/impl/jwt-impl/src/test/java/org/openworkflow/impl/http/jwt/JacksonJWTImplTest.java +++ b/impl/jwt-impl/src/test/java/org/openworkflow/sdk/impl/http/jwt/JacksonJWTImplTest.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.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; @@ -25,8 +25,8 @@ import java.util.Map; import java.util.Optional; import org.junit.jupiter.api.Test; -import org.openworkflow.impl.auth.JWT; -import org.openworkflow.impl.executors.http.oauth.jackson.JacksonJWTConverter; +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 dc5dad77b..f30588856 100644 --- a/impl/lifecycleevent/pom.xml +++ b/impl/lifecycleevent/pom.xml @@ -1,7 +1,7 @@ 4.0.0 - org.openworkflow + org.openworkflow.sdk openworkflow-impl 8.0.0-SNAPSHOT @@ -9,15 +9,15 @@ Open Workflow :: Impl :: Lifecycle Events - org.openworkflow + org.openworkflow.sdk openworkflow-impl-json - org.openworkflow + org.openworkflow.sdk openworkflow-impl-core - org.openworkflow + org.openworkflow.sdk openworkflow-impl-model test diff --git a/impl/lifecycleevent/src/main/java/org/openworkflow/impl/jackson/events/JacksonLifeCyclePublisher.java b/impl/lifecycleevent/src/main/java/org/openworkflow/sdk/impl/jackson/events/JacksonLifeCyclePublisher.java similarity index 85% rename from impl/lifecycleevent/src/main/java/org/openworkflow/impl/jackson/events/JacksonLifeCyclePublisher.java rename to impl/lifecycleevent/src/main/java/org/openworkflow/sdk/impl/jackson/events/JacksonLifeCyclePublisher.java index fcb1e7f3d..76e509231 100644 --- a/impl/lifecycleevent/src/main/java/org/openworkflow/impl/jackson/events/JacksonLifeCyclePublisher.java +++ b/impl/lifecycleevent/src/main/java/org/openworkflow/sdk/impl/jackson/events/JacksonLifeCyclePublisher.java @@ -13,12 +13,12 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.jackson.events; +package org.openworkflow.sdk.impl.jackson.events; import com.fasterxml.jackson.core.JsonProcessingException; import java.io.UncheckedIOException; -import org.openworkflow.impl.jackson.JsonUtils; -import org.openworkflow.impl.lifecycle.ce.AbstractLifeCyclePublisher; +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/org.openworkflow.impl.lifecycle.WorkflowExecutionListener b/impl/lifecycleevent/src/main/resources/META-INF/services/org.openworkflow.impl.lifecycle.WorkflowExecutionListener deleted file mode 100644 index 42862fe01..000000000 --- a/impl/lifecycleevent/src/main/resources/META-INF/services/org.openworkflow.impl.lifecycle.WorkflowExecutionListener +++ /dev/null @@ -1 +0,0 @@ -org.openworkflow.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/org/openworkflow/impl/jackson/events/JacksonLifeCyclePublisherTest.java b/impl/lifecycleevent/src/test/java/org/openworkflow/sdk/impl/jackson/events/JacksonLifeCyclePublisherTest.java similarity index 65% rename from impl/lifecycleevent/src/test/java/org/openworkflow/impl/jackson/events/JacksonLifeCyclePublisherTest.java rename to impl/lifecycleevent/src/test/java/org/openworkflow/sdk/impl/jackson/events/JacksonLifeCyclePublisherTest.java index 6798397d1..45356fffa 100644 --- a/impl/lifecycleevent/src/test/java/org/openworkflow/impl/jackson/events/JacksonLifeCyclePublisherTest.java +++ b/impl/lifecycleevent/src/test/java/org/openworkflow/sdk/impl/jackson/events/JacksonLifeCyclePublisherTest.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.jackson.events; +package org.openworkflow.sdk.impl.jackson.events; import static org.assertj.core.api.Assertions.assertThat; import static org.mockito.Mockito.mock; @@ -27,48 +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.impl.TaskContext; -import org.openworkflow.impl.WorkflowContext; -import org.openworkflow.impl.WorkflowDefinition; -import org.openworkflow.impl.WorkflowDefinitionId; -import org.openworkflow.impl.WorkflowInstance; -import org.openworkflow.impl.WorkflowModelFactory; -import org.openworkflow.impl.WorkflowPosition; -import org.openworkflow.impl.WorkflowStatus; -import org.openworkflow.impl.jackson.JsonUtils; -import org.openworkflow.impl.lifecycle.TaskCancelledEvent; -import org.openworkflow.impl.lifecycle.TaskCompletedEvent; -import org.openworkflow.impl.lifecycle.TaskFailedEvent; -import org.openworkflow.impl.lifecycle.TaskResumedEvent; -import org.openworkflow.impl.lifecycle.TaskRetriedEvent; -import org.openworkflow.impl.lifecycle.TaskStartedEvent; -import org.openworkflow.impl.lifecycle.TaskSuspendedEvent; -import org.openworkflow.impl.lifecycle.WorkflowCancelledEvent; -import org.openworkflow.impl.lifecycle.WorkflowCompletedEvent; -import org.openworkflow.impl.lifecycle.WorkflowFailedEvent; -import org.openworkflow.impl.lifecycle.WorkflowResumedEvent; -import org.openworkflow.impl.lifecycle.WorkflowStartedEvent; -import org.openworkflow.impl.lifecycle.WorkflowStatusEvent; -import org.openworkflow.impl.lifecycle.WorkflowSuspendedEvent; -import org.openworkflow.impl.lifecycle.ce.TaskCancelledCEData; -import org.openworkflow.impl.lifecycle.ce.TaskCompletedCEData; -import org.openworkflow.impl.lifecycle.ce.TaskCompletedCEDataWithOutput; -import org.openworkflow.impl.lifecycle.ce.TaskFailedCEData; -import org.openworkflow.impl.lifecycle.ce.TaskResumedCEData; -import org.openworkflow.impl.lifecycle.ce.TaskRetriedCEData; -import org.openworkflow.impl.lifecycle.ce.TaskStartedCEData; -import org.openworkflow.impl.lifecycle.ce.TaskStartedCEDataWithInput; -import org.openworkflow.impl.lifecycle.ce.TaskSuspendedCEData; -import org.openworkflow.impl.lifecycle.ce.WorkflowCancelledCEData; -import org.openworkflow.impl.lifecycle.ce.WorkflowCompletedCEData; -import org.openworkflow.impl.lifecycle.ce.WorkflowCompletedCEDataWithOutput; -import org.openworkflow.impl.lifecycle.ce.WorkflowFailedCEData; -import org.openworkflow.impl.lifecycle.ce.WorkflowResumedCEData; -import org.openworkflow.impl.lifecycle.ce.WorkflowStartedCEData; -import org.openworkflow.impl.lifecycle.ce.WorkflowStartedCEDataWithInput; -import org.openworkflow.impl.lifecycle.ce.WorkflowStatusCEDataEvent; -import org.openworkflow.impl.lifecycle.ce.WorkflowSuspendedCEData; -import org.openworkflow.impl.model.jackson.JacksonModelFactory; +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 465188613..653bf9234 100644 --- a/impl/model/pom.xml +++ b/impl/model/pom.xml @@ -1,7 +1,7 @@ 4.0.0 - org.openworkflow + org.openworkflow.sdk openworkflow-impl 8.0.0-SNAPSHOT @@ -9,11 +9,11 @@ Open Workflow :: Impl :: Model - org.openworkflow + org.openworkflow.sdk openworkflow-impl-json - org.openworkflow + org.openworkflow.sdk openworkflow-impl-core diff --git a/impl/model/src/main/java/org/openworkflow/impl/model/jackson/AbstractJacksonMarshaller.java b/impl/model/src/main/java/org/openworkflow/sdk/impl/model/jackson/AbstractJacksonMarshaller.java similarity index 81% rename from impl/model/src/main/java/org/openworkflow/impl/model/jackson/AbstractJacksonMarshaller.java rename to impl/model/src/main/java/org/openworkflow/sdk/impl/model/jackson/AbstractJacksonMarshaller.java index d729c3c5e..d917d81fd 100644 --- a/impl/model/src/main/java/org/openworkflow/impl/model/jackson/AbstractJacksonMarshaller.java +++ b/impl/model/src/main/java/org/openworkflow/sdk/impl/model/jackson/AbstractJacksonMarshaller.java @@ -13,15 +13,15 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.model.jackson; +package org.openworkflow.sdk.impl.model.jackson; import com.fasterxml.jackson.core.JsonProcessingException; import java.io.IOException; import java.io.UncheckedIOException; -import org.openworkflow.impl.jackson.JsonUtils; -import org.openworkflow.impl.marshaller.CustomObjectMarshaller; -import org.openworkflow.impl.marshaller.WorkflowInputBuffer; -import org.openworkflow.impl.marshaller.WorkflowOutputBuffer; +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/org/openworkflow/impl/model/jackson/JacksonModel.java b/impl/model/src/main/java/org/openworkflow/sdk/impl/model/jackson/JacksonModel.java similarity index 95% rename from impl/model/src/main/java/org/openworkflow/impl/model/jackson/JacksonModel.java rename to impl/model/src/main/java/org/openworkflow/sdk/impl/model/jackson/JacksonModel.java index f84857f4d..2e50de1a9 100644 --- a/impl/model/src/main/java/org/openworkflow/impl/model/jackson/JacksonModel.java +++ b/impl/model/src/main/java/org/openworkflow/sdk/impl/model/jackson/JacksonModel.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.model.jackson; +package org.openworkflow.sdk.impl.model.jackson; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.databind.JsonNode; @@ -30,9 +30,9 @@ import java.util.Map; import java.util.Objects; import java.util.Optional; -import org.openworkflow.impl.AbstractWorkflowModel; -import org.openworkflow.impl.WorkflowModel; -import org.openworkflow.impl.jackson.JsonUtils; +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/org/openworkflow/impl/model/jackson/JacksonModelCollection.java b/impl/model/src/main/java/org/openworkflow/sdk/impl/model/jackson/JacksonModelCollection.java similarity index 94% rename from impl/model/src/main/java/org/openworkflow/impl/model/jackson/JacksonModelCollection.java rename to impl/model/src/main/java/org/openworkflow/sdk/impl/model/jackson/JacksonModelCollection.java index 3d506c5fa..6932c37ef 100644 --- a/impl/model/src/main/java/org/openworkflow/impl/model/jackson/JacksonModelCollection.java +++ b/impl/model/src/main/java/org/openworkflow/sdk/impl/model/jackson/JacksonModelCollection.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.model.jackson; +package org.openworkflow.sdk.impl.model.jackson; import com.fasterxml.jackson.databind.JsonNode; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; @@ -25,10 +25,10 @@ import java.util.List; import java.util.Objects; import java.util.Optional; -import org.openworkflow.impl.CollectionConversionUtils; -import org.openworkflow.impl.WorkflowModel; -import org.openworkflow.impl.WorkflowModelCollection; -import org.openworkflow.impl.jackson.JsonUtils; +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/org/openworkflow/impl/model/jackson/JacksonModelCollectionDeserializer.java b/impl/model/src/main/java/org/openworkflow/sdk/impl/model/jackson/JacksonModelCollectionDeserializer.java similarity index 96% rename from impl/model/src/main/java/org/openworkflow/impl/model/jackson/JacksonModelCollectionDeserializer.java rename to impl/model/src/main/java/org/openworkflow/sdk/impl/model/jackson/JacksonModelCollectionDeserializer.java index e7a6875c5..ce2a604bc 100644 --- a/impl/model/src/main/java/org/openworkflow/impl/model/jackson/JacksonModelCollectionDeserializer.java +++ b/impl/model/src/main/java/org/openworkflow/sdk/impl/model/jackson/JacksonModelCollectionDeserializer.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.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/org/openworkflow/impl/model/jackson/JacksonModelCollectionMarshaller.java b/impl/model/src/main/java/org/openworkflow/sdk/impl/model/jackson/JacksonModelCollectionMarshaller.java similarity index 94% rename from impl/model/src/main/java/org/openworkflow/impl/model/jackson/JacksonModelCollectionMarshaller.java rename to impl/model/src/main/java/org/openworkflow/sdk/impl/model/jackson/JacksonModelCollectionMarshaller.java index 210dc8c3e..e2fc9813e 100644 --- a/impl/model/src/main/java/org/openworkflow/impl/model/jackson/JacksonModelCollectionMarshaller.java +++ b/impl/model/src/main/java/org/openworkflow/sdk/impl/model/jackson/JacksonModelCollectionMarshaller.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.model.jackson; +package org.openworkflow.sdk.impl.model.jackson; public class JacksonModelCollectionMarshaller extends AbstractJacksonMarshaller { diff --git a/impl/model/src/main/java/org/openworkflow/impl/model/jackson/JacksonModelCollectionSerializer.java b/impl/model/src/main/java/org/openworkflow/sdk/impl/model/jackson/JacksonModelCollectionSerializer.java similarity index 96% rename from impl/model/src/main/java/org/openworkflow/impl/model/jackson/JacksonModelCollectionSerializer.java rename to impl/model/src/main/java/org/openworkflow/sdk/impl/model/jackson/JacksonModelCollectionSerializer.java index 035dee2c2..5dd6229c1 100644 --- a/impl/model/src/main/java/org/openworkflow/impl/model/jackson/JacksonModelCollectionSerializer.java +++ b/impl/model/src/main/java/org/openworkflow/sdk/impl/model/jackson/JacksonModelCollectionSerializer.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.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/org/openworkflow/impl/model/jackson/JacksonModelDeserializer.java b/impl/model/src/main/java/org/openworkflow/sdk/impl/model/jackson/JacksonModelDeserializer.java similarity index 96% rename from impl/model/src/main/java/org/openworkflow/impl/model/jackson/JacksonModelDeserializer.java rename to impl/model/src/main/java/org/openworkflow/sdk/impl/model/jackson/JacksonModelDeserializer.java index 971727a34..8efa252b7 100644 --- a/impl/model/src/main/java/org/openworkflow/impl/model/jackson/JacksonModelDeserializer.java +++ b/impl/model/src/main/java/org/openworkflow/sdk/impl/model/jackson/JacksonModelDeserializer.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.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/org/openworkflow/impl/model/jackson/JacksonModelFactory.java b/impl/model/src/main/java/org/openworkflow/sdk/impl/model/jackson/JacksonModelFactory.java similarity index 92% rename from impl/model/src/main/java/org/openworkflow/impl/model/jackson/JacksonModelFactory.java rename to impl/model/src/main/java/org/openworkflow/sdk/impl/model/jackson/JacksonModelFactory.java index 4ad10868a..6cb69ad6d 100644 --- a/impl/model/src/main/java/org/openworkflow/impl/model/jackson/JacksonModelFactory.java +++ b/impl/model/src/main/java/org/openworkflow/sdk/impl/model/jackson/JacksonModelFactory.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.model.jackson; +package org.openworkflow.sdk.impl.model.jackson; import com.fasterxml.jackson.core.JsonProcessingException; import com.fasterxml.jackson.databind.JsonNode; @@ -28,11 +28,11 @@ import java.math.BigDecimal; import java.time.OffsetDateTime; import java.util.Map; -import org.openworkflow.impl.WorkflowModel; -import org.openworkflow.impl.WorkflowModelCollection; -import org.openworkflow.impl.WorkflowModelFactory; -import org.openworkflow.impl.jackson.JacksonCloudEventUtils; -import org.openworkflow.impl.jackson.JsonUtils; +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/org/openworkflow/impl/model/jackson/JacksonModelMarshaller.java b/impl/model/src/main/java/org/openworkflow/sdk/impl/model/jackson/JacksonModelMarshaller.java similarity index 90% rename from impl/model/src/main/java/org/openworkflow/impl/model/jackson/JacksonModelMarshaller.java rename to impl/model/src/main/java/org/openworkflow/sdk/impl/model/jackson/JacksonModelMarshaller.java index 40cf65cfe..88dce3067 100644 --- a/impl/model/src/main/java/org/openworkflow/impl/model/jackson/JacksonModelMarshaller.java +++ b/impl/model/src/main/java/org/openworkflow/sdk/impl/model/jackson/JacksonModelMarshaller.java @@ -13,9 +13,9 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.model.jackson; +package org.openworkflow.sdk.impl.model.jackson; -import org.openworkflow.impl.marshaller.WorkflowInputBuffer; +import org.openworkflow.sdk.impl.marshaller.WorkflowInputBuffer; public class JacksonModelMarshaller extends AbstractJacksonMarshaller { diff --git a/impl/model/src/main/java/org/openworkflow/impl/model/jackson/JacksonModelSerializer.java b/impl/model/src/main/java/org/openworkflow/sdk/impl/model/jackson/JacksonModelSerializer.java similarity index 96% rename from impl/model/src/main/java/org/openworkflow/impl/model/jackson/JacksonModelSerializer.java rename to impl/model/src/main/java/org/openworkflow/sdk/impl/model/jackson/JacksonModelSerializer.java index 1f360fc6d..b657337aa 100644 --- a/impl/model/src/main/java/org/openworkflow/impl/model/jackson/JacksonModelSerializer.java +++ b/impl/model/src/main/java/org/openworkflow/sdk/impl/model/jackson/JacksonModelSerializer.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.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/org/openworkflow/impl/model/jackson/JacksonObjectMarshaller.java b/impl/model/src/main/java/org/openworkflow/sdk/impl/model/jackson/JacksonObjectMarshaller.java similarity index 94% rename from impl/model/src/main/java/org/openworkflow/impl/model/jackson/JacksonObjectMarshaller.java rename to impl/model/src/main/java/org/openworkflow/sdk/impl/model/jackson/JacksonObjectMarshaller.java index 7400f2596..61b69e86f 100644 --- a/impl/model/src/main/java/org/openworkflow/impl/model/jackson/JacksonObjectMarshaller.java +++ b/impl/model/src/main/java/org/openworkflow/sdk/impl/model/jackson/JacksonObjectMarshaller.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.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/org.openworkflow/openworkflow-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/org.openworkflow/openworkflow-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 d7ca45a3c..8970e2a81 100644 --- a/impl/model/src/main/resources/META-INF/native-image/org.openworkflow/openworkflow-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": "org.openworkflow.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": "org.openworkflow.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": "org.openworkflow.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": "org.openworkflow.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/org.openworkflow.impl.WorkflowModelFactory b/impl/model/src/main/resources/META-INF/services/org.openworkflow.impl.WorkflowModelFactory deleted file mode 100644 index 58a70301d..000000000 --- a/impl/model/src/main/resources/META-INF/services/org.openworkflow.impl.WorkflowModelFactory +++ /dev/null @@ -1 +0,0 @@ -org.openworkflow.impl.model.jackson.JacksonModelFactory \ No newline at end of file diff --git a/impl/model/src/main/resources/META-INF/services/org.openworkflow.impl.marshaller.CustomObjectMarshaller b/impl/model/src/main/resources/META-INF/services/org.openworkflow.impl.marshaller.CustomObjectMarshaller deleted file mode 100644 index e18ca0bba..000000000 --- a/impl/model/src/main/resources/META-INF/services/org.openworkflow.impl.marshaller.CustomObjectMarshaller +++ /dev/null @@ -1,3 +0,0 @@ -org.openworkflow.impl.model.jackson.JacksonModelMarshaller -org.openworkflow.impl.model.jackson.JacksonModelCollectionMarshaller -org.openworkflow.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/org/openworkflow/impl/model/jackson/Employee.java b/impl/model/src/test/java/org/openworkflow/sdk/impl/model/jackson/Employee.java similarity index 93% rename from impl/model/src/test/java/org/openworkflow/impl/model/jackson/Employee.java rename to impl/model/src/test/java/org/openworkflow/sdk/impl/model/jackson/Employee.java index 2d77b737c..a4739135a 100644 --- a/impl/model/src/test/java/org/openworkflow/impl/model/jackson/Employee.java +++ b/impl/model/src/test/java/org/openworkflow/sdk/impl/model/jackson/Employee.java @@ -13,6 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.model.jackson; +package org.openworkflow.sdk.impl.model.jackson; record Employee(String name, String company) {} diff --git a/impl/model/src/test/java/org/openworkflow/impl/model/jackson/JacksonModelSerializationTest.java b/impl/model/src/test/java/org/openworkflow/sdk/impl/model/jackson/JacksonModelSerializationTest.java similarity index 84% rename from impl/model/src/test/java/org/openworkflow/impl/model/jackson/JacksonModelSerializationTest.java rename to impl/model/src/test/java/org/openworkflow/sdk/impl/model/jackson/JacksonModelSerializationTest.java index 3db209ea6..261de978c 100644 --- a/impl/model/src/test/java/org/openworkflow/impl/model/jackson/JacksonModelSerializationTest.java +++ b/impl/model/src/test/java/org/openworkflow/sdk/impl/model/jackson/JacksonModelSerializationTest.java @@ -13,18 +13,18 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.model.jackson; +package org.openworkflow.sdk.impl.model.jackson; import static org.assertj.core.api.Assertions.assertThat; import java.io.ByteArrayInputStream; import java.io.ByteArrayOutputStream; import org.junit.jupiter.api.Test; -import org.openworkflow.impl.jackson.JsonUtils; -import org.openworkflow.impl.marshaller.DefaultBufferFactory; -import org.openworkflow.impl.marshaller.WorkflowBufferFactory; -import org.openworkflow.impl.marshaller.WorkflowInputBuffer; -import org.openworkflow.impl.marshaller.WorkflowOutputBuffer; +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/org/openworkflow/impl/model/jackson/JacksonModelTest.java b/impl/model/src/test/java/org/openworkflow/sdk/impl/model/jackson/JacksonModelTest.java similarity index 94% rename from impl/model/src/test/java/org/openworkflow/impl/model/jackson/JacksonModelTest.java rename to impl/model/src/test/java/org/openworkflow/sdk/impl/model/jackson/JacksonModelTest.java index 85ee308f2..a96ce7217 100644 --- a/impl/model/src/test/java/org/openworkflow/impl/model/jackson/JacksonModelTest.java +++ b/impl/model/src/test/java/org/openworkflow/sdk/impl/model/jackson/JacksonModelTest.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.model.jackson; +package org.openworkflow.sdk.impl.model.jackson; import static org.assertj.core.api.Assertions.assertThat; @@ -23,9 +23,9 @@ import java.util.Map; import org.junit.jupiter.api.BeforeAll; import org.junit.jupiter.api.Test; -import org.openworkflow.impl.WorkflowModel; -import org.openworkflow.impl.WorkflowModelFactory; -import org.openworkflow.impl.jackson.JsonUtils; +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 c4e8a95f2..3b88edf43 100644 --- a/impl/openapi-jackson/pom.xml +++ b/impl/openapi-jackson/pom.xml @@ -1,7 +1,7 @@ 4.0.0 - org.openworkflow + org.openworkflow.sdk openworkflow-impl 8.0.0-SNAPSHOT @@ -9,15 +9,15 @@ Open Workflow :: Impl :: OpenAPI:: Jackson - org.openworkflow + org.openworkflow.sdk openworkflow-impl-openapi-base - org.openworkflow + org.openworkflow.sdk openworkflow-api - org.openworkflow + org.openworkflow.sdk openworkflow-impl-openapi-base test-jar test diff --git a/impl/openapi-jackson/src/main/java/org/openworkflow/impl/executors/openapi/jackson/JacksonUnifiedOpenAPIMixIn.java b/impl/openapi-jackson/src/main/java/org/openworkflow/sdk/impl/executors/openapi/jackson/JacksonUnifiedOpenAPIMixIn.java similarity index 96% rename from impl/openapi-jackson/src/main/java/org/openworkflow/impl/executors/openapi/jackson/JacksonUnifiedOpenAPIMixIn.java rename to impl/openapi-jackson/src/main/java/org/openworkflow/sdk/impl/executors/openapi/jackson/JacksonUnifiedOpenAPIMixIn.java index 24e11a0fe..6f43e9086 100644 --- a/impl/openapi-jackson/src/main/java/org/openworkflow/impl/executors/openapi/jackson/JacksonUnifiedOpenAPIMixIn.java +++ b/impl/openapi-jackson/src/main/java/org/openworkflow/sdk/impl/executors/openapi/jackson/JacksonUnifiedOpenAPIMixIn.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.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/org/openworkflow/impl/executors/openapi/jackson/JacksonUnifiedOpenAPIMixInModule.java b/impl/openapi-jackson/src/main/java/org/openworkflow/sdk/impl/executors/openapi/jackson/JacksonUnifiedOpenAPIMixInModule.java similarity index 93% rename from impl/openapi-jackson/src/main/java/org/openworkflow/impl/executors/openapi/jackson/JacksonUnifiedOpenAPIMixInModule.java rename to impl/openapi-jackson/src/main/java/org/openworkflow/sdk/impl/executors/openapi/jackson/JacksonUnifiedOpenAPIMixInModule.java index 66cf1fbd0..eab250c67 100644 --- a/impl/openapi-jackson/src/main/java/org/openworkflow/impl/executors/openapi/jackson/JacksonUnifiedOpenAPIMixInModule.java +++ b/impl/openapi-jackson/src/main/java/org/openworkflow/sdk/impl/executors/openapi/jackson/JacksonUnifiedOpenAPIMixInModule.java @@ -13,10 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.executors.openapi.jackson; +package org.openworkflow.sdk.impl.executors.openapi.jackson; import com.fasterxml.jackson.databind.module.SimpleModule; -import org.openworkflow.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/org/openworkflow/impl/executors/openapi/jackson/JacksonUnifiedOpenAPIReader.java b/impl/openapi-jackson/src/main/java/org/openworkflow/sdk/impl/executors/openapi/jackson/JacksonUnifiedOpenAPIReader.java similarity index 77% rename from impl/openapi-jackson/src/main/java/org/openworkflow/impl/executors/openapi/jackson/JacksonUnifiedOpenAPIReader.java rename to impl/openapi-jackson/src/main/java/org/openworkflow/sdk/impl/executors/openapi/jackson/JacksonUnifiedOpenAPIReader.java index 2be8a3815..0c9e061ed 100644 --- a/impl/openapi-jackson/src/main/java/org/openworkflow/impl/executors/openapi/jackson/JacksonUnifiedOpenAPIReader.java +++ b/impl/openapi-jackson/src/main/java/org/openworkflow/sdk/impl/executors/openapi/jackson/JacksonUnifiedOpenAPIReader.java @@ -13,15 +13,15 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.executors.openapi.jackson; +package org.openworkflow.sdk.impl.executors.openapi.jackson; import com.fasterxml.jackson.databind.ObjectMapper; import java.io.IOException; import java.io.InputStream; -import org.openworkflow.api.WorkflowFormat; -import org.openworkflow.impl.executors.openapi.UnifiedOpenAPI; -import org.openworkflow.impl.executors.openapi.UnifiedOpenAPIReader; -import org.openworkflow.impl.resources.ExternalResourceHandler; +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/org/openworkflow/impl/executors/openapi/jackson/JacksonUnifiedOpenAPIReaderFactory.java b/impl/openapi-jackson/src/main/java/org/openworkflow/sdk/impl/executors/openapi/jackson/JacksonUnifiedOpenAPIReaderFactory.java similarity index 83% rename from impl/openapi-jackson/src/main/java/org/openworkflow/impl/executors/openapi/jackson/JacksonUnifiedOpenAPIReaderFactory.java rename to impl/openapi-jackson/src/main/java/org/openworkflow/sdk/impl/executors/openapi/jackson/JacksonUnifiedOpenAPIReaderFactory.java index cddfa2fe9..11efc844f 100644 --- a/impl/openapi-jackson/src/main/java/org/openworkflow/impl/executors/openapi/jackson/JacksonUnifiedOpenAPIReaderFactory.java +++ b/impl/openapi-jackson/src/main/java/org/openworkflow/sdk/impl/executors/openapi/jackson/JacksonUnifiedOpenAPIReaderFactory.java @@ -13,11 +13,11 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.executors.openapi.jackson; +package org.openworkflow.sdk.impl.executors.openapi.jackson; -import org.openworkflow.impl.TaskContextData; -import org.openworkflow.impl.WorkflowContextData; -import org.openworkflow.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/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/native-image/org.openworkflow/openworkflow-impl-openapi/reflect-config.json b/impl/openapi-jackson/src/main/resources/META-INF/native-image/org.openworkflow/openworkflow-impl-openapi/reflect-config.json deleted file mode 100644 index d4343f437..000000000 --- a/impl/openapi-jackson/src/main/resources/META-INF/native-image/org.openworkflow/openworkflow-impl-openapi/reflect-config.json +++ /dev/null @@ -1,14 +0,0 @@ -[ -{"name":"org.openworkflow.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.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.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.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.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.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.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.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.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.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.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.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 ea951f333..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 @@ -org.openworkflow.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/org.openworkflow.impl.additional.NamedWorkflowAdditionalObject b/impl/openapi-jackson/src/main/resources/META-INF/services/org.openworkflow.impl.additional.NamedWorkflowAdditionalObject deleted file mode 100644 index 08c24963e..000000000 --- a/impl/openapi-jackson/src/main/resources/META-INF/services/org.openworkflow.impl.additional.NamedWorkflowAdditionalObject +++ /dev/null @@ -1 +0,0 @@ -org.openworkflow.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/org/openworkflow/impl/executors/openapi/jackson/JacksonOpenAPIProcessorTest.java b/impl/openapi-jackson/src/test/java/org/openworkflow/sdk/impl/executors/openapi/jackson/JacksonOpenAPIProcessorTest.java similarity index 82% rename from impl/openapi-jackson/src/test/java/org/openworkflow/impl/executors/openapi/jackson/JacksonOpenAPIProcessorTest.java rename to impl/openapi-jackson/src/test/java/org/openworkflow/sdk/impl/executors/openapi/jackson/JacksonOpenAPIProcessorTest.java index 7e5b6c52c..743b11125 100644 --- a/impl/openapi-jackson/src/test/java/org/openworkflow/impl/executors/openapi/jackson/JacksonOpenAPIProcessorTest.java +++ b/impl/openapi-jackson/src/test/java/org/openworkflow/sdk/impl/executors/openapi/jackson/JacksonOpenAPIProcessorTest.java @@ -13,11 +13,11 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.executors.openapi.jackson; +package org.openworkflow.sdk.impl.executors.openapi.jackson; import org.junit.jupiter.api.BeforeAll; -import org.openworkflow.impl.executors.openapi.OpenAPIProcessorTest; -import org.openworkflow.impl.executors.openapi.UnifiedOpenAPIReader; +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 4f843af1f..0d1e3eba3 100644 --- a/impl/openapi/pom.xml +++ b/impl/openapi/pom.xml @@ -1,7 +1,7 @@ 4.0.0 - org.openworkflow + org.openworkflow.sdk openworkflow-impl 8.0.0-SNAPSHOT @@ -13,11 +13,11 @@ jakarta.ws.rs-api - org.openworkflow + org.openworkflow.sdk openworkflow-impl-core - org.openworkflow + org.openworkflow.sdk openworkflow-impl-http diff --git a/impl/openapi/src/main/java/org/openworkflow/impl/executors/openapi/OpenAPIExecutor.java b/impl/openapi/src/main/java/org/openworkflow/sdk/impl/executors/openapi/OpenAPIExecutor.java similarity index 91% rename from impl/openapi/src/main/java/org/openworkflow/impl/executors/openapi/OpenAPIExecutor.java rename to impl/openapi/src/main/java/org/openworkflow/sdk/impl/executors/openapi/OpenAPIExecutor.java index 4481ca43e..b7108c4d9 100644 --- a/impl/openapi/src/main/java/org/openworkflow/impl/executors/openapi/OpenAPIExecutor.java +++ b/impl/openapi/src/main/java/org/openworkflow/sdk/impl/executors/openapi/OpenAPIExecutor.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.executors.openapi; +package org.openworkflow.sdk.impl.executors.openapi; import java.io.IOException; import java.io.UncheckedIOException; @@ -24,15 +24,15 @@ import java.util.Map; import java.util.Set; import java.util.concurrent.CompletableFuture; -import org.openworkflow.api.types.ExternalResource; -import org.openworkflow.impl.TaskContext; -import org.openworkflow.impl.WorkflowApplication; -import org.openworkflow.impl.WorkflowContext; -import org.openworkflow.impl.WorkflowModel; -import org.openworkflow.impl.executors.CallableTask; -import org.openworkflow.impl.executors.http.HttpExecutor; -import org.openworkflow.impl.executors.http.HttpExecutorBuilder; -import org.openworkflow.impl.resources.ExternalResourceHandler; +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 { diff --git a/impl/openapi/src/main/java/org/openworkflow/impl/executors/openapi/OpenAPIExecutorBuilder.java b/impl/openapi/src/main/java/org/openworkflow/sdk/impl/executors/openapi/OpenAPIExecutorBuilder.java similarity index 74% rename from impl/openapi/src/main/java/org/openworkflow/impl/executors/openapi/OpenAPIExecutorBuilder.java rename to impl/openapi/src/main/java/org/openworkflow/sdk/impl/executors/openapi/OpenAPIExecutorBuilder.java index 7c3bf5142..81c2f3b94 100644 --- a/impl/openapi/src/main/java/org/openworkflow/impl/executors/openapi/OpenAPIExecutorBuilder.java +++ b/impl/openapi/src/main/java/org/openworkflow/sdk/impl/executors/openapi/OpenAPIExecutorBuilder.java @@ -13,18 +13,18 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.executors.openapi; +package org.openworkflow.sdk.impl.executors.openapi; import java.util.Map; -import org.openworkflow.api.types.CallOpenAPI; -import org.openworkflow.api.types.ExternalResource; -import org.openworkflow.api.types.OpenAPIArguments; -import org.openworkflow.api.types.TaskBase; -import org.openworkflow.impl.WorkflowDefinition; -import org.openworkflow.impl.WorkflowMutablePosition; -import org.openworkflow.impl.executors.CallableTaskBuilder; -import org.openworkflow.impl.executors.CallableTaskFactory; -import org.openworkflow.impl.executors.http.HttpExecutorBuilder; +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/org/openworkflow/impl/executors/openapi/OpenAPIProcessor.java b/impl/openapi/src/main/java/org/openworkflow/sdk/impl/executors/openapi/OpenAPIProcessor.java similarity index 95% rename from impl/openapi/src/main/java/org/openworkflow/impl/executors/openapi/OpenAPIProcessor.java rename to impl/openapi/src/main/java/org/openworkflow/sdk/impl/executors/openapi/OpenAPIProcessor.java index a40ee1757..006d83519 100644 --- a/impl/openapi/src/main/java/org/openworkflow/impl/executors/openapi/OpenAPIProcessor.java +++ b/impl/openapi/src/main/java/org/openworkflow/sdk/impl/executors/openapi/OpenAPIProcessor.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.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/org/openworkflow/impl/executors/openapi/OperationDefinition.java b/impl/openapi/src/main/java/org/openworkflow/sdk/impl/executors/openapi/OperationDefinition.java similarity index 98% rename from impl/openapi/src/main/java/org/openworkflow/impl/executors/openapi/OperationDefinition.java rename to impl/openapi/src/main/java/org/openworkflow/sdk/impl/executors/openapi/OperationDefinition.java index f2483cb59..33c50dd7a 100644 --- a/impl/openapi/src/main/java/org/openworkflow/impl/executors/openapi/OperationDefinition.java +++ b/impl/openapi/src/main/java/org/openworkflow/sdk/impl/executors/openapi/OperationDefinition.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.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/org/openworkflow/impl/executors/openapi/OperationPathResolver.java b/impl/openapi/src/main/java/org/openworkflow/sdk/impl/executors/openapi/OperationPathResolver.java similarity index 78% rename from impl/openapi/src/main/java/org/openworkflow/impl/executors/openapi/OperationPathResolver.java rename to impl/openapi/src/main/java/org/openworkflow/sdk/impl/executors/openapi/OperationPathResolver.java index 44c563808..57a3a5113 100644 --- a/impl/openapi/src/main/java/org/openworkflow/impl/executors/openapi/OperationPathResolver.java +++ b/impl/openapi/src/main/java/org/openworkflow/sdk/impl/executors/openapi/OperationPathResolver.java @@ -13,17 +13,17 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.executors.openapi; +package org.openworkflow.sdk.impl.executors.openapi; import jakarta.ws.rs.core.UriBuilder; import java.net.URI; import java.util.Map; -import org.openworkflow.impl.TaskContext; -import org.openworkflow.impl.WorkflowApplication; -import org.openworkflow.impl.WorkflowContext; -import org.openworkflow.impl.WorkflowModel; -import org.openworkflow.impl.WorkflowUtils; -import org.openworkflow.impl.WorkflowValueResolver; +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/org/openworkflow/impl/executors/openapi/ParameterDefinition.java b/impl/openapi/src/main/java/org/openworkflow/sdk/impl/executors/openapi/ParameterDefinition.java similarity index 93% rename from impl/openapi/src/main/java/org/openworkflow/impl/executors/openapi/ParameterDefinition.java rename to impl/openapi/src/main/java/org/openworkflow/sdk/impl/executors/openapi/ParameterDefinition.java index 09e834fbc..674c36f2f 100644 --- a/impl/openapi/src/main/java/org/openworkflow/impl/executors/openapi/ParameterDefinition.java +++ b/impl/openapi/src/main/java/org/openworkflow/sdk/impl/executors/openapi/ParameterDefinition.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.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/org/openworkflow/impl/executors/openapi/UnifiedOpenAPI.java b/impl/openapi/src/main/java/org/openworkflow/sdk/impl/executors/openapi/UnifiedOpenAPI.java similarity index 99% rename from impl/openapi/src/main/java/org/openworkflow/impl/executors/openapi/UnifiedOpenAPI.java rename to impl/openapi/src/main/java/org/openworkflow/sdk/impl/executors/openapi/UnifiedOpenAPI.java index 39eb05a2a..4f45c4a39 100644 --- a/impl/openapi/src/main/java/org/openworkflow/impl/executors/openapi/UnifiedOpenAPI.java +++ b/impl/openapi/src/main/java/org/openworkflow/sdk/impl/executors/openapi/UnifiedOpenAPI.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.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/org/openworkflow/impl/executors/openapi/UnifiedOpenAPIReader.java b/impl/openapi/src/main/java/org/openworkflow/sdk/impl/executors/openapi/UnifiedOpenAPIReader.java similarity index 87% rename from impl/openapi/src/main/java/org/openworkflow/impl/executors/openapi/UnifiedOpenAPIReader.java rename to impl/openapi/src/main/java/org/openworkflow/sdk/impl/executors/openapi/UnifiedOpenAPIReader.java index 55496ffe5..7ca015064 100644 --- a/impl/openapi/src/main/java/org/openworkflow/impl/executors/openapi/UnifiedOpenAPIReader.java +++ b/impl/openapi/src/main/java/org/openworkflow/sdk/impl/executors/openapi/UnifiedOpenAPIReader.java @@ -13,10 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.executors.openapi; +package org.openworkflow.sdk.impl.executors.openapi; import java.io.IOException; -import org.openworkflow.impl.resources.ExternalResourceHandler; +import org.openworkflow.sdk.impl.resources.ExternalResourceHandler; public interface UnifiedOpenAPIReader { diff --git a/impl/openapi/src/main/resources/META-INF/services/org.openworkflow.impl.executors.CallableTaskBuilder b/impl/openapi/src/main/resources/META-INF/services/org.openworkflow.impl.executors.CallableTaskBuilder deleted file mode 100644 index d2c84a020..000000000 --- a/impl/openapi/src/main/resources/META-INF/services/org.openworkflow.impl.executors.CallableTaskBuilder +++ /dev/null @@ -1 +0,0 @@ -org.openworkflow.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/org/openworkflow/impl/executors/openapi/OpenAPIProcessorTest.java b/impl/openapi/src/test/java/org/openworkflow/sdk/impl/executors/openapi/OpenAPIProcessorTest.java similarity index 97% rename from impl/openapi/src/test/java/org/openworkflow/impl/executors/openapi/OpenAPIProcessorTest.java rename to impl/openapi/src/test/java/org/openworkflow/sdk/impl/executors/openapi/OpenAPIProcessorTest.java index 05e29a3b3..c7d5d3aa7 100644 --- a/impl/openapi/src/test/java/org/openworkflow/impl/executors/openapi/OpenAPIProcessorTest.java +++ b/impl/openapi/src/test/java/org/openworkflow/sdk/impl/executors/openapi/OpenAPIProcessorTest.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.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; @@ -23,8 +23,8 @@ import java.io.UncheckedIOException; import java.util.List; import org.junit.jupiter.api.Test; -import org.openworkflow.impl.resources.ClasspathResource; -import org.openworkflow.impl.resources.ExternalResourceHandler; +import org.openworkflow.sdk.impl.resources.ClasspathResource; +import org.openworkflow.sdk.impl.resources.ExternalResourceHandler; public abstract class OpenAPIProcessorTest { diff --git a/impl/persistence/api/pom.xml b/impl/persistence/api/pom.xml index c0072ce9f..03b6eea9d 100644 --- a/impl/persistence/api/pom.xml +++ b/impl/persistence/api/pom.xml @@ -1,7 +1,7 @@ 4.0.0 - org.openworkflow + org.openworkflow.sdk openworkflow-persistence 8.0.0-SNAPSHOT @@ -9,7 +9,7 @@ Open Workflow :: Impl :: Persistence:: API - org.openworkflow + org.openworkflow.sdk openworkflow-impl-core diff --git a/impl/persistence/api/src/main/java/org/openworkflow/impl/persistence/AbstractAllStrategyCorrelationInfo.java b/impl/persistence/api/src/main/java/org/openworkflow/sdk/impl/persistence/AbstractAllStrategyCorrelationInfo.java similarity index 96% rename from impl/persistence/api/src/main/java/org/openworkflow/impl/persistence/AbstractAllStrategyCorrelationInfo.java rename to impl/persistence/api/src/main/java/org/openworkflow/sdk/impl/persistence/AbstractAllStrategyCorrelationInfo.java index 7c2940ee2..ca8c6d03f 100644 --- a/impl/persistence/api/src/main/java/org/openworkflow/impl/persistence/AbstractAllStrategyCorrelationInfo.java +++ b/impl/persistence/api/src/main/java/org/openworkflow/sdk/impl/persistence/AbstractAllStrategyCorrelationInfo.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.persistence; +package org.openworkflow.sdk.impl.persistence; import io.cloudevents.CloudEvent; import java.util.ArrayList; @@ -28,10 +28,10 @@ import java.util.function.Consumer; import java.util.function.Function; import java.util.stream.Collectors; -import org.openworkflow.impl.WorkflowDefinition; -import org.openworkflow.impl.WorkflowInstance; -import org.openworkflow.impl.events.EventRegistrationBuilder; -import org.openworkflow.impl.scheduler.AllStrategyCorrelationInfo; +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/org/openworkflow/impl/persistence/AbstractAsyncPersistenceExecutor.java b/impl/persistence/api/src/main/java/org/openworkflow/sdk/impl/persistence/AbstractAsyncPersistenceExecutor.java similarity index 93% rename from impl/persistence/api/src/main/java/org/openworkflow/impl/persistence/AbstractAsyncPersistenceExecutor.java rename to impl/persistence/api/src/main/java/org/openworkflow/sdk/impl/persistence/AbstractAsyncPersistenceExecutor.java index 6dfe53a1d..eaa4956ec 100644 --- a/impl/persistence/api/src/main/java/org/openworkflow/impl/persistence/AbstractAsyncPersistenceExecutor.java +++ b/impl/persistence/api/src/main/java/org/openworkflow/sdk/impl/persistence/AbstractAsyncPersistenceExecutor.java @@ -13,13 +13,13 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.persistence; +package org.openworkflow.sdk.impl.persistence; import java.util.Optional; import java.util.concurrent.CompletableFuture; import java.util.concurrent.ExecutorService; import java.util.function.Supplier; -import org.openworkflow.impl.WorkflowDefinitionData; +import org.openworkflow.sdk.impl.WorkflowDefinitionData; public abstract class AbstractAsyncPersistenceExecutor implements PersistenceExecutor { @Override diff --git a/impl/persistence/api/src/main/java/org/openworkflow/impl/persistence/AbstractPersistenceInstanceReader.java b/impl/persistence/api/src/main/java/org/openworkflow/sdk/impl/persistence/AbstractPersistenceInstanceReader.java similarity index 90% rename from impl/persistence/api/src/main/java/org/openworkflow/impl/persistence/AbstractPersistenceInstanceReader.java rename to impl/persistence/api/src/main/java/org/openworkflow/sdk/impl/persistence/AbstractPersistenceInstanceReader.java index 0e1b45677..6eb7ebaf3 100644 --- a/impl/persistence/api/src/main/java/org/openworkflow/impl/persistence/AbstractPersistenceInstanceReader.java +++ b/impl/persistence/api/src/main/java/org/openworkflow/sdk/impl/persistence/AbstractPersistenceInstanceReader.java @@ -13,12 +13,12 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.persistence; +package org.openworkflow.sdk.impl.persistence; import java.util.Optional; import java.util.stream.Stream; -import org.openworkflow.impl.WorkflowDefinition; -import org.openworkflow.impl.WorkflowInstance; +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/org/openworkflow/impl/persistence/AbstractPersistenceInstanceWriter.java b/impl/persistence/api/src/main/java/org/openworkflow/sdk/impl/persistence/AbstractPersistenceInstanceWriter.java similarity index 94% rename from impl/persistence/api/src/main/java/org/openworkflow/impl/persistence/AbstractPersistenceInstanceWriter.java rename to impl/persistence/api/src/main/java/org/openworkflow/sdk/impl/persistence/AbstractPersistenceInstanceWriter.java index 26779731e..f1e331ea2 100644 --- a/impl/persistence/api/src/main/java/org/openworkflow/impl/persistence/AbstractPersistenceInstanceWriter.java +++ b/impl/persistence/api/src/main/java/org/openworkflow/sdk/impl/persistence/AbstractPersistenceInstanceWriter.java @@ -13,14 +13,14 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.persistence; +package org.openworkflow.sdk.impl.persistence; import java.util.Map; import java.util.concurrent.CompletableFuture; import java.util.function.Consumer; -import org.openworkflow.impl.TaskContextData; -import org.openworkflow.impl.WorkflowContextData; -import org.openworkflow.impl.WorkflowStatus; +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/org/openworkflow/impl/persistence/AsyncPersistenceExecutor.java b/impl/persistence/api/src/main/java/org/openworkflow/sdk/impl/persistence/AsyncPersistenceExecutor.java similarity index 95% rename from impl/persistence/api/src/main/java/org/openworkflow/impl/persistence/AsyncPersistenceExecutor.java rename to impl/persistence/api/src/main/java/org/openworkflow/sdk/impl/persistence/AsyncPersistenceExecutor.java index 2303eaabd..67545e488 100644 --- a/impl/persistence/api/src/main/java/org/openworkflow/impl/persistence/AsyncPersistenceExecutor.java +++ b/impl/persistence/api/src/main/java/org/openworkflow/sdk/impl/persistence/AsyncPersistenceExecutor.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.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/org/openworkflow/impl/persistence/CompletedTaskInfo.java b/impl/persistence/api/src/main/java/org/openworkflow/sdk/impl/persistence/CompletedTaskInfo.java similarity index 93% rename from impl/persistence/api/src/main/java/org/openworkflow/impl/persistence/CompletedTaskInfo.java rename to impl/persistence/api/src/main/java/org/openworkflow/sdk/impl/persistence/CompletedTaskInfo.java index 0c3da1e0c..ae22dd4dd 100644 --- a/impl/persistence/api/src/main/java/org/openworkflow/impl/persistence/CompletedTaskInfo.java +++ b/impl/persistence/api/src/main/java/org/openworkflow/sdk/impl/persistence/CompletedTaskInfo.java @@ -13,11 +13,11 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.persistence; +package org.openworkflow.sdk.impl.persistence; import java.time.Instant; import java.util.Map; -import org.openworkflow.impl.WorkflowModel; +import org.openworkflow.sdk.impl.WorkflowModel; public record CompletedTaskInfo( Instant instant, diff --git a/impl/persistence/api/src/main/java/org/openworkflow/impl/persistence/CorrelationOperations.java b/impl/persistence/api/src/main/java/org/openworkflow/sdk/impl/persistence/CorrelationOperations.java similarity index 95% rename from impl/persistence/api/src/main/java/org/openworkflow/impl/persistence/CorrelationOperations.java rename to impl/persistence/api/src/main/java/org/openworkflow/sdk/impl/persistence/CorrelationOperations.java index b2634addd..c9234d7a9 100644 --- a/impl/persistence/api/src/main/java/org/openworkflow/impl/persistence/CorrelationOperations.java +++ b/impl/persistence/api/src/main/java/org/openworkflow/sdk/impl/persistence/CorrelationOperations.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.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/org/openworkflow/impl/persistence/DefaultPersistenceInstanceHandlers.java b/impl/persistence/api/src/main/java/org/openworkflow/sdk/impl/persistence/DefaultPersistenceInstanceHandlers.java similarity index 95% rename from impl/persistence/api/src/main/java/org/openworkflow/impl/persistence/DefaultPersistenceInstanceHandlers.java rename to impl/persistence/api/src/main/java/org/openworkflow/sdk/impl/persistence/DefaultPersistenceInstanceHandlers.java index a956f0810..31ee02312 100644 --- a/impl/persistence/api/src/main/java/org/openworkflow/impl/persistence/DefaultPersistenceInstanceHandlers.java +++ b/impl/persistence/api/src/main/java/org/openworkflow/sdk/impl/persistence/DefaultPersistenceInstanceHandlers.java @@ -13,9 +13,9 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.persistence; +package org.openworkflow.sdk.impl.persistence; -import static org.openworkflow.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/org/openworkflow/impl/persistence/DefaultPersistenceInstanceReader.java b/impl/persistence/api/src/main/java/org/openworkflow/sdk/impl/persistence/DefaultPersistenceInstanceReader.java similarity index 92% rename from impl/persistence/api/src/main/java/org/openworkflow/impl/persistence/DefaultPersistenceInstanceReader.java rename to impl/persistence/api/src/main/java/org/openworkflow/sdk/impl/persistence/DefaultPersistenceInstanceReader.java index 7ef7ec745..ff9ee3f03 100644 --- a/impl/persistence/api/src/main/java/org/openworkflow/impl/persistence/DefaultPersistenceInstanceReader.java +++ b/impl/persistence/api/src/main/java/org/openworkflow/sdk/impl/persistence/DefaultPersistenceInstanceReader.java @@ -13,12 +13,12 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.persistence; +package org.openworkflow.sdk.impl.persistence; import java.util.Optional; import java.util.stream.Stream; -import org.openworkflow.impl.WorkflowDefinition; -import org.openworkflow.impl.WorkflowInstance; +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/org/openworkflow/impl/persistence/DefaultPersistenceInstanceWriter.java b/impl/persistence/api/src/main/java/org/openworkflow/sdk/impl/persistence/DefaultPersistenceInstanceWriter.java similarity index 94% rename from impl/persistence/api/src/main/java/org/openworkflow/impl/persistence/DefaultPersistenceInstanceWriter.java rename to impl/persistence/api/src/main/java/org/openworkflow/sdk/impl/persistence/DefaultPersistenceInstanceWriter.java index e61189b52..bd417c075 100644 --- a/impl/persistence/api/src/main/java/org/openworkflow/impl/persistence/DefaultPersistenceInstanceWriter.java +++ b/impl/persistence/api/src/main/java/org/openworkflow/sdk/impl/persistence/DefaultPersistenceInstanceWriter.java @@ -13,10 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.persistence; +package org.openworkflow.sdk.impl.persistence; import java.util.function.Consumer; -import org.openworkflow.impl.WorkflowDefinitionData; +import org.openworkflow.sdk.impl.WorkflowDefinitionData; import org.slf4j.Logger; import org.slf4j.LoggerFactory; diff --git a/impl/persistence/api/src/main/java/org/openworkflow/impl/persistence/OperationAllStrategyCorrelationInfo.java b/impl/persistence/api/src/main/java/org/openworkflow/sdk/impl/persistence/OperationAllStrategyCorrelationInfo.java similarity index 89% rename from impl/persistence/api/src/main/java/org/openworkflow/impl/persistence/OperationAllStrategyCorrelationInfo.java rename to impl/persistence/api/src/main/java/org/openworkflow/sdk/impl/persistence/OperationAllStrategyCorrelationInfo.java index 6b6ff0b45..34d00d9c8 100644 --- a/impl/persistence/api/src/main/java/org/openworkflow/impl/persistence/OperationAllStrategyCorrelationInfo.java +++ b/impl/persistence/api/src/main/java/org/openworkflow/sdk/impl/persistence/OperationAllStrategyCorrelationInfo.java @@ -13,14 +13,14 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.persistence; +package org.openworkflow.sdk.impl.persistence; import io.cloudevents.CloudEvent; import java.util.Collection; import java.util.Map; import java.util.function.Function; -import org.openworkflow.impl.WorkflowDefinition; -import org.openworkflow.impl.events.EventRegistrationBuilder; +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/org/openworkflow/impl/persistence/OperationAllStrategyCorrelationInfoFactory.java b/impl/persistence/api/src/main/java/org/openworkflow/sdk/impl/persistence/OperationAllStrategyCorrelationInfoFactory.java similarity index 83% rename from impl/persistence/api/src/main/java/org/openworkflow/impl/persistence/OperationAllStrategyCorrelationInfoFactory.java rename to impl/persistence/api/src/main/java/org/openworkflow/sdk/impl/persistence/OperationAllStrategyCorrelationInfoFactory.java index 0a3acbf4f..bd7ce2633 100644 --- a/impl/persistence/api/src/main/java/org/openworkflow/impl/persistence/OperationAllStrategyCorrelationInfoFactory.java +++ b/impl/persistence/api/src/main/java/org/openworkflow/sdk/impl/persistence/OperationAllStrategyCorrelationInfoFactory.java @@ -13,11 +13,11 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.persistence; +package org.openworkflow.sdk.impl.persistence; -import org.openworkflow.impl.WorkflowDefinition; -import org.openworkflow.impl.scheduler.AllStrategyCorrelationInfo; -import org.openworkflow.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/org/openworkflow/impl/persistence/PersistenceAllStrategyCorrelationInfoFactories.java b/impl/persistence/api/src/main/java/org/openworkflow/sdk/impl/persistence/PersistenceAllStrategyCorrelationInfoFactories.java similarity index 90% rename from impl/persistence/api/src/main/java/org/openworkflow/impl/persistence/PersistenceAllStrategyCorrelationInfoFactories.java rename to impl/persistence/api/src/main/java/org/openworkflow/sdk/impl/persistence/PersistenceAllStrategyCorrelationInfoFactories.java index cd1b9c4ee..1a24bd199 100644 --- a/impl/persistence/api/src/main/java/org/openworkflow/impl/persistence/PersistenceAllStrategyCorrelationInfoFactories.java +++ b/impl/persistence/api/src/main/java/org/openworkflow/sdk/impl/persistence/PersistenceAllStrategyCorrelationInfoFactories.java @@ -13,9 +13,9 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.persistence; +package org.openworkflow.sdk.impl.persistence; -import org.openworkflow.impl.scheduler.AllStrategyCorrelationInfoFactory; +import org.openworkflow.sdk.impl.scheduler.AllStrategyCorrelationInfoFactory; public class PersistenceAllStrategyCorrelationInfoFactories { diff --git a/impl/persistence/api/src/main/java/org/openworkflow/impl/persistence/PersistenceApplicationBuilder.java b/impl/persistence/api/src/main/java/org/openworkflow/sdk/impl/persistence/PersistenceApplicationBuilder.java similarity index 89% rename from impl/persistence/api/src/main/java/org/openworkflow/impl/persistence/PersistenceApplicationBuilder.java rename to impl/persistence/api/src/main/java/org/openworkflow/sdk/impl/persistence/PersistenceApplicationBuilder.java index 594dd6c7d..8e5eda188 100644 --- a/impl/persistence/api/src/main/java/org/openworkflow/impl/persistence/PersistenceApplicationBuilder.java +++ b/impl/persistence/api/src/main/java/org/openworkflow/sdk/impl/persistence/PersistenceApplicationBuilder.java @@ -13,10 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.persistence; +package org.openworkflow.sdk.impl.persistence; -import org.openworkflow.impl.WorkflowApplication; -import org.openworkflow.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/org/openworkflow/impl/persistence/PersistenceExecutor.java b/impl/persistence/api/src/main/java/org/openworkflow/sdk/impl/persistence/PersistenceExecutor.java similarity index 90% rename from impl/persistence/api/src/main/java/org/openworkflow/impl/persistence/PersistenceExecutor.java rename to impl/persistence/api/src/main/java/org/openworkflow/sdk/impl/persistence/PersistenceExecutor.java index da7d4f683..5ea118ac0 100644 --- a/impl/persistence/api/src/main/java/org/openworkflow/impl/persistence/PersistenceExecutor.java +++ b/impl/persistence/api/src/main/java/org/openworkflow/sdk/impl/persistence/PersistenceExecutor.java @@ -13,11 +13,11 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.persistence; +package org.openworkflow.sdk.impl.persistence; import java.util.concurrent.CompletableFuture; import java.util.function.Supplier; -import org.openworkflow.impl.WorkflowDefinitionData; +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/org/openworkflow/impl/persistence/PersistenceInstanceHandlers.java b/impl/persistence/api/src/main/java/org/openworkflow/sdk/impl/persistence/PersistenceInstanceHandlers.java similarity index 91% rename from impl/persistence/api/src/main/java/org/openworkflow/impl/persistence/PersistenceInstanceHandlers.java rename to impl/persistence/api/src/main/java/org/openworkflow/sdk/impl/persistence/PersistenceInstanceHandlers.java index 06bdfadcc..b27e5eb42 100644 --- a/impl/persistence/api/src/main/java/org/openworkflow/impl/persistence/PersistenceInstanceHandlers.java +++ b/impl/persistence/api/src/main/java/org/openworkflow/sdk/impl/persistence/PersistenceInstanceHandlers.java @@ -13,9 +13,9 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.persistence; +package org.openworkflow.sdk.impl.persistence; -import static org.openworkflow.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/org/openworkflow/impl/persistence/PersistenceInstanceInfo.java b/impl/persistence/api/src/main/java/org/openworkflow/sdk/impl/persistence/PersistenceInstanceInfo.java similarity index 90% rename from impl/persistence/api/src/main/java/org/openworkflow/impl/persistence/PersistenceInstanceInfo.java rename to impl/persistence/api/src/main/java/org/openworkflow/sdk/impl/persistence/PersistenceInstanceInfo.java index e907f5550..b7f7d22e3 100644 --- a/impl/persistence/api/src/main/java/org/openworkflow/impl/persistence/PersistenceInstanceInfo.java +++ b/impl/persistence/api/src/main/java/org/openworkflow/sdk/impl/persistence/PersistenceInstanceInfo.java @@ -13,11 +13,11 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.persistence; +package org.openworkflow.sdk.impl.persistence; import java.time.Instant; import java.util.Map; -import org.openworkflow.impl.WorkflowModel; +import org.openworkflow.sdk.impl.WorkflowModel; public record PersistenceInstanceInfo( Instant startedAt, WorkflowModel input, Map metadata) { diff --git a/impl/persistence/api/src/main/java/org/openworkflow/impl/persistence/PersistenceInstanceOperations.java b/impl/persistence/api/src/main/java/org/openworkflow/sdk/impl/persistence/PersistenceInstanceOperations.java similarity index 85% rename from impl/persistence/api/src/main/java/org/openworkflow/impl/persistence/PersistenceInstanceOperations.java rename to impl/persistence/api/src/main/java/org/openworkflow/sdk/impl/persistence/PersistenceInstanceOperations.java index 0f5bdf8e4..b08850e90 100644 --- a/impl/persistence/api/src/main/java/org/openworkflow/impl/persistence/PersistenceInstanceOperations.java +++ b/impl/persistence/api/src/main/java/org/openworkflow/sdk/impl/persistence/PersistenceInstanceOperations.java @@ -13,14 +13,14 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.persistence; +package org.openworkflow.sdk.impl.persistence; import java.util.Optional; import java.util.stream.Stream; -import org.openworkflow.impl.TaskContextData; -import org.openworkflow.impl.WorkflowContextData; -import org.openworkflow.impl.WorkflowDefinition; -import org.openworkflow.impl.WorkflowStatus; +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/org/openworkflow/impl/persistence/PersistenceInstanceReader.java b/impl/persistence/api/src/main/java/org/openworkflow/sdk/impl/persistence/PersistenceInstanceReader.java similarity index 87% rename from impl/persistence/api/src/main/java/org/openworkflow/impl/persistence/PersistenceInstanceReader.java rename to impl/persistence/api/src/main/java/org/openworkflow/sdk/impl/persistence/PersistenceInstanceReader.java index b9b085116..5a3d35e65 100644 --- a/impl/persistence/api/src/main/java/org/openworkflow/impl/persistence/PersistenceInstanceReader.java +++ b/impl/persistence/api/src/main/java/org/openworkflow/sdk/impl/persistence/PersistenceInstanceReader.java @@ -13,12 +13,12 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.persistence; +package org.openworkflow.sdk.impl.persistence; import java.util.Optional; import java.util.stream.Stream; -import org.openworkflow.impl.WorkflowDefinition; -import org.openworkflow.impl.WorkflowInstance; +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/org/openworkflow/impl/persistence/PersistenceInstanceStore.java b/impl/persistence/api/src/main/java/org/openworkflow/sdk/impl/persistence/PersistenceInstanceStore.java similarity index 94% rename from impl/persistence/api/src/main/java/org/openworkflow/impl/persistence/PersistenceInstanceStore.java rename to impl/persistence/api/src/main/java/org/openworkflow/sdk/impl/persistence/PersistenceInstanceStore.java index 2ac30df88..add0c7a19 100644 --- a/impl/persistence/api/src/main/java/org/openworkflow/impl/persistence/PersistenceInstanceStore.java +++ b/impl/persistence/api/src/main/java/org/openworkflow/sdk/impl/persistence/PersistenceInstanceStore.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.persistence; +package org.openworkflow.sdk.impl.persistence; public interface PersistenceInstanceStore extends AutoCloseable { PersistenceInstanceTransaction begin(); diff --git a/impl/persistence/api/src/main/java/org/openworkflow/impl/persistence/PersistenceInstanceTransaction.java b/impl/persistence/api/src/main/java/org/openworkflow/sdk/impl/persistence/PersistenceInstanceTransaction.java similarity index 88% rename from impl/persistence/api/src/main/java/org/openworkflow/impl/persistence/PersistenceInstanceTransaction.java rename to impl/persistence/api/src/main/java/org/openworkflow/sdk/impl/persistence/PersistenceInstanceTransaction.java index cb03fd02a..a063e6975 100644 --- a/impl/persistence/api/src/main/java/org/openworkflow/impl/persistence/PersistenceInstanceTransaction.java +++ b/impl/persistence/api/src/main/java/org/openworkflow/sdk/impl/persistence/PersistenceInstanceTransaction.java @@ -13,9 +13,9 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.persistence; +package org.openworkflow.sdk.impl.persistence; -import org.openworkflow.impl.WorkflowDefinitionData; +import org.openworkflow.sdk.impl.WorkflowDefinitionData; public interface PersistenceInstanceTransaction extends PersistenceInstanceOperations { diff --git a/impl/persistence/api/src/main/java/org/openworkflow/impl/persistence/PersistenceInstanceWriter.java b/impl/persistence/api/src/main/java/org/openworkflow/sdk/impl/persistence/PersistenceInstanceWriter.java similarity index 91% rename from impl/persistence/api/src/main/java/org/openworkflow/impl/persistence/PersistenceInstanceWriter.java rename to impl/persistence/api/src/main/java/org/openworkflow/sdk/impl/persistence/PersistenceInstanceWriter.java index 793ccf9b8..d94d9ca46 100644 --- a/impl/persistence/api/src/main/java/org/openworkflow/impl/persistence/PersistenceInstanceWriter.java +++ b/impl/persistence/api/src/main/java/org/openworkflow/sdk/impl/persistence/PersistenceInstanceWriter.java @@ -13,11 +13,11 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.persistence; +package org.openworkflow.sdk.impl.persistence; import java.util.concurrent.CompletableFuture; -import org.openworkflow.impl.TaskContextData; -import org.openworkflow.impl.WorkflowContextData; +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/org/openworkflow/impl/persistence/PersistenceTaskInfo.java b/impl/persistence/api/src/main/java/org/openworkflow/sdk/impl/persistence/PersistenceTaskInfo.java similarity index 93% rename from impl/persistence/api/src/main/java/org/openworkflow/impl/persistence/PersistenceTaskInfo.java rename to impl/persistence/api/src/main/java/org/openworkflow/sdk/impl/persistence/PersistenceTaskInfo.java index 61f9bd0ae..734ec143f 100644 --- a/impl/persistence/api/src/main/java/org/openworkflow/impl/persistence/PersistenceTaskInfo.java +++ b/impl/persistence/api/src/main/java/org/openworkflow/sdk/impl/persistence/PersistenceTaskInfo.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.persistence; +package org.openworkflow.sdk.impl.persistence; import java.util.Map; diff --git a/impl/persistence/api/src/main/java/org/openworkflow/impl/persistence/PersistenceWorkflowInfo.java b/impl/persistence/api/src/main/java/org/openworkflow/sdk/impl/persistence/PersistenceWorkflowInfo.java similarity index 88% rename from impl/persistence/api/src/main/java/org/openworkflow/impl/persistence/PersistenceWorkflowInfo.java rename to impl/persistence/api/src/main/java/org/openworkflow/sdk/impl/persistence/PersistenceWorkflowInfo.java index 77c55e279..cf3b80894 100644 --- a/impl/persistence/api/src/main/java/org/openworkflow/impl/persistence/PersistenceWorkflowInfo.java +++ b/impl/persistence/api/src/main/java/org/openworkflow/sdk/impl/persistence/PersistenceWorkflowInfo.java @@ -13,12 +13,12 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.persistence; +package org.openworkflow.sdk.impl.persistence; import java.time.Instant; import java.util.Map; -import org.openworkflow.impl.WorkflowModel; -import org.openworkflow.impl.WorkflowStatus; +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/org/openworkflow/impl/persistence/RetriedTaskInfo.java b/impl/persistence/api/src/main/java/org/openworkflow/sdk/impl/persistence/RetriedTaskInfo.java similarity index 94% rename from impl/persistence/api/src/main/java/org/openworkflow/impl/persistence/RetriedTaskInfo.java rename to impl/persistence/api/src/main/java/org/openworkflow/sdk/impl/persistence/RetriedTaskInfo.java index 6a21b35cc..9fa3cd809 100644 --- a/impl/persistence/api/src/main/java/org/openworkflow/impl/persistence/RetriedTaskInfo.java +++ b/impl/persistence/api/src/main/java/org/openworkflow/sdk/impl/persistence/RetriedTaskInfo.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.persistence; +package org.openworkflow.sdk.impl.persistence; import java.util.Map; diff --git a/impl/persistence/api/src/main/java/org/openworkflow/impl/persistence/StoreAllStrategyCorrelationInfo.java b/impl/persistence/api/src/main/java/org/openworkflow/sdk/impl/persistence/StoreAllStrategyCorrelationInfo.java similarity index 92% rename from impl/persistence/api/src/main/java/org/openworkflow/impl/persistence/StoreAllStrategyCorrelationInfo.java rename to impl/persistence/api/src/main/java/org/openworkflow/sdk/impl/persistence/StoreAllStrategyCorrelationInfo.java index 948e93cd6..d3af07a4d 100644 --- a/impl/persistence/api/src/main/java/org/openworkflow/impl/persistence/StoreAllStrategyCorrelationInfo.java +++ b/impl/persistence/api/src/main/java/org/openworkflow/sdk/impl/persistence/StoreAllStrategyCorrelationInfo.java @@ -13,14 +13,14 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.persistence; +package org.openworkflow.sdk.impl.persistence; import io.cloudevents.CloudEvent; import java.util.Collection; import java.util.Map; import java.util.function.Function; -import org.openworkflow.impl.WorkflowDefinition; -import org.openworkflow.impl.events.EventRegistrationBuilder; +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/org/openworkflow/impl/persistence/StoreAllStrategyCorrelationInfoFactory.java b/impl/persistence/api/src/main/java/org/openworkflow/sdk/impl/persistence/StoreAllStrategyCorrelationInfoFactory.java similarity index 82% rename from impl/persistence/api/src/main/java/org/openworkflow/impl/persistence/StoreAllStrategyCorrelationInfoFactory.java rename to impl/persistence/api/src/main/java/org/openworkflow/sdk/impl/persistence/StoreAllStrategyCorrelationInfoFactory.java index d9597459c..65a7fbccf 100644 --- a/impl/persistence/api/src/main/java/org/openworkflow/impl/persistence/StoreAllStrategyCorrelationInfoFactory.java +++ b/impl/persistence/api/src/main/java/org/openworkflow/sdk/impl/persistence/StoreAllStrategyCorrelationInfoFactory.java @@ -13,11 +13,11 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.persistence; +package org.openworkflow.sdk.impl.persistence; -import org.openworkflow.impl.WorkflowDefinition; -import org.openworkflow.impl.scheduler.AllStrategyCorrelationInfo; -import org.openworkflow.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/org/openworkflow/impl/persistence/TransactedPersistenceInstanceWriter.java b/impl/persistence/api/src/main/java/org/openworkflow/sdk/impl/persistence/TransactedPersistenceInstanceWriter.java similarity index 92% rename from impl/persistence/api/src/main/java/org/openworkflow/impl/persistence/TransactedPersistenceInstanceWriter.java rename to impl/persistence/api/src/main/java/org/openworkflow/sdk/impl/persistence/TransactedPersistenceInstanceWriter.java index 0ecc962f5..6e4100e94 100644 --- a/impl/persistence/api/src/main/java/org/openworkflow/impl/persistence/TransactedPersistenceInstanceWriter.java +++ b/impl/persistence/api/src/main/java/org/openworkflow/sdk/impl/persistence/TransactedPersistenceInstanceWriter.java @@ -13,12 +13,12 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.persistence; +package org.openworkflow.sdk.impl.persistence; import java.util.concurrent.CompletableFuture; import java.util.function.Consumer; -import org.openworkflow.impl.WorkflowContextData; -import org.openworkflow.impl.WorkflowDefinitionData; +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/org/openworkflow/impl/persistence/WorkflowPersistenceInstance.java b/impl/persistence/api/src/main/java/org/openworkflow/sdk/impl/persistence/WorkflowPersistenceInstance.java similarity index 89% rename from impl/persistence/api/src/main/java/org/openworkflow/impl/persistence/WorkflowPersistenceInstance.java rename to impl/persistence/api/src/main/java/org/openworkflow/sdk/impl/persistence/WorkflowPersistenceInstance.java index 0f9193128..11504edd4 100644 --- a/impl/persistence/api/src/main/java/org/openworkflow/impl/persistence/WorkflowPersistenceInstance.java +++ b/impl/persistence/api/src/main/java/org/openworkflow/sdk/impl/persistence/WorkflowPersistenceInstance.java @@ -13,22 +13,22 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.persistence; +package org.openworkflow.sdk.impl.persistence; 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.api.types.TryTask; -import org.openworkflow.impl.TaskContext; -import org.openworkflow.impl.WorkflowContext; -import org.openworkflow.impl.WorkflowDefinition; -import org.openworkflow.impl.WorkflowInstance; -import org.openworkflow.impl.WorkflowModel; -import org.openworkflow.impl.WorkflowMutableInstance; -import org.openworkflow.impl.WorkflowStatus; -import org.openworkflow.impl.executors.TransitionInfo; +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/org/openworkflow/impl/persistence/WorkflowPersistenceListener.java b/impl/persistence/api/src/main/java/org/openworkflow/sdk/impl/persistence/WorkflowPersistenceListener.java similarity index 77% rename from impl/persistence/api/src/main/java/org/openworkflow/impl/persistence/WorkflowPersistenceListener.java rename to impl/persistence/api/src/main/java/org/openworkflow/sdk/impl/persistence/WorkflowPersistenceListener.java index 6f3e00ebb..eb5d9f0b7 100644 --- a/impl/persistence/api/src/main/java/org/openworkflow/impl/persistence/WorkflowPersistenceListener.java +++ b/impl/persistence/api/src/main/java/org/openworkflow/sdk/impl/persistence/WorkflowPersistenceListener.java @@ -13,19 +13,19 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.persistence; +package org.openworkflow.sdk.impl.persistence; import java.util.concurrent.CompletableFuture; -import org.openworkflow.impl.lifecycle.TaskCompletedEvent; -import org.openworkflow.impl.lifecycle.TaskRetriedEvent; -import org.openworkflow.impl.lifecycle.TaskStartedEvent; -import org.openworkflow.impl.lifecycle.WorkflowCancelledEvent; -import org.openworkflow.impl.lifecycle.WorkflowCompletedEvent; -import org.openworkflow.impl.lifecycle.WorkflowExecutionCompletableListener; -import org.openworkflow.impl.lifecycle.WorkflowFailedEvent; -import org.openworkflow.impl.lifecycle.WorkflowResumedEvent; -import org.openworkflow.impl.lifecycle.WorkflowStartedEvent; -import org.openworkflow.impl.lifecycle.WorkflowSuspendedEvent; +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/org/openworkflow/impl/persistence/hashing/DefaultHashFactory.java b/impl/persistence/api/src/main/java/org/openworkflow/sdk/impl/persistence/hashing/DefaultHashFactory.java similarity index 93% rename from impl/persistence/api/src/main/java/org/openworkflow/impl/persistence/hashing/DefaultHashFactory.java rename to impl/persistence/api/src/main/java/org/openworkflow/sdk/impl/persistence/hashing/DefaultHashFactory.java index e49cf649a..7f86d77cc 100644 --- a/impl/persistence/api/src/main/java/org/openworkflow/impl/persistence/hashing/DefaultHashFactory.java +++ b/impl/persistence/api/src/main/java/org/openworkflow/sdk/impl/persistence/hashing/DefaultHashFactory.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.persistence.hashing; +package org.openworkflow.sdk.impl.persistence.hashing; import com.github.f4b6a3.ulid.Ulid; import com.github.f4b6a3.ulid.UlidFactory; @@ -22,8 +22,8 @@ import java.util.Optional; import java.util.function.Consumer; import java.util.function.Function; -import org.openworkflow.impl.marshaller.WorkflowInputBuffer; -import org.openworkflow.impl.persistence.hashing.HashMappingCoordinator.BytesWithFlag; +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/org/openworkflow/impl/persistence/hashing/DefaultHashIndex.java b/impl/persistence/api/src/main/java/org/openworkflow/sdk/impl/persistence/hashing/DefaultHashIndex.java similarity index 96% rename from impl/persistence/api/src/main/java/org/openworkflow/impl/persistence/hashing/DefaultHashIndex.java rename to impl/persistence/api/src/main/java/org/openworkflow/sdk/impl/persistence/hashing/DefaultHashIndex.java index 0e6a4fdd3..c8d949cc3 100644 --- a/impl/persistence/api/src/main/java/org/openworkflow/impl/persistence/hashing/DefaultHashIndex.java +++ b/impl/persistence/api/src/main/java/org/openworkflow/sdk/impl/persistence/hashing/DefaultHashIndex.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.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/org/openworkflow/impl/persistence/hashing/HashFactory.java b/impl/persistence/api/src/main/java/org/openworkflow/sdk/impl/persistence/hashing/HashFactory.java similarity index 91% rename from impl/persistence/api/src/main/java/org/openworkflow/impl/persistence/hashing/HashFactory.java rename to impl/persistence/api/src/main/java/org/openworkflow/sdk/impl/persistence/hashing/HashFactory.java index 588dca125..27e5c6a95 100644 --- a/impl/persistence/api/src/main/java/org/openworkflow/impl/persistence/hashing/HashFactory.java +++ b/impl/persistence/api/src/main/java/org/openworkflow/sdk/impl/persistence/hashing/HashFactory.java @@ -13,14 +13,14 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.persistence.hashing; +package org.openworkflow.sdk.impl.persistence.hashing; 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.impl.marshaller.WorkflowInputBuffer; +import org.openworkflow.sdk.impl.marshaller.WorkflowInputBuffer; public interface HashFactory extends AutoCloseable { diff --git a/impl/persistence/api/src/main/java/org/openworkflow/impl/persistence/hashing/HashIndex.java b/impl/persistence/api/src/main/java/org/openworkflow/sdk/impl/persistence/hashing/HashIndex.java similarity index 92% rename from impl/persistence/api/src/main/java/org/openworkflow/impl/persistence/hashing/HashIndex.java rename to impl/persistence/api/src/main/java/org/openworkflow/sdk/impl/persistence/hashing/HashIndex.java index 6f06d6dbe..94c3039d5 100644 --- a/impl/persistence/api/src/main/java/org/openworkflow/impl/persistence/hashing/HashIndex.java +++ b/impl/persistence/api/src/main/java/org/openworkflow/sdk/impl/persistence/hashing/HashIndex.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.persistence.hashing; +package org.openworkflow.sdk.impl.persistence.hashing; public interface HashIndex { diff --git a/impl/persistence/api/src/main/java/org/openworkflow/impl/persistence/hashing/HashItem.java b/impl/persistence/api/src/main/java/org/openworkflow/sdk/impl/persistence/hashing/HashItem.java similarity index 87% rename from impl/persistence/api/src/main/java/org/openworkflow/impl/persistence/hashing/HashItem.java rename to impl/persistence/api/src/main/java/org/openworkflow/sdk/impl/persistence/hashing/HashItem.java index 0ee713112..2d2c8fc41 100644 --- a/impl/persistence/api/src/main/java/org/openworkflow/impl/persistence/hashing/HashItem.java +++ b/impl/persistence/api/src/main/java/org/openworkflow/sdk/impl/persistence/hashing/HashItem.java @@ -13,9 +13,9 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.persistence.hashing; +package org.openworkflow.sdk.impl.persistence.hashing; -import org.openworkflow.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/org/openworkflow/impl/persistence/hashing/HashMappingCoordinator.java b/impl/persistence/api/src/main/java/org/openworkflow/sdk/impl/persistence/hashing/HashMappingCoordinator.java similarity index 99% rename from impl/persistence/api/src/main/java/org/openworkflow/impl/persistence/hashing/HashMappingCoordinator.java rename to impl/persistence/api/src/main/java/org/openworkflow/sdk/impl/persistence/hashing/HashMappingCoordinator.java index edf4f567c..da2de21ee 100644 --- a/impl/persistence/api/src/main/java/org/openworkflow/impl/persistence/hashing/HashMappingCoordinator.java +++ b/impl/persistence/api/src/main/java/org/openworkflow/sdk/impl/persistence/hashing/HashMappingCoordinator.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.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/org/openworkflow/impl/persistence/hashing/HashMappingInfo.java b/impl/persistence/api/src/main/java/org/openworkflow/sdk/impl/persistence/hashing/HashMappingInfo.java similarity index 92% rename from impl/persistence/api/src/main/java/org/openworkflow/impl/persistence/hashing/HashMappingInfo.java rename to impl/persistence/api/src/main/java/org/openworkflow/sdk/impl/persistence/hashing/HashMappingInfo.java index a2df9e773..128f75c8b 100644 --- a/impl/persistence/api/src/main/java/org/openworkflow/impl/persistence/hashing/HashMappingInfo.java +++ b/impl/persistence/api/src/main/java/org/openworkflow/sdk/impl/persistence/hashing/HashMappingInfo.java @@ -13,6 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.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/org/openworkflow/impl/persistence/hashing/IntegerHashItem.java b/impl/persistence/api/src/main/java/org/openworkflow/sdk/impl/persistence/hashing/IntegerHashItem.java similarity index 86% rename from impl/persistence/api/src/main/java/org/openworkflow/impl/persistence/hashing/IntegerHashItem.java rename to impl/persistence/api/src/main/java/org/openworkflow/sdk/impl/persistence/hashing/IntegerHashItem.java index 7233f3157..157231895 100644 --- a/impl/persistence/api/src/main/java/org/openworkflow/impl/persistence/hashing/IntegerHashItem.java +++ b/impl/persistence/api/src/main/java/org/openworkflow/sdk/impl/persistence/hashing/IntegerHashItem.java @@ -13,11 +13,11 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.persistence.hashing; +package org.openworkflow.sdk.impl.persistence.hashing; import java.util.Arrays; -import org.openworkflow.impl.marshaller.WorkflowInputBuffer; -import org.openworkflow.impl.marshaller.WorkflowOutputBuffer; +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/org/openworkflow/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/org/openworkflow/impl/persistence/hashing/LRUCache.java rename to impl/persistence/api/src/main/java/org/openworkflow/sdk/impl/persistence/hashing/LRUCache.java index 7f0faad19..c3a368af1 100644 --- a/impl/persistence/api/src/main/java/org/openworkflow/impl/persistence/hashing/LRUCache.java +++ b/impl/persistence/api/src/main/java/org/openworkflow/sdk/impl/persistence/hashing/LRUCache.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.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/org/openworkflow/impl/persistence/hashing/MD5HashItem.java b/impl/persistence/api/src/main/java/org/openworkflow/sdk/impl/persistence/hashing/MD5HashItem.java similarity index 90% rename from impl/persistence/api/src/main/java/org/openworkflow/impl/persistence/hashing/MD5HashItem.java rename to impl/persistence/api/src/main/java/org/openworkflow/sdk/impl/persistence/hashing/MD5HashItem.java index ca22c5f17..d92eb5197 100644 --- a/impl/persistence/api/src/main/java/org/openworkflow/impl/persistence/hashing/MD5HashItem.java +++ b/impl/persistence/api/src/main/java/org/openworkflow/sdk/impl/persistence/hashing/MD5HashItem.java @@ -13,12 +13,12 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.persistence.hashing; +package org.openworkflow.sdk.impl.persistence.hashing; import java.security.MessageDigest; import java.security.NoSuchAlgorithmException; -import org.openworkflow.impl.marshaller.WorkflowInputBuffer; -import org.openworkflow.impl.marshaller.WorkflowOutputBuffer; +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/org/openworkflow/impl/persistence/metadata/MetaTransient.java b/impl/persistence/api/src/main/java/org/openworkflow/sdk/impl/persistence/metadata/MetaTransient.java similarity index 94% rename from impl/persistence/api/src/main/java/org/openworkflow/impl/persistence/metadata/MetaTransient.java rename to impl/persistence/api/src/main/java/org/openworkflow/sdk/impl/persistence/metadata/MetaTransient.java index eec56074c..183445996 100644 --- a/impl/persistence/api/src/main/java/org/openworkflow/impl/persistence/metadata/MetaTransient.java +++ b/impl/persistence/api/src/main/java/org/openworkflow/sdk/impl/persistence/metadata/MetaTransient.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.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/org/openworkflow/impl/persistence/metadata/PersistenceMetaUtils.java b/impl/persistence/api/src/main/java/org/openworkflow/sdk/impl/persistence/metadata/PersistenceMetaUtils.java similarity index 92% rename from impl/persistence/api/src/main/java/org/openworkflow/impl/persistence/metadata/PersistenceMetaUtils.java rename to impl/persistence/api/src/main/java/org/openworkflow/sdk/impl/persistence/metadata/PersistenceMetaUtils.java index b07028ccc..09025e84a 100644 --- a/impl/persistence/api/src/main/java/org/openworkflow/impl/persistence/metadata/PersistenceMetaUtils.java +++ b/impl/persistence/api/src/main/java/org/openworkflow/sdk/impl/persistence/metadata/PersistenceMetaUtils.java @@ -13,13 +13,13 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.persistence.metadata; +package org.openworkflow.sdk.impl.persistence.metadata; import java.util.Map; import java.util.Map.Entry; import java.util.stream.Collectors; import java.util.stream.Stream; -import org.openworkflow.impl.WorkflowInstanceData; +import org.openworkflow.sdk.impl.WorkflowInstanceData; public class PersistenceMetaUtils { diff --git a/impl/persistence/api/src/test/java/org/openworkflow/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/org/openworkflow/impl/persistence/hashing/HashMappingCoordinatorTest.java rename to impl/persistence/api/src/test/java/org/openworkflow/sdk/impl/persistence/hashing/HashMappingCoordinatorTest.java index ca9e4ee7a..9cd0c9d42 100644 --- a/impl/persistence/api/src/test/java/org/openworkflow/impl/persistence/hashing/HashMappingCoordinatorTest.java +++ b/impl/persistence/api/src/test/java/org/openworkflow/sdk/impl/persistence/hashing/HashMappingCoordinatorTest.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.persistence.hashing; +package org.openworkflow.sdk.impl.persistence.hashing; import static org.assertj.core.api.Assertions.*; @@ -25,7 +25,7 @@ import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.DisplayName; import org.junit.jupiter.api.Test; -import org.openworkflow.impl.marshaller.WorkflowOutputBuffer; +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/org/openworkflow/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/org/openworkflow/impl/persistence/hashing/LRUCacheTest.java rename to impl/persistence/api/src/test/java/org/openworkflow/sdk/impl/persistence/hashing/LRUCacheTest.java index b4d322d7e..093324b4f 100644 --- a/impl/persistence/api/src/test/java/org/openworkflow/impl/persistence/hashing/LRUCacheTest.java +++ b/impl/persistence/api/src/test/java/org/openworkflow/sdk/impl/persistence/hashing/LRUCacheTest.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.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 fd8f13909..8dcc8cdbf 100644 --- a/impl/persistence/bigmap/pom.xml +++ b/impl/persistence/bigmap/pom.xml @@ -1,7 +1,7 @@ 4.0.0 - org.openworkflow + org.openworkflow.sdk openworkflow-persistence 8.0.0-SNAPSHOT @@ -9,7 +9,7 @@ Open Workflow :: Impl :: Persistence:: BigMap - org.openworkflow + org.openworkflow.sdk openworkflow-persistence-api diff --git a/impl/persistence/bigmap/src/main/java/org/openworkflow/impl/persistence/bigmap/BigMapInstanceTransaction.java b/impl/persistence/bigmap/src/main/java/org/openworkflow/sdk/impl/persistence/bigmap/BigMapInstanceTransaction.java similarity index 91% rename from impl/persistence/bigmap/src/main/java/org/openworkflow/impl/persistence/bigmap/BigMapInstanceTransaction.java rename to impl/persistence/bigmap/src/main/java/org/openworkflow/sdk/impl/persistence/bigmap/BigMapInstanceTransaction.java index 8ade0291d..944584316 100644 --- a/impl/persistence/bigmap/src/main/java/org/openworkflow/impl/persistence/bigmap/BigMapInstanceTransaction.java +++ b/impl/persistence/bigmap/src/main/java/org/openworkflow/sdk/impl/persistence/bigmap/BigMapInstanceTransaction.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.persistence.bigmap; +package org.openworkflow.sdk.impl.persistence.bigmap; import io.cloudevents.CloudEvent; import java.util.Collection; @@ -22,17 +22,17 @@ import java.util.Optional; import java.util.stream.Collectors; import java.util.stream.Stream; -import org.openworkflow.impl.TaskContext; -import org.openworkflow.impl.TaskContextData; -import org.openworkflow.impl.WorkflowContextData; -import org.openworkflow.impl.WorkflowDefinition; -import org.openworkflow.impl.WorkflowDefinitionData; -import org.openworkflow.impl.WorkflowInstanceData; -import org.openworkflow.impl.WorkflowStatus; -import org.openworkflow.impl.persistence.PersistenceInstanceInfo; -import org.openworkflow.impl.persistence.PersistenceInstanceTransaction; -import org.openworkflow.impl.persistence.PersistenceTaskInfo; -import org.openworkflow.impl.persistence.PersistenceWorkflowInfo; +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/org/openworkflow/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/org/openworkflow/impl/persistence/bigmap/BytesMapInstanceTransaction.java rename to impl/persistence/bigmap/src/main/java/org/openworkflow/sdk/impl/persistence/bigmap/BytesMapInstanceTransaction.java index b6ed3edb0..7ea1e9b13 100644 --- a/impl/persistence/bigmap/src/main/java/org/openworkflow/impl/persistence/bigmap/BytesMapInstanceTransaction.java +++ b/impl/persistence/bigmap/src/main/java/org/openworkflow/sdk/impl/persistence/bigmap/BytesMapInstanceTransaction.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.persistence.bigmap; +package org.openworkflow.sdk.impl.persistence.bigmap; import io.cloudevents.CloudEvent; import io.cloudevents.SpecVersion; @@ -27,28 +27,28 @@ import java.util.HashMap; import java.util.List; import java.util.Map; -import org.openworkflow.impl.TaskContext; -import org.openworkflow.impl.WorkflowContextData; -import org.openworkflow.impl.WorkflowInstanceData; -import org.openworkflow.impl.WorkflowModel; -import org.openworkflow.impl.WorkflowStatus; -import org.openworkflow.impl.executors.AbstractTaskExecutor; -import org.openworkflow.impl.executors.TransitionInfo; -import org.openworkflow.impl.marshaller.MarshallingUtils; -import org.openworkflow.impl.marshaller.TaskStatus; -import org.openworkflow.impl.marshaller.WorkflowBufferFactory; -import org.openworkflow.impl.marshaller.WorkflowInputBuffer; -import org.openworkflow.impl.marshaller.WorkflowOutputBuffer; -import org.openworkflow.impl.persistence.CompletedTaskInfo; -import org.openworkflow.impl.persistence.PersistenceInstanceInfo; -import org.openworkflow.impl.persistence.PersistenceTaskInfo; -import org.openworkflow.impl.persistence.RetriedTaskInfo; -import org.openworkflow.impl.persistence.hashing.HashFactory; -import org.openworkflow.impl.persistence.hashing.HashIndex; -import org.openworkflow.impl.persistence.hashing.HashItem; -import org.openworkflow.impl.persistence.hashing.HashMappingCoordinator; -import org.openworkflow.impl.persistence.hashing.HashMappingInfo; -import org.openworkflow.impl.persistence.metadata.PersistenceMetaUtils; +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/pom.xml b/impl/persistence/mvstore/pom.xml index 2412c2dbf..12977c5e6 100644 --- a/impl/persistence/mvstore/pom.xml +++ b/impl/persistence/mvstore/pom.xml @@ -1,7 +1,7 @@ 4.0.0 - org.openworkflow + org.openworkflow.sdk openworkflow-persistence 8.0.0-SNAPSHOT @@ -13,11 +13,11 @@ h2-mvstore - org.openworkflow + org.openworkflow.sdk openworkflow-persistence-big-map - org.openworkflow + org.openworkflow.sdk openworkflow-persistence-tests diff --git a/impl/persistence/mvstore/src/main/java/org/openworkflow/impl/persistence/mvstore/MVStorePersistenceStore.java b/impl/persistence/mvstore/src/main/java/org/openworkflow/sdk/impl/persistence/mvstore/MVStorePersistenceStore.java similarity index 77% rename from impl/persistence/mvstore/src/main/java/org/openworkflow/impl/persistence/mvstore/MVStorePersistenceStore.java rename to impl/persistence/mvstore/src/main/java/org/openworkflow/sdk/impl/persistence/mvstore/MVStorePersistenceStore.java index d41cac678..1ac7605fb 100644 --- a/impl/persistence/mvstore/src/main/java/org/openworkflow/impl/persistence/mvstore/MVStorePersistenceStore.java +++ b/impl/persistence/mvstore/src/main/java/org/openworkflow/sdk/impl/persistence/mvstore/MVStorePersistenceStore.java @@ -13,17 +13,17 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.persistence.mvstore; +package org.openworkflow.sdk.impl.persistence.mvstore; import org.h2.mvstore.MVStore; import org.h2.mvstore.tx.TransactionStore; -import org.openworkflow.impl.WorkflowUtils; -import org.openworkflow.impl.marshaller.DefaultBufferFactory; -import org.openworkflow.impl.marshaller.WorkflowBufferFactory; -import org.openworkflow.impl.persistence.PersistenceInstanceStore; -import org.openworkflow.impl.persistence.bigmap.BigMapInstanceTransaction; -import org.openworkflow.impl.persistence.hashing.DefaultHashFactory; -import org.openworkflow.impl.persistence.hashing.HashFactory; +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/org/openworkflow/impl/persistence/mvstore/MVStoreTransaction.java b/impl/persistence/mvstore/src/main/java/org/openworkflow/sdk/impl/persistence/mvstore/MVStoreTransaction.java similarity index 89% rename from impl/persistence/mvstore/src/main/java/org/openworkflow/impl/persistence/mvstore/MVStoreTransaction.java rename to impl/persistence/mvstore/src/main/java/org/openworkflow/sdk/impl/persistence/mvstore/MVStoreTransaction.java index 5473a996b..4b7543205 100644 --- a/impl/persistence/mvstore/src/main/java/org/openworkflow/impl/persistence/mvstore/MVStoreTransaction.java +++ b/impl/persistence/mvstore/src/main/java/org/openworkflow/sdk/impl/persistence/mvstore/MVStoreTransaction.java @@ -13,19 +13,19 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.persistence.mvstore; +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.api.types.Document; -import org.openworkflow.api.types.Workflow; -import org.openworkflow.impl.WorkflowDefinitionData; -import org.openworkflow.impl.marshaller.WorkflowBufferFactory; -import org.openworkflow.impl.persistence.bigmap.BytesMapInstanceTransaction; -import org.openworkflow.impl.persistence.hashing.HashFactory; +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/org/openworkflow/impl/persistence/mvstore/HashingMVStorePersistenceTest.java b/impl/persistence/mvstore/src/test/java/org/openworkflow/sdk/impl/persistence/mvstore/HashingMVStorePersistenceTest.java similarity index 83% rename from impl/persistence/mvstore/src/test/java/org/openworkflow/impl/persistence/mvstore/HashingMVStorePersistenceTest.java rename to impl/persistence/mvstore/src/test/java/org/openworkflow/sdk/impl/persistence/mvstore/HashingMVStorePersistenceTest.java index 91ae72d01..5c5d98dc4 100644 --- a/impl/persistence/mvstore/src/test/java/org/openworkflow/impl/persistence/mvstore/HashingMVStorePersistenceTest.java +++ b/impl/persistence/mvstore/src/test/java/org/openworkflow/sdk/impl/persistence/mvstore/HashingMVStorePersistenceTest.java @@ -13,10 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.persistence.mvstore; +package org.openworkflow.sdk.impl.persistence.mvstore; -import org.openworkflow.impl.persistence.hashing.DefaultHashFactory; -import org.openworkflow.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/org/openworkflow/impl/persistence/mvstore/MD5MVStorePersistenceTest.java b/impl/persistence/mvstore/src/test/java/org/openworkflow/sdk/impl/persistence/mvstore/MD5MVStorePersistenceTest.java similarity index 83% rename from impl/persistence/mvstore/src/test/java/org/openworkflow/impl/persistence/mvstore/MD5MVStorePersistenceTest.java rename to impl/persistence/mvstore/src/test/java/org/openworkflow/sdk/impl/persistence/mvstore/MD5MVStorePersistenceTest.java index 268173ece..ee00ce210 100644 --- a/impl/persistence/mvstore/src/test/java/org/openworkflow/impl/persistence/mvstore/MD5MVStorePersistenceTest.java +++ b/impl/persistence/mvstore/src/test/java/org/openworkflow/sdk/impl/persistence/mvstore/MD5MVStorePersistenceTest.java @@ -13,10 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.persistence.mvstore; +package org.openworkflow.sdk.impl.persistence.mvstore; -import org.openworkflow.impl.persistence.hashing.DefaultHashFactory; -import org.openworkflow.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/org/openworkflow/impl/persistence/mvstore/MVStoreCorrelationTest.java b/impl/persistence/mvstore/src/test/java/org/openworkflow/sdk/impl/persistence/mvstore/MVStoreCorrelationTest.java similarity index 83% rename from impl/persistence/mvstore/src/test/java/org/openworkflow/impl/persistence/mvstore/MVStoreCorrelationTest.java rename to impl/persistence/mvstore/src/test/java/org/openworkflow/sdk/impl/persistence/mvstore/MVStoreCorrelationTest.java index 30beea8e9..2abf07633 100644 --- a/impl/persistence/mvstore/src/test/java/org/openworkflow/impl/persistence/mvstore/MVStoreCorrelationTest.java +++ b/impl/persistence/mvstore/src/test/java/org/openworkflow/sdk/impl/persistence/mvstore/MVStoreCorrelationTest.java @@ -13,14 +13,14 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.persistence.mvstore; +package org.openworkflow.sdk.impl.persistence.mvstore; import java.io.IOException; import java.nio.file.Files; import java.nio.file.Path; import org.junit.jupiter.api.AfterEach; -import org.openworkflow.impl.persistence.PersistenceInstanceStore; -import org.openworkflow.impl.persistence.test.AbstractStoreCorrelationPersistenceTest; +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/org/openworkflow/impl/persistence/mvstore/MVStorePersistenceStoreTest.java b/impl/persistence/mvstore/src/test/java/org/openworkflow/sdk/impl/persistence/mvstore/MVStorePersistenceStoreTest.java similarity index 77% rename from impl/persistence/mvstore/src/test/java/org/openworkflow/impl/persistence/mvstore/MVStorePersistenceStoreTest.java rename to impl/persistence/mvstore/src/test/java/org/openworkflow/sdk/impl/persistence/mvstore/MVStorePersistenceStoreTest.java index 7bc0af639..05b1d998b 100644 --- a/impl/persistence/mvstore/src/test/java/org/openworkflow/impl/persistence/mvstore/MVStorePersistenceStoreTest.java +++ b/impl/persistence/mvstore/src/test/java/org/openworkflow/sdk/impl/persistence/mvstore/MVStorePersistenceStoreTest.java @@ -13,17 +13,17 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.persistence.mvstore; +package org.openworkflow.sdk.impl.persistence.mvstore; import java.io.IOException; import java.nio.file.Files; import java.nio.file.Path; import org.junit.jupiter.api.AfterEach; -import org.openworkflow.impl.marshaller.DefaultBufferFactory; -import org.openworkflow.impl.persistence.PersistenceInstanceStore; -import org.openworkflow.impl.persistence.hashing.DefaultHashFactory; -import org.openworkflow.impl.persistence.hashing.HashFactory; -import org.openworkflow.impl.persistence.test.AbstractPersistenceTest; +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 bd4693167..704ed22d5 100644 --- a/impl/persistence/pom.xml +++ b/impl/persistence/pom.xml @@ -1,7 +1,7 @@ 4.0.0 - org.openworkflow + org.openworkflow.sdk openworkflow-impl 8.0.0-SNAPSHOT diff --git a/impl/persistence/tests/pom.xml b/impl/persistence/tests/pom.xml index 66e8e5d18..b6113a905 100644 --- a/impl/persistence/tests/pom.xml +++ b/impl/persistence/tests/pom.xml @@ -1,7 +1,7 @@ 4.0.0 - org.openworkflow + org.openworkflow.sdk openworkflow-persistence 8.0.0-SNAPSHOT @@ -39,15 +39,15 @@ compile - org.openworkflow + org.openworkflow.sdk openworkflow-persistence-api - org.openworkflow + org.openworkflow.sdk openworkflow-impl-jackson - org.openworkflow + org.openworkflow.sdk openworkflow-api diff --git a/impl/persistence/tests/src/main/java/org/openworkflow/impl/persistence/test/AbstractCorrelationPersistenceTest.java b/impl/persistence/tests/src/main/java/org/openworkflow/sdk/impl/persistence/test/AbstractCorrelationPersistenceTest.java similarity index 82% rename from impl/persistence/tests/src/main/java/org/openworkflow/impl/persistence/test/AbstractCorrelationPersistenceTest.java rename to impl/persistence/tests/src/main/java/org/openworkflow/sdk/impl/persistence/test/AbstractCorrelationPersistenceTest.java index 1c07786b1..728a141f6 100644 --- a/impl/persistence/tests/src/main/java/org/openworkflow/impl/persistence/test/AbstractCorrelationPersistenceTest.java +++ b/impl/persistence/tests/src/main/java/org/openworkflow/sdk/impl/persistence/test/AbstractCorrelationPersistenceTest.java @@ -13,11 +13,11 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.persistence.test; +package org.openworkflow.sdk.impl.persistence.test; import static org.assertj.core.api.Assertions.assertThat; import static org.awaitility.Awaitility.await; -import static org.openworkflow.api.WorkflowReader.readWorkflowFromClasspath; +import static org.openworkflow.sdk.api.WorkflowReader.readWorkflowFromClasspath; import io.cloudevents.CloudEvent; import io.cloudevents.core.builder.CloudEventBuilder; @@ -30,15 +30,15 @@ import org.junit.jupiter.api.AfterEach; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; -import org.openworkflow.impl.WorkflowApplication; -import org.openworkflow.impl.WorkflowDefinition; -import org.openworkflow.impl.WorkflowInstance; -import org.openworkflow.impl.WorkflowStatus; -import org.openworkflow.impl.events.InMemoryEvents; -import org.openworkflow.impl.jackson.JsonUtils; -import org.openworkflow.impl.persistence.AsyncPersistenceExecutor; -import org.openworkflow.impl.persistence.PersistenceExecutor; -import org.openworkflow.impl.scheduler.AllStrategyCorrelationInfoFactory; +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/org/openworkflow/impl/persistence/test/AbstractHandlerPersistenceTest.java b/impl/persistence/tests/src/main/java/org/openworkflow/sdk/impl/persistence/test/AbstractHandlerPersistenceTest.java similarity index 86% rename from impl/persistence/tests/src/main/java/org/openworkflow/impl/persistence/test/AbstractHandlerPersistenceTest.java rename to impl/persistence/tests/src/main/java/org/openworkflow/sdk/impl/persistence/test/AbstractHandlerPersistenceTest.java index c5cc1195e..62dca3e04 100644 --- a/impl/persistence/tests/src/main/java/org/openworkflow/impl/persistence/test/AbstractHandlerPersistenceTest.java +++ b/impl/persistence/tests/src/main/java/org/openworkflow/sdk/impl/persistence/test/AbstractHandlerPersistenceTest.java @@ -13,13 +13,13 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.persistence.test; +package org.openworkflow.sdk.impl.persistence.test; 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.api.WorkflowReader.readWorkflowFromClasspath; +import static org.openworkflow.sdk.api.WorkflowReader.readWorkflowFromClasspath; import java.io.IOException; import java.time.Duration; @@ -33,26 +33,26 @@ import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; import org.mockito.ArgumentCaptor; -import org.openworkflow.api.types.TaskBase; -import org.openworkflow.api.types.TryTask; -import org.openworkflow.impl.TaskContext; -import org.openworkflow.impl.TaskContextData; -import org.openworkflow.impl.WorkflowApplication; -import org.openworkflow.impl.WorkflowContext; -import org.openworkflow.impl.WorkflowContextData; -import org.openworkflow.impl.WorkflowDefinition; -import org.openworkflow.impl.WorkflowInstance; -import org.openworkflow.impl.WorkflowInstanceData; -import org.openworkflow.impl.WorkflowModel; -import org.openworkflow.impl.WorkflowMutablePosition; -import org.openworkflow.impl.WorkflowPosition; -import org.openworkflow.impl.WorkflowUtils; -import org.openworkflow.impl.executors.TransitionInfo; -import org.openworkflow.impl.persistence.PersistenceInstanceHandlers; -import org.openworkflow.impl.persistence.WorkflowPersistenceInstance; -import org.openworkflow.impl.persistence.hashing.DefaultHashFactory; -import org.openworkflow.impl.persistence.hashing.HashFactory; -import org.openworkflow.impl.persistence.metadata.MetaTransient; +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/org/openworkflow/impl/persistence/test/AbstractOperationsCorrelationPersistenceTest.java b/impl/persistence/tests/src/main/java/org/openworkflow/sdk/impl/persistence/test/AbstractOperationsCorrelationPersistenceTest.java similarity index 77% rename from impl/persistence/tests/src/main/java/org/openworkflow/impl/persistence/test/AbstractOperationsCorrelationPersistenceTest.java rename to impl/persistence/tests/src/main/java/org/openworkflow/sdk/impl/persistence/test/AbstractOperationsCorrelationPersistenceTest.java index d50a76aea..47f02ae1b 100644 --- a/impl/persistence/tests/src/main/java/org/openworkflow/impl/persistence/test/AbstractOperationsCorrelationPersistenceTest.java +++ b/impl/persistence/tests/src/main/java/org/openworkflow/sdk/impl/persistence/test/AbstractOperationsCorrelationPersistenceTest.java @@ -13,11 +13,11 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.persistence.test; +package org.openworkflow.sdk.impl.persistence.test; -import org.openworkflow.impl.persistence.PersistenceAllStrategyCorrelationInfoFactories; -import org.openworkflow.impl.persistence.PersistenceInstanceOperations; -import org.openworkflow.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/org/openworkflow/impl/persistence/test/AbstractPersistenceTest.java b/impl/persistence/tests/src/main/java/org/openworkflow/sdk/impl/persistence/test/AbstractPersistenceTest.java similarity index 77% rename from impl/persistence/tests/src/main/java/org/openworkflow/impl/persistence/test/AbstractPersistenceTest.java rename to impl/persistence/tests/src/main/java/org/openworkflow/sdk/impl/persistence/test/AbstractPersistenceTest.java index bedb0f72a..f685eafb5 100644 --- a/impl/persistence/tests/src/main/java/org/openworkflow/impl/persistence/test/AbstractPersistenceTest.java +++ b/impl/persistence/tests/src/main/java/org/openworkflow/sdk/impl/persistence/test/AbstractPersistenceTest.java @@ -13,11 +13,11 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.persistence.test; +package org.openworkflow.sdk.impl.persistence.test; -import org.openworkflow.impl.persistence.DefaultPersistenceInstanceHandlers; -import org.openworkflow.impl.persistence.PersistenceInstanceHandlers; -import org.openworkflow.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/org/openworkflow/impl/persistence/test/AbstractStoreCorrelationPersistenceTest.java b/impl/persistence/tests/src/main/java/org/openworkflow/sdk/impl/persistence/test/AbstractStoreCorrelationPersistenceTest.java similarity index 77% rename from impl/persistence/tests/src/main/java/org/openworkflow/impl/persistence/test/AbstractStoreCorrelationPersistenceTest.java rename to impl/persistence/tests/src/main/java/org/openworkflow/sdk/impl/persistence/test/AbstractStoreCorrelationPersistenceTest.java index 8368f71f6..9dd30d683 100644 --- a/impl/persistence/tests/src/main/java/org/openworkflow/impl/persistence/test/AbstractStoreCorrelationPersistenceTest.java +++ b/impl/persistence/tests/src/main/java/org/openworkflow/sdk/impl/persistence/test/AbstractStoreCorrelationPersistenceTest.java @@ -13,11 +13,11 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.persistence.test; +package org.openworkflow.sdk.impl.persistence.test; -import org.openworkflow.impl.persistence.PersistenceAllStrategyCorrelationInfoFactories; -import org.openworkflow.impl.persistence.PersistenceInstanceStore; -import org.openworkflow.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 faf8a6b64..b7808023f 100644 --- a/impl/pom.xml +++ b/impl/pom.xml @@ -1,7 +1,7 @@ 4.0.0 - org.openworkflow + org.openworkflow.sdk openworkflow-parent 8.0.0-SNAPSHOT @@ -23,115 +23,115 @@ - org.openworkflow + org.openworkflow.sdk openworkflow-impl-core ${project.version} - org.openworkflow + org.openworkflow.sdk openworkflow-impl-http ${project.version} - org.openworkflow + org.openworkflow.sdk openworkflow-impl-template-resolver ${project.version} - org.openworkflow + org.openworkflow.sdk openworkflow-impl-json ${project.version} - org.openworkflow + org.openworkflow.sdk openworkflow-impl-jq ${project.version} - org.openworkflow + org.openworkflow.sdk openworkflow-impl-model ${project.version} - org.openworkflow + org.openworkflow.sdk openworkflow-impl-validation ${project.version} - org.openworkflow + org.openworkflow.sdk openworkflow-impl-function ${project.version} - org.openworkflow + org.openworkflow.sdk openworkflow-impl-lifecycle-events ${project.version} - org.openworkflow + org.openworkflow.sdk openworkflow-persistence-api ${project.version} - org.openworkflow + org.openworkflow.sdk openworkflow-persistence-big-map ${project.version} - org.openworkflow + org.openworkflow.sdk openworkflow-persistence-tests ${project.version} test - org.openworkflow + org.openworkflow.sdk openworkflow-persistence-mvstore ${project.version} - org.openworkflow + org.openworkflow.sdk openworkflow-impl-jackson-jwt ${project.version} - org.openworkflow + org.openworkflow.sdk openworkflow-impl-jackson ${project.version} - org.openworkflow + org.openworkflow.sdk openworkflow-impl-openapi-base ${project.version} - org.openworkflow + org.openworkflow.sdk openworkflow-impl-openapi-base ${project.version} test-jar test - org.openworkflow + org.openworkflow.sdk openworkflow-impl-openapi ${project.version} - org.openworkflow + org.openworkflow.sdk openworkflow-impl-container ${project.version} - org.openworkflow + org.openworkflow.sdk openworkflow-impl-grpc ${project.version} - org.openworkflow + org.openworkflow.sdk openworkflow-impl-a2a ${project.version} - org.openworkflow + org.openworkflow.sdk openworkflow-impl-cron ${project.version} @@ -168,12 +168,12 @@ ${version.com.h2database} - org.openworkflow + org.openworkflow.sdk openworkflow-impl-script-js ${project.version} - org.openworkflow + org.openworkflow.sdk openworkflow-impl-script-python ${project.version} diff --git a/impl/python/pom.xml b/impl/python/pom.xml index 2e871d369..162df6552 100644 --- a/impl/python/pom.xml +++ b/impl/python/pom.xml @@ -1,7 +1,7 @@ 4.0.0 - org.openworkflow + org.openworkflow.sdk openworkflow-impl 8.0.0-SNAPSHOT @@ -9,7 +9,7 @@ Open Workflow :: Impl :: Script Python - org.openworkflow + org.openworkflow.sdk openworkflow-impl-core diff --git a/impl/python/src/main/java/org/openworkflow/impl/executors/script/python/PythonScriptTaskRunner.java b/impl/python/src/main/java/org/openworkflow/sdk/impl/executors/script/python/PythonScriptTaskRunner.java similarity index 81% rename from impl/python/src/main/java/org/openworkflow/impl/executors/script/python/PythonScriptTaskRunner.java rename to impl/python/src/main/java/org/openworkflow/sdk/impl/executors/script/python/PythonScriptTaskRunner.java index 90c22fbde..1a307d901 100644 --- a/impl/python/src/main/java/org/openworkflow/impl/executors/script/python/PythonScriptTaskRunner.java +++ b/impl/python/src/main/java/org/openworkflow/sdk/impl/executors/script/python/PythonScriptTaskRunner.java @@ -13,16 +13,16 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.executors.script.python; +package org.openworkflow.sdk.impl.executors.script.python; import java.util.List; -import org.openworkflow.impl.TaskContext; -import org.openworkflow.impl.WorkflowContext; -import org.openworkflow.impl.WorkflowModel; -import org.openworkflow.impl.scripts.ScriptContext; -import org.openworkflow.impl.scripts.ScriptLanguageId; -import org.openworkflow.impl.scripts.ScriptRunner; -import org.openworkflow.impl.scripts.ScriptUtils; +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/org.openworkflow.impl.scripts.ScriptRunner b/impl/python/src/main/resources/META-INF/services/org.openworkflow.impl.scripts.ScriptRunner deleted file mode 100644 index 6d2ff2078..000000000 --- a/impl/python/src/main/resources/META-INF/services/org.openworkflow.impl.scripts.ScriptRunner +++ /dev/null @@ -1 +0,0 @@ -org.openworkflow.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 940ec0745..2fc12c832 100644 --- a/impl/template/pom.xml +++ b/impl/template/pom.xml @@ -2,7 +2,7 @@ 4.0.0 - org.openworkflow + org.openworkflow.sdk openworkflow-impl 8.0.0-SNAPSHOT @@ -16,7 +16,7 @@ jakarta.ws.rs-api - org.openworkflow + org.openworkflow.sdk openworkflow-impl-core diff --git a/impl/template/src/main/java/org/openworkflow/impl/template/JaxrsURITemplateResolver.java b/impl/template/src/main/java/org/openworkflow/sdk/impl/template/JaxrsURITemplateResolver.java similarity index 80% rename from impl/template/src/main/java/org/openworkflow/impl/template/JaxrsURITemplateResolver.java rename to impl/template/src/main/java/org/openworkflow/sdk/impl/template/JaxrsURITemplateResolver.java index 2b29321f1..f2a365282 100644 --- a/impl/template/src/main/java/org/openworkflow/impl/template/JaxrsURITemplateResolver.java +++ b/impl/template/src/main/java/org/openworkflow/sdk/impl/template/JaxrsURITemplateResolver.java @@ -13,15 +13,15 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.template; +package org.openworkflow.sdk.impl.template; import jakarta.ws.rs.core.UriBuilder; import java.net.URI; import java.util.Collections; -import org.openworkflow.impl.TaskContext; -import org.openworkflow.impl.WorkflowContext; -import org.openworkflow.impl.WorkflowModel; -import org.openworkflow.impl.resources.URITemplateResolver; +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/org.openworkflow.impl.resources.URITemplateResolver b/impl/template/src/main/resources/META-INF/services/org.openworkflow.impl.resources.URITemplateResolver deleted file mode 100644 index c74b3fab0..000000000 --- a/impl/template/src/main/resources/META-INF/services/org.openworkflow.impl.resources.URITemplateResolver +++ /dev/null @@ -1 +0,0 @@ -org.openworkflow.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 6f842ced8..771b3f7f6 100644 --- a/impl/test/pom.xml +++ b/impl/test/pom.xml @@ -1,7 +1,7 @@ 4.0.0 - org.openworkflow + org.openworkflow.sdk openworkflow-impl 8.0.0-SNAPSHOT @@ -9,41 +9,41 @@ Open Workflow :: Impl :: Test - org.openworkflow + org.openworkflow.sdk openworkflow-impl-jackson - org.openworkflow + org.openworkflow.sdk openworkflow-api - org.openworkflow + org.openworkflow.sdk openworkflow-fluent-spec ${project.version} test - org.openworkflow + org.openworkflow.sdk openworkflow-persistence-mvstore - org.openworkflow + org.openworkflow.sdk openworkflow-impl-http - org.openworkflow + org.openworkflow.sdk openworkflow-impl-jackson-jwt - org.openworkflow + org.openworkflow.sdk openworkflow-impl-script-js - org.openworkflow + org.openworkflow.sdk openworkflow-impl-script-python - org.openworkflow + org.openworkflow.sdk openworkflow-impl-a2a @@ -51,19 +51,19 @@ jersey-media-json-jackson - org.openworkflow + org.openworkflow.sdk openworkflow-impl-openapi - org.openworkflow + org.openworkflow.sdk openworkflow-impl-container - org.openworkflow + org.openworkflow.sdk openworkflow-impl-grpc - org.openworkflow + org.openworkflow.sdk openworkflow-impl-cron @@ -174,7 +174,7 @@ java - org.openworkflow.impl.test.DBGenerator + org.openworkflow.sdk.impl.test.DBGenerator diff --git a/impl/test/src/test/java/org/openworkflow/impl/auth/OAuthRequestBuilderTest.java b/impl/test/src/test/java/org/openworkflow/sdk/impl/auth/OAuthRequestBuilderTest.java similarity index 86% rename from impl/test/src/test/java/org/openworkflow/impl/auth/OAuthRequestBuilderTest.java rename to impl/test/src/test/java/org/openworkflow/sdk/impl/auth/OAuthRequestBuilderTest.java index 3336b3489..6f20d6c0c 100644 --- a/impl/test/src/test/java/org/openworkflow/impl/auth/OAuthRequestBuilderTest.java +++ b/impl/test/src/test/java/org/openworkflow/sdk/impl/auth/OAuthRequestBuilderTest.java @@ -13,20 +13,20 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.auth; +package org.openworkflow.sdk.impl.auth; 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.api.types.OAuth2AuthenticationData.OAuth2AuthenticationDataGrant.CLIENT_CREDENTIALS; +import static org.openworkflow.sdk.api.types.OAuth2AuthenticationData.OAuth2AuthenticationDataGrant.CLIENT_CREDENTIALS; import java.net.URI; import org.junit.jupiter.api.Test; -import org.openworkflow.api.types.OAuth2AuthenticationDataClient; -import org.openworkflow.api.types.OAuth2AuthenticationPropertiesEndpoints; -import org.openworkflow.api.types.OAuth2ConnectAuthenticationProperties; -import org.openworkflow.api.types.UriTemplate; -import org.openworkflow.impl.WorkflowApplication; +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/org/openworkflow/impl/test/A2AExecutorTest.java b/impl/test/src/test/java/org/openworkflow/sdk/impl/test/A2AExecutorTest.java similarity index 98% rename from impl/test/src/test/java/org/openworkflow/impl/test/A2AExecutorTest.java rename to impl/test/src/test/java/org/openworkflow/sdk/impl/test/A2AExecutorTest.java index beb69ffe3..8ba055b83 100644 --- a/impl/test/src/test/java/org/openworkflow/impl/test/A2AExecutorTest.java +++ b/impl/test/src/test/java/org/openworkflow/sdk/impl/test/A2AExecutorTest.java @@ -13,11 +13,11 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.test; +package org.openworkflow.sdk.impl.test; import static org.assertj.core.api.Assertions.assertThat; import static org.assertj.core.api.Assertions.assertThatThrownBy; -import static org.openworkflow.api.WorkflowReader.readWorkflowFromClasspath; +import static org.openworkflow.sdk.api.WorkflowReader.readWorkflowFromClasspath; import java.io.IOException; import java.util.concurrent.ExecutionException; @@ -29,9 +29,9 @@ import org.junit.jupiter.api.AfterEach; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; -import org.openworkflow.impl.WorkflowApplication; -import org.openworkflow.impl.WorkflowDefinition; -import org.openworkflow.impl.WorkflowException; +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/org/openworkflow/impl/test/AccessTokenProvider.java b/impl/test/src/test/java/org/openworkflow/sdk/impl/test/AccessTokenProvider.java similarity index 97% rename from impl/test/src/test/java/org/openworkflow/impl/test/AccessTokenProvider.java rename to impl/test/src/test/java/org/openworkflow/sdk/impl/test/AccessTokenProvider.java index b4dcf7c0e..389a559d5 100644 --- a/impl/test/src/test/java/org/openworkflow/impl/test/AccessTokenProvider.java +++ b/impl/test/src/test/java/org/openworkflow/sdk/impl/test/AccessTokenProvider.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.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/org/openworkflow/impl/test/BasicAuthHttpTest.java b/impl/test/src/test/java/org/openworkflow/sdk/impl/test/BasicAuthHttpTest.java similarity index 89% rename from impl/test/src/test/java/org/openworkflow/impl/test/BasicAuthHttpTest.java rename to impl/test/src/test/java/org/openworkflow/sdk/impl/test/BasicAuthHttpTest.java index 19c66f4c6..eb009f440 100644 --- a/impl/test/src/test/java/org/openworkflow/impl/test/BasicAuthHttpTest.java +++ b/impl/test/src/test/java/org/openworkflow/sdk/impl/test/BasicAuthHttpTest.java @@ -13,10 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.test; +package org.openworkflow.sdk.impl.test; import static org.assertj.core.api.Assertions.assertThat; -import static org.openworkflow.api.WorkflowReader.readWorkflowFromClasspath; +import static org.openworkflow.sdk.api.WorkflowReader.readWorkflowFromClasspath; import java.io.IOException; import java.util.Base64; @@ -29,10 +29,10 @@ import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.params.ParameterizedTest; import org.junit.jupiter.params.provider.ValueSource; -import org.openworkflow.api.types.Workflow; -import org.openworkflow.impl.WorkflowApplication; -import org.openworkflow.impl.WorkflowInstance; -import org.openworkflow.impl.jackson.JsonUtils; +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/org/openworkflow/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/org/openworkflow/impl/test/CancelMetadataTest.java rename to impl/test/src/test/java/org/openworkflow/sdk/impl/test/CancelMetadataTest.java index 09f98f1bc..7856780ae 100644 --- a/impl/test/src/test/java/org/openworkflow/impl/test/CancelMetadataTest.java +++ b/impl/test/src/test/java/org/openworkflow/sdk/impl/test/CancelMetadataTest.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.test; +package org.openworkflow.sdk.impl.test; import static org.assertj.core.api.Assertions.assertThat; import static org.awaitility.Awaitility.await; @@ -37,24 +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.api.WorkflowReader; -import org.openworkflow.impl.WorkflowApplication; -import org.openworkflow.impl.WorkflowDefinition; -import org.openworkflow.impl.WorkflowInstance; -import org.openworkflow.impl.WorkflowModel; -import org.openworkflow.impl.WorkflowStatus; -import org.openworkflow.impl.lifecycle.EventType; -import org.openworkflow.impl.lifecycle.TaskCancelledEvent; -import org.openworkflow.impl.lifecycle.TaskCompletedEvent; -import org.openworkflow.impl.lifecycle.TaskFailedEvent; -import org.openworkflow.impl.lifecycle.WorkflowCancelledEvent; -import org.openworkflow.impl.lifecycle.WorkflowCompletedEvent; -import org.openworkflow.impl.lifecycle.WorkflowEvent; -import org.openworkflow.impl.lifecycle.WorkflowExecutionCompletableListener; -import org.openworkflow.impl.lifecycle.WorkflowExecutionListener; -import org.openworkflow.impl.lifecycle.WorkflowFailedEvent; -import org.openworkflow.impl.lifecycle.WorkflowStartedEvent; -import org.openworkflow.impl.lifecycle.WorkflowStatusEvent; +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/org/openworkflow/impl/test/ContainerTest.java b/impl/test/src/test/java/org/openworkflow/sdk/impl/test/ContainerTest.java similarity index 97% rename from impl/test/src/test/java/org/openworkflow/impl/test/ContainerTest.java rename to impl/test/src/test/java/org/openworkflow/sdk/impl/test/ContainerTest.java index b9957db5f..83d6b6f67 100644 --- a/impl/test/src/test/java/org/openworkflow/impl/test/ContainerTest.java +++ b/impl/test/src/test/java/org/openworkflow/sdk/impl/test/ContainerTest.java @@ -13,13 +13,13 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.test; +package org.openworkflow.sdk.impl.test; 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.api.WorkflowReader.readWorkflowFromClasspath; +import static org.openworkflow.sdk.api.WorkflowReader.readWorkflowFromClasspath; import com.github.dockerjava.api.DockerClient; import com.github.dockerjava.api.command.InspectContainerResponse; @@ -40,8 +40,8 @@ import org.junit.jupiter.api.BeforeAll; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.condition.DisabledIf; -import org.openworkflow.api.types.Workflow; -import org.openworkflow.impl.WorkflowApplication; +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/org/openworkflow/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/org/openworkflow/impl/test/CoreTaskTypesTest.java rename to impl/test/src/test/java/org/openworkflow/sdk/impl/test/CoreTaskTypesTest.java index f8ef18f61..04608745d 100644 --- a/impl/test/src/test/java/org/openworkflow/impl/test/CoreTaskTypesTest.java +++ b/impl/test/src/test/java/org/openworkflow/sdk/impl/test/CoreTaskTypesTest.java @@ -13,12 +13,12 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.test; +package org.openworkflow.sdk.impl.test; import static org.assertj.core.api.Assertions.assertThat; import static org.assertj.core.api.Assertions.catchThrowableOfType; -import static org.openworkflow.api.WorkflowReader.readWorkflowFromClasspath; -import static org.openworkflow.fluent.spec.dsl.DSL.*; +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; @@ -34,16 +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.api.types.FlowDirectiveEnum; -import org.openworkflow.api.types.Workflow; -import org.openworkflow.fluent.spec.SetTaskBuilder; -import org.openworkflow.fluent.spec.WorkflowBuilder; -import org.openworkflow.impl.WorkflowApplication; -import org.openworkflow.impl.WorkflowDefinitionId; -import org.openworkflow.impl.WorkflowException; -import org.openworkflow.impl.WorkflowInstance; -import org.openworkflow.impl.WorkflowModel; -import org.openworkflow.impl.jackson.JsonUtils; +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://openworkflow.cloud/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://openworkflow.cloud/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://openworkflow.cloud/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://openworkflow.cloud/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/org/openworkflow/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/org/openworkflow/impl/test/CorrelationTest.java rename to impl/test/src/test/java/org/openworkflow/sdk/impl/test/CorrelationTest.java index ce7f35b00..7445f42b1 100644 --- a/impl/test/src/test/java/org/openworkflow/impl/test/CorrelationTest.java +++ b/impl/test/src/test/java/org/openworkflow/sdk/impl/test/CorrelationTest.java @@ -13,12 +13,12 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.test; +package org.openworkflow.sdk.impl.test; import static org.assertj.core.api.Assertions.assertThat; import static org.awaitility.Awaitility.await; -import static org.openworkflow.api.WorkflowReader.readWorkflowFromClasspath; -import static org.openworkflow.fluent.spec.dsl.DSL.*; +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; @@ -37,14 +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.api.types.Workflow; -import org.openworkflow.fluent.spec.WorkflowBuilder; -import org.openworkflow.impl.WorkflowApplication; -import org.openworkflow.impl.WorkflowDefinition; -import org.openworkflow.impl.WorkflowInstance; -import org.openworkflow.impl.WorkflowModel; -import org.openworkflow.impl.WorkflowStatus; -import org.openworkflow.impl.jackson.JsonUtils; +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/org/openworkflow/impl/test/CustomAuthProviderFactoryOverrideTest.java b/impl/test/src/test/java/org/openworkflow/sdk/impl/test/CustomAuthProviderFactoryOverrideTest.java similarity index 87% rename from impl/test/src/test/java/org/openworkflow/impl/test/CustomAuthProviderFactoryOverrideTest.java rename to impl/test/src/test/java/org/openworkflow/sdk/impl/test/CustomAuthProviderFactoryOverrideTest.java index 23e5b3e0a..0747221e5 100644 --- a/impl/test/src/test/java/org/openworkflow/impl/test/CustomAuthProviderFactoryOverrideTest.java +++ b/impl/test/src/test/java/org/openworkflow/sdk/impl/test/CustomAuthProviderFactoryOverrideTest.java @@ -13,11 +13,11 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.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 static org.openworkflow.api.WorkflowReader.readWorkflowFromClasspath; +import static org.openworkflow.sdk.api.WorkflowReader.readWorkflowFromClasspath; import java.io.IOException; import java.net.URI; @@ -31,16 +31,16 @@ import org.junit.jupiter.api.AfterEach; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; -import org.openworkflow.api.types.EndpointConfiguration; -import org.openworkflow.api.types.ReferenceableAuthenticationPolicy; -import org.openworkflow.api.types.Workflow; -import org.openworkflow.impl.TaskContext; -import org.openworkflow.impl.WorkflowApplication; -import org.openworkflow.impl.WorkflowContext; -import org.openworkflow.impl.WorkflowDefinition; -import org.openworkflow.impl.WorkflowModel; -import org.openworkflow.impl.auth.AuthProvider; -import org.openworkflow.impl.auth.AuthProviderFactory; +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/org/openworkflow/impl/test/CustomFunctionTest.java b/impl/test/src/test/java/org/openworkflow/sdk/impl/test/CustomFunctionTest.java similarity index 88% rename from impl/test/src/test/java/org/openworkflow/impl/test/CustomFunctionTest.java rename to impl/test/src/test/java/org/openworkflow/sdk/impl/test/CustomFunctionTest.java index decdfd9a3..a675180cf 100644 --- a/impl/test/src/test/java/org/openworkflow/impl/test/CustomFunctionTest.java +++ b/impl/test/src/test/java/org/openworkflow/sdk/impl/test/CustomFunctionTest.java @@ -13,11 +13,11 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.test; +package org.openworkflow.sdk.impl.test; import static org.assertj.core.api.Assertions.assertThat; import static org.assertj.core.api.Assertions.assertThatThrownBy; -import static org.openworkflow.api.WorkflowReader.readWorkflowFromClasspath; +import static org.openworkflow.sdk.api.WorkflowReader.readWorkflowFromClasspath; import java.io.IOException; import java.util.Map; @@ -26,9 +26,9 @@ import org.junit.jupiter.api.Test; import org.junit.jupiter.params.ParameterizedTest; import org.junit.jupiter.params.provider.ValueSource; -import org.openworkflow.impl.WorkflowApplication; -import org.openworkflow.impl.WorkflowException; -import org.openworkflow.impl.test.junit.DisabledIfPythonUnavailable; +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/org/openworkflow/impl/test/DBGenerator.java b/impl/test/src/test/java/org/openworkflow/sdk/impl/test/DBGenerator.java similarity index 75% rename from impl/test/src/test/java/org/openworkflow/impl/test/DBGenerator.java rename to impl/test/src/test/java/org/openworkflow/sdk/impl/test/DBGenerator.java index 19b62d4da..dc2d05a30 100644 --- a/impl/test/src/test/java/org/openworkflow/impl/test/DBGenerator.java +++ b/impl/test/src/test/java/org/openworkflow/sdk/impl/test/DBGenerator.java @@ -13,22 +13,22 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.test; +package org.openworkflow.sdk.impl.test; -import static org.openworkflow.api.WorkflowReader.readWorkflowFromClasspath; +import static org.openworkflow.sdk.api.WorkflowReader.readWorkflowFromClasspath; import java.io.IOException; import java.nio.file.Files; import java.nio.file.Path; import java.util.Map; -import org.openworkflow.impl.WorkflowApplication; -import org.openworkflow.impl.WorkflowDefinition; -import org.openworkflow.impl.WorkflowInstance; -import org.openworkflow.impl.lifecycle.TraceExecutionListener; -import org.openworkflow.impl.persistence.DefaultPersistenceInstanceHandlers; -import org.openworkflow.impl.persistence.PersistenceApplicationBuilder; -import org.openworkflow.impl.persistence.PersistenceInstanceHandlers; -import org.openworkflow.impl.persistence.mvstore.MVStorePersistenceStore; +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/org/openworkflow/impl/test/DateTimeDescriptorTest.java b/impl/test/src/test/java/org/openworkflow/sdk/impl/test/DateTimeDescriptorTest.java similarity index 87% rename from impl/test/src/test/java/org/openworkflow/impl/test/DateTimeDescriptorTest.java rename to impl/test/src/test/java/org/openworkflow/sdk/impl/test/DateTimeDescriptorTest.java index 698f776a8..1982a803b 100644 --- a/impl/test/src/test/java/org/openworkflow/impl/test/DateTimeDescriptorTest.java +++ b/impl/test/src/test/java/org/openworkflow/sdk/impl/test/DateTimeDescriptorTest.java @@ -13,15 +13,15 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.test; +package org.openworkflow.sdk.impl.test; import static org.assertj.core.api.Assertions.assertThat; import com.fasterxml.jackson.databind.JsonNode; import java.time.Instant; import org.junit.jupiter.api.Test; -import org.openworkflow.impl.expressions.DateTimeDescriptor; -import org.openworkflow.impl.jackson.JsonUtils; +import org.openworkflow.sdk.impl.expressions.DateTimeDescriptor; +import org.openworkflow.sdk.impl.jackson.JsonUtils; class DateTimeDescriptorTest { diff --git a/impl/test/src/test/java/org/openworkflow/impl/test/DigestAuthHttpTest.java b/impl/test/src/test/java/org/openworkflow/sdk/impl/test/DigestAuthHttpTest.java similarity index 90% rename from impl/test/src/test/java/org/openworkflow/impl/test/DigestAuthHttpTest.java rename to impl/test/src/test/java/org/openworkflow/sdk/impl/test/DigestAuthHttpTest.java index 43b1f5597..47cc48efd 100644 --- a/impl/test/src/test/java/org/openworkflow/impl/test/DigestAuthHttpTest.java +++ b/impl/test/src/test/java/org/openworkflow/sdk/impl/test/DigestAuthHttpTest.java @@ -13,11 +13,11 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.test; +package org.openworkflow.sdk.impl.test; import static org.assertj.core.api.Assertions.assertThat; import static org.mockito.Mockito.mockStatic; -import static org.openworkflow.api.WorkflowReader.readWorkflowFromClasspath; +import static org.openworkflow.sdk.api.WorkflowReader.readWorkflowFromClasspath; import java.io.IOException; import java.util.Map; @@ -31,11 +31,11 @@ import org.junit.jupiter.api.Test; import org.mockito.MockedStatic; import org.mockito.Mockito; -import org.openworkflow.api.types.Workflow; -import org.openworkflow.impl.WorkflowApplication; -import org.openworkflow.impl.WorkflowInstance; -import org.openworkflow.impl.jackson.JsonUtils; -import org.openworkflow.impl.utils.RandomFactory; +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/org/openworkflow/impl/test/EmitExecutorTest.java b/impl/test/src/test/java/org/openworkflow/sdk/impl/test/EmitExecutorTest.java similarity index 94% rename from impl/test/src/test/java/org/openworkflow/impl/test/EmitExecutorTest.java rename to impl/test/src/test/java/org/openworkflow/sdk/impl/test/EmitExecutorTest.java index dc79325e4..3ae7c5798 100644 --- a/impl/test/src/test/java/org/openworkflow/impl/test/EmitExecutorTest.java +++ b/impl/test/src/test/java/org/openworkflow/sdk/impl/test/EmitExecutorTest.java @@ -13,11 +13,11 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.test; +package org.openworkflow.sdk.impl.test; import static org.assertj.core.api.Assertions.assertThat; import static org.assertj.core.api.Assertions.assertThatThrownBy; -import static org.openworkflow.api.WorkflowReader.readWorkflowFromClasspath; +import static org.openworkflow.sdk.api.WorkflowReader.readWorkflowFromClasspath; import io.cloudevents.CloudEvent; import java.io.IOException; @@ -30,11 +30,11 @@ import java.util.function.UnaryOperator; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; -import org.openworkflow.api.types.Workflow; -import org.openworkflow.fluent.spec.EventPropertiesBuilder; -import org.openworkflow.fluent.spec.WorkflowBuilder; -import org.openworkflow.impl.WorkflowApplication; -import org.openworkflow.impl.events.InMemoryEvents; +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/org/openworkflow/impl/test/EventDefinitionTest.java b/impl/test/src/test/java/org/openworkflow/sdk/impl/test/EventDefinitionTest.java similarity index 95% rename from impl/test/src/test/java/org/openworkflow/impl/test/EventDefinitionTest.java rename to impl/test/src/test/java/org/openworkflow/sdk/impl/test/EventDefinitionTest.java index 7b577db20..72db5bd60 100644 --- a/impl/test/src/test/java/org/openworkflow/impl/test/EventDefinitionTest.java +++ b/impl/test/src/test/java/org/openworkflow/sdk/impl/test/EventDefinitionTest.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.test; +package org.openworkflow.sdk.impl.test; import static org.assertj.core.api.Assertions.assertThat; @@ -32,13 +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.api.WorkflowReader; -import org.openworkflow.impl.WorkflowApplication; -import org.openworkflow.impl.WorkflowDefinition; -import org.openworkflow.impl.WorkflowInstance; -import org.openworkflow.impl.WorkflowModel; -import org.openworkflow.impl.WorkflowStatus; -import org.openworkflow.impl.jackson.JsonUtils; +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/org/openworkflow/impl/test/ForTaskMissingInTest.java b/impl/test/src/test/java/org/openworkflow/sdk/impl/test/ForTaskMissingInTest.java similarity index 88% rename from impl/test/src/test/java/org/openworkflow/impl/test/ForTaskMissingInTest.java rename to impl/test/src/test/java/org/openworkflow/sdk/impl/test/ForTaskMissingInTest.java index 8703449c7..2c7199254 100644 --- a/impl/test/src/test/java/org/openworkflow/impl/test/ForTaskMissingInTest.java +++ b/impl/test/src/test/java/org/openworkflow/sdk/impl/test/ForTaskMissingInTest.java @@ -13,14 +13,14 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.test; +package org.openworkflow.sdk.impl.test; import static org.assertj.core.api.Assertions.assertThatThrownBy; -import static org.openworkflow.fluent.spec.dsl.DSL.*; +import static org.openworkflow.sdk.fluent.spec.dsl.DSL.*; import org.junit.jupiter.api.Test; -import org.openworkflow.api.types.Workflow; -import org.openworkflow.fluent.spec.WorkflowBuilder; +import org.openworkflow.sdk.api.types.Workflow; +import org.openworkflow.sdk.fluent.spec.WorkflowBuilder; class ForTaskMissingInTest { diff --git a/impl/test/src/test/java/org/openworkflow/impl/test/ForkWaitTest.java b/impl/test/src/test/java/org/openworkflow/sdk/impl/test/ForkWaitTest.java similarity index 88% rename from impl/test/src/test/java/org/openworkflow/impl/test/ForkWaitTest.java rename to impl/test/src/test/java/org/openworkflow/sdk/impl/test/ForkWaitTest.java index 3183f9d76..88c200f48 100644 --- a/impl/test/src/test/java/org/openworkflow/impl/test/ForkWaitTest.java +++ b/impl/test/src/test/java/org/openworkflow/sdk/impl/test/ForkWaitTest.java @@ -13,11 +13,11 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.test; +package org.openworkflow.sdk.impl.test; import static org.assertj.core.api.Assertions.assertThat; import static org.awaitility.Awaitility.await; -import static org.openworkflow.api.WorkflowReader.readWorkflowFromClasspath; +import static org.openworkflow.sdk.api.WorkflowReader.readWorkflowFromClasspath; import java.io.IOException; import java.time.Duration; @@ -31,14 +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.api.types.Workflow; -import org.openworkflow.fluent.spec.WorkflowBuilder; -import org.openworkflow.fluent.spec.dsl.DSL; -import org.openworkflow.impl.WorkflowApplication; -import org.openworkflow.impl.WorkflowDefinitionId; -import org.openworkflow.impl.WorkflowInstance; -import org.openworkflow.impl.WorkflowModel; -import org.openworkflow.impl.WorkflowStatus; +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/org/openworkflow/impl/test/HTTPWorkflowDefinitionTest.java b/impl/test/src/test/java/org/openworkflow/sdk/impl/test/HTTPWorkflowDefinitionTest.java similarity index 97% rename from impl/test/src/test/java/org/openworkflow/impl/test/HTTPWorkflowDefinitionTest.java rename to impl/test/src/test/java/org/openworkflow/sdk/impl/test/HTTPWorkflowDefinitionTest.java index 0fa8a0fc3..5f916e236 100644 --- a/impl/test/src/test/java/org/openworkflow/impl/test/HTTPWorkflowDefinitionTest.java +++ b/impl/test/src/test/java/org/openworkflow/sdk/impl/test/HTTPWorkflowDefinitionTest.java @@ -13,12 +13,12 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.test; +package org.openworkflow.sdk.impl.test; 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.api.WorkflowReader.readWorkflowFromClasspath; +import static org.openworkflow.sdk.api.WorkflowReader.readWorkflowFromClasspath; import java.io.IOException; import java.nio.charset.StandardCharsets; @@ -36,11 +36,11 @@ import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; -import org.openworkflow.impl.WorkflowApplication; -import org.openworkflow.impl.WorkflowError; -import org.openworkflow.impl.WorkflowException; -import org.openworkflow.impl.WorkflowModel; -import org.openworkflow.types.Errors; +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; diff --git a/impl/test/src/test/java/org/openworkflow/impl/test/LifeCycleEventsTest.java b/impl/test/src/test/java/org/openworkflow/sdk/impl/test/LifeCycleEventsTest.java similarity index 85% rename from impl/test/src/test/java/org/openworkflow/impl/test/LifeCycleEventsTest.java rename to impl/test/src/test/java/org/openworkflow/sdk/impl/test/LifeCycleEventsTest.java index 2662b599a..5135f1847 100644 --- a/impl/test/src/test/java/org/openworkflow/impl/test/LifeCycleEventsTest.java +++ b/impl/test/src/test/java/org/openworkflow/sdk/impl/test/LifeCycleEventsTest.java @@ -13,12 +13,12 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.test; +package org.openworkflow.sdk.impl.test; 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.impl.LifecycleEvents.APPLICATION_ID_EXTENSION; +import static org.openworkflow.sdk.impl.LifecycleEvents.APPLICATION_ID_EXTENSION; import io.cloudevents.CloudEvent; import io.cloudevents.core.data.PojoCloudEventData; @@ -42,29 +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.api.WorkflowReader; -import org.openworkflow.api.types.Workflow; -import org.openworkflow.fluent.spec.WorkflowBuilder; -import org.openworkflow.fluent.spec.dsl.DSL; -import org.openworkflow.impl.WorkflowApplication; -import org.openworkflow.impl.WorkflowDefinition; -import org.openworkflow.impl.WorkflowDefinitionId; -import org.openworkflow.impl.WorkflowError; -import org.openworkflow.impl.WorkflowInstance; -import org.openworkflow.impl.WorkflowModel; -import org.openworkflow.impl.WorkflowStatus; -import org.openworkflow.impl.events.InMemoryEvents; -import org.openworkflow.impl.lifecycle.ce.AbstractLifeCyclePublisher; -import org.openworkflow.impl.lifecycle.ce.InputOutputLifeCycleCloudEventFactory; -import org.openworkflow.impl.lifecycle.ce.TaskCancelledCEData; -import org.openworkflow.impl.lifecycle.ce.TaskCompletedCEDataWithOutput; -import org.openworkflow.impl.lifecycle.ce.TaskStartedCEData; -import org.openworkflow.impl.lifecycle.ce.WorkflowCancelledCEData; -import org.openworkflow.impl.lifecycle.ce.WorkflowCompletedCEDataWithOutput; -import org.openworkflow.impl.lifecycle.ce.WorkflowFailedCEData; -import org.openworkflow.impl.lifecycle.ce.WorkflowResumedCEData; -import org.openworkflow.impl.lifecycle.ce.WorkflowStartedCEData; -import org.openworkflow.impl.lifecycle.ce.WorkflowSuspendedCEData; +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 { @@ -223,7 +223,8 @@ void testError() throws IOException { .isNotNull(); WorkflowError error = assertPojoInCE("org.openworkflow.workflow.faulted.v1", WorkflowFailedCEData.class).error(); - assertThat(error.type()).isEqualTo("https://openworkflow.cloud/errors/not-implemented"); + 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/org/openworkflow/impl/test/MvStorePersistenceTest.java b/impl/test/src/test/java/org/openworkflow/sdk/impl/test/MvStorePersistenceTest.java similarity index 87% rename from impl/test/src/test/java/org/openworkflow/impl/test/MvStorePersistenceTest.java rename to impl/test/src/test/java/org/openworkflow/sdk/impl/test/MvStorePersistenceTest.java index a4086a110..7c57affcd 100644 --- a/impl/test/src/test/java/org/openworkflow/impl/test/MvStorePersistenceTest.java +++ b/impl/test/src/test/java/org/openworkflow/sdk/impl/test/MvStorePersistenceTest.java @@ -13,10 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.test; +package org.openworkflow.sdk.impl.test; import static org.assertj.core.api.Assertions.assertThat; -import static org.openworkflow.api.WorkflowReader.readWorkflowFromClasspath; +import static org.openworkflow.sdk.api.WorkflowReader.readWorkflowFromClasspath; import java.io.IOException; import java.nio.file.Files; @@ -29,15 +29,15 @@ import java.util.stream.Stream; import org.awaitility.Awaitility; import org.junit.jupiter.api.Test; -import org.openworkflow.impl.WorkflowApplication; -import org.openworkflow.impl.WorkflowDefinition; -import org.openworkflow.impl.WorkflowInstance; -import org.openworkflow.impl.WorkflowStatus; -import org.openworkflow.impl.lifecycle.TraceExecutionListener; -import org.openworkflow.impl.persistence.DefaultPersistenceInstanceHandlers; -import org.openworkflow.impl.persistence.PersistenceApplicationBuilder; -import org.openworkflow.impl.persistence.PersistenceInstanceHandlers; -import org.openworkflow.impl.persistence.mvstore.MVStorePersistenceStore; +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/org/openworkflow/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/org/openworkflow/impl/test/OAuthHTTPWorkflowDefinitionTest.java rename to impl/test/src/test/java/org/openworkflow/sdk/impl/test/OAuthHTTPWorkflowDefinitionTest.java index 86f4021e1..5a5702c1f 100644 --- a/impl/test/src/test/java/org/openworkflow/impl/test/OAuthHTTPWorkflowDefinitionTest.java +++ b/impl/test/src/test/java/org/openworkflow/sdk/impl/test/OAuthHTTPWorkflowDefinitionTest.java @@ -13,13 +13,13 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.test; +package org.openworkflow.sdk.impl.test; 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.api.WorkflowReader.readWorkflowFromClasspath; -import static org.openworkflow.impl.test.AccessTokenProvider.fakeAccessToken; +import static org.openworkflow.sdk.api.WorkflowReader.readWorkflowFromClasspath; +import static org.openworkflow.sdk.impl.test.AccessTokenProvider.fakeAccessToken; import com.fasterxml.jackson.databind.ObjectMapper; import java.io.IOException; @@ -34,8 +34,8 @@ import org.junit.jupiter.api.BeforeAll; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; -import org.openworkflow.api.types.Workflow; -import org.openworkflow.impl.WorkflowApplication; +import org.openworkflow.sdk.api.types.Workflow; +import org.openworkflow.sdk.impl.WorkflowApplication; public class OAuthHTTPWorkflowDefinitionTest { diff --git a/impl/test/src/test/java/org/openworkflow/impl/test/OAuthUtilsTest.java b/impl/test/src/test/java/org/openworkflow/sdk/impl/test/OAuthUtilsTest.java similarity index 83% rename from impl/test/src/test/java/org/openworkflow/impl/test/OAuthUtilsTest.java rename to impl/test/src/test/java/org/openworkflow/sdk/impl/test/OAuthUtilsTest.java index f5c30beaa..25200005f 100644 --- a/impl/test/src/test/java/org/openworkflow/impl/test/OAuthUtilsTest.java +++ b/impl/test/src/test/java/org/openworkflow/sdk/impl/test/OAuthUtilsTest.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.test; +package org.openworkflow.sdk.impl.test; import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertNull; @@ -21,18 +21,18 @@ import java.util.Optional; import org.junit.jupiter.api.Test; -import org.openworkflow.api.types.AuthenticationPolicyUnion; -import org.openworkflow.api.types.BasicAuthenticationPolicy; -import org.openworkflow.api.types.OAuth2AuthenticationData; -import org.openworkflow.api.types.OAuth2AuthenticationPolicy; -import org.openworkflow.api.types.OAuth2AuthenticationPolicyConfiguration; -import org.openworkflow.api.types.OAuth2ConnectAuthenticationProperties; -import org.openworkflow.api.types.OpenIdConnectAuthenticationPolicy; -import org.openworkflow.api.types.OpenIdConnectAuthenticationPolicyConfiguration; -import org.openworkflow.api.types.SecretBasedAuthenticationPolicy; -import org.openworkflow.impl.auth.OAuthPolicyData; -import org.openworkflow.impl.auth.OAuthScheme; -import org.openworkflow.impl.auth.OAuthUtils; +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/org/openworkflow/impl/test/OpenAPITest.java b/impl/test/src/test/java/org/openworkflow/sdk/impl/test/OpenAPITest.java similarity index 97% rename from impl/test/src/test/java/org/openworkflow/impl/test/OpenAPITest.java rename to impl/test/src/test/java/org/openworkflow/sdk/impl/test/OpenAPITest.java index 8224fcf4d..9f923656c 100644 --- a/impl/test/src/test/java/org/openworkflow/impl/test/OpenAPITest.java +++ b/impl/test/src/test/java/org/openworkflow/sdk/impl/test/OpenAPITest.java @@ -13,13 +13,13 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.test; +package org.openworkflow.sdk.impl.test; 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.api.WorkflowReader.readWorkflowFromClasspath; +import static org.openworkflow.sdk.api.WorkflowReader.readWorkflowFromClasspath; import java.io.IOException; import java.io.InputStream; @@ -35,10 +35,10 @@ import org.junit.jupiter.api.BeforeAll; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; -import org.openworkflow.api.types.Workflow; -import org.openworkflow.impl.WorkflowApplication; -import org.openworkflow.impl.WorkflowDefinition; -import org.openworkflow.impl.WorkflowException; +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/org/openworkflow/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/org/openworkflow/impl/test/OpenIDCHTTPWorkflowDefinitionTest.java rename to impl/test/src/test/java/org/openworkflow/sdk/impl/test/OpenIDCHTTPWorkflowDefinitionTest.java index 29756e60c..5c1cf395d 100644 --- a/impl/test/src/test/java/org/openworkflow/impl/test/OpenIDCHTTPWorkflowDefinitionTest.java +++ b/impl/test/src/test/java/org/openworkflow/sdk/impl/test/OpenIDCHTTPWorkflowDefinitionTest.java @@ -13,12 +13,12 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.test; +package org.openworkflow.sdk.impl.test; import static org.junit.Assert.assertEquals; import static org.junit.jupiter.api.Assertions.assertTrue; -import static org.openworkflow.api.WorkflowReader.readWorkflowFromClasspath; -import static org.openworkflow.impl.test.AccessTokenProvider.fakeAccessToken; +import static org.openworkflow.sdk.api.WorkflowReader.readWorkflowFromClasspath; +import static org.openworkflow.sdk.impl.test.AccessTokenProvider.fakeAccessToken; import com.fasterxml.jackson.databind.ObjectMapper; import java.io.IOException; @@ -31,8 +31,8 @@ import org.junit.jupiter.api.BeforeAll; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; -import org.openworkflow.api.types.Workflow; -import org.openworkflow.impl.WorkflowApplication; +import org.openworkflow.sdk.api.types.Workflow; +import org.openworkflow.sdk.impl.WorkflowApplication; public class OpenIDCHTTPWorkflowDefinitionTest { diff --git a/impl/test/src/test/java/org/openworkflow/impl/test/ResolvePolicyTest.java b/impl/test/src/test/java/org/openworkflow/sdk/impl/test/ResolvePolicyTest.java similarity index 84% rename from impl/test/src/test/java/org/openworkflow/impl/test/ResolvePolicyTest.java rename to impl/test/src/test/java/org/openworkflow/sdk/impl/test/ResolvePolicyTest.java index 38307675f..3a2e18904 100644 --- a/impl/test/src/test/java/org/openworkflow/impl/test/ResolvePolicyTest.java +++ b/impl/test/src/test/java/org/openworkflow/sdk/impl/test/ResolvePolicyTest.java @@ -13,23 +13,23 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.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 java.util.Optional; import org.junit.jupiter.api.Test; -import org.openworkflow.api.types.AuthenticationPolicyReference; -import org.openworkflow.api.types.AuthenticationPolicyUnion; -import org.openworkflow.api.types.BearerAuthenticationPolicy; -import org.openworkflow.api.types.BearerAuthenticationPolicyConfiguration; -import org.openworkflow.api.types.BearerAuthenticationProperties; -import org.openworkflow.api.types.ReferenceableAuthenticationPolicy; -import org.openworkflow.api.types.Use; -import org.openworkflow.api.types.UseAuthentications; -import org.openworkflow.api.types.Workflow; -import org.openworkflow.impl.auth.OAuthUtils; +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/org/openworkflow/impl/test/RetryTimeoutTest.java b/impl/test/src/test/java/org/openworkflow/sdk/impl/test/RetryTimeoutTest.java similarity index 95% rename from impl/test/src/test/java/org/openworkflow/impl/test/RetryTimeoutTest.java rename to impl/test/src/test/java/org/openworkflow/sdk/impl/test/RetryTimeoutTest.java index f2c17839a..a8d0860d4 100644 --- a/impl/test/src/test/java/org/openworkflow/impl/test/RetryTimeoutTest.java +++ b/impl/test/src/test/java/org/openworkflow/sdk/impl/test/RetryTimeoutTest.java @@ -13,11 +13,11 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.test; +package org.openworkflow.sdk.impl.test; import static org.assertj.core.api.Assertions.assertThat; import static org.assertj.core.api.Assertions.assertThatThrownBy; -import static org.openworkflow.api.WorkflowReader.readWorkflowFromClasspath; +import static org.openworkflow.sdk.api.WorkflowReader.readWorkflowFromClasspath; import com.fasterxml.jackson.databind.JsonNode; import java.io.IOException; @@ -34,15 +34,15 @@ import org.junit.jupiter.api.Test; import org.junit.jupiter.params.ParameterizedTest; import org.junit.jupiter.params.provider.ValueSource; -import org.openworkflow.impl.TaskContextData; -import org.openworkflow.impl.WorkflowApplication; -import org.openworkflow.impl.WorkflowException; -import org.openworkflow.impl.WorkflowModel; -import org.openworkflow.impl.jackson.JsonUtils; -import org.openworkflow.impl.lifecycle.TaskCompletedEvent; -import org.openworkflow.impl.lifecycle.TaskEvent; -import org.openworkflow.impl.lifecycle.TaskRetriedEvent; -import org.openworkflow.impl.lifecycle.WorkflowExecutionListener; +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/org/openworkflow/impl/test/RunScriptJavaScriptTest.java b/impl/test/src/test/java/org/openworkflow/sdk/impl/test/RunScriptJavaScriptTest.java similarity index 95% rename from impl/test/src/test/java/org/openworkflow/impl/test/RunScriptJavaScriptTest.java rename to impl/test/src/test/java/org/openworkflow/sdk/impl/test/RunScriptJavaScriptTest.java index 52894673f..de0a833ef 100644 --- a/impl/test/src/test/java/org/openworkflow/impl/test/RunScriptJavaScriptTest.java +++ b/impl/test/src/test/java/org/openworkflow/sdk/impl/test/RunScriptJavaScriptTest.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.test; +package org.openworkflow.sdk.impl.test; import static org.assertj.core.api.Assertions.assertThatThrownBy; @@ -26,11 +26,11 @@ import org.junit.jupiter.api.AfterEach; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; -import org.openworkflow.api.WorkflowReader; -import org.openworkflow.api.types.Workflow; -import org.openworkflow.impl.WorkflowApplication; -import org.openworkflow.impl.WorkflowException; -import org.openworkflow.impl.WorkflowModel; +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 { diff --git a/impl/test/src/test/java/org/openworkflow/impl/test/RunShellExecutorTest.java b/impl/test/src/test/java/org/openworkflow/sdk/impl/test/RunShellExecutorTest.java similarity index 96% rename from impl/test/src/test/java/org/openworkflow/impl/test/RunShellExecutorTest.java rename to impl/test/src/test/java/org/openworkflow/sdk/impl/test/RunShellExecutorTest.java index 93746214d..7248fb7ba 100644 --- a/impl/test/src/test/java/org/openworkflow/impl/test/RunShellExecutorTest.java +++ b/impl/test/src/test/java/org/openworkflow/sdk/impl/test/RunShellExecutorTest.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.test; +package org.openworkflow.sdk.impl.test; import static org.assertj.core.api.Assertions.assertThatThrownBy; @@ -26,11 +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.api.WorkflowReader; -import org.openworkflow.api.types.Workflow; -import org.openworkflow.impl.WorkflowApplication; -import org.openworkflow.impl.WorkflowModel; -import org.openworkflow.impl.executors.ProcessResult; +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/org/openworkflow/impl/test/ScheduleEventConsumerTest.java b/impl/test/src/test/java/org/openworkflow/sdk/impl/test/ScheduleEventConsumerTest.java similarity index 93% rename from impl/test/src/test/java/org/openworkflow/impl/test/ScheduleEventConsumerTest.java rename to impl/test/src/test/java/org/openworkflow/sdk/impl/test/ScheduleEventConsumerTest.java index 2fdffc9bc..b06050aa9 100644 --- a/impl/test/src/test/java/org/openworkflow/impl/test/ScheduleEventConsumerTest.java +++ b/impl/test/src/test/java/org/openworkflow/sdk/impl/test/ScheduleEventConsumerTest.java @@ -13,11 +13,11 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.test; +package org.openworkflow.sdk.impl.test; import static org.assertj.core.api.Assertions.assertThat; import static org.awaitility.Awaitility.await; -import static org.openworkflow.api.WorkflowReader.readWorkflowFromClasspath; +import static org.openworkflow.sdk.api.WorkflowReader.readWorkflowFromClasspath; import io.cloudevents.CloudEvent; import io.cloudevents.core.builder.CloudEventBuilder; @@ -32,11 +32,11 @@ import org.junit.jupiter.api.AfterEach; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; -import org.openworkflow.impl.WorkflowApplication; -import org.openworkflow.impl.WorkflowDefinition; -import org.openworkflow.impl.WorkflowInstance; -import org.openworkflow.impl.WorkflowStatus; -import org.openworkflow.impl.jackson.JsonUtils; +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/org/openworkflow/impl/test/SchedulerTest.java b/impl/test/src/test/java/org/openworkflow/sdk/impl/test/SchedulerTest.java similarity index 90% rename from impl/test/src/test/java/org/openworkflow/impl/test/SchedulerTest.java rename to impl/test/src/test/java/org/openworkflow/sdk/impl/test/SchedulerTest.java index d1a43d980..c86be088e 100644 --- a/impl/test/src/test/java/org/openworkflow/impl/test/SchedulerTest.java +++ b/impl/test/src/test/java/org/openworkflow/sdk/impl/test/SchedulerTest.java @@ -13,11 +13,11 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.test; +package org.openworkflow.sdk.impl.test; import static org.assertj.core.api.Assertions.assertThat; import static org.awaitility.Awaitility.await; -import static org.openworkflow.api.WorkflowReader.readWorkflowFromClasspath; +import static org.openworkflow.sdk.api.WorkflowReader.readWorkflowFromClasspath; import java.io.IOException; import java.time.Duration; @@ -27,9 +27,9 @@ import org.junit.jupiter.api.BeforeAll; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; -import org.openworkflow.impl.WorkflowApplication; -import org.openworkflow.impl.WorkflowDefinition; -import org.openworkflow.impl.WorkflowInstance; +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/org/openworkflow/impl/test/SecretExpressionTest.java b/impl/test/src/test/java/org/openworkflow/sdk/impl/test/SecretExpressionTest.java similarity index 92% rename from impl/test/src/test/java/org/openworkflow/impl/test/SecretExpressionTest.java rename to impl/test/src/test/java/org/openworkflow/sdk/impl/test/SecretExpressionTest.java index 639d9409a..8c51d2f4f 100644 --- a/impl/test/src/test/java/org/openworkflow/impl/test/SecretExpressionTest.java +++ b/impl/test/src/test/java/org/openworkflow/sdk/impl/test/SecretExpressionTest.java @@ -13,11 +13,11 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.test; +package org.openworkflow.sdk.impl.test; import static org.assertj.core.api.Assertions.assertThat; import static org.assertj.core.api.Assertions.assertThatThrownBy; -import static org.openworkflow.api.WorkflowReader.readWorkflowFromClasspath; +import static org.openworkflow.sdk.api.WorkflowReader.readWorkflowFromClasspath; import java.io.IOException; import java.util.Map; @@ -27,9 +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.api.types.Workflow; -import org.openworkflow.impl.WorkflowApplication; -import org.openworkflow.impl.WorkflowException; +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/org/openworkflow/impl/test/SubWorkflowTest.java b/impl/test/src/test/java/org/openworkflow/sdk/impl/test/SubWorkflowTest.java similarity index 95% rename from impl/test/src/test/java/org/openworkflow/impl/test/SubWorkflowTest.java rename to impl/test/src/test/java/org/openworkflow/sdk/impl/test/SubWorkflowTest.java index ef20ed5c4..9778564f1 100644 --- a/impl/test/src/test/java/org/openworkflow/impl/test/SubWorkflowTest.java +++ b/impl/test/src/test/java/org/openworkflow/sdk/impl/test/SubWorkflowTest.java @@ -13,19 +13,19 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.test; +package org.openworkflow.sdk.impl.test; import static org.hamcrest.MatcherAssert.assertThat; import static org.hamcrest.Matchers.equalTo; import static org.hamcrest.Matchers.is; -import static org.openworkflow.api.WorkflowReader.readWorkflowFromClasspath; +import static org.openworkflow.sdk.api.WorkflowReader.readWorkflowFromClasspath; import java.util.Map; import org.junit.jupiter.api.Test; -import org.openworkflow.api.types.Workflow; -import org.openworkflow.fluent.spec.WorkflowBuilder; -import org.openworkflow.fluent.spec.dsl.DSL; -import org.openworkflow.impl.WorkflowApplication; +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/org/openworkflow/impl/test/TaskCounterPerInstanceListener.java b/impl/test/src/test/java/org/openworkflow/sdk/impl/test/TaskCounterPerInstanceListener.java similarity index 84% rename from impl/test/src/test/java/org/openworkflow/impl/test/TaskCounterPerInstanceListener.java rename to impl/test/src/test/java/org/openworkflow/sdk/impl/test/TaskCounterPerInstanceListener.java index 506963cd5..299a5a9f7 100644 --- a/impl/test/src/test/java/org/openworkflow/impl/test/TaskCounterPerInstanceListener.java +++ b/impl/test/src/test/java/org/openworkflow/sdk/impl/test/TaskCounterPerInstanceListener.java @@ -13,15 +13,15 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.test; +package org.openworkflow.sdk.impl.test; import java.util.Map; import java.util.concurrent.ConcurrentHashMap; -import org.openworkflow.impl.lifecycle.TaskCompletedEvent; -import org.openworkflow.impl.lifecycle.TaskRetriedEvent; -import org.openworkflow.impl.lifecycle.TaskStartedEvent; -import org.openworkflow.impl.lifecycle.WorkflowEvent; -import org.openworkflow.impl.lifecycle.WorkflowExecutionListener; +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/org/openworkflow/impl/test/UndefinedAuthReferenceTest.java b/impl/test/src/test/java/org/openworkflow/sdk/impl/test/UndefinedAuthReferenceTest.java similarity index 90% rename from impl/test/src/test/java/org/openworkflow/impl/test/UndefinedAuthReferenceTest.java rename to impl/test/src/test/java/org/openworkflow/sdk/impl/test/UndefinedAuthReferenceTest.java index 5f4e85c8b..18e94425e 100644 --- a/impl/test/src/test/java/org/openworkflow/impl/test/UndefinedAuthReferenceTest.java +++ b/impl/test/src/test/java/org/openworkflow/sdk/impl/test/UndefinedAuthReferenceTest.java @@ -13,16 +13,16 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.test; +package org.openworkflow.sdk.impl.test; import static org.assertj.core.api.Assertions.assertThatThrownBy; import java.net.URI; import org.junit.jupiter.api.Test; -import org.openworkflow.api.types.Workflow; -import org.openworkflow.fluent.spec.WorkflowBuilder; -import org.openworkflow.fluent.spec.dsl.DSL; -import org.openworkflow.impl.WorkflowApplication; +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/org/openworkflow/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/org/openworkflow/impl/test/WaitExecutorTest.java rename to impl/test/src/test/java/org/openworkflow/sdk/impl/test/WaitExecutorTest.java index 6626639a1..ae734e641 100644 --- a/impl/test/src/test/java/org/openworkflow/impl/test/WaitExecutorTest.java +++ b/impl/test/src/test/java/org/openworkflow/sdk/impl/test/WaitExecutorTest.java @@ -13,12 +13,12 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.test; +package org.openworkflow.sdk.impl.test; 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.api.WorkflowReader.readWorkflowFromClasspath; +import static org.openworkflow.sdk.api.WorkflowReader.readWorkflowFromClasspath; import java.io.IOException; import java.time.Duration; @@ -29,14 +29,14 @@ import org.junit.jupiter.api.BeforeAll; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; -import org.openworkflow.api.types.TimeoutAfter; -import org.openworkflow.api.types.Workflow; -import org.openworkflow.fluent.spec.WorkflowBuilder; -import org.openworkflow.fluent.spec.dsl.DSL; -import org.openworkflow.impl.WorkflowApplication; -import org.openworkflow.impl.WorkflowInstance; -import org.openworkflow.impl.WorkflowModel; -import org.openworkflow.impl.WorkflowStatus; +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/org/openworkflow/impl/test/WorkflowDefinitionTest.java b/impl/test/src/test/java/org/openworkflow/sdk/impl/test/WorkflowDefinitionTest.java similarity index 93% rename from impl/test/src/test/java/org/openworkflow/impl/test/WorkflowDefinitionTest.java rename to impl/test/src/test/java/org/openworkflow/sdk/impl/test/WorkflowDefinitionTest.java index 7b1726840..8a45eeae6 100644 --- a/impl/test/src/test/java/org/openworkflow/impl/test/WorkflowDefinitionTest.java +++ b/impl/test/src/test/java/org/openworkflow/sdk/impl/test/WorkflowDefinitionTest.java @@ -13,12 +13,12 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.test; +package org.openworkflow.sdk.impl.test; import static org.assertj.core.api.Assertions.assertThat; import static org.assertj.core.api.Assertions.catchThrowableOfType; -import static org.openworkflow.api.WorkflowReader.readWorkflowFromClasspath; -import static org.openworkflow.api.WorkflowReader.validation; +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; @@ -34,12 +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.impl.WorkflowApplication; -import org.openworkflow.impl.WorkflowDefinition; -import org.openworkflow.impl.WorkflowException; -import org.openworkflow.impl.WorkflowInstance; -import org.openworkflow.impl.WorkflowModel; -import org.openworkflow.impl.jackson.JsonUtils; +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://openworkflow.cloud/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/org/openworkflow/impl/test/WorkflowExecutionListenerOutputTest.java b/impl/test/src/test/java/org/openworkflow/sdk/impl/test/WorkflowExecutionListenerOutputTest.java similarity index 83% rename from impl/test/src/test/java/org/openworkflow/impl/test/WorkflowExecutionListenerOutputTest.java rename to impl/test/src/test/java/org/openworkflow/sdk/impl/test/WorkflowExecutionListenerOutputTest.java index efa5b3373..fcc5e09a7 100644 --- a/impl/test/src/test/java/org/openworkflow/impl/test/WorkflowExecutionListenerOutputTest.java +++ b/impl/test/src/test/java/org/openworkflow/sdk/impl/test/WorkflowExecutionListenerOutputTest.java @@ -13,19 +13,19 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.test; +package org.openworkflow.sdk.impl.test; import static org.assertj.core.api.Assertions.assertThat; -import static org.openworkflow.api.WorkflowReader.readWorkflowFromClasspath; +import static org.openworkflow.sdk.api.WorkflowReader.readWorkflowFromClasspath; import java.io.IOException; import java.util.Map; import java.util.concurrent.atomic.AtomicReference; import org.junit.jupiter.api.Test; -import org.openworkflow.impl.WorkflowApplication; -import org.openworkflow.impl.WorkflowModel; -import org.openworkflow.impl.lifecycle.WorkflowCompletedEvent; -import org.openworkflow.impl.lifecycle.WorkflowExecutionListener; +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 - * org.openworkflow.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/org/openworkflow/impl/test/WorkflowInstanceIdTest.java b/impl/test/src/test/java/org/openworkflow/sdk/impl/test/WorkflowInstanceIdTest.java similarity index 84% rename from impl/test/src/test/java/org/openworkflow/impl/test/WorkflowInstanceIdTest.java rename to impl/test/src/test/java/org/openworkflow/sdk/impl/test/WorkflowInstanceIdTest.java index 440c53b8a..63cff98e9 100644 --- a/impl/test/src/test/java/org/openworkflow/impl/test/WorkflowInstanceIdTest.java +++ b/impl/test/src/test/java/org/openworkflow/sdk/impl/test/WorkflowInstanceIdTest.java @@ -13,17 +13,17 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.test; +package org.openworkflow.sdk.impl.test; import static org.assertj.core.api.Assertions.assertThat; -import static org.openworkflow.api.WorkflowReader.readWorkflowFromClasspath; +import static org.openworkflow.sdk.api.WorkflowReader.readWorkflowFromClasspath; import java.io.IOException; import java.util.Map; import org.junit.jupiter.api.Test; -import org.openworkflow.impl.WorkflowApplication; -import org.openworkflow.impl.WorkflowDefinition; -import org.openworkflow.impl.WorkflowInstance; +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/org/openworkflow/impl/test/grpc/GrpcBiDirectionalStreamingTest.java b/impl/test/src/test/java/org/openworkflow/sdk/impl/test/grpc/GrpcBiDirectionalStreamingTest.java similarity index 85% rename from impl/test/src/test/java/org/openworkflow/impl/test/grpc/GrpcBiDirectionalStreamingTest.java rename to impl/test/src/test/java/org/openworkflow/sdk/impl/test/grpc/GrpcBiDirectionalStreamingTest.java index a3dfa0106..2a44e00d9 100644 --- a/impl/test/src/test/java/org/openworkflow/impl/test/grpc/GrpcBiDirectionalStreamingTest.java +++ b/impl/test/src/test/java/org/openworkflow/sdk/impl/test/grpc/GrpcBiDirectionalStreamingTest.java @@ -13,11 +13,11 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.test.grpc; +package org.openworkflow.sdk.impl.test.grpc; import static org.assertj.core.api.Assertions.assertThat; -import static org.openworkflow.api.WorkflowReader.readWorkflowFromClasspath; -import static org.openworkflow.fluent.spec.dsl.DSL.*; +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; @@ -33,15 +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.api.WorkflowReader; -import org.openworkflow.api.types.Workflow; -import org.openworkflow.fluent.spec.WorkflowBuilder; -import org.openworkflow.impl.WorkflowApplication; -import org.openworkflow.impl.WorkflowDefinition; -import org.openworkflow.impl.WorkflowDefinitionId; -import org.openworkflow.impl.WorkflowModel; -import org.openworkflow.impl.test.grpc.handlers.ContributorBiDiStreamingHandler; -import org.openworkflow.impl.test.junit.DisabledIfProtocUnavailable; +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/org/openworkflow/impl/test/grpc/GrpcClientStreamingTest.java b/impl/test/src/test/java/org/openworkflow/sdk/impl/test/grpc/GrpcClientStreamingTest.java similarity index 84% rename from impl/test/src/test/java/org/openworkflow/impl/test/grpc/GrpcClientStreamingTest.java rename to impl/test/src/test/java/org/openworkflow/sdk/impl/test/grpc/GrpcClientStreamingTest.java index a4e9efdc7..29433f433 100644 --- a/impl/test/src/test/java/org/openworkflow/impl/test/grpc/GrpcClientStreamingTest.java +++ b/impl/test/src/test/java/org/openworkflow/sdk/impl/test/grpc/GrpcClientStreamingTest.java @@ -13,11 +13,11 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.test.grpc; +package org.openworkflow.sdk.impl.test.grpc; import static org.assertj.core.api.Assertions.assertThat; -import static org.openworkflow.api.WorkflowReader.readWorkflowFromClasspath; -import static org.openworkflow.fluent.spec.dsl.DSL.*; +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; @@ -33,14 +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.api.WorkflowReader; -import org.openworkflow.api.types.Workflow; -import org.openworkflow.fluent.spec.WorkflowBuilder; -import org.openworkflow.impl.WorkflowApplication; -import org.openworkflow.impl.WorkflowDefinition; -import org.openworkflow.impl.WorkflowDefinitionId; -import org.openworkflow.impl.test.grpc.handlers.ContributorClientStreamingHandler; -import org.openworkflow.impl.test.junit.DisabledIfProtocUnavailable; +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/org/openworkflow/impl/test/grpc/GrpcServerStreamingTest.java b/impl/test/src/test/java/org/openworkflow/sdk/impl/test/grpc/GrpcServerStreamingTest.java similarity index 85% rename from impl/test/src/test/java/org/openworkflow/impl/test/grpc/GrpcServerStreamingTest.java rename to impl/test/src/test/java/org/openworkflow/sdk/impl/test/grpc/GrpcServerStreamingTest.java index 4db6ac64e..c5dc89aff 100644 --- a/impl/test/src/test/java/org/openworkflow/impl/test/grpc/GrpcServerStreamingTest.java +++ b/impl/test/src/test/java/org/openworkflow/sdk/impl/test/grpc/GrpcServerStreamingTest.java @@ -13,11 +13,11 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.test.grpc; +package org.openworkflow.sdk.impl.test.grpc; import static org.assertj.core.api.Assertions.assertThat; -import static org.openworkflow.api.WorkflowReader.readWorkflowFromClasspath; -import static org.openworkflow.fluent.spec.dsl.DSL.*; +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; @@ -34,15 +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.api.WorkflowReader; -import org.openworkflow.api.types.Workflow; -import org.openworkflow.fluent.spec.WorkflowBuilder; -import org.openworkflow.impl.WorkflowApplication; -import org.openworkflow.impl.WorkflowDefinition; -import org.openworkflow.impl.WorkflowDefinitionId; -import org.openworkflow.impl.WorkflowModel; -import org.openworkflow.impl.test.grpc.handlers.ContributorServerStreamingHandler; -import org.openworkflow.impl.test.junit.DisabledIfProtocUnavailable; +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/org/openworkflow/impl/test/grpc/GrpcUnaryArgsExprTest.java b/impl/test/src/test/java/org/openworkflow/sdk/impl/test/grpc/GrpcUnaryArgsExprTest.java similarity index 84% rename from impl/test/src/test/java/org/openworkflow/impl/test/grpc/GrpcUnaryArgsExprTest.java rename to impl/test/src/test/java/org/openworkflow/sdk/impl/test/grpc/GrpcUnaryArgsExprTest.java index dd7f81f77..0fe96fb34 100644 --- a/impl/test/src/test/java/org/openworkflow/impl/test/grpc/GrpcUnaryArgsExprTest.java +++ b/impl/test/src/test/java/org/openworkflow/sdk/impl/test/grpc/GrpcUnaryArgsExprTest.java @@ -13,11 +13,11 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.test.grpc; +package org.openworkflow.sdk.impl.test.grpc; import static org.assertj.core.api.Assertions.assertThat; -import static org.openworkflow.api.WorkflowReader.readWorkflowFromClasspath; -import static org.openworkflow.fluent.spec.dsl.DSL.*; +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; @@ -32,15 +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.api.WorkflowReader; -import org.openworkflow.api.types.Workflow; -import org.openworkflow.fluent.spec.WorkflowBuilder; -import org.openworkflow.impl.WorkflowApplication; -import org.openworkflow.impl.WorkflowDefinition; -import org.openworkflow.impl.WorkflowDefinitionId; -import org.openworkflow.impl.jackson.JsonUtils; -import org.openworkflow.impl.test.grpc.handlers.ContributorUnaryArgsExprHandler; -import org.openworkflow.impl.test.junit.DisabledIfProtocUnavailable; +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/org/openworkflow/impl/test/grpc/GrpcUnaryTest.java b/impl/test/src/test/java/org/openworkflow/sdk/impl/test/grpc/GrpcUnaryTest.java similarity index 85% rename from impl/test/src/test/java/org/openworkflow/impl/test/grpc/GrpcUnaryTest.java rename to impl/test/src/test/java/org/openworkflow/sdk/impl/test/grpc/GrpcUnaryTest.java index d431f5497..57e8ed5ef 100644 --- a/impl/test/src/test/java/org/openworkflow/impl/test/grpc/GrpcUnaryTest.java +++ b/impl/test/src/test/java/org/openworkflow/sdk/impl/test/grpc/GrpcUnaryTest.java @@ -13,11 +13,11 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.test.grpc; +package org.openworkflow.sdk.impl.test.grpc; import static org.assertj.core.api.Assertions.assertThat; -import static org.openworkflow.api.WorkflowReader.readWorkflowFromClasspath; -import static org.openworkflow.fluent.spec.dsl.DSL.*; +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; @@ -32,15 +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.api.WorkflowReader; -import org.openworkflow.api.types.Workflow; -import org.openworkflow.fluent.spec.WorkflowBuilder; -import org.openworkflow.impl.WorkflowApplication; -import org.openworkflow.impl.WorkflowDefinition; -import org.openworkflow.impl.WorkflowDefinitionId; -import org.openworkflow.impl.jackson.JsonUtils; -import org.openworkflow.impl.test.grpc.handlers.PersonUnaryHandler; -import org.openworkflow.impl.test.junit.DisabledIfProtocUnavailable; +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/org/openworkflow/impl/test/grpc/handlers/ContributorBiDiStreamingHandler.java b/impl/test/src/test/java/org/openworkflow/sdk/impl/test/grpc/handlers/ContributorBiDiStreamingHandler.java similarity index 86% rename from impl/test/src/test/java/org/openworkflow/impl/test/grpc/handlers/ContributorBiDiStreamingHandler.java rename to impl/test/src/test/java/org/openworkflow/sdk/impl/test/grpc/handlers/ContributorBiDiStreamingHandler.java index 59322f9c3..8dd205673 100644 --- a/impl/test/src/test/java/org/openworkflow/impl/test/grpc/handlers/ContributorBiDiStreamingHandler.java +++ b/impl/test/src/test/java/org/openworkflow/sdk/impl/test/grpc/handlers/ContributorBiDiStreamingHandler.java @@ -13,11 +13,11 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.test.grpc.handlers; +package org.openworkflow.sdk.impl.test.grpc.handlers; import io.grpc.stub.StreamObserver; -import org.openworkflow.impl.executors.grpc.contributors.BiDirectionalStreamingGrpc.BiDirectionalStreamingImplBase; -import org.openworkflow.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/org/openworkflow/impl/test/grpc/handlers/ContributorClientStreamingHandler.java b/impl/test/src/test/java/org/openworkflow/sdk/impl/test/grpc/handlers/ContributorClientStreamingHandler.java similarity index 90% rename from impl/test/src/test/java/org/openworkflow/impl/test/grpc/handlers/ContributorClientStreamingHandler.java rename to impl/test/src/test/java/org/openworkflow/sdk/impl/test/grpc/handlers/ContributorClientStreamingHandler.java index 168cb91ef..d3819ff54 100644 --- a/impl/test/src/test/java/org/openworkflow/impl/test/grpc/handlers/ContributorClientStreamingHandler.java +++ b/impl/test/src/test/java/org/openworkflow/sdk/impl/test/grpc/handlers/ContributorClientStreamingHandler.java @@ -13,15 +13,15 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.test.grpc.handlers; +package org.openworkflow.sdk.impl.test.grpc.handlers; import io.grpc.stub.StreamObserver; import java.util.Map; import java.util.Set; import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.atomic.LongAdder; -import org.openworkflow.impl.executors.grpc.contributors.ClientStreamingGrpc.ClientStreamingImplBase; -import org.openworkflow.impl.executors.grpc.contributors.Contributors; +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/org/openworkflow/impl/test/grpc/handlers/ContributorServerStreamingHandler.java b/impl/test/src/test/java/org/openworkflow/sdk/impl/test/grpc/handlers/ContributorServerStreamingHandler.java similarity index 84% rename from impl/test/src/test/java/org/openworkflow/impl/test/grpc/handlers/ContributorServerStreamingHandler.java rename to impl/test/src/test/java/org/openworkflow/sdk/impl/test/grpc/handlers/ContributorServerStreamingHandler.java index 2e75f24b7..2ae9c42d1 100644 --- a/impl/test/src/test/java/org/openworkflow/impl/test/grpc/handlers/ContributorServerStreamingHandler.java +++ b/impl/test/src/test/java/org/openworkflow/sdk/impl/test/grpc/handlers/ContributorServerStreamingHandler.java @@ -13,11 +13,11 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.test.grpc.handlers; +package org.openworkflow.sdk.impl.test.grpc.handlers; import io.grpc.stub.StreamObserver; -import org.openworkflow.impl.executors.grpc.contributors.Contributors; -import org.openworkflow.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/org/openworkflow/impl/test/grpc/handlers/ContributorUnaryArgsExprHandler.java b/impl/test/src/test/java/org/openworkflow/sdk/impl/test/grpc/handlers/ContributorUnaryArgsExprHandler.java similarity index 82% rename from impl/test/src/test/java/org/openworkflow/impl/test/grpc/handlers/ContributorUnaryArgsExprHandler.java rename to impl/test/src/test/java/org/openworkflow/sdk/impl/test/grpc/handlers/ContributorUnaryArgsExprHandler.java index fd65f0fe8..66a081e2f 100644 --- a/impl/test/src/test/java/org/openworkflow/impl/test/grpc/handlers/ContributorUnaryArgsExprHandler.java +++ b/impl/test/src/test/java/org/openworkflow/sdk/impl/test/grpc/handlers/ContributorUnaryArgsExprHandler.java @@ -13,12 +13,12 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.test.grpc.handlers; +package org.openworkflow.sdk.impl.test.grpc.handlers; -import static org.openworkflow.impl.executors.grpc.contributors.UnaryArgsExprGrpc.UnaryArgsExprImplBase; +import static org.openworkflow.sdk.impl.executors.grpc.contributors.UnaryArgsExprGrpc.UnaryArgsExprImplBase; import io.grpc.stub.StreamObserver; -import org.openworkflow.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/org/openworkflow/impl/test/grpc/handlers/PersonUnaryHandler.java b/impl/test/src/test/java/org/openworkflow/sdk/impl/test/grpc/handlers/PersonUnaryHandler.java similarity index 95% rename from impl/test/src/test/java/org/openworkflow/impl/test/grpc/handlers/PersonUnaryHandler.java rename to impl/test/src/test/java/org/openworkflow/sdk/impl/test/grpc/handlers/PersonUnaryHandler.java index 87a701bd5..11450d6f8 100644 --- a/impl/test/src/test/java/org/openworkflow/impl/test/grpc/handlers/PersonUnaryHandler.java +++ b/impl/test/src/test/java/org/openworkflow/sdk/impl/test/grpc/handlers/PersonUnaryHandler.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.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/org/openworkflow/impl/test/junit/BinaryCheckUtil.java b/impl/test/src/test/java/org/openworkflow/sdk/impl/test/junit/BinaryCheckUtil.java similarity index 97% rename from impl/test/src/test/java/org/openworkflow/impl/test/junit/BinaryCheckUtil.java rename to impl/test/src/test/java/org/openworkflow/sdk/impl/test/junit/BinaryCheckUtil.java index 0bf9bd6bc..6ae46d198 100644 --- a/impl/test/src/test/java/org/openworkflow/impl/test/junit/BinaryCheckUtil.java +++ b/impl/test/src/test/java/org/openworkflow/sdk/impl/test/junit/BinaryCheckUtil.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.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/org/openworkflow/impl/test/junit/DisabledIfProtocUnavailable.java b/impl/test/src/test/java/org/openworkflow/sdk/impl/test/junit/DisabledIfProtocUnavailable.java similarity index 95% rename from impl/test/src/test/java/org/openworkflow/impl/test/junit/DisabledIfProtocUnavailable.java rename to impl/test/src/test/java/org/openworkflow/sdk/impl/test/junit/DisabledIfProtocUnavailable.java index f8a7b1fc3..107c5760a 100644 --- a/impl/test/src/test/java/org/openworkflow/impl/test/junit/DisabledIfProtocUnavailable.java +++ b/impl/test/src/test/java/org/openworkflow/sdk/impl/test/junit/DisabledIfProtocUnavailable.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.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/org/openworkflow/impl/test/junit/DisabledIfPythonUnavailable.java b/impl/test/src/test/java/org/openworkflow/sdk/impl/test/junit/DisabledIfPythonUnavailable.java similarity index 95% rename from impl/test/src/test/java/org/openworkflow/impl/test/junit/DisabledIfPythonUnavailable.java rename to impl/test/src/test/java/org/openworkflow/sdk/impl/test/junit/DisabledIfPythonUnavailable.java index 89254a7df..86ab111a5 100644 --- a/impl/test/src/test/java/org/openworkflow/impl/test/junit/DisabledIfPythonUnavailable.java +++ b/impl/test/src/test/java/org/openworkflow/sdk/impl/test/junit/DisabledIfPythonUnavailable.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.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/org/openworkflow/impl/test/junit/ProtocCheckCondition.java b/impl/test/src/test/java/org/openworkflow/sdk/impl/test/junit/ProtocCheckCondition.java similarity index 93% rename from impl/test/src/test/java/org/openworkflow/impl/test/junit/ProtocCheckCondition.java rename to impl/test/src/test/java/org/openworkflow/sdk/impl/test/junit/ProtocCheckCondition.java index 4de32cee0..61fa3be7c 100644 --- a/impl/test/src/test/java/org/openworkflow/impl/test/junit/ProtocCheckCondition.java +++ b/impl/test/src/test/java/org/openworkflow/sdk/impl/test/junit/ProtocCheckCondition.java @@ -13,9 +13,9 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.test.junit; +package org.openworkflow.sdk.impl.test.junit; -import static org.openworkflow.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/org/openworkflow/impl/test/junit/PythonCheckCondition.java b/impl/test/src/test/java/org/openworkflow/sdk/impl/test/junit/PythonCheckCondition.java similarity index 91% rename from impl/test/src/test/java/org/openworkflow/impl/test/junit/PythonCheckCondition.java rename to impl/test/src/test/java/org/openworkflow/sdk/impl/test/junit/PythonCheckCondition.java index 90380d173..0e016077e 100644 --- a/impl/test/src/test/java/org/openworkflow/impl/test/junit/PythonCheckCondition.java +++ b/impl/test/src/test/java/org/openworkflow/sdk/impl/test/junit/PythonCheckCondition.java @@ -13,9 +13,9 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.test.junit; +package org.openworkflow.sdk.impl.test.junit; -import static org.openworkflow.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-http-endpoint-interpolation.yaml b/impl/test/src/test/resources/workflows-samples/call-http-endpoint-interpolation.yaml index 40687798b..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://openworkflow.cloud/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 b9af0b11e..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://openworkflow.cloud/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 8c24f05da..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://openworkflow.cloud/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 b570ea64c..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 org.openworkflow.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 6d32f18de..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://openworkflow.cloud/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 0e6caca74..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://openworkflow.cloud/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://openworkflow.cloud/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 6defe5d85..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://openworkflow.cloud/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 d8d6d88d9..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://openworkflow.cloud/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/try-catch-match-then.yaml b/impl/test/src/test/resources/workflows-samples/try-catch-match-then.yaml index 6a562b81f..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://openworkflow.cloud/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 8305dac42..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://openworkflow.cloud/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 d859532cc..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://openworkflow.cloud/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 4d007bf15..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://openworkflow.cloud/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 2d622bb1f..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://openworkflow.cloud/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://openworkflow.cloud/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 fac2ef9b2..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://openworkflow.cloud/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 b16ba2d90..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://openworkflow.cloud/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/test/src/test/resources/workflows-samples/validation_test.yaml b/impl/test/src/test/resources/workflows-samples/validation_test.yaml deleted file mode 100644 index d681575ff..000000000 --- a/impl/test/src/test/resources/workflows-samples/validation_test.yaml +++ /dev/null @@ -1,21 +0,0 @@ -document: - dsl: '1.1.0' - namespace: qe - name: greet - version: '1.1.0' - -input: - schema: - format: json - document: - type: object - required: - - name - properties: - name: - type: string - -do: - - buildGreeting: - set: - message: '${ "Hello, " + .name + "!" }' \ No newline at end of file diff --git a/impl/validation/pom.xml b/impl/validation/pom.xml index 8e6d8b7fe..d22575295 100644 --- a/impl/validation/pom.xml +++ b/impl/validation/pom.xml @@ -1,7 +1,7 @@ 4.0.0 - org.openworkflow + org.openworkflow.sdk openworkflow-impl 8.0.0-SNAPSHOT @@ -13,15 +13,15 @@ json-schema-validator - org.openworkflow + org.openworkflow.sdk openworkflow-api - org.openworkflow + org.openworkflow.sdk openworkflow-impl-core - org.openworkflow + org.openworkflow.sdk openworkflow-impl-json diff --git a/impl/validation/src/main/java/org/openworkflow/impl/jackson/schema/JsonSchemaValidator.java b/impl/validation/src/main/java/org/openworkflow/sdk/impl/jackson/schema/JsonSchemaValidator.java similarity index 93% rename from impl/validation/src/main/java/org/openworkflow/impl/jackson/schema/JsonSchemaValidator.java rename to impl/validation/src/main/java/org/openworkflow/sdk/impl/jackson/schema/JsonSchemaValidator.java index 76123a514..2e01b2400 100644 --- a/impl/validation/src/main/java/org/openworkflow/impl/jackson/schema/JsonSchemaValidator.java +++ b/impl/validation/src/main/java/org/openworkflow/sdk/impl/jackson/schema/JsonSchemaValidator.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.jackson.schema; +package org.openworkflow.sdk.impl.jackson.schema; import com.fasterxml.jackson.databind.JsonNode; import com.networknt.schema.Error; @@ -23,7 +23,7 @@ import java.util.Collection; import java.util.Optional; import java.util.stream.Collectors; -import org.openworkflow.impl.schema.AbstractSchemaValidator; +import org.openworkflow.sdk.impl.schema.AbstractSchemaValidator; public class JsonSchemaValidator extends AbstractSchemaValidator { diff --git a/impl/validation/src/main/java/org/openworkflow/impl/jackson/schema/JsonSchemaValidatorFactory.java b/impl/validation/src/main/java/org/openworkflow/sdk/impl/jackson/schema/JsonSchemaValidatorFactory.java similarity index 77% rename from impl/validation/src/main/java/org/openworkflow/impl/jackson/schema/JsonSchemaValidatorFactory.java rename to impl/validation/src/main/java/org/openworkflow/sdk/impl/jackson/schema/JsonSchemaValidatorFactory.java index 03b733299..e7de1cbe5 100644 --- a/impl/validation/src/main/java/org/openworkflow/impl/jackson/schema/JsonSchemaValidatorFactory.java +++ b/impl/validation/src/main/java/org/openworkflow/sdk/impl/jackson/schema/JsonSchemaValidatorFactory.java @@ -13,18 +13,18 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.impl.jackson.schema; +package org.openworkflow.sdk.impl.jackson.schema; import com.fasterxml.jackson.databind.ObjectMapper; import java.io.IOException; import java.io.InputStream; import java.io.UncheckedIOException; -import org.openworkflow.api.WorkflowFormat; -import org.openworkflow.api.types.SchemaInline; -import org.openworkflow.impl.jackson.JsonUtils; -import org.openworkflow.impl.resources.ExternalResourceHandler; -import org.openworkflow.impl.schema.SchemaValidator; -import org.openworkflow.impl.schema.SchemaValidatorFactory; +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/org.openworkflow.impl.schema.SchemaValidatorFactory b/impl/validation/src/main/resources/META-INF/services/org.openworkflow.impl.schema.SchemaValidatorFactory deleted file mode 100644 index 1a2071b5f..000000000 --- a/impl/validation/src/main/resources/META-INF/services/org.openworkflow.impl.schema.SchemaValidatorFactory +++ /dev/null @@ -1 +0,0 @@ -org.openworkflow.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 89cbf03bf..0e1287a76 100644 --- a/mermaid/README.md +++ b/mermaid/README.md @@ -1,6 +1,6 @@ # CNCF Open Workflow SDK Java — Mermaid Exporter -Generate **Mermaid** diagrams for [Open Workflow](https://openworkflow.cloud/) 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,7 +32,7 @@ Add the dependency to the module where you want to render diagrams. ```xml - org.openworkflow + org.openworkflow.sdk openworkflow-mermaid YOUR_VERSION @@ -44,7 +44,7 @@ Add the dependency to the module where you want to render diagrams.

Gradle (Kotlin) ```kotlin -implementation("org.openworkflow:openworkflow-mermaid:YOUR_VERSION") +implementation("org.openworkflow.sdk:openworkflow-mermaid:YOUR_VERSION") ``` @@ -58,8 +58,8 @@ implementation("org.openworkflow:openworkflow-mermaid:YOUR_VERSION") ### 1) From a `Workflow` instance ```java -import org.openworkflow.api.types.Workflow; -import org.openworkflow.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 org.openworkflow.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 org.openworkflow.mermaid.Mermaid; -import org.openworkflow.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 4270239a9..11fe8eaa5 100644 --- a/mermaid/pom.xml +++ b/mermaid/pom.xml @@ -2,7 +2,7 @@ 4.0.0 - org.openworkflow + org.openworkflow.sdk openworkflow-parent 8.0.0-SNAPSHOT @@ -19,11 +19,11 @@ - org.openworkflow + org.openworkflow.sdk openworkflow-types - org.openworkflow + org.openworkflow.sdk openworkflow-api @@ -54,7 +54,7 @@ test
- org.openworkflow + org.openworkflow.sdk openworkflow-impl-test ${project.version} tests diff --git a/mermaid/src/main/java/org/openworkflow/mermaid/CallNode.java b/mermaid/src/main/java/org/openworkflow/sdk/mermaid/CallNode.java similarity index 93% rename from mermaid/src/main/java/org/openworkflow/mermaid/CallNode.java rename to mermaid/src/main/java/org/openworkflow/sdk/mermaid/CallNode.java index 58aad7732..8e21e954c 100644 --- a/mermaid/src/main/java/org/openworkflow/mermaid/CallNode.java +++ b/mermaid/src/main/java/org/openworkflow/sdk/mermaid/CallNode.java @@ -13,11 +13,11 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.mermaid; +package org.openworkflow.sdk.mermaid; -import org.openworkflow.api.types.CallHTTP; -import org.openworkflow.api.types.CallTask; -import org.openworkflow.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/org/openworkflow/mermaid/DefaultNodeRenderer.java b/mermaid/src/main/java/org/openworkflow/sdk/mermaid/DefaultNodeRenderer.java similarity index 97% rename from mermaid/src/main/java/org/openworkflow/mermaid/DefaultNodeRenderer.java rename to mermaid/src/main/java/org/openworkflow/sdk/mermaid/DefaultNodeRenderer.java index 790e3852e..dcabb0ea6 100644 --- a/mermaid/src/main/java/org/openworkflow/mermaid/DefaultNodeRenderer.java +++ b/mermaid/src/main/java/org/openworkflow/sdk/mermaid/DefaultNodeRenderer.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.mermaid; +package org.openworkflow.sdk.mermaid; public class DefaultNodeRenderer implements NodeRenderer { diff --git a/mermaid/src/main/java/org/openworkflow/mermaid/Edge.java b/mermaid/src/main/java/org/openworkflow/sdk/mermaid/Edge.java similarity index 98% rename from mermaid/src/main/java/org/openworkflow/mermaid/Edge.java rename to mermaid/src/main/java/org/openworkflow/sdk/mermaid/Edge.java index c880dbb44..0bc7007ba 100644 --- a/mermaid/src/main/java/org/openworkflow/mermaid/Edge.java +++ b/mermaid/src/main/java/org/openworkflow/sdk/mermaid/Edge.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.mermaid; +package org.openworkflow.sdk.mermaid; import java.util.Objects; diff --git a/mermaid/src/main/java/org/openworkflow/mermaid/EmitNode.java b/mermaid/src/main/java/org/openworkflow/sdk/mermaid/EmitNode.java similarity index 89% rename from mermaid/src/main/java/org/openworkflow/mermaid/EmitNode.java rename to mermaid/src/main/java/org/openworkflow/sdk/mermaid/EmitNode.java index c2b4ff859..0f4e93be0 100644 --- a/mermaid/src/main/java/org/openworkflow/mermaid/EmitNode.java +++ b/mermaid/src/main/java/org/openworkflow/sdk/mermaid/EmitNode.java @@ -13,10 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.mermaid; +package org.openworkflow.sdk.mermaid; -import org.openworkflow.api.types.EmitTask; -import org.openworkflow.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/org/openworkflow/mermaid/EndpointStringify.java b/mermaid/src/main/java/org/openworkflow/sdk/mermaid/EndpointStringify.java similarity index 92% rename from mermaid/src/main/java/org/openworkflow/mermaid/EndpointStringify.java rename to mermaid/src/main/java/org/openworkflow/sdk/mermaid/EndpointStringify.java index 5888c3c62..8dd541ad1 100644 --- a/mermaid/src/main/java/org/openworkflow/mermaid/EndpointStringify.java +++ b/mermaid/src/main/java/org/openworkflow/sdk/mermaid/EndpointStringify.java @@ -13,17 +13,17 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.mermaid; +package org.openworkflow.sdk.mermaid; import java.net.URI; -import org.openworkflow.api.types.AuthenticationPolicy; -import org.openworkflow.api.types.AuthenticationPolicyReference; -import org.openworkflow.api.types.AuthenticationPolicyUnion; -import org.openworkflow.api.types.Endpoint; -import org.openworkflow.api.types.EndpointConfiguration; -import org.openworkflow.api.types.EndpointUri; -import org.openworkflow.api.types.ReferenceableAuthenticationPolicy; -import org.openworkflow.api.types.UriTemplate; +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/org/openworkflow/mermaid/ForNode.java b/mermaid/src/main/java/org/openworkflow/sdk/mermaid/ForNode.java similarity index 93% rename from mermaid/src/main/java/org/openworkflow/mermaid/ForNode.java rename to mermaid/src/main/java/org/openworkflow/sdk/mermaid/ForNode.java index 34452ffee..19e1170f2 100644 --- a/mermaid/src/main/java/org/openworkflow/mermaid/ForNode.java +++ b/mermaid/src/main/java/org/openworkflow/sdk/mermaid/ForNode.java @@ -13,10 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.mermaid; +package org.openworkflow.sdk.mermaid; -import org.openworkflow.api.types.ForTask; -import org.openworkflow.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/org/openworkflow/mermaid/ForkNode.java b/mermaid/src/main/java/org/openworkflow/sdk/mermaid/ForkNode.java similarity index 94% rename from mermaid/src/main/java/org/openworkflow/mermaid/ForkNode.java rename to mermaid/src/main/java/org/openworkflow/sdk/mermaid/ForkNode.java index 1a83a14f4..5e2e1399c 100644 --- a/mermaid/src/main/java/org/openworkflow/mermaid/ForkNode.java +++ b/mermaid/src/main/java/org/openworkflow/sdk/mermaid/ForkNode.java @@ -13,13 +13,13 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.mermaid; +package org.openworkflow.sdk.mermaid; import java.util.LinkedHashMap; import java.util.List; import java.util.Map; -import org.openworkflow.api.types.ForkTask; -import org.openworkflow.api.types.TaskItem; +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/org/openworkflow/mermaid/Ids.java b/mermaid/src/main/java/org/openworkflow/sdk/mermaid/Ids.java similarity index 96% rename from mermaid/src/main/java/org/openworkflow/mermaid/Ids.java rename to mermaid/src/main/java/org/openworkflow/sdk/mermaid/Ids.java index 5e35cf499..45867d87b 100644 --- a/mermaid/src/main/java/org/openworkflow/mermaid/Ids.java +++ b/mermaid/src/main/java/org/openworkflow/sdk/mermaid/Ids.java @@ -13,14 +13,14 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.mermaid; +package org.openworkflow.sdk.mermaid; 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.api.types.TaskItem; +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/org/openworkflow/mermaid/IteratorNode.java b/mermaid/src/main/java/org/openworkflow/sdk/mermaid/IteratorNode.java similarity index 93% rename from mermaid/src/main/java/org/openworkflow/mermaid/IteratorNode.java rename to mermaid/src/main/java/org/openworkflow/sdk/mermaid/IteratorNode.java index 8cd6e6bb1..ecc714bda 100644 --- a/mermaid/src/main/java/org/openworkflow/mermaid/IteratorNode.java +++ b/mermaid/src/main/java/org/openworkflow/sdk/mermaid/IteratorNode.java @@ -13,9 +13,9 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.mermaid; +package org.openworkflow.sdk.mermaid; -import org.openworkflow.api.types.SubscriptionIterator; +import org.openworkflow.sdk.api.types.SubscriptionIterator; public class IteratorNode extends SubgraphNode { diff --git a/mermaid/src/main/java/org/openworkflow/mermaid/ListenNode.java b/mermaid/src/main/java/org/openworkflow/sdk/mermaid/ListenNode.java similarity index 94% rename from mermaid/src/main/java/org/openworkflow/mermaid/ListenNode.java rename to mermaid/src/main/java/org/openworkflow/sdk/mermaid/ListenNode.java index e251cec71..502b018e5 100644 --- a/mermaid/src/main/java/org/openworkflow/mermaid/ListenNode.java +++ b/mermaid/src/main/java/org/openworkflow/sdk/mermaid/ListenNode.java @@ -13,13 +13,13 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.mermaid; +package org.openworkflow.sdk.mermaid; import java.util.ArrayList; import java.util.List; -import org.openworkflow.api.types.ListenTask; -import org.openworkflow.api.types.ListenTo; -import org.openworkflow.api.types.TaskItem; +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/org/openworkflow/mermaid/Mermaid.java b/mermaid/src/main/java/org/openworkflow/sdk/mermaid/Mermaid.java similarity index 92% rename from mermaid/src/main/java/org/openworkflow/mermaid/Mermaid.java rename to mermaid/src/main/java/org/openworkflow/sdk/mermaid/Mermaid.java index 54eed9c51..72e451009 100644 --- a/mermaid/src/main/java/org/openworkflow/mermaid/Mermaid.java +++ b/mermaid/src/main/java/org/openworkflow/sdk/mermaid/Mermaid.java @@ -13,12 +13,12 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.mermaid; +package org.openworkflow.sdk.mermaid; import java.io.IOException; import java.util.Map; -import org.openworkflow.api.WorkflowReader; -import org.openworkflow.api.types.Workflow; +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/org/openworkflow/mermaid/MermaidGraph.java b/mermaid/src/main/java/org/openworkflow/sdk/mermaid/MermaidGraph.java similarity index 92% rename from mermaid/src/main/java/org/openworkflow/mermaid/MermaidGraph.java rename to mermaid/src/main/java/org/openworkflow/sdk/mermaid/MermaidGraph.java index 7f3247cc9..3367d5e40 100644 --- a/mermaid/src/main/java/org/openworkflow/mermaid/MermaidGraph.java +++ b/mermaid/src/main/java/org/openworkflow/sdk/mermaid/MermaidGraph.java @@ -13,16 +13,16 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.mermaid; +package org.openworkflow.sdk.mermaid; import java.util.LinkedHashMap; import java.util.List; import java.util.Map; -import org.openworkflow.api.types.CallTask; -import org.openworkflow.api.types.FlowDirective; -import org.openworkflow.api.types.FlowDirectiveEnum; -import org.openworkflow.api.types.TaskBase; -import org.openworkflow.api.types.TaskItem; +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/org/openworkflow/mermaid/MermaidInk.java b/mermaid/src/main/java/org/openworkflow/sdk/mermaid/MermaidInk.java similarity index 98% rename from mermaid/src/main/java/org/openworkflow/mermaid/MermaidInk.java rename to mermaid/src/main/java/org/openworkflow/sdk/mermaid/MermaidInk.java index 146eed52a..f0375b31f 100644 --- a/mermaid/src/main/java/org/openworkflow/mermaid/MermaidInk.java +++ b/mermaid/src/main/java/org/openworkflow/sdk/mermaid/MermaidInk.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.mermaid; +package org.openworkflow.sdk.mermaid; import java.io.ByteArrayOutputStream; import java.io.IOException; diff --git a/mermaid/src/main/java/org/openworkflow/mermaid/MermaidRenderer.java b/mermaid/src/main/java/org/openworkflow/sdk/mermaid/MermaidRenderer.java similarity index 95% rename from mermaid/src/main/java/org/openworkflow/mermaid/MermaidRenderer.java rename to mermaid/src/main/java/org/openworkflow/sdk/mermaid/MermaidRenderer.java index 4a6e2b2e8..860ce2fe9 100644 --- a/mermaid/src/main/java/org/openworkflow/mermaid/MermaidRenderer.java +++ b/mermaid/src/main/java/org/openworkflow/sdk/mermaid/MermaidRenderer.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.mermaid; +package org.openworkflow.sdk.mermaid; import java.util.Map; diff --git a/mermaid/src/main/java/org/openworkflow/mermaid/Node.java b/mermaid/src/main/java/org/openworkflow/sdk/mermaid/Node.java similarity index 98% rename from mermaid/src/main/java/org/openworkflow/mermaid/Node.java rename to mermaid/src/main/java/org/openworkflow/sdk/mermaid/Node.java index 026d0b184..5fd8950a6 100644 --- a/mermaid/src/main/java/org/openworkflow/mermaid/Node.java +++ b/mermaid/src/main/java/org/openworkflow/sdk/mermaid/Node.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.mermaid; +package org.openworkflow.sdk.mermaid; import java.io.Serializable; import java.util.Collections; diff --git a/mermaid/src/main/java/org/openworkflow/mermaid/NodeBuilder.java b/mermaid/src/main/java/org/openworkflow/sdk/mermaid/NodeBuilder.java similarity index 84% rename from mermaid/src/main/java/org/openworkflow/mermaid/NodeBuilder.java rename to mermaid/src/main/java/org/openworkflow/sdk/mermaid/NodeBuilder.java index 5cb9879c4..61b818a1a 100644 --- a/mermaid/src/main/java/org/openworkflow/mermaid/NodeBuilder.java +++ b/mermaid/src/main/java/org/openworkflow/sdk/mermaid/NodeBuilder.java @@ -13,21 +13,21 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.mermaid; +package org.openworkflow.sdk.mermaid; -import org.openworkflow.api.types.CallTask; -import org.openworkflow.api.types.DoTask; -import org.openworkflow.api.types.EmitTask; -import org.openworkflow.api.types.ForTask; -import org.openworkflow.api.types.ForkTask; -import org.openworkflow.api.types.ListenTask; -import org.openworkflow.api.types.RaiseTask; -import org.openworkflow.api.types.RunTask; -import org.openworkflow.api.types.SetTask; -import org.openworkflow.api.types.SwitchTask; -import org.openworkflow.api.types.TaskItem; -import org.openworkflow.api.types.TryTask; -import org.openworkflow.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/org/openworkflow/mermaid/NodeRenderer.java b/mermaid/src/main/java/org/openworkflow/sdk/mermaid/NodeRenderer.java similarity index 96% rename from mermaid/src/main/java/org/openworkflow/mermaid/NodeRenderer.java rename to mermaid/src/main/java/org/openworkflow/sdk/mermaid/NodeRenderer.java index cf370d6cc..92e46b5fb 100644 --- a/mermaid/src/main/java/org/openworkflow/mermaid/NodeRenderer.java +++ b/mermaid/src/main/java/org/openworkflow/sdk/mermaid/NodeRenderer.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.mermaid; +package org.openworkflow.sdk.mermaid; public interface NodeRenderer { diff --git a/mermaid/src/main/java/org/openworkflow/mermaid/NodeType.java b/mermaid/src/main/java/org/openworkflow/sdk/mermaid/NodeType.java similarity index 96% rename from mermaid/src/main/java/org/openworkflow/mermaid/NodeType.java rename to mermaid/src/main/java/org/openworkflow/sdk/mermaid/NodeType.java index 83bd626a1..29b088281 100644 --- a/mermaid/src/main/java/org/openworkflow/mermaid/NodeType.java +++ b/mermaid/src/main/java/org/openworkflow/sdk/mermaid/NodeType.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.mermaid; +package org.openworkflow.sdk.mermaid; public enum NodeType { RECT("rect"), diff --git a/mermaid/src/main/java/org/openworkflow/mermaid/RaiseNode.java b/mermaid/src/main/java/org/openworkflow/sdk/mermaid/RaiseNode.java similarity index 92% rename from mermaid/src/main/java/org/openworkflow/mermaid/RaiseNode.java rename to mermaid/src/main/java/org/openworkflow/sdk/mermaid/RaiseNode.java index b47594f8c..4c28329e6 100644 --- a/mermaid/src/main/java/org/openworkflow/mermaid/RaiseNode.java +++ b/mermaid/src/main/java/org/openworkflow/sdk/mermaid/RaiseNode.java @@ -13,9 +13,9 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.mermaid; +package org.openworkflow.sdk.mermaid; -import org.openworkflow.api.types.TaskItem; +import org.openworkflow.sdk.api.types.TaskItem; public class RaiseNode extends TaskNode { diff --git a/mermaid/src/main/java/org/openworkflow/mermaid/RunNode.java b/mermaid/src/main/java/org/openworkflow/sdk/mermaid/RunNode.java similarity index 93% rename from mermaid/src/main/java/org/openworkflow/mermaid/RunNode.java rename to mermaid/src/main/java/org/openworkflow/sdk/mermaid/RunNode.java index b37ebb5c3..404f7d253 100644 --- a/mermaid/src/main/java/org/openworkflow/mermaid/RunNode.java +++ b/mermaid/src/main/java/org/openworkflow/sdk/mermaid/RunNode.java @@ -13,10 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.mermaid; +package org.openworkflow.sdk.mermaid; -import org.openworkflow.api.types.RunTask; -import org.openworkflow.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/org/openworkflow/mermaid/SubgraphNode.java b/mermaid/src/main/java/org/openworkflow/sdk/mermaid/SubgraphNode.java similarity index 96% rename from mermaid/src/main/java/org/openworkflow/mermaid/SubgraphNode.java rename to mermaid/src/main/java/org/openworkflow/sdk/mermaid/SubgraphNode.java index d4a8a1013..e5ca3ce8b 100644 --- a/mermaid/src/main/java/org/openworkflow/mermaid/SubgraphNode.java +++ b/mermaid/src/main/java/org/openworkflow/sdk/mermaid/SubgraphNode.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.mermaid; +package org.openworkflow.sdk.mermaid; public class SubgraphNode extends Node { diff --git a/mermaid/src/main/java/org/openworkflow/mermaid/SubgraphNodeRenderer.java b/mermaid/src/main/java/org/openworkflow/sdk/mermaid/SubgraphNodeRenderer.java similarity index 97% rename from mermaid/src/main/java/org/openworkflow/mermaid/SubgraphNodeRenderer.java rename to mermaid/src/main/java/org/openworkflow/sdk/mermaid/SubgraphNodeRenderer.java index 2bf5b8ed9..96123a74b 100644 --- a/mermaid/src/main/java/org/openworkflow/mermaid/SubgraphNodeRenderer.java +++ b/mermaid/src/main/java/org/openworkflow/sdk/mermaid/SubgraphNodeRenderer.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.mermaid; +package org.openworkflow.sdk.mermaid; public class SubgraphNodeRenderer extends DefaultNodeRenderer implements NodeRenderer { diff --git a/mermaid/src/main/java/org/openworkflow/mermaid/SwitchNode.java b/mermaid/src/main/java/org/openworkflow/sdk/mermaid/SwitchNode.java similarity index 93% rename from mermaid/src/main/java/org/openworkflow/mermaid/SwitchNode.java rename to mermaid/src/main/java/org/openworkflow/sdk/mermaid/SwitchNode.java index 17ce496a7..9d7188006 100644 --- a/mermaid/src/main/java/org/openworkflow/mermaid/SwitchNode.java +++ b/mermaid/src/main/java/org/openworkflow/sdk/mermaid/SwitchNode.java @@ -13,10 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.mermaid; +package org.openworkflow.sdk.mermaid; -import org.openworkflow.api.types.SwitchItem; -import org.openworkflow.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/org/openworkflow/mermaid/TaskNode.java b/mermaid/src/main/java/org/openworkflow/sdk/mermaid/TaskNode.java similarity index 91% rename from mermaid/src/main/java/org/openworkflow/mermaid/TaskNode.java rename to mermaid/src/main/java/org/openworkflow/sdk/mermaid/TaskNode.java index 7a1d7f390..2e9016980 100644 --- a/mermaid/src/main/java/org/openworkflow/mermaid/TaskNode.java +++ b/mermaid/src/main/java/org/openworkflow/sdk/mermaid/TaskNode.java @@ -13,9 +13,9 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.mermaid; +package org.openworkflow.sdk.mermaid; -import org.openworkflow.api.types.TaskItem; +import org.openworkflow.sdk.api.types.TaskItem; public class TaskNode extends Node { diff --git a/mermaid/src/main/java/org/openworkflow/mermaid/TaskSubgraphNode.java b/mermaid/src/main/java/org/openworkflow/sdk/mermaid/TaskSubgraphNode.java similarity index 93% rename from mermaid/src/main/java/org/openworkflow/mermaid/TaskSubgraphNode.java rename to mermaid/src/main/java/org/openworkflow/sdk/mermaid/TaskSubgraphNode.java index 44da429ee..1eb3bcdef 100644 --- a/mermaid/src/main/java/org/openworkflow/mermaid/TaskSubgraphNode.java +++ b/mermaid/src/main/java/org/openworkflow/sdk/mermaid/TaskSubgraphNode.java @@ -13,10 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.mermaid; +package org.openworkflow.sdk.mermaid; import java.util.List; -import org.openworkflow.api.types.TaskItem; +import org.openworkflow.sdk.api.types.TaskItem; public class TaskSubgraphNode extends TaskNode { diff --git a/mermaid/src/main/java/org/openworkflow/mermaid/TryCatchNode.java b/mermaid/src/main/java/org/openworkflow/sdk/mermaid/TryCatchNode.java similarity index 94% rename from mermaid/src/main/java/org/openworkflow/mermaid/TryCatchNode.java rename to mermaid/src/main/java/org/openworkflow/sdk/mermaid/TryCatchNode.java index 4648919a3..8a10718e4 100644 --- a/mermaid/src/main/java/org/openworkflow/mermaid/TryCatchNode.java +++ b/mermaid/src/main/java/org/openworkflow/sdk/mermaid/TryCatchNode.java @@ -13,9 +13,9 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.mermaid; +package org.openworkflow.sdk.mermaid; -import org.openworkflow.api.types.TaskItem; +import org.openworkflow.sdk.api.types.TaskItem; public class TryCatchNode extends TaskSubgraphNode { diff --git a/mermaid/src/main/java/org/openworkflow/mermaid/WaitNode.java b/mermaid/src/main/java/org/openworkflow/sdk/mermaid/WaitNode.java similarity index 94% rename from mermaid/src/main/java/org/openworkflow/mermaid/WaitNode.java rename to mermaid/src/main/java/org/openworkflow/sdk/mermaid/WaitNode.java index 8413a6f01..1f60f08c3 100644 --- a/mermaid/src/main/java/org/openworkflow/mermaid/WaitNode.java +++ b/mermaid/src/main/java/org/openworkflow/sdk/mermaid/WaitNode.java @@ -13,12 +13,12 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.mermaid; +package org.openworkflow.sdk.mermaid; import java.util.Objects; -import org.openworkflow.api.types.DurationInline; -import org.openworkflow.api.types.TaskItem; -import org.openworkflow.api.types.TimeoutAfter; +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/org/openworkflow/mermaid/ClasspathYamlFinder.java b/mermaid/src/test/java/org/openworkflow/sdk/mermaid/ClasspathYamlFinder.java similarity index 99% rename from mermaid/src/test/java/org/openworkflow/mermaid/ClasspathYamlFinder.java rename to mermaid/src/test/java/org/openworkflow/sdk/mermaid/ClasspathYamlFinder.java index 4cd58d5f3..a40729c8e 100644 --- a/mermaid/src/test/java/org/openworkflow/mermaid/ClasspathYamlFinder.java +++ b/mermaid/src/test/java/org/openworkflow/sdk/mermaid/ClasspathYamlFinder.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.mermaid; +package org.openworkflow.sdk.mermaid; import java.io.File; import java.io.IOException; diff --git a/mermaid/src/test/java/org/openworkflow/mermaid/MermaidSmokeTest.java b/mermaid/src/test/java/org/openworkflow/sdk/mermaid/MermaidSmokeTest.java similarity index 92% rename from mermaid/src/test/java/org/openworkflow/mermaid/MermaidSmokeTest.java rename to mermaid/src/test/java/org/openworkflow/sdk/mermaid/MermaidSmokeTest.java index 8251d6d1c..e695f90d5 100644 --- a/mermaid/src/test/java/org/openworkflow/mermaid/MermaidSmokeTest.java +++ b/mermaid/src/test/java/org/openworkflow/sdk/mermaid/MermaidSmokeTest.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.mermaid; +package org.openworkflow.sdk.mermaid; import static org.assertj.core.api.Assertions.assertThat; @@ -21,7 +21,7 @@ import java.util.stream.Stream; import org.junit.jupiter.params.ParameterizedTest; import org.junit.jupiter.params.provider.MethodSource; -import org.openworkflow.api.WorkflowReader; +import org.openworkflow.sdk.api.WorkflowReader; class MermaidSmokeTest { @@ -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 org.openworkflow.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 9c02f7f1b..844fee035 100644 --- a/pom.xml +++ b/pom.xml @@ -2,13 +2,13 @@ 4.0.0 - org.openworkflow + org.openworkflow.sdk openworkflow-parent 8.0.0-SNAPSHOT pom Open Workflow :: Parent - https://openworkflow.cloud/sdk-java/ + https://github.com/open-workflow-specification/sdk-java Java SDK for Open Workflow Specification 2020 @@ -165,22 +165,22 @@ test - org.openworkflow + org.openworkflow.sdk openworkflow-api ${project.version} - org.openworkflow + org.openworkflow.sdk openworkflow-types ${project.version} - org.openworkflow + org.openworkflow.sdk openworkflow-serialization ${project.version} - org.openworkflow + org.openworkflow.sdk openworkflow-annotations ${project.version} diff --git a/serialization/pom.xml b/serialization/pom.xml index e47aca3c3..1b0c4c4ea 100644 --- a/serialization/pom.xml +++ b/serialization/pom.xml @@ -1,7 +1,7 @@ 4.0.0 - org.openworkflow + org.openworkflow.sdk openworkflow-parent 8.0.0-SNAPSHOT @@ -9,7 +9,7 @@ Open Workflow :: Serialization - org.openworkflow + org.openworkflow.sdk openworkflow-annotations ${project.version} diff --git a/serialization/src/main/java/org/openworkflow/serialization/DeserializeHelper.java b/serialization/src/main/java/org/openworkflow/sdk/serialization/DeserializeHelper.java similarity index 97% rename from serialization/src/main/java/org/openworkflow/serialization/DeserializeHelper.java rename to serialization/src/main/java/org/openworkflow/sdk/serialization/DeserializeHelper.java index be70af7d7..c58e6c120 100644 --- a/serialization/src/main/java/org/openworkflow/serialization/DeserializeHelper.java +++ b/serialization/src/main/java/org/openworkflow/sdk/serialization/DeserializeHelper.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.serialization; +package org.openworkflow.sdk.serialization; import com.fasterxml.jackson.core.JsonParser; import com.fasterxml.jackson.core.JsonProcessingException; @@ -25,7 +25,7 @@ import java.lang.reflect.Method; import java.util.ArrayList; import java.util.Collection; -import org.openworkflow.annotations.OneOfSetter; +import org.openworkflow.sdk.annotations.OneOfSetter; public class DeserializeHelper { diff --git a/serialization/src/main/java/org/openworkflow/serialization/SerializeHelper.java b/serialization/src/main/java/org/openworkflow/sdk/serialization/SerializeHelper.java similarity index 89% rename from serialization/src/main/java/org/openworkflow/serialization/SerializeHelper.java rename to serialization/src/main/java/org/openworkflow/sdk/serialization/SerializeHelper.java index b65ad929e..34a850107 100644 --- a/serialization/src/main/java/org/openworkflow/serialization/SerializeHelper.java +++ b/serialization/src/main/java/org/openworkflow/sdk/serialization/SerializeHelper.java @@ -13,11 +13,11 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.serialization; +package org.openworkflow.sdk.serialization; import com.fasterxml.jackson.core.JsonGenerator; import java.io.IOException; -import org.openworkflow.annotations.OneOfValueProvider; +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 6890bb5f6..2018ab162 100644 --- a/types/pom.xml +++ b/types/pom.xml @@ -1,7 +1,7 @@ 4.0.0 - org.openworkflow + org.openworkflow.sdk openworkflow-parent 8.0.0-SNAPSHOT @@ -9,7 +9,7 @@ openworkflow-types - org.openworkflow + org.openworkflow.sdk openworkflow-annotations @@ -29,7 +29,7 @@ https://raw.githubusercontent.com/serverlessworkflow/specification/main/schema/workflow.yaml --> yamlschema - org.openworkflow.api.types + org.openworkflow.sdk.api.types ${project.build.directory}/generated-sources/src/main/java true true @@ -46,12 +46,12 @@ true none true - org.openworkflow.generator.UnreferencedFactory - org.openworkflow.generator.CustomAnnotator + org.openworkflow.sdk.generator.UnreferencedFactory + org.openworkflow.sdk.generator.CustomAnnotator - org.openworkflow + org.openworkflow.sdk openworkflow-types-generator ${project.version} diff --git a/types/src/main/java/org/openworkflow/types/Defaults.java b/types/src/main/java/org/openworkflow/sdk/types/Defaults.java similarity index 95% rename from types/src/main/java/org/openworkflow/types/Defaults.java rename to types/src/main/java/org/openworkflow/sdk/types/Defaults.java index ef46213fe..f1ed54db5 100644 --- a/types/src/main/java/org/openworkflow/types/Defaults.java +++ b/types/src/main/java/org/openworkflow/sdk/types/Defaults.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.types; +package org.openworkflow.sdk.types; public class Defaults { diff --git a/types/src/main/java/org/openworkflow/types/Errors.java b/types/src/main/java/org/openworkflow/sdk/types/Errors.java similarity index 96% rename from types/src/main/java/org/openworkflow/types/Errors.java rename to types/src/main/java/org/openworkflow/sdk/types/Errors.java index e85bea506..a0d308fe6 100644 --- a/types/src/main/java/org/openworkflow/types/Errors.java +++ b/types/src/main/java/org/openworkflow/sdk/types/Errors.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.openworkflow.types; +package org.openworkflow.sdk.types; import java.net.URI; import java.util.Objects; @@ -35,7 +35,7 @@ private Errors() {} new AtomicReference<>(() -> "1.0.0"); private static final AtomicReference BASE_PATTERN = - new AtomicReference<>("https://openworkflow.cloud/spec/%s/errors/"); + new AtomicReference<>("https://open-workflow-specification.org/%s/errors/"); public static void setSpecVersion(String version) { Objects.requireNonNull(version, "version");