We use pipeline parameters today to capture the task name.
I have also submitted enhancement request IIC-I-1533 to add a task.name property that can be used in a Mapper Snap.
Supposedly, this enhancement request is intended to be delivered in an upcoming release.