Script file management
Script file management includes creating, editing, and executing script files.
In the Multi-party Security Analytics console, you can use the SQL language to edit script files. These files enable you to perform multi-party data security analytics based on modeled data.
Create a script file
Log on to the Multi-party Security Analytics console. In the upper-right corner, select your project from the drop-down list.
In the Script File area, right-click a blank space or a folder and select New from the context menu. A dialog box appears.
In the File Name field, enter a name for the script file and click Confirm. The script file is created.
Edit a script file
Multi-party Security Analytics lets you write data analytics scripts using SQL syntax. A single SQL script file can contain one or more SELECT statements separated by a semicolon (;). When you edit a script file, the modeled data from the current project is used as the sample for data analytics.
After you create a script file, click its name to open it in the script editor. You can then write your data analytics script using the SQL language.
ImportantWhen you edit a script file, be aware of the security limits for using data analytics samples. For more information, see View data security configurations.
After you finish editing the script, click Save or Save As to save the file.
Execute script file
When you execute a script file, the task engine checks the data security authorization. If the authorization check fails, the script task fails.
After you finish editing the script file, click Execute in the upper-right corner of the page to run the script.
NoteThe console automatically saves the script file when you execute the script.
In the Task Management area at the bottom of the page, you can view the task execution records.
View execution results
In the Task Management area, click Result for the target Task ID to view the data analytics results from the script.
Typically, the results are statistical values aggregated by the GROUP BY statement. If the script passes the authorization check and executes successfully, the Result page can still display a two-dimensional table even if the script does not follow standard conventions.
Rename a script file
You can rename a script file after it is created.
In the Script File area, right-click the script file that you want to rename and select Rename from the context menu. A dialog box appears.
Enter a new name for the file and click Confirm.
Delete a script file
To clean up your workspace, you can delete script files that you no longer need.
In the Script File area, right-click the script file that you want to delete and select Delete from the context menu. A confirmation dialog box appears.
Click OK to delete the script file.