Skip to content

Commit 505e117

Browse files
committed
Updating Maestor API code examples
1 parent 10d0ba2 commit 505e117

File tree

4 files changed

+7
-5
lines changed

4 files changed

+7
-5
lines changed

pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
<monitor.version>1.4.0</monitor.version>
3333
<admin.version>1.3.0</admin.version>
3434
<webforms.version>1.0.2-RC12</webforms.version>
35-
<maestro.version>1.0.0-RC1</maestro.version>
35+
<maestro.version>2.0.0-RC1</maestro.version>
3636
<swagger-core-version>2.2.21</swagger-core-version>
3737
<jackson-version>2.17.0</jackson-version>
3838
<jersey2.version>3.1.6</jersey2.version>

src/main/java/com/docusign/controller/maestro/examples/EG001ControllerTriggerWorkflow.java

+2-1
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,8 @@ protected Object doWork(
134134
args.getSignerName(),
135135
args.getCcEmail(),
136136
args.getCcName(),
137-
args.getInstanceName());
137+
args.getInstanceName(),
138+
session.getWorkflowId());
138139

139140
session.setInstanceId(result.getInstanceId());
140141

src/main/java/com/docusign/controller/maestro/services/TriggerWorkflowService.java

+3-2
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,8 @@ public static TriggerWorkflowViaPostResponse triggerWorkflow(
6464
String signerName,
6565
String ccEmail,
6666
String ccName,
67-
String instanceName) throws ApiException, URISyntaxException
67+
String instanceName,
68+
String worlflowId) throws ApiException, URISyntaxException
6869
{
6970
var workflowTriggerApi = new WorkflowTriggerApi(apiClient);
7071

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

9394
//ds-snippet-start:Maestro1Step5
94-
return workflowTriggerApi.triggerWorkflow(accountId, payload, options);
95+
return workflowTriggerApi.triggerWorkflow(accountId, worlflowId, payload, options);
9596
//ds-snippet-end:Maestro1Step5
9697
}
9798

src/main/resources/application.example.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"DS_MONITOR_BASE_PATH": "https://lens-d.docusign.net",
1212
"DS_ADMIN_BASE_PATH": "https://api-d.docusign.net",
1313
"DS_WEBFORMS_BASE_PATH": "https://apps-d.docusign.com/api/webforms/v1.1",
14-
"DS_MAESTRO_BASE_PATH": "https://demo.services.docusign.net/",
14+
"DS_MAESTRO_BASE_PATH": "https://apps-d.docusign.com/api/maestro",
1515

1616
"Gateway_Name": "{DS_PAYMENT_GATEWAY_NAME}",
1717
"Gateway_Account_Id": "{GATEWAY_ACCOUNT_ID}",

0 commit comments

Comments
 (0)