Hello Team,
We are trying to execute a workflow in async but it throws WorkflowServiceException immediately, even though the workflow status shows us completed in the UI. The same however works when workflow is called in sync manner.
We are using a spring boot application
client code →
final String workflowId = “Rt_” + applicationInstanceInfo.getId();
WorkflowOptions options =
WorkflowOptions.newBuilder().setWorkflowId(workflowId).setTaskQueue(taskQueue).build();
RtAppWorkflow workflow = workflowClient.newWorkflowStub(RtAppWorkflow.class, options);
WorkflowClient.start(workflow::provisionApplication, applicationInstanceInfo);
WorkflowStub untypedStub2 = WorkflowStub.fromTyped(workflow);
untypedStub2
.getResultAsync(String.class)
.whenComplete(
(response, ex) → {
//response or exception handling
}
);
spring.temporal.namespace=xyz
spring.temporal.connection.target=:10443
spring.temporal.connection.enableHttps=true
spring.temporal.connection.mtls.key-file=client-key.pkcs8
spring.temporal.connection.mtls.cert-chain-file=client.pem
spring.temporal.connection.mtls.insecureTrustManager=false
spring.temporal.workers[0].task-queue=RtAppQueue
spring.temporal.workers[0].name=RtAppTaskWorker
spring.temporal.workersAutoDiscovery.packages[0]=com.app.rt.temporal