Skip to main content


         This documentation site is for previous versions. Visit our new documentation site for current releases.      
 

Limiting offline packaging to data from the user's worklist

Updated on March 3, 2022

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.
Before you begin: 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.
  • Previous topic Disabling processing of attachments and signatures in offline mode
  • Next topic Disabling server-side postprocessing in offline cases

Have a question? Get answers now.

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

Did you find this content helpful?

Want to help us improve this content?

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

Pega.com is not optimized for Internet Explorer. For the optimal experience, please use:

Close Deprecation Notice
Contact us