Skip to main content
Introduction to Expression

Process development

R
Written by Riku Virtanen
Updated over 7 months ago

Expression

The Expression, also known as Code Element allows you to create Process Variables and execute C# code directly in a Process. The Expression Element has two modes - one which declares a variable and assigns a value, and one that executes an expression.

If you chose to declare a variable and enter a variable name, the variable can be accessed with a #var. reference.

An Expression variable declared in the root path of a Process is accessible from child scopes and modification to it in the child scopes will be visible from the root. An Expression variable declared in the child scope will not be accessible in the root.

If an Expression Element declares a variable, then the return value of the Element will be the value of the variable.

An Expression Element that does not declare a variable will only return a String value indicating that it has been executed.

The Frends Processes have certain set of libraries available and those namespaces are listed on docs.frends.com. Remember that some of them require complete namespace written.

Did this answer your question?