Last active
January 20, 2022 07:20
-
-
Save fnicollier/d507be7ab4c94db86f115c0da876415d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var methodPointer = processEngine.JsEngine.GetValue(jsMethod.Name); //Get the JS function from the Engine | |
jsMethod.Result = methodPointer | |
.Invoke(jsMethod.Parameters | |
.Select(p => processEngine.Results[p.Name]) | |
.ToArray()); //Invoke the JS function with all the parameters it has defined by reading them from the Results dictionary | |
processEngine.Results.TryAdd(jsMethod.Name, jsMethod.Result); //Add the output of the invoked function to the Results dictionary |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment