Error while trying to Obtain and use Entity values by expression-CHelper.getEntityAttrib("Entity","ValueToReturn","filter","").
Hi, I am working on a Bizagi project and need to use business rule - "Obtain and use Entity values" using expression-CHelper.getEntityAttrib("Entity","ValueToReturn","filter",""). I followed the example given but couldn't get it right. My expression is:
var CreditGrade="<LoanAssessmentProcess.CreditHistoryReport.Creditassessment>";<LoanAssessmentProcess.CreditHistoryReport.RiskAssessment.Riskweight>=CHelper.getEntityAttrib("RiskScore","RiskRating","CreditGrade","");However, this doesn't return any value for RiskWeight. If I supply a value for CreditGrade in the expression itself (eg. CreditGrade=A), then I do get the corresponding risk rating. This means that the second line of my expression is correct but the first line which is used to get the value entered for credit assessment is not working. I was getting many more errors initially but resolved those, now I don't get any error during development or production but doesn't get any result either.Please note that attribute CreditAssessment in 1st line is a parameter entity, I thought that could be causing problem, so I tried the expression with a normal attribute from where entered value can be pulled but still it doesn't work.Please help. Thanks,Shilpa