workflowID string,
archetypeID chasm.ArchetypeID,
resp, err := r.shardContext.GetCurrentExecution(
ctx,
&persistence.GetCurrentExecutionRequest{
ShardID: r.shardContext.GetShardID(),
NamespaceID: namespaceID.String(),
WorkflowID: workflowID,
ArchetypeID: archetypeID,
},
)
switch err.(type) {
case nil:
return resp.RunID, nil