Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

Getting an enumeration value in a validator script

 I have a set of questions for a review process of which I have the values pass and fail. 

I need to be able to check the enumeration values of the questions to ensure all the questions are passed before being able too pass in onto the next state in the workflow. 

I am using the code 

If(workitem.getvalue(workitemattributes.inspection_question_1) === "review_answer.literal.l6")

However I'm not getting the required result. I have the code working for the state however am struggling accessing my custom enumeration attribute

Any ideas

0 votes



One answer

Permanent link
use double quotes around the enum id for getvalue
as in
workitem.getvalue("workitemattributes.inspection_question_1")

for user defined attributes, getValue works with double quotes.

hope it helps.

0 votes

Your answer

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 6,162

Question asked: Sep 17 '12, 6:38 a.m.

Question was seen: 5,537 times

Last updated: Sep 17 '12, 6:51 a.m.

Confirmation Cancel Confirm