Product: TIBCO Spotfire®
How to set a Run Location of "Force Server" or "Force Local" when running a Data Function via API
This article explains how to set a Run Location of "Force Server" or "Force Local" when running a Spotfire Data Function via API.
You can set this programmatically in the "DataFunctionDefinitionBuilder" by adding a key to the "DataFunctionDefinitionBuilder.Settings" property, using the key "forcelocalengine" or "forceserverengine" depending on which behavior you want to force.
The following example sets a Run Location of "Force Server":
==========
DataFunctionDefinitionBuilder dfdb = new DataFunctionDefinitionBuilder("My Data Function", DataFunctionExecutorTypeIdentifiers.TERRScriptExecutor);
// other data function parameters go here
dfdb.Settings.Add("forceserverengine", null);
DataFunctionDefinition dfd = dfdb.Build();
==========
The SDK also provides some examples:
SpotfireDeveloper.DataFunctionsExample\ExampleExecutorCredentialsKey.cs
Comments
0 comments
Article is closed for comments.