How to pass multiple parameters to a KernelProcessStep in C# Process Framework #11586
Replies: 5 comments
-
Tagging @alliscode |
Beta Was this translation helpful? Give feedback.
-
+1 to this, would appreciate a response |
Beta Was this translation helpful? Give feedback.
-
Looking at the ProcessStepBuilder.cs implementation, the Process Framework can only bind one parameter per incoming event. Routing the same event twice, once per parameter seems to be a workaround (as in your second example). Not sure if this is correct by design though. |
Beta Was this translation helpful? Give feedback.
-
@esttenorio Can you help here? |
Beta Was this translation helpful? Give feedback.
-
Why do you need to pass the same parameter twice to the same step? Regarding sending multiple events to different steps it it possible: processBuilder
.OnInputEvent("Start")
.SendEventTo(new(prepareVideoStep, functionName: PrepareVideoStep.Functions.PrepareVideo, parameterName: "request"))
.SendEventTo(new(someOtherStep, functionName: PrepareVideoStep.Functions.PrepareVideo, parameterName: "_progressCallback")) |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
For example, if I have the following
KernelFunction
How do I set this up in the
ProcessBuilder
. This is what I have now (and it's working as i can view the request parameter being passed to the step)Should I repeat the
.SendEventTo
line by adding another parameter like the following?Beta Was this translation helpful? Give feedback.
All reactions