class FlowChart::WorkDelegateAction

Attributes

current_work_owners[RW]
delegate_action_name[RW]
work_owners_trace[RW]

Public Class Methods

new(delegate_action_name,workprocessor=nil,&block) click to toggle source
# File lib/flowchart/work_processor.rb, line 31
def initialize(delegate_action_name,workprocessor=nil,&block)
        @current_work_owners = Hash.new
        @work_owners_trace = []
        @delegate_action_name = delegate_action_name
end

Public Instance Methods

process_delegate_action!(implementor_class,current_work_owners,assigned_to,assigned_by,options_for_delegate_action) click to toggle source
# File lib/flowchart/work_processor.rb, line 37
def process_delegate_action!(implementor_class,current_work_owners,assigned_to,assigned_by,options_for_delegate_action)
        puts @delegate_action_name
        new_work_owners = WorkOwner.work_assign(assigned_to,assigned_by)
        @work_owners_trace << new_work_owners
        @current_work_owners = new_work_owners
        implementor_class.set_current_work_owners(options_for_delegate_action)
end