Appian Community
Site
Search
Sign In/Register
Site
Search
User
DISCUSS
LEARN
SUCCESS
SUPPORT
Documentation
AppMarket
More
Cancel
I'm looking for ...
State
Not Answered
Replies
5 replies
Subscribers
5 subscribers
Views
2206 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
Process
Identify all the tasks assigned to an Invalid User
Karthik
over 7 years ago
Some tasks in the active process instance are assigned to a user through expressions. The expression has touser("abcd") and the user id "abcd" is not a valid user. At the design time we could not catch this issue, but in run time the tasks are unassigned and active. When I go to the inspector mode I see an error saying "Some referenced items could not be found. Please check the model and correct any problems.". We fixed the issue for the new instances by checking the user name using 'isusernametaken', however, we want to manually alter the problem tasks which are already live. However, I dont know how to identify the problem tasks.
Is there any way that we can identify all such kind of tasks?
OriginalPostID-243223
Discussion posts and replies are publicly visible
0
rodgraham
Certified Lead Developer
over 7 years ago
Check if the process instances are shown in the processes with problems report. If they are you can then get to the tasks.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
ChristineH
Certified Lead Developer
over 7 years ago
I would try a process report:
forum.appian.com/.../Process_Reports.html
A process report for that model , that is in error, or is active with 0 active tasks might work
A task report with null assignee might work
Hope those ideas help point you in the right direction.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
benjamins
over 7 years ago
Agreeing with what christineh has said. You may also want to add another column that has the isusernametaken query on the assignee/user so you can filter out the results to only show you the tasks where the users are still active.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Karthik
over 7 years ago
The process report doesnt highlight this kind of process instances as erroneous. It reports all the sub processes with active tasks
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
marek
over 7 years ago
You probably want to make a task report from the link that christineh illustrated above. From here, you can click Edit and add a column under the Data tab with the expression tp!assignees, and another column for tp!owner. You would be interested in rows where both of these columns are null, which means that the task is not assigned to anyone and it is also not currently being worked on.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel