Follow the instructions below to add/edit an analytic script in WSO2 BAM:.
Table of Contents | ||
---|---|---|
|
Adding an analytic script
...
4. Click Save to save the script. Click No in the pop up dialog box if it is not required to schedule the script immediately. Else, click Yes to schedule the script before saving. For more information on scheduling, refer to section Scheduling 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:toolbox.
Editing manually
Follow the steps below to edit the toolbox scripts manually.
- Go to
<BAM_HOME>/repository/deployment/server/bam-toolbox
folder and select the.tbox
file you want to edit. - Open the
.tbox
file using any file archiving utility (e.g., 7z). - Edit the script file in the toolbox according to your requirements. Scripts are saved inside
Analytics
folder in the.tbox
file. - Once the edits are done, archive the main folder again and simply change its extension to
.tbox
. - Save the edited
.tbo
x file in the samebam-toolbox
folder mentioned above and restart the server.
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:.
- Log in to the BAM management console and click List in the Analytics menu in the Main menu.
Select the script you want to edit and click click the Copy as a New Script link associated with it.
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
- Do required modifications to the existing script and save it in a new name.
Editing other scripts
Follow the steps below to edit other analytic scripts using the management console.
- Log in to the BAM management console and click List in the Analytics menu in the Main menu.
- Select the script you want to edit and click the Edit link associated with it.
- Do required modifications to the existing script and save it.