Class LinkConverter
java.lang.Object
io.temporal.internal.common.LinkConverter
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic io.temporal.api.nexus.v1.LinkactivityToNexusLink(io.temporal.api.common.v1.Link.Activity activity) static io.temporal.api.nexus.v1.LinklinkToNexusLink(io.temporal.api.common.v1.Link commonLink) Dispatches on the oneof variant ofcommonLinkand converts to the matchingLink.static io.temporal.api.common.v1.LinknexusLinkToActivity(io.temporal.api.nexus.v1.Link nexusLink) static io.temporal.api.common.v1.LinknexusLinkToLink(io.temporal.api.nexus.v1.Link nexusLink) Dispatches onLink.getType()and converts to the matchingLinkvariant.static io.temporal.api.common.v1.LinknexusLinkToNexusOperation(io.temporal.api.nexus.v1.Link nexusLink) static io.temporal.api.common.v1.LinknexusLinkToWorkflowEvent(io.temporal.api.nexus.v1.Link nexusLink) static io.temporal.api.common.v1.LinknexusLinkToWorkflowLink(io.temporal.api.nexus.v1.Link nexusLink) static io.temporal.api.nexus.v1.LinknexusOperationToNexusLink(io.temporal.api.common.v1.Link.NexusOperation no) static io.temporal.api.nexus.v1.LinkworkflowEventToNexusLink(io.temporal.api.common.v1.Link.WorkflowEvent we) static io.temporal.api.nexus.v1.LinkworkflowLinkToNexusLink(io.temporal.api.common.v1.Link.Workflow w) Converts aLink.Workflowto a Nexus link.
-
Constructor Details
-
LinkConverter
public LinkConverter()
-
-
Method Details
-
workflowEventToNexusLink
public static io.temporal.api.nexus.v1.Link workflowEventToNexusLink(io.temporal.api.common.v1.Link.WorkflowEvent we) -
workflowLinkToNexusLink
public static io.temporal.api.nexus.v1.Link workflowLinkToNexusLink(io.temporal.api.common.v1.Link.Workflow w) Converts aLink.Workflowto a Nexus link. A workflow link addresses a workflow execution as a whole rather than one event within it, so the URL uses the workflow path and carries no event path suffix and no reference query params. It is used when there is no history event to point at, for example a Query or a rejected Update. The optionalreasonexplaining why the link exists is carried as a query param. -
nexusLinkToWorkflowEvent
public static io.temporal.api.common.v1.Link nexusLinkToWorkflowEvent(io.temporal.api.nexus.v1.Link nexusLink) -
nexusLinkToWorkflowLink
public static io.temporal.api.common.v1.Link nexusLinkToWorkflowLink(io.temporal.api.nexus.v1.Link nexusLink) -
linkToNexusLink
public static io.temporal.api.nexus.v1.Link linkToNexusLink(io.temporal.api.common.v1.Link commonLink) Dispatches on the oneof variant ofcommonLinkand converts to the matchingLink. Returnsnullif no variant is set or encoding fails. -
nexusLinkToLink
public static io.temporal.api.common.v1.Link nexusLinkToLink(io.temporal.api.nexus.v1.Link nexusLink) Dispatches onLink.getType()and converts to the matchingLinkvariant. Returnsnullfor unknown or unparseable types. -
activityToNexusLink
public static io.temporal.api.nexus.v1.Link activityToNexusLink(io.temporal.api.common.v1.Link.Activity activity) -
nexusLinkToActivity
public static io.temporal.api.common.v1.Link nexusLinkToActivity(io.temporal.api.nexus.v1.Link nexusLink) -
nexusOperationToNexusLink
public static io.temporal.api.nexus.v1.Link nexusOperationToNexusLink(io.temporal.api.common.v1.Link.NexusOperation no) -
nexusLinkToNexusOperation
public static io.temporal.api.common.v1.Link nexusLinkToNexusOperation(io.temporal.api.nexus.v1.Link nexusLink)
-