How i can check validation on Service task or any task on modeler

Hello All,
Can any one suggest me the way, how we can check validations on service task or any other task name which we enter.
Actually i am facing issue like after enter name not able to check validation of type name in Task

Thanks

When you are referring to the direct editing of an element’s name right inside the diagram, then validation is nothing we provide out of the box. You would have to create this functionality yourself.

What you could do is to listen for the commandStack.element.updateLabel.postExecuted event via eventBus, checking for the updated value, and do further actions in regards to validation.