Support Article
Pre-processing activity in flow action executes in offline mode
SA-51762
Summary
A pre-processing activity in a flow action executes in the offline mode. This occurs when using a mobile application.
Error Messages
Not Applicable.
Steps to Reproduce
- Define an activity as a pre-processing action on a flow action
- Configure a Property-Set in the activity to set a property. For example, pyLabel
- Log in to the mobile application and create a work object
- Load this flow action. The pyLabel on the work object is updated, as the pre-activity is executed
Root Cause
This is as per the Pega Mobility product design. If a pre-activity is specified on the flow action which is on the first shape of the flow, it is packaged or executed by default on the mobile application. This does not apply to subsequent flow action shapes in the flow.
Resolution
Perform the following local-change:- Use the below When rule to skip the activity on the first step of the flow action:!pega.getPackageRuntime().isDeltaSync()
- Exit the activity in the first activity step
Published March 19, 2018 - Updated October 8, 2020
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.