Table of Contents

Article

How to force refresh of an entire work object form with a local flow action

Summary

A developer asks:

We require that our work object forms show components of the work object in several separate sections.  These are displayed in read-only mode, with several flow actions available to update the work object information. 

When we built local actions to update the work, Process Commander did not refresh the read-only sections of the work object form.  That means, for example, that when a user changed an account number in the flow action, the contents of the read-only harness section with the header "Account Info" was not updated. 

We devised a complex scheme of switching back and forth between two assignments, which works to update the fields as we wish, but makes the flow diagram hard to understand.  Is there a better way?

Suggested Approach

Here's an approach to take when of the "outer" parts of a work object form are not refreshed when users change data with a flow action.

The default logic that Process Commander follows to redisplay the work object form is:

  1. If there is no next assignment, display the Confirm harness.
  1. If the user remains are on the same assignment (local action, for example) -- redisplay the inner frame (only)
  1. If the user has moved to a different assignment (on the same or a different work object), refresh the entire work object form. 

However, you can force the entire work object form to refresh when you're still displaying the same assignment.

Typically, this is desirable when a local flow action affects content that's displayed in the full work object form, as in your case.

  1. Open the activity identified in the After this Action / Run Activity field (on the Action tab of the Flow Action form)
  2. Add this step to the activity:
    Property-Set param.Purpose = "NoPurpose"

Tags:

Published September 8, 2004 — Updated September 24, 2004


100% found this useful

Have a question? Get answers now.

Visit the Pega Support Community to ask questions, engage in discussions, and help others.