Skip to content

Commit

Permalink
removing Maestro codeDepot
Browse files Browse the repository at this point in the history
  • Loading branch information
paigesrossi committed Jan 15, 2025
1 parent 611382d commit 4ef6b53
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions app/services/maestro_api/mseg001_trigger_workflow_service.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,11 @@ def initialize(args)
end

def get_workflow_definitions
#ds-snippet-start:Maestro1Step2
configuration = DocuSign_Maestro::Configuration.new
configuration.host = args[:base_path]

api_client = DocuSign_Maestro::ApiClient.new(configuration)
api_client.set_default_header('Authorization', "Bearer #{args[:access_token]}")
#ds-snippet-end:Maestro1Step2

workflow_management_api = DocuSign_Maestro::WorkflowManagementApi.new(api_client)

Expand All @@ -31,10 +29,8 @@ def get_workflow_definition
api_client = DocuSign_Maestro::ApiClient.new(configuration)
api_client.set_default_header('Authorization', "Bearer #{args[:access_token]}")

#ds-snippet-start:Maestro1Step3
workflow_management_api = DocuSign_Maestro::WorkflowManagementApi.new(api_client)
workflow_management_api.get_workflow_definition(args[:account_id], args[:workflow_id])
#ds-snippet-end:Maestro1Step3
end

def trigger_workflow(workflow)
Expand All @@ -44,7 +40,6 @@ def trigger_workflow(workflow)
api_client = DocuSign_Maestro::ApiClient.new(configuration)
api_client.set_default_header('Authorization', "Bearer #{args[:access_token]}")

#ds-snippet-start:Maestro1Step4
trigger_payload = DocuSign_Maestro::TriggerPayload.new
trigger_payload.instance_name = args[:instance_name]
trigger_payload.participants = {}
Expand All @@ -61,11 +56,8 @@ def trigger_workflow(workflow)
trigger_options = DocuSign_Maestro::TriggerWorkflowOptions.new
trigger_options.mtid = mtid
trigger_options.mtsec = mtsec
#ds-snippet-end:Maestro1Step4

#ds-snippet-start:Maestro1Step5
workflow_trigger_api = DocuSign_Maestro::WorkflowTriggerApi.new(api_client)
workflow_trigger_api.trigger_workflow(args[:account_id], args[:workflow_id], trigger_payload, trigger_options)
#ds-snippet-end:Maestro1Step5
end
end

0 comments on commit 4ef6b53

Please sign in to comment.