Support Article

GoToPreviousTask not functioning properly on offline mobile



GoToPreviousTask not functioning properly on offline enabled custom mobile app.

When using a flow (NOT screen flow) we have customized the "Previous" button to call a javascript function, which simply calls the "GoToPreviousTask" function. We are passing in the parameters "skipValidations=true" and "previousAssignment=true." Online, this works flawlessly. When we bring this to an offline state, it does not work when it encounters subflows OR decision shapes. Instead, we are seeing the product go back to the first survey question of main flow.

Error Messages

There are no error messages.

Steps to Reproduce

  1. Create a flow with PegaSurvey question shapes.
  2. After one survey shape, create a subflow from the main flow.
  3. Add in a survey shape and use decision shapes sourced with boolean expressions that bring you back to the main flow.
  4. Then, create one more PegaSurvey question shape after that subflow.
  5. Add a "Previous" button to the harness and have it call a custom JS function.
  6. In your function, call the following line: 'pega.u.d.submit("pyActivity=GoToPreviousTask&skpValidaitons=true&previousAssignment=true");' Test online, then test on mobile in the offline mode.

Root Cause

A defect in Pegasystems’ code or rules


Apply HFix-30644

Published December 1, 2016 - Updated December 5, 2016

Have a question? Get answers now.

Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.