Robert Brodeur (brodr)
Sr Tech Doc Specialist
Pegasystems Inc.
brodr Member since 2013 6 posts
Posted: May 27, 2015
Last activity: July 20, 2015
Posted: 27 May 2015 16:15 EDT
Last activity: 20 Jul 2015 6:50 EDT

Modifying assignment status

Here's a situation that you might find useful when working with assignments in Pega 7.



When an Assignment first displays in my worklist, the assignment status is "New."

When I click the Assignment, the Assignment Status is set to the "Open" status, which signifies that I've begun working on this Assignment.

If I decide to transfer the Assignment, I need to return the Assignment back to the original "New" status.



To modify Assignment status without placing a "pre-activity' on each Connector or Local flow action, you can extend the activity Work-.PerformDefaults to change the assignment status to "Open." Additionally, you have to persist the assignment record back to the database during this process. This is because the page newAssignPage exists on the clipboard by the time this activity is executed.

To set the assignment status to "New," you can extend the activity Assign-.NewDefaults to Assign-Worklist and set the status there. If this is not a global requirement, then you would have to include logic to determine when to set the status to new versus leaving it as the default.

Moderation Team has archived post, This thread is closed to future replies. Content and links will no longer be updated. If you have the same/similar Discussion, please write a new Discussion.