Liquid
Last updated
Last updated
When working with Elsa, you'll often want to write dynamic expressions. This page provides a glossary of various filters and tags you can use, in addition to the standard set that you can find in the .
The Liquid Expressions feature is provided by the following package:
You can enable the feature as follows:
The UseLiquid
extension provides an overload that accepts a delegate that lets you configure the LiquidFeature
, which itself exposes a delegate to configure FluidOptions
.
For example:
The following filters, tags and objects are available to Liquid expressions:
The json
filter serialises an input value to a JSON string. Example:
The base64 filter converts an input value into a base64 string. Example:
The Variables
object provides access to the workflow variables. For example, if your workflow has a variable called OrderId, you can get that workflow variable using the following Liquid expression:
The Input
object provides access to workflow input. Example:
The WorkflowInstanceId
object provides access to the workflow instance ID of the currently executing workflow. Example:
The WorkflowDefinitionId
object provides access to the workflow definition ID of the currently executing workflow. Example:
The WorkflowDefinitionVersionId
object provides access to the workflow definition version ID of the currently executing workflow. Example:
The WorkflowDefinitionVersion
object provides access to the workflow definition version of the currently executing workflow. Example:
The CorrelationId
object provides access to the correlation ID of the currently executing workflow. Example:
You can find more filters, tags and variables in the .