@@ -225,7 +225,7 @@ private async Task ExecuteGraphNodeDfs(
225225 JsonOptions = options ? . JsonOptions
226226 } ;
227227
228- if ( RuleConstant . CONDITION_NODE_TYPES . Contains ( nextNode . Type ) )
228+ if ( RuleConstant . CONDITION_NODE_TYPES . Contains ( nextNode . Type , StringComparer . OrdinalIgnoreCase ) )
229229 {
230230 // Execute condition node
231231 var conditionResult = await ExecuteCondition ( nextNode , edge , graph , agent , trigger , context ) ;
@@ -252,7 +252,7 @@ private async Task ExecuteGraphNodeDfs(
252252 nextNode . Name , agent . Name , trigger . Name ) ;
253253 }
254254 }
255- else if ( RuleConstant . ACTION_NODE_TYPES . Contains ( nextNode . Type ) )
255+ else if ( RuleConstant . ACTION_NODE_TYPES . Contains ( nextNode . Type , StringComparer . OrdinalIgnoreCase ) )
256256 {
257257 // Execute action node
258258 var actionResult = await ExecuteAction ( nextNode , edge , graph , agent , trigger , context ) ;
@@ -334,7 +334,7 @@ private async Task ExecuteGraphNodeBfs(
334334 JsonOptions = options ? . JsonOptions
335335 } ;
336336
337- if ( RuleConstant . CONDITION_NODE_TYPES . Contains ( nextNode . Type ) )
337+ if ( RuleConstant . CONDITION_NODE_TYPES . Contains ( nextNode . Type , StringComparer . OrdinalIgnoreCase ) )
338338 {
339339 // Execute condition node
340340 var conditionResult = await ExecuteCondition ( nextNode , nextEdge , graph , agent , trigger , context ) ;
@@ -366,7 +366,7 @@ private async Task ExecuteGraphNodeBfs(
366366 nextNode . Name , agent . Name , trigger . Name ) ;
367367 }
368368 }
369- else if ( RuleConstant . ACTION_NODE_TYPES . Contains ( nextNode . Type ) )
369+ else if ( RuleConstant . ACTION_NODE_TYPES . Contains ( nextNode . Type , StringComparer . OrdinalIgnoreCase ) )
370370 {
371371 // Execute action node
372372 var actionResult = await ExecuteAction ( nextNode , nextEdge , graph , agent , trigger , context ) ;
0 commit comments