Ok I tried what you said and its not working at the moment.
The logon works fine and if the user has the role IT then the job isn't appearing in the workflow_tasklist but if i set the user's role to WFADMIN then it shows up fine. So im guessing the script for workflow_assignment is wrong? at the moment i have:
Code: Select all
if ( fields.WFKEY.value == "IT")
{
tables.EBASEROLES.insertRow();
tables.EBASEROLES.ROLEID.value = "IT";
tables.EBASEROLES.updateTable();
}
In the interactive task, under resources, i have it set to custom and the assignment key is IT. (The process has been released after making changes so its not that).
Edit: just realised what was wrong;
in the script, where it says "Using System Service:" it was set to the logon service not workflow_assignment so it wasnt showing the roles table. so i've changed the workflow_assignement script to:
Code: Select all
if ( fields.WFKEY.value == "IT") {
tables.ROLES.insertRow();
tables.ROLES.ROLEID.value = "IT";
tables.ROLES.updateTable();
}
Now it works fine
Thanks for you help.