I am receiving the following error message when accessing ProcessInstance data from an aspx page :
DEVEDUUC10634 is not allowed to open the worklist item
which is coming from the following code :
public
void Main(ref DestinationRuleContext K2) {K2.ResolveQueuesToUsers = true;
SourceCode.K2Utilities.DSHelper oDSH = new SourceCode.K2Utilities.DSHelper(SourceCode.K2Utilities.DSHelper.DSHelperNewOptionsEnum.DefaultLDAPDomain);
System.DirectoryServices.DirectoryEntry oDEManager;
string sManager;
bool bAllTrue = true;
CDest1 oDest1 = new CDest1();
oDest1.Main(ref K2);
if (oDest1.IsSuccess == true) {
//== sendto
************* These lines are switched, the first causes the error **********
K2.Destinations.Add(DestinationType.User, K2.ProcessInstance.DataFieldsd"SponsorFQN"].ToString());
//K2.Destinations.Add(DestinationType.User, @"DEVEDUUC10634");
******************************************************************************
if (bAllTrue == false) return;
}
}
// Destination Classes
public bool IsSuccess = false;
public void Main(ref DestinationRuleContext K2)
{
this.IsSuccess = true;
}
}
These lines should be equivalent but the first causes a permission error message, the second runs the aspx page successfully. SponsorFQN ProcessInstance data is being populated with DEVEDUUC10634 successfully.