Summary
How do you add a flag so FlxCapabilityResponseGetVendorDictionary detects returns at runtime?
Question
Using the FlexNet Embedded 2014.09 client to obtain a license from an instance of FlexNet Operations, when creating the license model, how do you add a Boolean field to indicate whether the license can be returned or not, as well as a string field for any additional info? The need here is to query these fields so as to prevent/allow the returning of licenses at run-time. How can this information be queried from the client?
Answer
This can be done by implementing the com.flexnet.opsembedded.publicapi.DeviceRequestHandler class. You can use this to add something to the response.
Attached is some sample code based on the samples that ship with FNO (CustomDeviceRequestHandler.java). All of the test stuff has been stripped out and just the handler return test is included as the key value pair. It is also possible to use the license model vendor string to add a value, either at entitlement time or license model specific if needed (just need to set when to create the string in the license model).
With this situation, first need to add a custom attribute to the FNO instance (per the DeviceRequestHandler class, which should be modified for the specific needs before doing a "flexnet site make" and then restarting the FNO server to implement the modifications).
Then, via the FNO admin console, add it to the license model (see attached license_model.jpg)
Next, created an entitlement that sets the value (see attached entitlement.jpg)
Then, back at your client, modify the capabilityrequest example to display the vendor string:
if ( !FlxPublisherAcquireLicenses(
clientObjects->publisher,
&license,
clientObjects->licenseSources,
survey,
version,
1,
0,
0,
error) )
{
DisplayErrorString(_T("acquiring survey license"), error);
return FLX_FALSE;
}
printf("Vendor string: %s\n", FlxLicenseGetVendorString(license));
This then takes the license that had been populated by the acquire call and used it to read the vendor string:
INFO: number of features loaded from capability response: 4
Vendor string: true
INFO: acquired license
INFO: deleted client objectsRelated Articles
How do you add a new column to FlexNet Operations? 5Number of Views How Do You Add Licenses to a Local License Server Without a Back-Office Server? 8Number of Views Microsoft Access Runtime 365 may crash when used by MGSBI to read data to be imported from files 12Number of Views Populate A ComboBox At Runtime With VBScript 3Number of Views Update the Progress Bar from a Custom Action at Runtime 5Number of Views
Hi, I am Reva - Ask me anything.
No new updates
Thanks for the feedback!
Your feedback has been saved.Rate this response:
Add Additional feedback ( Optional )
Are you sure you want to cancel
the case creation?
Are you sure you want to cancel the case creation?
Are you sure you want to close this case
| Products | Region | Phone Numbers |
|---|---|---|
| FlexNet Operations FlexNet Embedded FlexNet Publisher FlexNet Connect FlexNet Code Insight InstallAnywhere InstallShield |
North America * |
+1 630-332-2513 (toll) +1 877-279-2853 (toll-free in North America) |
| Europe * |
+44 1925 944367 (toll) +44 800 047 8642 (toll-free in Europe) |
|
| Japan * | +81 3-4540-5335 (select option 2) | |
| Australia * |
+61 3 9895 2177 +61 1800 560 603 (toll-free in Australia) |
|
|
Usage Intelligence (formerly
Revulytics) Compliance Intelligence |
Please use the Case Portal to submit your support ticket or reach out to your Revenera contact. | |
Case id: 00001065
Activity: Status change: 2 hours ago