xAPPnow LOW CODE PLATFORM - User Manual 

Still no account yet?

×

Training Frontend Service - Script Element

 

Chapter Overview

 
In this training chapter you get familiar with the script element. In this sample the script element evaluates the age of the client and if it's bigger than 18 then the registration is approved.
 
 
Model Explanation:
 
 
  • The model starts with a UI Page "Request Registration" where the user enters his personal data including the birthdate. A final script on the UI Page calculates the age.
  • An exclusive gateway evaluates if the process was canceled or not, if "YES" the process ends.
  • In case the model is not canceled the script element evaluates the age, if it is bigger than 18 the registration is "APPROVED" if not the registration is "DENIED".
  • A UI Page "View Registration Result" shows the registration status according to the script
  • An exclusive gateway evaluates if the button "Retry" was clicked
 
 
Training Frontend Service - Script Element
 
 
1

Script Element

1. Script Element
The script element contains the code to assign the status according the user age.
2

Main Script

2. Main Script
The main script editor allows to enter the typescript to evaluate the age.