Setting a condition inside of an execution listener set.Variable for variable that may not exist

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-21-2021 05:30 PM
The variable QaReviews may or may not exist.
An execution listener created with a conditional inside.
{execution.setVariable('QaReviews',QaReviews == null ? null : QaReviews + 1 )}
This condition fails when ran (where QaReviews doesnt exist) with following error: HTTP Status 500 - Request processing failed; nested exception is org.activiti.engine.ActivitiException: Unknown property used in expression: ${execution.setVariable('QaReviews',QaReviews == null ? null : QaReviews + 1 )}
The condition should evalute to true if QaReviews == null. Not sure why fails.
Labels:
- Labels:
-
Alfresco Process Services
0 REPLIES 0
