Custom renderer

Hi there,
I have a custom moddle extension extending bpmn:UserTask which is boolean.
I came down with this question if it’s possible to develop a custom renderer in the way that it could indicate whether that boolean is true?
Meaning when that flag became true, the icon of UserTask would change; e.g it becomes green.
many thanks in advance