Offline capability for case types
Case types in an offline-enabled application do not automatically support the
offline mode. You must enable the offline capability for each case type that needs to
run in the application while not connected to the network.
A single
offline-ready application can support both online-only and offline-ready case types. The
online-only case types are still available in the mobile app, but a user can create or edit
assignments only while online.
The following restrictions apply for offline-enabled case types:
- You must use stages and use pyStartCase as the starting flow on a case.
- Case stage transitions are not supported.
- Subcases are supported under the following conditions:
- Automatically when a case starts without user interaction. This works with only if you have a case type setting.
- By using any shape (with the exception of assignment, subprocess, and decision) that is initiated without user interaction. The shape displays the review harness and creates a child case during a sync operation.
- By direct user interaction, when the user clicks Add Work . This requires additional configuration to call a JavaScript API since dynamic menus are not supported in offline mode. The developer must explicitly provide an option for a user to create a child case.
- Circumstance application rules are not supported.
After offline capability is enabled for a case type, you can create individual assignments within that case type while working offline. Screen flows that are part of the case type can also be run while offline. For more information, see Flow processing in offline mode.
Case types use dynamic views by default, which will not work in offline mode. Disable dynamic views on the Views tab of the offline-enabled case type so that the case type uses regular harnesses and sections.
Note: After you log in to a mobile app on a device and enable or disable the offline
capability in Dev Studio for the application's case types,
either reinstall the mobile app or clear its data for the settings to take effect.