Skip to content

Commit e2cc787

Browse files
author
Raileen Del Rosario
committed
modifying manifest and adding codeDepot markers
1 parent 44d91cb commit e2cc787

File tree

5 files changed

+35
-10
lines changed

5 files changed

+35
-10
lines changed

launcher-csharp/Maestro/Examples/CancelWorkflowInstance.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ namespace DocuSign.CodeExamples.Examples
1010

1111
public static class CancelWorkflowInstance
1212
{
13+
//ds-snippet-start:Maestro4Step3
1314
public static async Task<CancelWorkflowInstanceResponse> CancelInstanceMaestroWorkflow(
1415
string basePath,
1516
string accessToken,
@@ -20,16 +21,19 @@ public static async Task<CancelWorkflowInstanceResponse> CancelInstanceMaestroWo
2021
var client = CreateAuthenticatedClient(basePath, accessToken);
2122
return await client.Maestro.WorkflowInstanceManagement.CancelWorkflowInstanceAsync(accountId, workflowId, workflowInstanceId);
2223
}
24+
//ds-snippet-end:Maestro4Step3
2325

2426
/// <summary>
2527
/// Creates an authenticated IAM client.
2628
/// </summary>
29+
//ds-snippet-start:Maestro4Step2
2730
private static IamClient CreateAuthenticatedClient(string basePath, string accessToken)
2831
{
2932
return IamClient.Builder()
3033
.WithServerUrl(basePath)
3134
.WithAccessToken(accessToken)
3235
.Build();
3336
}
37+
//ds-snippet-end:Maestro4Step2
3438
}
3539
}

launcher-csharp/Maestro/Examples/PauseWorkflow.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ namespace DocuSign.CodeExamples.Examples
1010

1111
public static class PauseWorkflow
1212
{
13+
//ds-snippet-start:Maestro2Step3
1314
public static async Task<PauseNewWorkflowInstancesSuccess> PauseMaestroWorkflow(
1415
string basePath,
1516
string accessToken,
@@ -19,16 +20,19 @@ public static async Task<PauseNewWorkflowInstancesSuccess> PauseMaestroWorkflow(
1920
var client = CreateAuthenticatedClient(basePath, accessToken);
2021
return await client.Maestro.Workflows.PauseNewWorkflowInstancesAsync(accountId, workflowId);
2122
}
23+
//ds-snippet-end:Maestro2Step3
2224

2325
/// <summary>
2426
/// Creates an authenticated IAM client.
2527
/// </summary>
28+
//ds-snippet-start:Maestro2Step2
2629
private static IamClient CreateAuthenticatedClient(string basePath, string accessToken)
2730
{
2831
return IamClient.Builder()
2932
.WithServerUrl(basePath)
3033
.WithAccessToken(accessToken)
3134
.Build();
3235
}
36+
//ds-snippet-end:Maestro2Step2
3337
}
3438
}

launcher-csharp/Maestro/Examples/ResumeWorkflow.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ namespace DocuSign.CodeExamples.Examples
1010

1111
public static class ResumeWorkflow
1212
{
13+
//ds-snippet-start:Maestro3Step3
1314
public static async Task<ResumeNewWorkflowInstancesSuccess> ResumeMaestroWorkflow(
1415
string basePath,
1516
string accessToken,
@@ -19,16 +20,19 @@ public static async Task<ResumeNewWorkflowInstancesSuccess> ResumeMaestroWorkflo
1920
var client = CreateAuthenticatedClient(basePath, accessToken);
2021
return await client.Maestro.Workflows.ResumePausedWorkflowAsync(accountId, workflowId);
2122
}
23+
//ds-snippet-end:Maestro3Step3
2224

2325
/// <summary>
2426
/// Creates an authenticated IAM client.
2527
/// </summary>
28+
//ds-snippet-start:Maestro3Step2
2629
private static IamClient CreateAuthenticatedClient(string basePath, string accessToken)
2730
{
2831
return IamClient.Builder()
2932
.WithServerUrl(basePath)
3033
.WithAccessToken(accessToken)
3134
.Build();
3235
}
36+
//ds-snippet-end:Maestro3Step2
3337
}
3438
}

launcher-csharp/Maestro/Examples/TriggerMaestroWorkflow.cs

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,12 @@ public static async Task<WorkflowsListSuccess> GetMaestroWorkflow(
2727
string basePath,
2828
string accessToken,
2929
string accountId)
30+
//ds-snippet-start:Maestro1Step3
3031
{
3132
var client = CreateAuthenticatedClient(basePath, accessToken);
3233
return await client.Maestro.Workflows.GetWorkflowsListAsync(accountId, Status.Active);
3334
}
35+
//ds-snippet-start:Maestro1Step3
3436

3537
/// <summary>
3638
/// Triggers a specific Maestro workflow instance.
@@ -49,14 +51,17 @@ public static async Task<TriggerWorkflowSuccess> TriggerWorkflowInstance(
4951
{
5052
var client = CreateAuthenticatedClient(basePath, accessToken);
5153

54+
//ds-snippet-start:Maestro1Step4
5255
var triggerInputs = new Dictionary<string, TriggerInputs>
5356
{
5457
{ "signerName", CreateTriggerInput(signerName) },
5558
{ "signerEmail", CreateTriggerInput(signerEmail) },
5659
{ "ccName", CreateTriggerInput(ccName) },
5760
{ "ccEmail", CreateTriggerInput(ccEmail) },
5861
};
62+
//ds-snippet-end:Maestro1Step4
5963

64+
//ds-snippet-start:Maestro1Step5
6065
var triggerWorkflow = new TriggerWorkflow
6166
{
6267
InstanceName = instanceName,
@@ -67,6 +72,7 @@ public static async Task<TriggerWorkflowSuccess> TriggerWorkflowInstance(
6772
accountId,
6873
workflowId,
6974
triggerWorkflow);
75+
//ds-snippet-end:Maestro1Step5
7076
}
7177

7278
/// <summary>
@@ -148,14 +154,15 @@ public static async Task<string> PublishWorkflowAsync(
148154
/// <summary>
149155
/// Creates an authenticated IAM client.
150156
/// </summary>
157+
//ds-snippet-start:Maestro1Step2
151158
private static IamClient CreateAuthenticatedClient(string basePath, string accessToken)
152159
{
153160
return IamClient.Builder()
154161
.WithServerUrl(basePath)
155162
.WithAccessToken(accessToken)
156163
.Build();
157164
}
158-
165+
//ds-snippet-end:Maestro1Step2
159166
/// <summary>
160167
/// Creates a TriggerInputs object for string inputs.
161168
/// </summary>

manifest/CodeExamplesManifest.json

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2803,7 +2803,8 @@
28032803
"PathName": "Agreements:getAgreementsList"
28042804
}
28052805
],
2806-
"ResultsPageText": "List of agreements with the Navigator API:"
2806+
"ResultsPageText": "List of agreements with the Navigator API:",
2807+
"SkipForLanguages": "php;python;ruby"
28072808
},
28082809
{
28092810
"ExampleNumber": 2,
@@ -2824,7 +2825,8 @@
28242825
]
28252826
}
28262827
],
2827-
"ResultsPageText": "Details for selected agreement:"
2828+
"ResultsPageText": "Details for selected agreement:",
2829+
"SkipForLanguages": "php;python;ruby"
28282830
}
28292831
]
28302832
}
@@ -2870,22 +2872,23 @@
28702872
"AdditionalPage": [
28712873
{
28722874
"Name": "publish_workflow",
2873-
"ResultsPageText": "Please open <a href=\"{0}\" target=\"_blank\">the following page</a> to publish the workflow."
2875+
"ResultsPageText": "Please open <a href=\"{0}\" target=\"_blank\">this page</a> to publish the workflow."
28742876
}
28752877
],
28762878
"RedirectsToOtherCodeExamples": [
28772879
{
28782880
"CodeExampleToRedirectTo": 8,
2879-
"RedirectText": "<p>Prerequisite: Please first create a template to use in the workflow using <a {0}>Create a template</a></p>"
2881+
"RedirectText": "<p>Prerequisite: Please create a template to use in the workflow by running the <a {0}>Create a template</a> example.</p>"
28802882
}
28812883
],
28822884
"CustomErrorTexts": [
28832885
{
28842886
"ErrorMessageCheck": "NO_ACTIVE_WORKFLOW_FOUND",
2885-
"ErrorMessage": "<p>Problem: No active workflow found. Please create a new workflow and publish it on your <a href=\"https://apps-d.docusign.com/\">DocuSign account page</a></p>"
2887+
"ErrorMessage": "<p>Problem: No active workflow found. Please create a new workflow and publish it to your <a href=\"https://apps-d.docusign.com/\">Docusign account.</a></p>"
28862888
}
28872889
],
2888-
"ResultsPageText": "Workflow instance is created. Please sign the document."
2890+
"ResultsPageText": "Workflow instance is created. Please sign the document.",
2891+
"SkipForLanguages": "java;node;php;python;ruby"
28892892
},
28902893
{
28912894
"ExampleNumber": 2,
@@ -2907,7 +2910,8 @@
29072910
"ErrorMessage": "Unable to pause workflow: {0}."
29082911
}
29092912
],
2910-
"ResultsPageText": "Workflow has been paused."
2913+
"ResultsPageText": "Workflow has been paused.",
2914+
"SkipForLanguages": "java;node;php;python;ruby"
29112915
},
29122916
{
29132917
"ExampleNumber": 3,
@@ -2929,7 +2933,8 @@
29292933
"ErrorMessage": "Unable to resume workflow: {0}."
29302934
}
29312935
],
2932-
"ResultsPageText": "Workflow has been resumed."
2936+
"ResultsPageText": "Workflow has been resumed.",
2937+
"SkipForLanguages": "java;node;php;python;ruby"
29332938
},
29342939
{
29352940
"ExampleNumber": 4,
@@ -2951,7 +2956,8 @@
29512956
"ErrorMessage": "Unable to retrieve workflow instance: {0}."
29522957
}
29532958
],
2954-
"ResultsPageText": "Workflow has been canceled."
2959+
"ResultsPageText": "Workflow has been canceled.",
2960+
"SkipForLanguages": "java;node;php;python;ruby"
29552961
}
29562962
]
29572963
}

0 commit comments

Comments
 (0)