Skill Determination Rule Advanced

Paul Morneault
Tera Contributor

I have added a skill determination rule using the Advanced option.   The shell script code gives me a wonderful start...

/**
     * current is a GlideRecord from Source Table.
     *
     * The return value should be an array containing skill objects
     * The format of the skill object.
     *         The standard fields are:
     *           * skillName: The value to appear as the name of the skill
     *           * skillSysId: The unique sys id of the skill record (cmn_skill)
     *           * mandatory: The flag to identify if the skill is mandatory or not
     *
 
Yet, it does not give me the field for the optional field of Skill Level.  Does any one know what that would be? The result is that when the rule hits it adds a new record on task_m2m_skill with those standard fields, but the Skill level (skill_level) field remains blank.   
 
Thank you!
1 ACCEPTED SOLUTION

toptanti
Tera Expert

Hi Paul! You could use skillLevelSysId and specify the sys ID of the skill level. I tested the code below to assign my "Microstation" skill with skill level of "Expert"

var skills = [];
    var skill = {
        "skillName": "Microstation",
        "skillSysId": "143f6b6483355210d2a9b5b6feaad300",
        "skillLevelSysId": "372577a083755210d2a9b5b6feaad3d6", // Expert
        "mandatory": true
    };
    skills.push(skill);
	
    return skills;

 

View solution in original post

2 REPLIES 2

toptanti
Tera Expert

Hi Paul! You could use skillLevelSysId and specify the sys ID of the skill level. I tested the code below to assign my "Microstation" skill with skill level of "Expert"

var skills = [];
    var skill = {
        "skillName": "Microstation",
        "skillSysId": "143f6b6483355210d2a9b5b6feaad300",
        "skillLevelSysId": "372577a083755210d2a9b5b6feaad3d6", // Expert
        "mandatory": true
    };
    skills.push(skill);
	
    return skills;

 

Thank you, toptanti.  Very helpful.  This will be good to know for future.  (I ended up making simple rules instead of advanced for setting the skill level).