example/students_4/process/students/code/students.rb
# create_student process handler to get a student.
#
# * If not found, create it.
# * If multiple found, remove duplicates
# * otherwise return the one found.
create_student process handler to get a student.
If not found, create it.
If multiple found, remove duplicates
otherwise return the one found.
create_student process handler to get a student . If not found create it . If multiple found remove duplicates otherwise return the one found .
def create_student(sObjectType, hParams)
    PrcLib.state(format("Running creation process for object '%s' = '%s'",
                        sObjectType, hParams[:student_name]))
    list = process_query(sObjectType, :student_name => hParams[:student_name])
    case list.length
    when 0
      create_new_student(hParams)
    when 1
      found_one_student(list[0], hParams[:student_name])
    else
      found_multiple_students(list, hParams[:student_name])
    end
  end
def create_student ( sObjectType , hParams ) PrcLib . state ( format ( "Running creation process for object '%s' = '%s'" , sObjectType , hParams [ :student_name ] ) ) list = process_query ( sObjectType , :student_name => hParams [ :student_name ] ) case list . length when 0 create_new_student ( hParams ) when 1 found_one_student ( list [ 0 ] , hParams [ :student_name ] ) else found_multiple_students ( list , hParams [ :student_name ] ) end end
create_student process handler to get a student.
create_student process handler to get a student .
sObjectType
<not_specific>
hParams
<not_specific>