Discussion

3
Replies
2680
Views
brodr Member since 2013 6 posts
PEGA
Posted: 5 years ago
Last activity: 5 years 3 months ago
Closed

Modifying assignment status

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

 

Scenario:

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.

 

Solution:

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
Share this page LinkedIn