RE: How to select values from table based on parameter value?
Maybe you could try to call your class from your job to make sure you are using the same search criteria in both.
And also to make it easier, you could add an infolog in your class method for now. Something like this. Please share the results with us.
static void Job2(Args _args)
{
Str60 matrixrole = "Euk-000047";
EUKSecurityTreeNode eukSecurityTreeNode;
YourClass yourClass = new yourClass();
select RecId,MatrixRole from eukSecurityTreeNode
where eukSecurityTreeNode.MatrixRole == matrixrole;
if(eukSecurityTreeNode)
{
info(strFmt("menu %1",eukSecurityTreeNode.MatrixRole ));
}
yourClass.findElementsOfRole(matrixRole, 0);
}
public void findElementsOfRole(str _roleName, int64 _versionNumber)
{
EUKSecurityTreeNode securityTreeNode;
select securityTreeNode
where securityTreeNode.MatrixRole == _roleName;
info(_roleName);
if (securityTreeNode)
{
info("Found");
}
}