Skip to content

Commit c307ad5

Browse files
committed
Adding code depot markers
1 parent 72c98b0 commit c307ad5

File tree

4 files changed

+13
-1
lines changed

4 files changed

+13
-1
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
import com.docusign.iam.sdk.models.operations.*;
55

66
public class CancelWorkflowInstanceService {
7+
//ds-snippet-start:Maestro4step3
78
public static CancelWorkflowInstanceResponse CancelMaestroWorkflowInstance(
89
IamClient client,
910
String accountId,
@@ -12,4 +13,5 @@ public static CancelWorkflowInstanceResponse CancelMaestroWorkflowInstance(
1213
return client.maestro().workflowInstanceManagement()
1314
.cancelWorkflowInstance(accountId, workflowId, instanceId);
1415
}
16+
//ds-snippet-end:Maestro4step3
1517
}

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,13 @@
44
import com.docusign.iam.sdk.models.operations.*;
55

66
public class PauseWorkflowService {
7+
//ds-snippet-start:Maestro2step3
78
public static PauseNewWorkflowInstancesResponse PauseMaestroWorkflow(
89
IamClient client,
910
String accountId,
1011
String workflowId) throws Exception {
1112
return client.maestro()
1213
.workflows().pauseNewWorkflowInstances(accountId, workflowId);
1314
}
15+
//ds-snippet-end:Maestro2step3
1416
}

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,13 @@
44
import com.docusign.iam.sdk.models.operations.*;
55

66
public class ResumeWorkflowService {
7+
//ds-snippet-start:Maestro3step3
78
public static ResumePausedWorkflowResponse ResumeMaestroWorkflow(
89
IamClient client,
910
String accountId,
1011
String workflowId) throws Exception {
1112
return client.maestro()
1213
.workflows().resumePausedWorkflow(accountId, workflowId);
1314
}
15+
//ds-snippet-end:Maestro3step3
1416
}

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

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,24 +132,30 @@ public static TriggerWorkflowResponse triggerWorkflowInstance(
132132
String ccEmail,
133133
String ccName,
134134
String instanceName) throws Exception {
135+
//ds-snippet-start:Maestro1Step4
135136
Map<String, TriggerInputs> triggerInputs = new HashMap<>();
136137
triggerInputs.put("signerName", createTriggerInput(signerName));
137138
triggerInputs.put("signerEmail", createTriggerInput(signerEmail));
138139
triggerInputs.put("ccName", createTriggerInput(ccName));
139140
triggerInputs.put("ccEmail", createTriggerInput(ccEmail));
141+
//ds-snippet-end:Maestro1Step4
140142

141-
TriggerWorkflow triggerWorkflow = new TriggerWorkflow(instanceName, triggerInputs);
143+
//ds-snippet-start:Maestro1Step5
144+
w = new TriggerWorkflow(instanceName, triggerInputs);
142145

143146
return client.maestro()
144147
.workflows()
145148
.triggerWorkflow(accountId, workflowId, triggerWorkflow);
146149
}
150+
//ds-snippet-end:Maestro1Step5
147151

152+
//ds-snippet-start:Maestro1Step3
148153
public static GetWorkflowsListResponse getMaestroWorkflow(
149154
IamClient client,
150155
String accountId) throws Exception {
151156
return client.maestro()
152157
.workflows()
153158
.getWorkflowsList(accountId, Optional.of(Status.ACTIVE), Optional.empty());
154159
}
160+
//ds-snippet-end:Maestro1Step3
155161
}

0 commit comments

Comments
 (0)