We support the use of Spring expressions in Enterprise. The same objects available in the JBPM context are also available in the Spring context, and thus can be used for Spring expressions as well.
Spring expressions must start with #{
and end with }
. When Spring expressions are enabled, you must use #
instead of $
.
#{variables['<variable name>']}
instead of ${variables.<variable name>}
.Examples:
Description | Expression Language | Spring Expressions |
---|---|---|
Returns the description of an asset | ${asset.description} |
#{asset.description} |
Returns the ID of a user | ${user.id} |
#{user.id} |
Returns the first name of a user | ${user.firstName} |
#{user.firstName} |
Returns the last name of a user | ${user.lastName} |
#{user.lastName} |
Returns the company of a user | ${user.company} |
#{user.company} |
Returns the email address of a user | ${user.email} |
#{user.email} |
Returns the name of a UDO | ${object.name} |
#{object.name} |
Returns the title of an asset | ${asset.title} |
#{asset.title} |
Returns active proxies for a file asset | ${asset.activeProxies} |
#{asset.activeProxies} |
Returns the ID of an event (Used on event handlers) | ${event.id} |
#{event.id} |
Returns the ID of a job | ${job.id} |
#{job.id} |
Returns the due date of a job | ${job.dueDate} |
#{job.dueDate} |
Returns the start date of a job | ${job.startDate} |
#{job.startDate} |
Returns the end date of a job | ${job.endDate} |
#{job.endDate} |
Returns the priority of a job | ${job.priority} |
#{job.priority} |
Returns the current state of a job | ${job.jobState} |
#{job.jobState} |
Returns the ID of a workflow | ${workflow.id} |
#{workflow.id} |
A boolean expression on an event handler | ${event.flexManagedObject.variant.name == "Media"} |
#{event.flexManagedObject.variant.name == "Media"} |
User Enabled Event Handler | ${event.flexManagedObject.id} |
#{event.flexManagedObject.id} |
Password Reset Event Handler | ${event.mioObject.name} |
#{event.mioObject.name} |
Applies a run-rule expression in a Copy action details page | ${asset.mioObject.approved} |
#{asset.mioObject.approved} |
Execute Launch Workflow with an import action | ${variables.externalFileName} |
#{variables['externalFileName']} |
Executes a Segmented Proxy action via a workflow | ${variables.videoAssetIds} |
#{variables[‘videoAssetIds’]} |
Executes a Segmented Proxy action via a workflow | ${variables.audioAssetId} |
#{variables['audioAssetId']} |
Obtains the value of a workflow variable with this name (This can be a string, object, or date) | ${variables.varName} |
#{variables['varName']} |
Returns the current version of a workflow | ${workflow.version} |
#{workflow.version} |