Announcing the Saviynt Knowledge Exchange unifying the Saviynt forums, documentation, training,
and more in a single search tool across platforms. Read the announcement here.
No ratings
Akshay_Ganesan
Saviynt Employee
Saviynt Employee

Symptoms

A 'Lexical Error' is seen in the logs when a workflow is triggered.

Example : 

ERROR services.WorkflowService - Exception in workflow service
de.odysseus.el.tree.TreeBuilderException: Error parsing '#{(requestedby.XYZ.collect { it.X}.contains("ABC")) eq true }': lexical error at position 27, encountered invalid character '{', expected expression token

Diagnosis

collect() is a Groovy method

Solution

In the If-Else component of a workflow, a Groovy method like 'collect' can be used. The expression language will then have to be set as 'Groovy'

Comments
rushikeshvartak
All-Star
All-Star

Can you share final working syntax

@Akshay_Ganesan 

Akshay_Ganesan
Saviynt Employee
Saviynt Employee

Issue isn't with the syntax.

The expression language needs to be set as Groovy when a Groovy method is being used.

Version history
Last update:
‎01/09/2023 01:08 PM
Updated by:
Contributors