Interface NexusOperationHandle<R>

All Known Implementing Classes:
NexusOperationHandleImpl

public interface NexusOperationHandle<R>
OperationHandle is used to interact with a scheduled nexus operation. Created through Workflow.startNexusOperation(io.temporal.workflow.Functions.Func1<T, R>, T).
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns a promise that is resolved when the operation reaches the STARTED state.
    Returns a promise that will be resolved when the operation completes.
  • Method Details

    • getExecution

      Returns a promise that is resolved when the operation reaches the STARTED state. For synchronous operations, this will be resolved at the same time as the promise from executeAsync. For asynchronous operations, this promises is resolved independently. If the operation is unsuccessful, this promise will throw the same exception as executeAsync. Use this method to extract the Operation ID of an asynchronous operation. OperationID will be empty for synchronous operations. If the workflow completes before this promise is ready then the operation might not start at all.
      Returns:
      promise that becomes ready once the operation has started.
    • getResult

      Promise<R> getResult()
      Returns a promise that will be resolved when the operation completes.