Changing Icon in a service task shape


#1

Hello All,

I am looking to change the cog wheel or gears icon rendered in the Service Task shape. I want to change it based on the type of plugin selected for that service task. Is there anything I can refer to or any pointers?

Thank you.


#2

So you want to change how the element is rendered on the canvas?

image


#3

Yes, on selection of a plugin, I want to display the type of plugin using an icon here.


#4

One thing you can do here is to create a custom element. Take this example to explore how it works. Furthermore inside a CustomRenderer you can implement the logic for changing the icon dependent to conditions you want to.