# File lib/ruote/exp/fe_wait.rb, line 51
    def apply

      h.for = attribute(:for) || attribute_text
      h.until = attribute(:until)

      s = h.for
      s = h.until if s == ''

      h.at = s

      if h.at

        h.schedule_id = @context.storage.put_schedule(
          'at',
          h.fei,
          h.at,
          'action' => 'reply',
          'fei' => h.fei,
          'workitem' => h.applied_workitem)

        persist_or_raise

      else

        reply_to_parent(h.applied_workitem)
      end
    end