lib/core/core_process.rb
# Call meta lorj object deletion process
# There is no implementation of cascade deletion. It is up to the process to
# do it or not.
#
# * *Args* :
#   - +ObjectType+ : Meta object type to create.
#   - +Config+     : Optional. Hash containing list of data to use for
# creation.
#
# * *Returns* :
#   - +Deleted+    : true if deleted or false otherwise.
#
# * *Raises* :
#   - Warning if the create_e process handler did not return any data. (nil)
#   - Warning if the Config data passed are not required by the meta object
#     (or dependencies) at creation time.
#   - Error if ObjectType has never been declared.
#   - Error if the dependencies query_e process handler did not return any
#     data. (nil) - Loop detection.
#   - Error if the query_e process handler raise an error.
#
Call meta lorj object deletion process
There is no implementation of cascade deletion. It is up to the process to
do it or not.

*Args* :
+ObjectType+ : Meta object type to create.
+Config+     : Optional. Hash containing list of data to use for
creation.

*Returns* :
+Deleted+    : true if deleted or false otherwise.

*Raises* :
Warning if the create_e process handler did not return any data. (nil)
Warning if the Config data passed are not required by the meta object
(or dependencies) at creation time.
Error if ObjectType has never been declared.
Error if the dependencies query_e process handler did not return any
data. (nil) - Loop detection.
Error if the query_e process handler raise an error.
Call meta lorj object deletion process There is no implementation of cascade deletion . It is up to the process to do it or not . * Args * : + ObjectType + : Meta object type to create . + Config + : Optional . Hash containing list of data to use for creation . * Returns * : + Deleted + : true if deleted or false otherwise . * Raises * : Warning if the create_e process handler did not return any data . ( nil ) Warning if the Config data passed are not required by the meta object ( or dependencies ) at creation time . Error if ObjectType has never been declared . Error if the dependencies query_e process handler did not return any data . ( nil ) - Loop detection . Error if the query_e process handler raise an error .
def process_delete(object_type, hConfig = nil)
      return nil unless object_type.is_a?(Symbol)
      _add_instant_config(hConfig)
      unless PrcLib.model.meta_obj.rh_exist?(object_type)
        PrcLib.runtime_fail "%s.%s: '%s' is not a known object type.",
                            self.class, __callee__, object_type
      end
      proc = PrcLib.model.meta_obj.rh_get(object_type, :lambdas, :delete_e)
      if proc.nil?
        _remove_instant_config(hConfig)
        return nil
      end
      _process_load_dependencies(object_type, proc, :delete_e, __callee__)
      @runtime_context[:oCurrentObj] = object_type
      params = _get_process_params(object_type, :delete_e, proc)
      state = @process.method(proc).call(object_type, params)
      _remove_instant_config(hConfig)
      @object_data.delete(object_type) if state
    end
def process_delete ( object_type , hConfig = nil ) return nil unless object_type . is_a? ( Symbol ) _add_instant_config ( hConfig ) unless PrcLib . model . meta_obj . rh_exist? ( object_type ) PrcLib . runtime_fail "%s.%s: '%s' is not a known object type." , self . class , __callee__ , object_type end proc = PrcLib . model . meta_obj . rh_get ( object_type , :lambdas , :delete_e ) if proc . nil? _remove_instant_config ( hConfig ) return nil end _process_load_dependencies ( object_type , proc , :delete_e , __callee__ ) @runtime_context [ :oCurrentObj ] = object_type params = _get_process_params ( object_type , :delete_e , proc ) state = @process . method ( proc ) . call ( object_type , params ) _remove_instant_config ( hConfig ) @object_data . delete ( object_type ) if state end
Call meta lorj object deletion process
There is no implementation of cascade deletion.
Call meta lorj object deletion process There is no implementation of cascade deletion .
# Check required parameters # Context: Default object used. # build Function params to pass to the event handler. # return usually is the main object that the process called should provide
object_type
<not_specific>
hConfig
<not_specific>