Skip to content

Commit

Permalink
Merge branch 'main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
Jithesh-poojary authored Feb 2, 2024
2 parents 3275a10 + 399ed7c commit e1555a9
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 23 deletions.
2 changes: 1 addition & 1 deletion Tests/Api/WorkflowResourceApiTest.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using conductor.csharp.Client.Extensions;
using conductor.csharp.Client.Extensions;
using Conductor.Api;
using Conductor.Client.Extensions;
using Conductor.Client.Models;
Expand Down
22 changes: 0 additions & 22 deletions csharp-examples/WorkFlowExamples.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,12 @@ public class WorkFlowExamples
private const string VARIABLE_NEW_VALUE_2 = "<REPLACE_WITH_OWNER_VALUE_2>";
private const int REST_CLIENT_REQUEST_TIME_OUT = 20000;


public void RegisterWorkFlow()
{
Configuration configuration = new Configuration(REST_CLIENT_REQUEST_TIME_OUT)
{
AuthenticationSettings = new OrkesAuthenticationSettings(KEY_ID, KEY_SECRET)
};
var con = ApiExtensions.Configuration;
Configuration configuration1 = new Configuration();
WorkflowExecutor executor = new WorkflowExecutor(configuration);
executor.RegisterWorkflow(GetConductorWorkflow(), true);
}
Expand All @@ -58,25 +55,6 @@ private ConductorWorkflow GetConductorWorkflow()
return conductorWorkFlow;
}

public void UpdateWorkflowVariablesWithWorkFlowId()
{
var orkesApiClient = new OrkesApiClient(new Configuration(),
new OrkesAuthenticationSettings(KEY_ID, KEY_SECRET));
var workflowClient = orkesApiClient.GetClient<WorkflowResourceApi>();
var workFlowVariables = new Dictionary<string, object>
{
{ 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
});
}


/// <summary>
/// To test Update variables with workflowId
/// </summary>
Expand Down

0 comments on commit e1555a9

Please sign in to comment.