Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

OVERVIEW:

  • The 'Run Javascript' Activity is used to perform advanced script-like processing using javascript. The use of this activity assumes you know javascript and can write simple javascript expressions.

       

  • After opening the 'Run Javascript' activity, you will get the below configuration panel.

      Image RemovedImage Added

Default Configuration Parameters:

  • Add any javascript expression.


HOW IT WORKS:

A Simple Example to configure the 'Run Javascript' activity in PopFlow Studio.

  • Select the 'Run Javascript' activity from 'Activity Sidebar'.
  • Click on 'Run Javascript' activity to open and configure the 'Run Javascript' activity.
  • Click on the 'Add Javascript' field and write any javascript expression.
  • In the below example we are showing an alert popup to show the 'Hello' message in the Oracle service cloud.

      Image RemovedImage Added

  • After executing it will show an alert pop-up in the Oracle Service Cloud as shown below.

...

  • You can also show the interaction value or you can perform some logic on the interaction value.
  • In the below example, we are showing the interaction data into the console.

     Image RemovedImage Added

  • After writing the javascript expression in the given fields you can close and save the activity by clicking outside of the activity panel.