Skip to content

Commit

Permalink
In Orkes Conductor API when polling a workflow task maybe present wit…
Browse files Browse the repository at this point in the history
…hout a name or task reference
  • Loading branch information
jmigueprieto committed Dec 4, 2024
1 parent bb3dddf commit 0424189
Showing 1 changed file with 2 additions and 19 deletions.
21 changes: 2 additions & 19 deletions Conductor/Client/Models/WorkflowTask.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.IO;
using System.Linq;
using System.Runtime.Serialization;
using System.Text;
Expand Down Expand Up @@ -225,24 +224,8 @@ public enum WorkflowTaskTypeEnum
/// <param name="workflowTaskType">workflowTaskType.</param>
public WorkflowTask(bool? asyncComplete = default(bool?), string caseExpression = default(string), string caseValueParam = default(string), Dictionary<string, List<WorkflowTask>> decisionCases = default(Dictionary<string, List<WorkflowTask>>), List<WorkflowTask> defaultCase = default(List<WorkflowTask>), List<string> defaultExclusiveJoinTask = default(List<string>), string description = default(string), string dynamicForkJoinTasksParam = default(string), string dynamicForkTasksInputParamName = default(string), string dynamicForkTasksParam = default(string), string dynamicTaskNameParam = default(string), string evaluatorType = default(string), string expression = default(string), List<List<WorkflowTask>> forkTasks = default(List<List<WorkflowTask>>), Dictionary<string, Object> inputParameters = default(Dictionary<string, Object>), List<string> joinOn = default(List<string>), string loopCondition = default(string), List<WorkflowTask> loopOver = default(List<WorkflowTask>), string name = default(string), bool? optional = default(bool?), bool? rateLimited = default(bool?), int? retryCount = default(int?), string scriptExpression = default(string), string sink = default(string), int? startDelay = default(int?), SubWorkflowParams subWorkflowParam = default(SubWorkflowParams), TaskDef taskDefinition = default(TaskDef), string taskReferenceName = default(string), string type = default(string), WorkflowTaskTypeEnum? workflowTaskType = default(WorkflowTaskTypeEnum?), Dictionary<string, StateChangeConfig> onStateChange = default(Dictionary<string, StateChangeConfig>))
{
// to ensure "name" is required (not null)
if (name == null)
{
throw new InvalidDataException("name is a required property for WorkflowTask and cannot be null");
}
else
{
this.Name = name;
}
// to ensure "taskReferenceName" is required (not null)
if (taskReferenceName == null)
{
throw new InvalidDataException("taskReferenceName is a required property for WorkflowTask and cannot be null");
}
else
{
this.TaskReferenceName = taskReferenceName;
}
this.TaskReferenceName = taskReferenceName;
this.Name = name;
this.AsyncComplete = asyncComplete;
this.CaseExpression = caseExpression;
this.CaseValueParam = caseValueParam;
Expand Down

0 comments on commit 0424189

Please sign in to comment.