I have a User Task (on Camunda 8) which has the assignee set via an expression based on a process variable, i.e. “= assignee”.
This works perfectly except if the variable “assignee” has the value null. I was expecting no assignee to be set in this case. However, I get
Expected result of the expression 'assignee' to be 'STRING', but was 'NULL'.
The documentation does not handle this case: User tasks | Camunda Platform 8
In Camunda 7, this can be accomplished using a
create task listener but In Camunda 8 there are no listeners so this solution doesn’t apply.
But I personally vote for assignee being nullable in both versions
Thanks @hassang for your opinion.
So we tend to agree that this is an unexpected behaviour which should be improved: the assignee should be able to handle null values.
I checked the Zeebe issues but didn’t find anything related.
Can someone from the Zeebe Team please confirm that this behaviour should be fixed. I could create an issue (and might have a look to fix it).