Skip to content

Commit d479e14

Browse files
authored
Merge pull request mendix#10707 from ashish-kumar-offline/added-docs-for-cancel-sync
Add documentation for Cancel Sync client activity and button action
2 parents 459ba8d + d972ac8 commit d479e14

4 files changed

Lines changed: 44 additions & 0 deletions

File tree

content/en/docs/refguide/modeling/application-logic/microflows-and-nanoflows/activities/client-activities/_index.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ The following are the client activities you can use in your microflow or nanoflo
2020
* [Synchronize](/refguide/synchronize/) (nanoflows only) – synchronizes data between your device and the server
2121
* [Validation feedback](/refguide/validation-feedback/) – does a validation check, and if this check fails, it shows a message to the end-user
2222
* [Clear from device](/refguide/clear-from-device/) (nanoflows only) – clears all objects of an entity only from the local database of the device
23+
* [Cancel synchronization](/refguide/cancel-synchronization/) (nanoflows only) – cancels the running synchronization.
2324

2425
## Read More
2526

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
---
2+
title: "Cancel Synchronization"
3+
url: /refguide/cancel-synchronization/
4+
weight: 70
5+
#If moving or renaming this doc file, implement a temporary redirect and let the respective team know they should update the URL in the product. See Mapping to Products for more details.
6+
---
7+
8+
{{% alert color="info" %}}
9+
This activity can only be used in nanoflows.
10+
{{% /alert %}}
11+
12+
## Introduction
13+
14+
The **Cancel synchronization** activity cancels a running synchronization. You can trigger another synchronization later. For more information on the synchronization behavior, see [Synchronize](/refguide/mobile/building-efficient-mobile-apps/offlinefirst-data/synchronization/).
15+
16+
## Properties
17+
18+
There are two sets of properties for this activity, those in the dialog box on the left, and those in the properties pane on the right:
19+
20+
{{< figure src="/attachments/refguide/modeling/application-logic/microflows-and-nanoflows/activities/client-activities/cancel-synchronization/cancel-synchronization-properties.png" >}}
21+
22+
The **Cancel synchronization** properties pane consists of the following sections:
23+
24+
* [Action](#action)
25+
* [Common](#common)
26+
27+
## Action Section {#action}
28+
29+
The **Action** section of the properties pane shows the action associated with this activity. It defines what happens when the **Cancel synchronization** activity is executed and specifies that the running synchronization process will be cancelled.
30+
31+
## Common Section {#common}
32+
33+
{{% snippet file="/static/_includes/refguide/microflow-common-section-link.md" %}}
34+
35+
## Limitations
36+
37+
* If the synchronization is in a step that applies file-related changes, it is not canceled to avoid leaving the system in an inconsistent state.
38+
* If the synchronization is already in its final steps, cancellation is not applied because most of the processing is already complete. The process is therefore allowed to finish.

content/en/docs/refguide/modeling/pages/on-click-event.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ When an event is triggered, you can choose what action is triggered. Possible op
6969
* [Show user task page](#show-user-task-page)
7070
* [Show workflow admin page](#show-workflow-page)
7171
* [Complete user task](#complete-task)
72+
* [Cancel synchronization](#cancel-synchronization)
7273

7374
### Do Nothing {#do-nothing}
7475

@@ -346,6 +347,10 @@ The following properties are specific for this event:
346347
* **Close page** – Specifies whether the current page should be closed.
347348
* **Commit** – Specifies whether the data container object should be committed when marking the task as completed.
348349

350+
### Cancel Synchronization {#cancel-synchronization}
351+
352+
The **Cancel synchronization** event cancels a running synchronization. You can trigger another synchronization later.
353+
349354
## Read More
350355

351356
* [Pages](/refguide/pages/)
Loading

0 commit comments

Comments
 (0)