code: def get_workflow_actions(obj):
      
  
      def translate(id):
          return t(PMF(id + "_transition_title"))
  
      transids = getAllowedTransitions(obj)
      actions = [{'id': it, 'title': translate(it)} for it in transids]
      return actions
docs: Compile a list of possible workflow transitions for this object