You can update the dataslot associated with a workstep template with the help of an API provided for that purpose. You can update input and output dataslots, as well as dataslot names.
You can retrieve the names of dataslot associated with a particular workstep template with the help of the API. You can get input and output dataslot names as a HashMap, and input and output dataslot list as a Vector.