def remove_workflow_name(name):
    """ Remove the workflow name from the beginning of task, input and output names (if it's there).
    E.g. Task names {workflowName}.{taskName} => taskName
         Input names {workflowName}.{inputName} => inputName
         Output names {workflowName}.{taskName}.{outputName} => taskName.outputName
    """
    partitioned = name.partition('.')
    name = partitioned[2] if partitioned[2] != '' else partitioned[0]
    return name