comparision of group type variable with group constant always fails.

ri!teamToAssignTask = cons!TDD_Group_Cons (  )

The above condition is always returning false. The ri!teamToAssignTask is of type "Group" and constant is of a group. Somehow always this comparision is returning false.

 

Please refer to the process variable screenshot with the value for teamToAssignTask as TDDGroup and it's type is "Group" in process model, that is being passed into Interface as rule input and compared with constant of group. As shown in screen shot when tested in expression rule, it works fine, but when received from process model it does not work as expected and seems like the comparision values are like:   TDDGroup = 57 - TDDGroup (this will always fail and how to get the group id also be passed from process model? or how to convert group constant to not have the number in it? Please see screenshot on how process variable assigned cons!TDD_Group_Cons value.

 

 

Tried the following and still same. Please suggest something apart from these tried ones. Please advise how to fix this.

The complete code where i am using this condition is below:

 

a!checkboxField(
label: "NSA Approvals Required",
labelPosition: "ABOVE",
helptooltip: "Approvals required excluding TQRM and TDD reviews",
choiceLabels: {
------
},
choiceValues: {
------
},
value: ri!NSARequest.SelectedApprovalTeams,
saveInto: a!save(
ri!NSARequest.SelectedApprovalTeams,
save!value
),
disabled: if(ri!teamToAssignTask = cons!TDD_Group_Cons, false, true),
validations: {}
)

 

Tried to convert the constant to group type even though a constant of group returns a Group type. 

getgroupbyname(group(groupId:cons!TDD_Group_Cons,property:"groupName"))

Tried the below condition too

getgroupnames(cons!TDD_Group_Cons)

  Discussion posts and replies are publicly visible

Parents Reply Children
No Data