Scripts
Scripting, or the ability to write scripts, is one of the advanced features that is included in Connectivity Hub.
-
You can write a script using VB.Net in order to modify the behavior of the Connectivity Hub.
-
For example, modify user loading, perform various transformations on data before this data is sent to the target system.
Typically, VB.NET Scripts are used for the following purposes:
-
Normalizing metadata values such as labels.
-
Setting the default values for metadata.
-
Removing or masking sensitive information.
-
Handling unstructured content.
-
Changing the security for items that you are indexing.
-
Controlling user and group loading in order to improve indexing.
When you write scripts, you can use the BA Insight functions that are automatically added to the library when you install your BA Insight Connector.
You can manipulate crawled document metadata, security, or unstructured data before it leaves the web service.
-
Use this functionality to truncate the unstructured data before is pushed to SharePoint (or any other target).
-
By using a library such as Tika, you can extract the text from your document and push only this information going forward.
-
You should notice a performance increase in crawling.
Alternatively, if the item contains sensitive information that should never leave the server, you can choose to drop an item.
Assemblies and Namespaces
The following list is the fixed set of assemblies and namespaces assumed for scripting:
Namespaces
- System
- System.Data
- System.Configuration
- System.Xml
- System.IO
- System.Text
- System.Collections
From
- System.dll
- System.Data.dll
- System.XML.dll
- System.Web.dll
- System.DirectoryServices.dll
- System.Security.dll
- System.Core.dll