Conflict Resolution Policy

When more than one client alters the same record and synchronizes to the backend, one of the client's version might conflict with that of the server. Custom Conflict Resolution helps to resolve such conflicts.

You can enable conflict resolution policy in Fabric Console under the Objects Service section. The Conflict Resolution Policy check box is displayed only when you select the Offline enabled check box. The default value is None.

Conflict Resolution Policy contains the following options:

  • None: If you select None, the server does not check for conflicts. We recommend the None option when the conflicts are not expected such as in the cases of download only and upload only.
  • Client Wins: If you select Client Wins, changes made by the client are retained.
  • Server Wins: If you select Server Wins, changes made by the server are retained.
  • Custom: If any of the earlier mentioned options do not meet your requirements, you can specify either a Java or a JavaScript class that contains a custom code to resolve a conflict. Upload the JAR file of Java or a JavaScript class from the Advanced section.

    For sample Java class codes, refer to Java Sample Codes for Custom Conflict Resolution.