# File lib/ruote/exp/fe_registerp.rb, line 65
    def apply

      registerp_allowed?

      if pa = attribute('participant')

        register_participant(h.applied_workitem['fields'][pa])

      elsif pas = attribute('participants')

        h.applied_workitem['fields'][pas].each do |part|
          register_participant(part)
        end

      else

        register_participant(attributes)
      end

      reply_to_parent(h.applied_workitem)
    end