@@ -23,16 +23,11 @@ type Client interface {
2323 // GetWorkflowDataObjects returns the data objects of a workflow execution
2424 // workflowId is required, workflowRunId is optional and default to current runId of the workflowId
2525 // keys is required to be non-empty. If you intend to return all data objects, use GetAllWorkflowDataObjects API instead
26- // It returns data objects in format of iwfidl.EncodedObject and user code have to use ObjectEncoder to deserialize
27- GetWorkflowDataObjects (ctx context.Context , workflow Workflow , workflowId , workflowRunId string , keys []string ) (map [string ]iwfidl.EncodedObject , error )
28- // GetAllWorkflowDataObjects returns all the data objects of a workflow execution
29- // workflowId is required, workflowRunId is optional and default to current runId of the workflowId
30- // It returns data objects in format of iwfidl.EncodedObject and user code have to use ObjectEncoder to deserialize
31- GetAllWorkflowDataObjects (ctx context.Context , workflow Workflow , workflowId , workflowRunId string ) (map [string ]iwfidl.EncodedObject , error )
26+ GetWorkflowDataObjects (ctx context.Context , workflow Workflow , workflowId , workflowRunId string , keys []string ) (map [string ]Object , error )
3227 // GetWorkflowSearchAttributes returns search attributes of a workflow execution
3328 // workflowId is required, workflowRunId is optional and default to current runId of the workflowId
34- // keys is required to be non-empty. If you intend to return all data objects, use GetAllWorkflowDataObjects API instead
35- GetWorkflowSearchAttributes (ctx context.Context , workflow Workflow , workflowId , workflowRunId string ) (map [string ]interface {}, error )
29+ // keys is required to be non-empty. If you intend to return all data objects, use GetAllWorkflowSearchAttributes API instead
30+ GetWorkflowSearchAttributes (ctx context.Context , workflow Workflow , workflowId , workflowRunId string , keys [] string ) (map [string ]interface {}, error )
3631 // GetAllWorkflowSearchAttributes returns all search attributes of a workflow execution
3732 // workflowId is required, workflowRunId is optional and default to current runId of the workflowId
3833 GetAllWorkflowSearchAttributes (ctx context.Context , workflow Workflow , workflowId , workflowRunId string ) (map [string ]interface {}, error )
@@ -66,6 +61,9 @@ type clientCommon interface {
6661 // https://cadenceworkflow.io/docs/concepts/search-workflows/
6762 // https://docs.temporal.io/concepts/what-is-a-search-attribute/
6863 SearchWorkflow (ctx context.Context , request iwfidl.WorkflowSearchRequest ) (* iwfidl.WorkflowSearchResponse , error )
64+ // GetAllWorkflowDataObjects returns all the data objects of a workflow execution
65+ // workflowId is required, workflowRunId is optional and default to current runId of the workflowId
66+ GetAllWorkflowDataObjects (ctx context.Context , workflowId , workflowRunId string ) (map [string ]Object , error )
6967}
7068
7169// UnregisteredClient is a client without workflow registry
@@ -86,19 +84,11 @@ type UnregisteredClient interface {
8684 // GetWorkflowDataObjects returns the data objects of a workflow execution
8785 // workflowId is required, workflowRunId is optional and default to current runId of the workflowId
8886 // keys is required to be non-empty. If you intend to return all data objects, use GetAllWorkflowDataObjects API instead
89- // It returns data objects in format of iwfidl.EncodedObject and user code have to use ObjectEncoder to deserialize
90- GetWorkflowDataObjects (ctx context.Context , workflowId , workflowRunId string , keys []string ) (map [string ]iwfidl.EncodedObject , error )
91- // GetAllWorkflowDataObjects returns all the data objects of a workflow execution
92- // workflowId is required, workflowRunId is optional and default to current runId of the workflowId
93- // It returns data objects in format of iwfidl.EncodedObject and user code have to use ObjectEncoder to deserialize
94- GetAllWorkflowDataObjects (ctx context.Context , workflowId , workflowRunId string ) (map [string ]iwfidl.EncodedObject , error )
87+ GetWorkflowDataObjects (ctx context.Context , workflowId , workflowRunId string , keys []string ) (map [string ]Object , error )
9588 // GetWorkflowSearchAttributes returns search attributes of a workflow execution
9689 // workflowId is required, workflowRunId is optional and default to current runId of the workflowId
97- // keys is required to be non-empty. If you intend to return all data objects, use GetAllWorkflowDataObjects API instead
98- GetWorkflowSearchAttributes (ctx context.Context , workflowId , workflowRunId string ) (map [string ]iwfidl.SearchAttribute , error )
99- // GetAllWorkflowSearchAttributes returns all search attributes of a workflow execution
100- // workflowId is required, workflowRunId is optional and default to current runId of the workflowId
101- GetAllWorkflowSearchAttributes (ctx context.Context , workflowId , workflowRunId string ) (map [string ]iwfidl.SearchAttribute , error )
90+ // keys is required to be non-empty. If you intend to return all data objects, use GetAllWorkflowSearchAttributes API instead
91+ GetWorkflowSearchAttributes (ctx context.Context , workflowId , workflowRunId string , keys []iwfidl.SearchAttributeKeyAndType ) (map [string ]iwfidl.SearchAttribute , error )
10292}
10393
10494// NewUnregisteredClient returns a UnregisteredClient
0 commit comments