LicenseChecker Scenario

本主题概述了许可自定义变换器或工作区(作者/发布者)所需的步骤,并下载要使用的自定义变压器或工作区(最终用户)。

作者/发布者步骤

ABC公司创建了一个名为FME定制变压器XTransformer, which performs geometry manipulations. ABC wants to publish XTransformer to the FME Hub and protect this transformer by licensing.

第1步:使用安全软件注册亚搏在线

First, the author (company ABC) needs to register with Safe Software Inc. in order to publish transformers to FME Hub. Upon registration, the author will receive its unique registration code (for example, 45671111) from Safe Software.

Step 2: Validate Using the LicenseChecker

The author creates the XTransformer in FME Workbench and adds the LicenseChecker transformer to the data flow so that the translation succeeds only if the LicenseChecker transformer passes. Within the LicenseChecker, the author needs to specify the Vendor Registration received in step 1 and assign a custom key specifically for this XTransformer product.

A license file name needs to be specified in LicenseChecker. This file name will remain the same for all the licenses issued to the future end-users. To avoid possible conflict with other licenses, the license file name should be as unique as possible and include the publisher name. For example,xtransformer_com_abc.fmelic.

第3步:密码保护变压器并发布到FME服务器

The author saves the XTransformer with password protection. (Open the Navigator and click Transformer Properties > Advanced > Password). The author then publishes the XTransformer to the FME_Store repository.

第4步:为最终用户许可变压器

If an FME user wants to download and use the XTransformer, the user will contact the author by sending an e-mail with his or her FME registration key. Upon receiving the user’s key, the author will run the LicenseGenerator tool provided by Safe and generate a license file for the user. The license file should be named the same as the one specified in the LicenseChecker in Step 2.

许可证文件可能支持许可单或多个产品。亚搏在线娱乐平台如果作者有多个产品(例如,自定义变换器或工作区),则这些产品名称可以包含在一个许可文件中,并由单独的LicenseChecker变压器验证。

For example, if the author has another custom transformer calledYTransformer这有一些属性操作,ABC可以使用LicenseGenerator工具将Xtransformer和Ytransformer添加到相同的许可证文件中:

End-User Steps

Step 1: User Downloads Transformer from the FME Hub

An FME user sees the XTransformer published by company ABC in the FME Hub and downloads it to his local computer.

第2步:创建和运行工作区

用户创建一个FME工作空间,包括新下载的Xtransformer。

When running this workspace, the FME translation fails and gives an error message that says something likeXTransformer is not licensed. Please contact author@abc.com for purchasing.

Step 3: Send License Request

用户将向作者发送许可证请求以及其FME注册密钥。

Step 4: License the Transformer

If the license request is granted by company ABC, the user will receive a license filextransformer_com_abc.fmelic通过电子邮件。用户需要将此许可文件复制到licensessubfolder of the FME installation folder (for example,C:\ Program Files \ FME \许可证).

步骤5:使用许可的变压器运行工作区

当用户再次使用Xtransformer运行工作区时,翻译将成功。