Skip to content

Commit 3073df8

Browse files
committed
DEVDOCS-10174 adding codeDepot markers
1 parent d75f395 commit 3073df8

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

src/main/java/com/docusign/controller/eSignature/examples/EG032ControllerPauseSignatureWorkflow.java

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,23 +46,25 @@ protected Object doWork(WorkArguments args, ModelMap model, HttpServletResponse
4646
throws ApiException, IOException
4747
{
4848

49-
// Step 2: Construct your API headers
49+
//ds-snippet-start:eSign32Step2
5050
EnvelopesApi envelopesApi = createEnvelopesApi(this.session.getBasePath(), this.user.getAccessToken());
51-
52-
// Step 3: Construct your envelope JSON body
51+
//ds-snippet-end:eSign32Step2
52+
53+
// Construct your envelope JSON body
5354
EnvelopeDefinition envelope = PauseSignatureWorkflowService.createEnvelope(
5455
args.getSignerName(),
5556
args.getSignerEmail(),
5657
args.getSignerName2(),
5758
args.getSignerEmail2()
5859
);
5960

60-
// Step 4: Call the eSignature REST API
61+
//ds-snippet-start:eSign32Step4
6162
EnvelopeSummary envelopeSummary = PauseSignatureWorkflowService.pauseSignatureWorkflow(
6263
envelopesApi,
6364
this.session.getAccountId(),
6465
envelope
6566
);
67+
//ds-snippet-end:eSign32Step4
6668

6769
this.session.setEnvelopeId(envelopeSummary.getEnvelopeId());
6870
DoneExample.createDefault(this.title)

src/main/java/com/docusign/controller/eSignature/services/PauseSignatureWorkflowService.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ public static EnvelopeSummary pauseSignatureWorkflow(
2222
return envelopesApi.createEnvelope(accountId, envelope);
2323
}
2424

25+
//ds-snippet-start:eSign32Step3
2526
public static EnvelopeDefinition createEnvelope(
2627
String signerName,
2728
String signerEmail,
@@ -80,4 +81,5 @@ public static EnvelopeDefinition createEnvelope(
8081

8182
return envelope;
8283
}
84+
//ds-snippet-end:eSign32Step3
8385
}

0 commit comments

Comments
 (0)