diff --git a/csharp-examples/WorkFlowExamples.cs b/csharp-examples/WorkFlowExamples.cs index 5922836..f7ded8b 100644 --- a/csharp-examples/WorkFlowExamples.cs +++ b/csharp-examples/WorkFlowExamples.cs @@ -14,7 +14,6 @@ public class WorkFlowExamples private const string KEY_SECRET = ""; private const string OWNER_EMAIL = ""; - private const string WORKFLOW_ID = ""; private const string WORKFLOW_NAME = ""; private const string WORKFLOW_DESCRIPTION = ""; private const string TASK_NAME = ""; @@ -22,9 +21,7 @@ public class WorkFlowExamples private const string VARIABLE_OLD_VALUE = "SOME_OLD_VALUE"; private const string VARIABLE_NAME_1 = ""; - private const string VARIABLE_NEW_VALUE_1 = ""; private const string VARIABLE_NAME_2 = ""; - private const string VARIABLE_NEW_VALUE_2 = ""; public void RegisterWorkFlow() @@ -55,23 +52,7 @@ private ConductorWorkflow GetConductorWorkflow() return conductorWorkFlow; } - public void UpdateWorkflowVariablesWithWorkFlowId() - { - var orkesApiClient = new OrkesApiClient(new Configuration(), - new OrkesAuthenticationSettings(KEY_ID, KEY_SECRET)); - var workflowClient = orkesApiClient.GetClient(); - var workFlowVariables = new Dictionary - { - { VARIABLE_NAME_1, VARIABLE_NEW_VALUE_1 }, - { VARIABLE_NAME_2, VARIABLE_NEW_VALUE_2 } - }; - - workflowClient.UpdateWorkflowVariables(new Conductor.Client.Models.Workflow() - { - WorkflowId = WORKFLOW_ID, - Variables = workFlowVariables - }); - } + } }