Action Synchronization

Navigation:  Knowledge Base > Page Editor > General Attributes >

Action Synchronization

Previous pageReturn to chapter overviewNext page

Action Synchronization is the sequence in which the actions are executed in Appexe.

 

Scenario:

 

There are two Parallel actions Action1 and Action4

 

Action1 has two success actions Action2 and Action3. Here Action2 is a Remote DB action

 

Action4 has one success action Action5.

 

Normal Action Sequence:

 

Action1->Action2->Action3->Action4->Action5

 

Exception Action Sequence:

 

The Remote DB Action takes more time to execute due to large amount of data or some other reason. In such case the sequence follows:

 

Action1->Action2(Running)->Action4->Action5->Action3(On Success of Action2)

 

 

mobilous_appexe_npe_myproject_generalattribute_ActionSync_structure

 

 

 

Above scenario is displayed in below example where user needs to enter a record containing Id, Name, Score and by calculating Percentage , to the Remote DB.

 

Step 1: Create page by dragging and dropping  UI Parts as below.

 

mobilous_appexe_npe_myproject_generalattribute_ActionSync_page

 

 

Step 2: Following Actions are applied to the "Action Synchronization" button on the page. Actions are as per the actions mentioned in the scenario above.

 

 

mobilous_appexe_npe_myproject_generalattribute_ActionSync_Actions

 

 

Action1 : Calculate

 

 

mobilous_appexe_npe_myproject_generalattribute_ActionSync_Action1

 

 

Action2: Remote Insert

 

 

mobilous_appexe_npe_myproject_generalattribute_ActionSync_Action2

 

Action3: Alert

 

 

mobilous_appexe_npe_myproject_generalattribute_ActionSync_Action3

 

Action4: Clear Text

 

mobilous_appexe_npe_myproject_generalattribute_ActionSync_Action4

 

 

Action5: Alert

 

 

mobilous_appexe_npe_myproject_generalattribute_ActionSync_Action5

 

 

Step 3: Preview the Page to view the Actions running for the scenario. Observe the Action Sequence in both Normal and Exception Case.