Deprecated API
Contents
-
Deprecated ClassesClassDescriptionWorker Versioning is now deprecated please migrate to the Worker Deployment API.typed search attributes should be used instead.use
WorkflowExecutionHistoryinstead.
-
Deprecated Enum Classes
-
Deprecated FieldsFieldDescription
-
Deprecated MethodsMethodDescriptionUse Worker DeploymentsWorker Versioning is now deprecated please migrate to the Worker Deployment API.use
ScheduleDescription.getTypedSearchAttributes()instead.useScheduleOptions.getTypedSearchAttributes()instead.Worker Versioning is now deprecated please migrate to the Worker Deployment API.Worker Versioning is now deprecated please migrate to the Worker Deployment API.UseWorkflowClient.newUntypedWorkflowStub(WorkflowTargetOptions, Optional)instead. This method is deprecated because the returned stub does not properly account for the runId.io.temporal.client.WorkflowClient.newUntypedWorkflowStub(String, Optional<String>, Optional<String>) UseWorkflowClient.newUntypedWorkflowStub(WorkflowTargetOptions, Optional)instead. This method is deprecated because the returned stub does not properly account for the runId.UseWorkflowClient.newWorkflowStub(Class, WorkflowTargetOptions)instead. This method is deprecated because the returned stub does not properly account for the runId.Worker Versioning is now deprecated please migrate to the Worker Deployment API.useWorkerOptions.Builder.setBuildId(String)instead.useWorkflowExecutionMetadata.getTypedSearchAttributes()instead.useWorkflowOptions.getTypedSearchAttributes()instead.useDataConverter.fromPayloads(int, Optional, Class, Type). This is an SDK implementation detail and never was expected to be exposed to users.consider implementing all intercepting functionality usingWorkflowClientCallsInterceptorthat is produced inWorkflowClientInterceptor.workflowClientCallsInterceptor(io.temporal.common.interceptors.WorkflowClientCallsInterceptor). This method has to stay temporary because TimeLockingInterceptor has to intercept top levelWorkflowStubmethods.consider implementing all intercepting functionality usingWorkflowClientCallsInterceptorthat is produced inWorkflowClientInterceptor.workflowClientCallsInterceptor(io.temporal.common.interceptors.WorkflowClientCallsInterceptor). This method has to stay temporary because TimeLockingInterceptor has to intercept top levelWorkflowStubmethods.usePOJOWorkflowInterfaceMetadata.newInstance(Class, boolean)withvalidateWorkflowAnnotation==false.this method created a deprecated implementation of the queue that has some methods implemented incorrectly. Please useWorkflowInternal.newWorkflowQueue(int)instead.UseWorker.registerWorkflowImplementationFactory(Class, Func, WorkflowImplementationOptions)withWorkflowImplementationOptions.newBuilder().setFailWorkflowExceptionTypes(Throwable.class).build()as a 3rd parameter to preserve the unexpected behavior of this method.
Or useWorker.registerWorkflowImplementationFactory(Class, Func)with an expected behavior - Workflow Execution is failed only when aTemporalFailuresubtype is thrown.not used anymore by JavaSDK, this value doesn't have any effectuseWorkerOptions.Builder.setStickyQueueScheduleToStartTimeout(Duration)to specify this value per-worker insteadnot used anymore by JavaSDK, this value doesn't have any effectWorker Versioning is now deprecated please migrate to the Worker Deployment API.Worker Versioning is now deprecated please migrate to the Worker Deployment API.Cross-namespace child workflow execution is disabled by default in Temporal Server since version 1.30.1 (viasystem.enableCrossNamespaceCommandsdynamic config flag). Setting this option will fail unless that flag is explicitly re-enabled on the server. This field may be removed at some point in the future.Worker Versioning is now deprecated please migrate to the Worker Deployment API.Cross-namespace child workflow execution is disabled by default in Temporal Server since version 1.30.1 (viasystem.enableCrossNamespaceCommandsdynamic config flag). Setting this option will fail unless that flag is explicitly re-enabled on the server. This field may be removed at some point in the future.useChildWorkflowOptions.getTypedSearchAttributes()instead.Worker Versioning is now deprecated please migrate to the Worker Deployment API.Worker Versioning is now deprecated please migrate to the Worker Deployment API.useContinueAsNewOptions.getSearchAttributes()instead.Worker Versioning is now deprecated please migrate to the Worker Deployment API.useWorkflow.getTypedSearchAttributes()instead.useWorkflow.getTypedSearchAttributes()instead.useWorkflow.getTypedSearchAttributes()instead.useWorkflow.newWorkflowQueue(int)instead. An implementation returned by this method has a bug.useWorkflow.getTypedSearchAttributes()instead.Because the non-caching behavior of this API is typically not desirable, it's recommend to useWorkflowLocal.withCachedInitial(Supplier)instead.Because the non-caching behavior of this API is typically not desirable, it's recommend to useWorkflowThreadLocal.withCachedInitial(Supplier)instead.
-
Deprecated ConstructorsConstructorDescriptionUse
CancelInput(WorkflowExecution, String)to provide a cancellation reason instead.This constructor doesn't include all options. Use the builder instead.