Skip to content

Commit 4b13977

Browse files
committed
NexusOperationInvocationData()
1 parent e3ac28f commit 4b13977

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

chasm/lib/nexusoperation/operation.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ type OperationStore interface {
4040
OnNexusOperationFailed(ctx chasm.MutableContext, operation *Operation, cause *failurepb.Failure) error
4141
OnNexusOperationTimedOut(ctx chasm.MutableContext, operation *Operation, cause *failurepb.Failure) error
4242
OnNexusOperationCompleted(ctx chasm.MutableContext, operation *Operation, result *commonpb.Payload, links []*commonpb.Link) error
43-
// GetNexusOperationInvocationData loads invocation data (Input, Header, NexusLink) from the scheduled history event.
44-
GetNexusOperationInvocationData(ctx chasm.Context, operation *Operation) (InvocationData, error)
43+
// NexusOperationInvocationData loads invocation data (Input, Header, NexusLink) from the scheduled history event.
44+
NexusOperationInvocationData(ctx chasm.Context, operation *Operation) (InvocationData, error)
4545
}
4646

4747
// Operation is a CHASM component that represents a Nexus operation.
@@ -170,7 +170,7 @@ func (o *Operation) loadStartArgs(
170170
// TODO: For standalone operations, load invocation data from the operation state.
171171
return startArgs{}, serviceerror.NewInternal("no store available to load invocation data")
172172
}
173-
invocationData, err := store.GetNexusOperationInvocationData(ctx, o)
173+
invocationData, err := store.NexusOperationInvocationData(ctx, o)
174174
if err != nil {
175175
return startArgs{}, err
176176
}

chasm/lib/workflow/workflow.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -311,8 +311,8 @@ func (w *Workflow) PendingNexusOperationCount() int {
311311
return len(w.Operations)
312312
}
313313

314-
// GetNexusOperationInvocationData loads invocation data from the scheduled history event.
315-
func (w *Workflow) GetNexusOperationInvocationData(
314+
// NexusOperationInvocationData loads invocation data from the scheduled history event.
315+
func (w *Workflow) NexusOperationInvocationData(
316316
ctx chasm.Context,
317317
op *nexusoperation.Operation,
318318
) (nexusoperation.InvocationData, error) {

0 commit comments

Comments
 (0)