Posted: 26 Nov 2017 14:03 EST Last activity: 21 Jun 2018 4:47 EDT
Finish assignment from the dashboard
I have to implement the requirement:
In a system, we have several workobjects (not too many). Say, 4 ongoing cases TO-1, TO-2, TO-3 and TO-4.
A user will not have access to these cases. Instead, on his dashboard, a user will see a grid repeat layout with a list of the cases with an ability to manage them (through controls like buttons and checkboxes).
Let's imagine, that a case is simple and quite straightforward - 2 stages, 1 process each, advanced one-by-one.
Currently, the case TO-1 is in 1 stage, 1 process, 1 assignment (routed to the current user).
I need to have a checkbox (or button, doesn't matter) in the grid layout which should populate a property and advance the case (finish current assignment).
How can I do that?
(FinishAssignment does not work due to lack of the context - it runs from @baseclass, not Work-)
Things I would first check is the source of the repeating grid is it D_pyUserWorkList or something else.
- If the source is D_pyUserWorkList, then you have to create a utility in Assign-Worklist to open a work object(to a dummy page) and run finish assignment on the dummy page. This utility has to be run on a button click from the grid.
Found this helpful in implementing the same functionality, and would like to leave a note for others looking to do the same using an activity triggered from the repeating grid as I did.
The source of the repeating dosen't necessarily have to be D_pyUserWorkList as implied, you can open any work object using a handle (an assignment's .pzInsKey, for example) from the repeating grid. The dummy page must also be saved and committed to the work object in the activity after modification, otherwise the changes won't register.
If finish assignment on the dummy page dosen't work, or if there is a need to jump to a specific step, you can call the OOTB activity SetTicket on the dummy page in the activity.