Skip to content

Instantly share code, notes, and snippets.

@fnicollier
Last active January 20, 2022 07:20
Show Gist options
  • Save fnicollier/d507be7ab4c94db86f115c0da876415d to your computer and use it in GitHub Desktop.
Save fnicollier/d507be7ab4c94db86f115c0da876415d to your computer and use it in GitHub Desktop.
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