Accessing task variables in expression of a formproperty
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-26-2015 02:47 AM
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:
But in getting FormData of the task (formService.getTaskFormData(taskId)), i get this error:
${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'
Labels:
- Labels:
-
Archive
3 REPLIES 3
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-28-2015 08:41 AM
No, form property don't support task or execution injection.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-28-2015 09:18 AM
So, there is no way to check if a local-task variable exists or not in a form property expression?
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-29-2015 01:45 PM
No, not in the current version. It's expected that there's a variable value.
Best regards,
Best regards,