Shift pattern labor allocation logic

The Shftpat_Labor_String field is used to search and create shift pattern labor allocations. Attributes of the shift pattern labor allocation are specified in this format:

token-name=var,token-name1=var1,token-name2=var2 ..

where the allowed token names are:

Name Size Required Description
START_TIME 4 No Start time; format is hh24mm
END_TIME 4 No End time; format is hh24mm
DOCK_NAME 40 No Docket
HTYPE_NAME 40 No Hour type
JOB_NAME 40 No Job
TCODE_NAME 40 No Time code
PROJ_NAME 40 No Project
DEPT_NAME 40 No Department
ACT_NAME 40 No Activity
WBT_NAME 40 No WFM team name
FLAGS 10 No Flags
UDF1..10 40 each No User defined fields

For a series of shift pattern labor allocations, use the tilde (~) symbol to separate the records in the Shftpat_Labor_String:

a_token-name=a_var,
a_token-name1=a_var1,
a_token-name2=a_var2~
b_token-name=b_var,
b_token-name1=b_var1,
b_token-name2=b_var2 ...

For example:

START_TIME=1000,END_TIME=1800,JOB_NAME=Janitor~
START_TIME=1800,END_TIME=2000,JOB_NAME=Clerk
Note: If START_TIME and END_TIME are not supplied, the start and end time of the shift is assumed.