lib/core/core_internal.rb
# Function prepare of loading a module process.
Function prepare of loading a module process.
Function prepare of loading a module process .
def _process_module_to_load(index, my_process, a_process)
      name = a_process[:process_module]
      if name.nil?
        PrcLib.warning(':process_module is empty. Process not properly loaded.')
        return
      end
      name = name.to_s if name.is_a?(Symbol)
      unless Lorj.processes.key?(name)
        PrcLib.warning("Unable to find Process module '%s'. Process not "\
                       'properly loaded.', name)
        return
      end
      module_process = Lorj.processes[name]
      my_process[:process_name] = name
      my_process[:process_path] = module_process.process
      my_process[:lib_name] = module_process.lib_name
      if a_process[:controller_path]
        my_process[:controller_path] = a_process[:controller_path]
        return my_process
      end
      _process_module_set_ctr(my_process, module_process.controllers,
                              a_process[:controller_name])
      _process_load_data(config, index, name, module_process.defaults_file,
                         PRC::SectionConfig)
      _process_load_data(Lorj.data, index, name, module_process.data_file)
      my_process
    end
def _process_module_to_load ( index , my_process , a_process ) name = a_process [ :process_module ] if name . nil? PrcLib . warning ( ':process_module is empty. Process not properly loaded.' ) return end name = name . to_s if name . is_a? ( Symbol ) unless Lorj . processes . key? ( name ) PrcLib . warning ( "Unable to find Process module '%s'. Process not " 'properly loaded.' , name ) return end module_process = Lorj . processes [ name ] my_process [ :process_name ] = name my_process [ :process_path ] = module_process . process my_process [ :lib_name ] = module_process . lib_name if a_process [ :controller_path ] my_process [ :controller_path ] = a_process [ :controller_path ] return my_process end _process_module_set_ctr ( my_process , module_process . controllers , a_process [ :controller_name ] ) _process_load_data ( config , index , name , module_process . defaults_file , PRC :: SectionConfig ) _process_load_data ( Lorj . data , index , name , module_process . data_file ) my_process end
Function prepare of loading a module process.
Function prepare of loading a module process .
# TODO: Implement Object definition as a config layer. # _process_load_definition(definition, index, name, #                          module_process.definition)
index
<not_specific>
my_process
<not_specific>
a_process
<not_specific>