cancel
Showing results for 
Search instead for 
Did you mean: 

Accessing task variables in expression of a formproperty

mf
Confirmed Champ
Confirmed Champ
I want to use task local variables in expression of a form property. Is it possible to access DelegateTask in an expression? For example, i have a boolean formproperty with this expression:

${task.hasVariable('var')}‍‍‍


But in getting FormData of the task (formService.getTaskFormData(taskId)), i get this error:

org.activiti.engine.impl.javax.el.PropertyNotFoundException: Cannot resolve identifier 'task'‍‍‍


3 REPLIES 3

jbarrez
Star Contributor
Star Contributor
No, form property don't support task or execution injection.

mf
Confirmed Champ
Confirmed Champ
So, there is no way to check if a local-task variable exists or not in a form property expression?

trademak
Star Contributor
Star Contributor
No, not in the current version. It's expected that there's a variable value.

Best regards,
Welcome to the new Hyland Connect. Get started or submit feedback.