getDrawing().getEditor().startUndo("Add Socket");
NodeSocket other = (NodeSocket) data.getTransferData(ClientFlavors.NODE_SOCKET);
String name = other.isEntrySocket() ? CoreConstants.SOCKET_IN : CoreConstants.SOCKET_OUT;
NodeSocket toAdd = msNode.createSocket(name);
// Make sure there is a workflow task parameter
if (msNode instanceof WorkflowNode)
{
ProcessElementFactory.getInstance().ensureWorkflowTaskParameter(toAdd);