How to handle new Assessment questions for Demand

jyates
Giga Contributor

We are trying to implement Demand in a new part of the business and they have new requirements for Assessment questions.   These have no overlap from the other part of the business. !

We are trying to determine if it is better to implement this as a new Assessment Type or Assessment Category under the Demand Assessment Type.

Does anyone have experience with the pros and cons of each approach?

Thanks

1 ACCEPTED SOLUTION

If you're getting On Demand assessments to obey the category rules, then I'd go with Categories.   Making a whole new Assessment Type seems like doubling the work.


View solution in original post

7 REPLIES 7

Uncle Rob
Kilo Patron

Ahh Assessments.... how you plague my soul all these years later.



Ok, so the approach will depend on the answers to a few specific questions.   OOB, Assessments trigger two ways:   On demand, or scheduled.   The absolutely, positively, teeth nashingly, mouth frothingly infuriating thing about the module is that it behaves completely differently depending on which the Type is defined as.   That is:   Scheduled assessments are the *only* way an assessment will obey the Category / User rules you've got set up (which would be perfect for your scenario as you'd simply dump questions into a new category that was only for a couple new people).   However:   On Demand completely ignores all the painstaking work you've done to have Categories associated with Users.



Rage.gif



So the big question is whether or not Demand assessments fire On Demand, Scheduled, or some other mechanism unique to Demand module.



(morganhunter - great example of what I was talking to you about @ K16 re: Assessment triggers)


jyates
Giga Contributor

The assessments follow the standard demand method and will go to the stakeholders indicated in the demand.   I believe that would classify them as onDemand as they are generated by the Business Rule "Create OnDemand Assessment".



OnDemand does seem to generate the appropriate assessments based on the category filter.   This works since we can create pretty clear separation in our categories.



We just added one line to the Business Rule (16):



var gr = new GlideRecord('dmn_m2m_demand_stakeholder');


var encodedQuery = "demand=" + current.sys_id + "^stakeholder.assessment=yes";


gr.addEncodedQuery(encodedQuery);


gr.query();


var userIds = "";


while (gr.next()) {


  if (!JSUtil.nil(userIds))


  userIds += ",";


  userIds += gr.stakeholder.user.sys_id;


}




if (!JSUtil.nil(userIds)){


  //create assessments for the list of users


  (new SNC.AssessmentCreation()).createAssessments('0556fa9a8f12110040f82ab2f0f923f8', current.sys_id, userIds, false, "");


  (new SNC.AssessmentCreation()).createAssessments('a29df4a31319e600fa7758222244b086', current.sys_id, userIds, false, "");


}


else


  //make sure to generate the ondemand assessments for the case where there are no stakeholders


  (new SNC.AssessmentCreation()).createAssessments('0556fa9a8f12110040f82ab2f0f923f8',current.sys_id, gs.getUser().getRecord().getValue("sys_id"), false, "");


dale11
ServiceNow Employee
ServiceNow Employee

I agree with the previous reply based on the additional clarification provided. Categories in conjunction with the aforementioned business rule is definitely the way to go with what you are trying to accomplish.


jyates
Giga Contributor

For clarification, is your suggestion to make a new Assessment Type for each unique set or add new Categories to the current Demand Assessment Type?