@@ -277,8 +277,7 @@ public String executeWorkflowNodeDescription(
277277 componentName , componentVersion , actionName , null , null , null , null , null , null , null , null , true );
278278
279279 try {
280- return workflowNodeDescriptionFunction .apply (
281- ParametersFactory .create (inputParameters ), actionContext );
280+ return workflowNodeDescriptionFunction .apply (ParametersFactory .create (inputParameters ), actionContext );
282281 } catch (Exception e ) {
283282 throw new ConfigurationException (
284283 e , inputParameters , ActionDefinitionErrorType .EXECUTE_WORKFLOW_NODE_DESCRIPTION );
@@ -317,9 +316,7 @@ private static ConvertResult convert(
317316 @ Nullable ComponentConnection componentConnection ) {
318317
319318 return new ConvertResult (
320- ParametersFactory .create (inputParameters ),
321- ParametersFactory .create (
322- componentConnection == null ? Map .of () : componentConnection .parameters ()),
319+ ParametersFactory .create (inputParameters ), ParametersFactory .create (componentConnection ),
323320 getLookupDependsOnPathsMap (lookupDependsOnPaths ));
324321 }
325322
@@ -358,13 +355,11 @@ private List<Property> doExecuteDynamicProperties(
358355
359356 try {
360357 BaseOutputDefinition .OutputResponse outputResponse = outputFunction .apply (
361- ParametersFactory .create (inputParameters ), connections ,
362- ParametersFactory .create (extensions ), context );
358+ ParametersFactory .create (inputParameters ), connections , ParametersFactory .create (extensions ), context );
363359
364360 return toOutputResponse (outputResponse );
365361 } catch (Exception e ) {
366- throw new ConfigurationException (
367- e , inputParameters , ActionDefinitionErrorType .EXECUTE_OUTPUT );
362+ throw new ConfigurationException (e , inputParameters , ActionDefinitionErrorType .EXECUTE_OUTPUT );
368363 }
369364 }
370365
@@ -374,8 +369,8 @@ private Object executeMultipleConnectionsPerform(
374369
375370 try {
376371 return performFunction .apply (
377- ParametersFactory .create (inputParameters ), componentConnections ,
378- ParametersFactory . create ( extensions ), context );
372+ ParametersFactory .create (inputParameters ), componentConnections , ParametersFactory . create ( extensions ),
373+ context );
379374 } catch (Exception e ) {
380375 throw new ExecutionException (e , inputParameters , ActionDefinitionErrorType .EXECUTE_PERFORM );
381376 }
@@ -387,8 +382,8 @@ private Object executeMultipleConnectionsStreamPerform(
387382
388383 try {
389384 return performFunction .apply (
390- ParametersFactory .create (inputParameters ), componentConnections ,
391- ParametersFactory . create ( extensions ), context );
385+ ParametersFactory .create (inputParameters ), componentConnections , ParametersFactory . create ( extensions ),
386+ context );
392387 } catch (Exception e ) {
393388 throw new ExecutionException (e , inputParameters , ActionDefinitionErrorType .EXECUTE_PERFORM );
394389 }
@@ -400,8 +395,8 @@ private Object executeMultipleConnectionsSseStreamResponsePerform(
400395
401396 try {
402397 return performFunction .apply (
403- ParametersFactory .create (inputParameters ), componentConnections ,
404- ParametersFactory . create ( extensions ), context );
398+ ParametersFactory .create (inputParameters ), componentConnections , ParametersFactory . create ( extensions ),
399+ context );
405400 } catch (Exception e ) {
406401 throw new ExecutionException (e , inputParameters , ActionDefinitionErrorType .EXECUTE_PERFORM );
407402 }
@@ -441,9 +436,7 @@ private List<Option> doExecuteOptions(
441436
442437 try {
443438 BaseOutputDefinition .OutputResponse outputResponse = outputFunction .apply (
444- ParametersFactory .create (inputParameters ),
445- ParametersFactory .create (
446- componentConnection == null ? Map .of () : componentConnection .getConnectionParameters ()),
439+ ParametersFactory .create (inputParameters ), ParametersFactory .create (componentConnection ),
447440 context );
448441
449442 return toOutputResponse (outputResponse );
@@ -471,32 +464,31 @@ private Object executeResumePerform(
471464 actionDefinition .getBeforeTimeoutResume ();
472465
473466 if (beforeTimeoutResumeOptional .isPresent ()) {
474- Optional <Map <String , ?>> additionalParameters = beforeTimeoutResumeOptional .get ()
475- .apply (
476- ParametersFactory .create (inputParameters ), ParametersFactory .create (continueParameters ),
477- context );
467+ BeforeTimeoutResumeFunction beforeTimeoutResumeFunction = beforeTimeoutResumeOptional .get ();
468+
469+ Optional <Map <String , ?>> additionalParameters = beforeTimeoutResumeFunction .apply (
470+ ParametersFactory .create (inputParameters ), ParametersFactory .create (continueParameters ),
471+ context );
478472
479473 additionalParameters .ifPresent (mergedInputParameters ::putAll );
480474 }
481475 } else {
482476 Optional <BeforeResumeFunction > beforeResumeOptional = actionDefinition .getBeforeResume ();
483477
484478 if (beforeResumeOptional .isPresent ()) {
485- Optional <Map <String , ?>> additionalParameters = beforeResumeOptional .get ()
486- .apply (
487- null , ParametersFactory .create (mergedInputParameters ),
488- ParametersFactory .create (continueParameters ), context );
479+ BeforeResumeFunction beforeResumeFunction = beforeResumeOptional .get ();
480+
481+ Optional <Map <String , ?>> additionalParameters = beforeResumeFunction .apply (
482+ null , ParametersFactory .create (mergedInputParameters ),
483+ ParametersFactory .create (continueParameters ), context );
489484
490485 additionalParameters .ifPresent (mergedInputParameters ::putAll );
491486 }
492487 }
493488
494489 return resumePerformFunction .apply (
495- ParametersFactory .create (mergedInputParameters ),
496- componentConnection == null
497- ? null : ParametersFactory .create (componentConnection .getConnectionParameters ()),
498- ParametersFactory .create (continueParameters ),
499- ParametersFactory .create (resumeData == null ? Map .of () : resumeData ),
490+ ParametersFactory .create (mergedInputParameters ), ParametersFactory .create (componentConnection ),
491+ ParametersFactory .create (continueParameters ), ParametersFactory .create (resumeData ),
500492 context );
501493 } catch (Exception exception ) {
502494 if (exception instanceof ProviderException ) {
@@ -522,11 +514,11 @@ private Object checkSuspend(
522514
523515 if (beforeSuspendOptional .isPresent ()) {
524516 try {
525- beforeSuspendOptional .get ()
526- . apply (
527- resumeUrl , suspend . expiresAt (),
528- ParametersFactory .create (suspend .continueParameters ()),
529- actionContext );
517+ BeforeSuspendConsumer beforeSuspendConsumer = beforeSuspendOptional .get ();
518+
519+ beforeSuspendConsumer . apply (
520+ resumeUrl , suspend . expiresAt (), ParametersFactory .create (suspend .continueParameters ()),
521+ actionContext );
530522 } catch (Exception exception ) {
531523 throw new ExecutionException (
532524 exception , Map .of (), ActionDefinitionErrorType .EXECUTE_PERFORM );
@@ -554,9 +546,7 @@ private Object executeSingleConnectionPerform(
554546
555547 try {
556548 return performFunction .apply (
557- ParametersFactory .create (inputParameters ),
558- componentConnection == null
559- ? null : ParametersFactory .create (componentConnection .getConnectionParameters ()),
549+ ParametersFactory .create (inputParameters ), ParametersFactory .create (componentConnection ),
560550 context );
561551 } catch (Exception e ) {
562552 if (e instanceof ProviderException ) {
0 commit comments