How to calculate the score of enum values selected

0
I have 3 enums which has same values and given score for them High - 3 Medium - 2 Low – 1 at last I need to calculate values based on the selection of enums (enum1, enum2, enum3)values total score = Enum1.High+Enum2.Medium+Enum3.High                                 3+2+3 =8   
asked
2 answers
4

Hi Priyanka, 
                 You have to create three Enum like this with different names.

And create an Integer variable activity and give the value like this.

 

answered
2

in the microflow u can use a create variable of int 

and do something similar to

 

parseInteger( if $Stage/Attribute=empty then getKey($Stage/Attribute) else '0')
+parseInteger( if $Stage/Attribute_2=empty then getKey($Stage/Attribute_2) else '0')

+parseInteger( if $Stage/Attribute_3=empty then getKey($Stage/Attribute_3) else '0')
 

answered