Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

The predicate bean named shibboleth.BiConditions.Expression executes a Spring Expression Language (SpEL) expression against arbitrary inputs to produce a true/false result.

An Expression Predicate is instantiated by simply supplying a string argument that contains a SpEL expression.

Example

Code Block
<bean id="MyCondition" parent="shibboleth.BiConditions.Expression"
	c:expression="#input1 + #input2 < 10" />

Reference

Localtabgroup
Localtab live
activetrue
titleBean Properties

The following additional bean properties are available:

PropertyName

Type

Default

Description

customObject

Bean/Reference


An object to make available to the script via a variable named custom

inputTypes

Pair<Class<?>,Class<?>>


Allows type checking of inputs

returnOnError

boolean

false

What to return if the expression fails

Localtab live
titleExpression Context

The expression context will have the following variables populated:

  • input1 - the first input

  • input2 - the second input

  • custom - the object set via the customObject property, if any