JavaScriptΒΆ
The business entity, JavaScript is used to create and manage the JavaScript files.
You can create new JavaScript files based on the requirements and then associate them with the platform based on the business requirement.
Viewing JavaScriptΒΆ
The javascript entity associated with each flow will appear within that flow.
- Navigate to App Studio > Applications - open application name > Process Flow - process flow name > Open.
-
Click JavaScript on the left side panel for viewing the JavaScript entities for the flow module.
Creating New JavaScriptΒΆ
- Navigate to App Studio > Applications - open application name > Process Flow - process flow name > Open.
-
Click JavaScript. The JavaScript entity list appears.
-
Click +Create New. The Info Actions panel appears as Create JavaScript.
-
Enter the Basic details in the Create JavaScript panel as explained below.
-
Click Create. JavaScript entity with the provided details is created.
Viewing and Editing JavaScriptΒΆ
Make sure to unlock the application before editing if you want to edit the details of an entity that is not created by you.
- Navigate to App Studio > Applications - open application name > Process Flow - process flow name > Open.
- Click JavaScript. The JavaScript entity list appears.
-
Click the JavaScript card for viewing the details of the selected JavaScript entity. The details of the JavaScript appear in the Info Actions panel (Edit JavaScript).
-
Edit the JavaScript details as needed.
!!! note
If you upload a new JavaScript file, you need to deploy the process flow for updating the JavaScript file.
- Click Save.
Viewing JavaScript AssociationsΒΆ
- Navigate to App Studio > Applications - open application name > Process Flow - process flow name > Open.
- Click JavaScript. The JavaScript entity list appears.
- Hover over any JavaScript entity card. Three dots appear on the upper right side of the card.
-
Click the three dots. More Actions appear.
-
Click Associations. The association of the JavaScript entity with the application, flow modules and activities are displayed in a pop-up.
- Application - The application in which the JavaScript entity is utilized.
- Flow - The flow in which JavaScript is utilized.
- Activity/Entity - The entity or activity name in which JavaScript is utilized.
- Type - The type of entity or activity.
Duplicating JavaScriptΒΆ
Make sure to unlock the application before duplicating an entity that is not created by you. When you duplicate a JavaScript entity, the associations are not duplicated.
- Navigate to App Studio > Applications - open application name > Process Flow - process flow name > Open.
- Click JavaScript.
- Click a JavaScript entity. The JavaScript entity list appears.
- Hover over any JavaScript entity card. Three dots appear on the upper right side of the card.
-
Click the three dots. More Actions appear.
-
Click Duplicate. A confirmation pop-up appears.
-
Click Ok for duplicating the JavaScript entity (or you can click Cancel to cancel the duplicate action). A Success message appears on the successful duplication of the JavaScript.
-
Click Ok. A duplicate copy of the JavaScript entity appears on the JavaScript page with the same name suffixed with β_copiedβ.
Deleting JavaScriptΒΆ
Make sure to unlock the application before deleting an entity that is not created by you. Also, you cannot delete the entity if it is associate with any activity.
- Navigate to App Studio > Applications - open application name > Process Flow - process flow name > Open.
- Click JavaScript. The JavaScript entity list appears.
-
Click the JavaScript name card that is to be deleted. The lower-right of the page displays Delete.
-
Click Delete. A Confirmation pop-up for delete appears.
-
Click Ok for deleting the JavaScript entity.
Or
Click Cancel to cancel the action.
Alternatively, you can follow the below steps to delete the JavaScript entity:
- Click the Burger menu and navigate to App Studio > Application > {Process flow} > JavaScript.
- Hover over the JavaScript card. Three dots appear on the upper right side of the card.
- Click the three dots. More Actions appear.
-
Click Delete and follow step 5 in the above procedure.
Utilizing JavaScript EntityΒΆ
Mapping JavaScript Files in FormsΒΆ
You can map the entity, JavaScript to the Forms.
- Navigate to App Studio > Applications - open application name > Process Flow - process flow name > Open.
- Navigate to the entity, Forms.
- Click Create Form (you can select Form type as Custom JSP or HTML).
- Upload the JavaScript file that you created through the JavaScript entity.













