def get_all_lcsm_names():
    lcstates = sorted({lcs for lcsm in lcs_workflow_defs.values() for lcs in lcsm.lcstate_states})
    avstates = sorted({avs for lcsm in lcs_workflow_defs.values() for avs in lcsm.availability_states})
    fsmevents = set()
    for lcsm in lcs_workflow_defs.values():
        for src, evt in lcsm.lcstate_transitions.keys():
            fsmevents.add(evt)
        for src, evt in lcsm.availability_transitions.keys():
            fsmevents.add(evt)
    fsmevents = sorted(fsmevents)

    return lcstates, avstates, fsmevents
Returns 3 lists of lcstate, availability state and transition event names
dataset/ETHPy150Open ooici/pyon/pyon/ion/resource.py/get_all_lcsm_names