Foresight Analytics Platform enables the user to use application features to protect application systems based on the application. An application feature can be used to protect the whole application system or some of its functionalities.
In this case, an application system checks if there are valid licenses for predefined platform features and application features.
To create and use application features:
Select the functional units in the application system, which will be licensed separately. A functional unit may include either one procedure, or several Foresight Analytics Platform development environment units.
Determine a set of application features. Create names of application features and map them with selected functional units. Application feature names should consist of numbers and Latin letters without spaces in the ASCII 32-127 range. Name length must not be more than 24 characters.
The created application feature names will be required at the following steps.
Add checking if there is a license for application feature for each functional unit by means of the RequestLicense method. Add links to the Forms, Host, Ui system assemblies. Place the Button component with the Button1 identifier on the form. Set OnClick event handler for the Button1 component and execute the example without debugging:
Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
Var
LicManager: ILicenseManager;
Feature: String;
Lic: ILicense;
StatusCode: UiLicenseStatusCode;
Settings: IUiLicenseRequestSettings;
Begin
LicManager := WinApplication.Instance.LicenseManager;
Feature := "ApplicationFeature";
Settings := New UiLicenseRequestSettings.Create;
Settings.ShowActivationWizard := True;
StatusCode := LicManager.RequestLicense(Feature, Lic, Settings);
If StatusCode = UiLicenseStatusCode.Success Then
Lic.LicenseUpdate;
Else
// licensing errors processing
//...
End If;
//Working with licensed block
//...
//After work is finished, check in license
If Lic <> Null Then
Lic.LicenseRelease;
End If;
End Sub Button1OnClick;
On clicking the button the ApplicationFeature feature will be requested. If the feature is not available, the Activation of Unit dialog box opens.
NOTE. To check license for an application feature in the web application, call the and LicenseRelease methods via the web service using the ForeExec operation.
Send a request to activate application features to technical support to support@fsight.ru. Specify in the email application feature names determined at step 2.
The technical support prepares and sends a special utility lsinit.exe that activates application features in use.
Embed startup of the lsinit.exe utility into the application installation, if it is installed by means of installer. If the application system is installed differently, before using it start the lsinit.exe utility once at each workstation. Start the utility under the user who has administrator permissions. The utility does not have interface and does not return messages about executed result.
Install an application system on customer's premises.
NOTE. On installing an application system on customer's premises, use the Standard distribution file to avoid application code modification.
Get a license containing predefined and application features. To do this, send a request to support@fsight.ru, and specify names of required application features.
Activate Foresight Analytics Platform and the application system on the customer's premises using the obtained license. To activate the desktop application by means of stand-alone license, use Foresight Analytics Platform activation wizard. To use the network license, install license server, if required, determine license search settings.
As a result, the application system during the work checks if there are valid licenses for predefined platform features and application features.
See also:
Activation of Foresight Analytics Platform | Unit Activation | License Server and Features of Its Use