Interface ChildWorkflowStub


  • public interface ChildWorkflowStub
    Supports starting and signalling child workflows by the name and list of arguments. This is useful when a child workflow type is not known at the compile time and to call child workflows in other languages.
    See Also:
    Workflow.newChildWorkflowStub(Class)
    • Method Detail

      • fromTyped

        static <T> ChildWorkflowStub fromTyped​(T typed)
        Extracts untyped WorkflowStub from a typed workflow stub created through Workflow.newChildWorkflowStub(Class).
        Type Parameters:
        T - type of the workflow stub interface
        Parameters:
        typed - typed workflow stub
        Returns:
        untyped workflow stub for the same workflow instance.
      • getWorkflowType

        java.lang.String getWorkflowType()
      • getExecution

        Promise<io.temporal.api.common.v1.WorkflowExecution> getExecution()
        If workflow completes before this promise is ready then the child might not start at all.
        Returns:
        promise that becomes ready once the child has started.
      • execute

        <R> R execute​(java.lang.Class<R> resultClass,
                      java.lang.Object... args)
      • execute

        <R> R execute​(java.lang.Class<R> resultClass,
                      java.lang.reflect.Type resultType,
                      java.lang.Object... args)
      • executeAsync

        <R> Promise<R> executeAsync​(java.lang.Class<R> resultClass,
                                    java.lang.Object... args)
      • executeAsync

        <R> Promise<R> executeAsync​(java.lang.Class<R> resultClass,
                                    java.lang.reflect.Type resultType,
                                    java.lang.Object... args)
      • signal

        void signal​(java.lang.String signalName,
                    java.lang.Object... args)