Skip to content

Commit

Permalink
Updating Maestor API code examples
Browse files Browse the repository at this point in the history
  • Loading branch information
InbarGazit committed Jun 27, 2024
1 parent 10d0ba2 commit 505e117
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
<monitor.version>1.4.0</monitor.version>
<admin.version>1.3.0</admin.version>
<webforms.version>1.0.2-RC12</webforms.version>
<maestro.version>1.0.0-RC1</maestro.version>
<maestro.version>2.0.0-RC1</maestro.version>
<swagger-core-version>2.2.21</swagger-core-version>
<jackson-version>2.17.0</jackson-version>
<jersey2.version>3.1.6</jersey2.version>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,8 @@ protected Object doWork(
args.getSignerName(),
args.getCcEmail(),
args.getCcName(),
args.getInstanceName());
args.getInstanceName(),
session.getWorkflowId());

session.setInstanceId(result.getInstanceId());

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,8 @@ public static TriggerWorkflowViaPostResponse triggerWorkflow(
String signerName,
String ccEmail,
String ccName,
String instanceName) throws ApiException, URISyntaxException
String instanceName,
String worlflowId) throws ApiException, URISyntaxException
{
var workflowTriggerApi = new WorkflowTriggerApi(apiClient);

Expand All @@ -91,7 +92,7 @@ public static TriggerWorkflowViaPostResponse triggerWorkflow(
//ds-snippet-end:Maestro1Step4

//ds-snippet-start:Maestro1Step5
return workflowTriggerApi.triggerWorkflow(accountId, payload, options);
return workflowTriggerApi.triggerWorkflow(accountId, worlflowId, payload, options);
//ds-snippet-end:Maestro1Step5
}

Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/application.example.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"DS_MONITOR_BASE_PATH": "https://lens-d.docusign.net",
"DS_ADMIN_BASE_PATH": "https://api-d.docusign.net",
"DS_WEBFORMS_BASE_PATH": "https://apps-d.docusign.com/api/webforms/v1.1",
"DS_MAESTRO_BASE_PATH": "https://demo.services.docusign.net/",
"DS_MAESTRO_BASE_PATH": "https://apps-d.docusign.com/api/maestro",

"Gateway_Name": "{DS_PAYMENT_GATEWAY_NAME}",
"Gateway_Account_Id": "{GATEWAY_ACCOUNT_ID}",
Expand Down

0 comments on commit 505e117

Please sign in to comment.