example/students_2/process/students.rb in lorj-1.0.1 vs example/students_2/process/students.rb in lorj-1.0.2

- old
+ new

@@ -17,15 +17,15 @@ # Students process class StudentsProcess def create_student(sObjectType, hParams) PrcLib.state(format("Running creation process for object '%s' = '%s'", sObjectType, hParams[:student_name])) - + # byebug if ENV['BYEBUG'] # rubocop: disable Debugger object = controller_create(sObjectType) - fail format("Student '%s' not created.", - hParams[:student_name]) if object.nil? - PrcLib.info(format("'%s': '%s' created with id %s", - sObjectType, hParams[:student_name], object[:id])) + PrcLib.runtime_fail "Student '%s' not created.", + hParams[:student_name] if object.nil? + PrcLib.info("'%s': '%s' created with id %s", + sObjectType, hParams[:student_name], object[:id]) object end end # Declaring your data model and handlers.