Skip to main content

Table of Contents

Limiting offline packaging to data from the user's worklist


Only available versions of this content are shown in the dropdown

Decrease the duration of data synchronization and limit the amount of data that the offline-enabled mobile app downloads, by implementing optimistic packaging for offline-enabled case types during data synchronization. With optimistic packaging, the app only packages and downloads the current flow that is active on the user's worklist.

For example, in an offline-enabled app for expense reporting, users might only need to access a flow in which they attach a receipt scan to a group expense report. Therefore, you can implement optimistic packaging for an expense submission case type to improve the app performance in offline mode.
Add a case type to your offline-enabled app. For more information, see Enabling case processing in offline-enabled mobile apps.

By default, when you enable the processing of a case type in offline mode, the entire case type and available rules are available offline after data synchronization. However, some use case scenarios do not require all case type data to be available offline, but only the rules that are relevant to the flow that is currently on the user's worklist. By limiting packaging to only the data that is relevant to the current work item, you can make the data synchronization in your offline-enabled app more effective for your business scenario.

  1. Open your mobile channel:

    1. In the header of Dev Studio, click the name of the application, and then click Channels and interfaces.

    2. In the Current channel interfaces section, click the tile that represents a mobile channel for your app.

  2. On the mobile channel page, on the Configuration tab, click the Offline category.

  3. In the Case type section, next to the case type for which you want to adjust the packaging, click the Edit configuration icon.

  4. In the case type configuration dialog box, expand the Advanced section.

  5. Select the Available offline only when in user's worklist check box.

  6. In the dialog box, click OK.

  7. On the mobile channel rule form, click Save.

  8. In the navigation pane of Dev Studio, click Records.

  9. Expand the Decision category, and then click When.

  10. In the list of when rule instances, search for the pyPackageAssignmentFlows when rule, and then set it to true=true.

    This rule is available in the @baseclass class and is set to false by default. For more information, see When Condition rules.
  11. On the when rule form, click Save.

Suggest Edit
Did you find this content helpful?

Have a question? Get answers now.

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

Ready to crush complexity?

Experience the benefits of Pega Community when you log in.

We'd prefer it if you saw us at our best.

Pega Community has detected you are using a browser which may prevent you from experiencing the site as intended. To improve your experience, please update your browser.

Close Deprecation Notice
Contact us