@@ -9,13 +9,11 @@ def initialize(args)
99 end
1010
1111 def get_workflow_definitions
12- #ds-snippet-start:Maestro1Step2
1312 configuration = DocuSign_Maestro ::Configuration . new
1413 configuration . host = args [ :base_path ]
1514
1615 api_client = DocuSign_Maestro ::ApiClient . new ( configuration )
1716 api_client . set_default_header ( 'Authorization' , "Bearer #{ args [ :access_token ] } " )
18- #ds-snippet-end:Maestro1Step2
1917
2018 workflow_management_api = DocuSign_Maestro ::WorkflowManagementApi . new ( api_client )
2119
@@ -31,10 +29,8 @@ def get_workflow_definition
3129 api_client = DocuSign_Maestro ::ApiClient . new ( configuration )
3230 api_client . set_default_header ( 'Authorization' , "Bearer #{ args [ :access_token ] } " )
3331
34- #ds-snippet-start:Maestro1Step3
3532 workflow_management_api = DocuSign_Maestro ::WorkflowManagementApi . new ( api_client )
3633 workflow_management_api . get_workflow_definition ( args [ :account_id ] , args [ :workflow_id ] )
37- #ds-snippet-end:Maestro1Step3
3834 end
3935
4036 def trigger_workflow ( workflow )
@@ -44,7 +40,6 @@ def trigger_workflow(workflow)
4440 api_client = DocuSign_Maestro ::ApiClient . new ( configuration )
4541 api_client . set_default_header ( 'Authorization' , "Bearer #{ args [ :access_token ] } " )
4642
47- #ds-snippet-start:Maestro1Step4
4843 trigger_payload = DocuSign_Maestro ::TriggerPayload . new
4944 trigger_payload . instance_name = args [ :instance_name ]
5045 trigger_payload . participants = { }
@@ -61,11 +56,8 @@ def trigger_workflow(workflow)
6156 trigger_options = DocuSign_Maestro ::TriggerWorkflowOptions . new
6257 trigger_options . mtid = mtid
6358 trigger_options . mtsec = mtsec
64- #ds-snippet-end:Maestro1Step4
6559
66- #ds-snippet-start:Maestro1Step5
6760 workflow_trigger_api = DocuSign_Maestro ::WorkflowTriggerApi . new ( api_client )
6861 workflow_trigger_api . trigger_workflow ( args [ :account_id ] , args [ :workflow_id ] , trigger_payload , trigger_options )
69- #ds-snippet-end:Maestro1Step5
7062 end
7163end
0 commit comments