Evaluate Expression Activity - Server Workflow - Custom function support?
Can evaluate expression run a custom function for server workflow types?
Client workflows allow you to setup a custom function in value.
- Create value. Name is value1. Set the expression to =function(){code here}
- Evaluate Expression, set the expression to =$value1.result()
- The evaluate expression runs the function defined in value1 successfully and the result is whatever the function returned.
This method works for client workflows but doesn't work for server workflows. Is the limitation on server workflows a security feature?
-
Hi @Tyson Schoepflin? ,
It's more likely a limitation of how Expressions are handled in Workflow Server. It runs in .NET and so the Typescript expressions are converted to C# before being executed. This is limited to using the corresponding properties and methods of objects in the C# implementation. It's not possible to declare functions on the fly like this without needing some kind of compilation.
0 -
Thanks for the reply!
0
Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.
Kommentare
2 Kommentare