Versions Compared

Key

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

Follow the instructions below to add/edit an analytic script in WSO2 BAM:

Table of Contents
maxLevel3

Adding an analytic script

...

There are two ways to edit an analytic script as follows:.

Editing scripts installed with toolboxes

Follow the instructions below  to to edit a script that came with a BAM toolbox:.

Editing manually

Follow the steps below to edit the toolbox scripts manually.

  1. Go to <BAM_HOME>/repository/deployment/server/bam-toolbox folder and select the .tbox file you want to edit.
  2. Open the the .tbox file  file using any file archiving utility (e.g., 7z).
  3. Edit the script file in the toolbox according to your requirements. Scripts are saved inside inside Analytics folder  folder in the the .tbox file file.
  4. Once the edits are done, archive the main folder again and simply change its extension to to .tbox.
  5. Save the edited edited .tbox file in the same bam-toolbox folder mentioned above and restart the server.
  6. Under the Analytics menu of the Main menu click List and then click View to view the edited script as follows.
    editing scripts installed with toolboxesImage Removed

Editing scripts added manually

Editing using the management console

If you have already installed BAM, you can change analytics scripts that are manually addedof toolboxes, using the management console as follows:.

  1. Log in to the BAM management console and click List in the Analytics menu in the Main menu.
    Image RemovedImage Added
  2. Select the script you want to edit and click Editclick the Copy as a New Script link associated with it
    editing scripts added manuallyImage RemovedImage Added

    Info

    You cannot use the management console to edit a script after it is deployed. The only way to do this through the UI is, by duplicating the old script and renaming it

  3. Do required modifications to the existing script and click Save.save it in a new name.

Editing other scripts 

Follow the steps below to edit other analytic scripts using the management console.

  1. Log in to the BAM management console and click List in the Analytics menu in the Main menu.

    Image Added
  2. Select the script you want to edit and click the Edit link associated with it. 
    edit analytic script using the management consoleImage Added
  3. Do required modifications to the existing script and save it.