When user delete Process Instance from cockpit, it should trigger a service task

Hmmmm… Interesting one.

What you describe is not cancelling the instance, but sending a signal to the instance.

Cancelling the instance means… cancelling the instance. What you are describing is either process modification, or interrupting boundary event.

This business requirement may need another interface to send a message or signal for an interrupting boundary event, or you might use process modification in Cockpit.

Hope this helps,
Josh