Locking of a Fabric App

From V9SP2 FP2, Quantum Fabric supports Locking of Fabric Apps, which makes the services in the applications read-only with an ability to extend certain features like pre/post processors and request/response parameters of a service.

The Locking of an app helps to improve the Fabric app development aspects as follows:

  • Extensibility:

    Use case: When partners build vertical-based solutions like Infinity, currently the Client and Fabric applications are shared with customers. Customers make changes to the application to meet their business requirements. When Infinity releases a new version, customers are expected to redo all the changes again on the new version, which is time-consuming and is error-prone.

    By using the locking functionality, you can clearly demarcate the base functionality from the extensions done by the customers. With a locked base app, customers can extend the base product functionality as per their business requirements, without changing the base app functionality. When a new base app version is released, customers can import the updated base application, which only upgrades the locked portion of the app keeping the extensions intact.

The following sections detail you with more information on Lock App functionality:

How to Lock and Export a Fabric App

Only a user with an Owner role can lock Fabric apps. When a Fabric app is locked, the base app configurations are set to read-only, including some that are replaceable. The locked app is exported to your local system.

To lock and export an app, follow these steps:

  1. Log in to the Fabric Console with user credentials that have an Owner role.
  2. In the Apps page, hover your cursor over the App menu button for the app.
  3. Click Export > Locked App. The base app configurations are locked and the app from the current workspace gets exported to your local system. The app is downloaded with a new name, for example <SampleAppName>_locked.

    NOTE: You can access the Locked App option within the app when the app is selected.

    The following service types are marked read-only when an application is locked

    • Integration Services
    • Object Services

Extending Locked Base Fabric Apps

The services that locked can be extended. When an app is locked, the app contains read-only fields and some are replaceable.

For example,

  • Pre-Post processors and Request and Response fields are extensible.
  • Base URL can be replaced.
  • The rest of the parameters are read-only.

How to Extend an Integration Service of a Locked Fabric App

  1. Log into your Fabric account and Import the Locked Fabric App into it.
  2. Navigate to the Integration tab.
  3. Select the service.
  4. In Service Definition section, you can configure the following:

    • Base URL: This is replaceable. Specify a back-end URL, if required, and save the service.
    • Configurability of custom JARs:
      In Advanced > Custom Code:
      Select existing JARs or click Upload New to add new JARs.

      NOTE: Locked apps do not support these Advanced Configurations: Throttling and URL Provider Class.

      NOTE: From V9SP4, you can add new operations to the locked apps.

  5. Click an existing operation to add an extended configuration as follows:
    • Target URL: This is replaceable. Specify a back-end URL and save the service, if required.

    • Configurability of Java pre-processors and post-processors:
      In Advanced > Custom Code Invocation: The locked Java pre-processors and post-processors are enabled by default. You can choose to enable/disable them for your app.

      • To extend the locked base custom Java code, select new Java pre-processors and post-processors from the list. You can arrange for the selected pre and post-processors to be executed in the desired order during the operation call.

    • In Request Input and Response Output: The locked base app fields are read-only.

      You can add new parameters. To add new parameters, click Add Parameter and configure details.

  6. Click SAVE to save the configuration.
NOTE: For more information on Integration Services, refer to Integration Services

 

How to Extend an Object Service of a Locked Fabric App

  1. Import the Locked Fabric App into a Fabric account.
  2. Navigate to the Objects tab.
  3. Select the service.
  4. In the Service Definition, you can configure the following fields:
    • MetaData Security Level, Offline Enabled, Identity Service for Backend Token, and custom code JARs
  5. In the Data Model tab, you can configure the following:

    • To add new fields to the locked objects, click Add. The new fields in the locked objects are categorized as CUSTOM FIELDS.

    NOTE: For Locked objects, you cannot do the following in the Data Model tab:

    • Deleting locked objects.
    • Modifying the locked object name.
    • Adding new objects.
    • Modifying or deleting locked base object fields. The locked base fields of objects are categorized as BASE FIELDS.

  6. In the Mapping tab, you can configure the following:

    NOTE: From V9SP4, you can add verbs to the locked apps.

    NOTE: From V9SP7, Locked Service-Driven Objects Services supports the Mapping Sets feature.
    For more information, refer to Mapping Sets support for locked Object Services with Integration & Orchestration (SDO)

    NOTE: From V9SP7 FP1 supports Locked Common Mapping fields of Object Services displaying as a read-only mode under the Mapping tab > Common Mapping.

    You cannot edit or delete the locked common mapping.


    Locked Common Mapping Extensibility:
    - You can add and delete common mapping for the extended fields (custom fields) available in the Data Mapping.
    - When you Refresh Metadata for locked RDBMS Object Services, all the added custom fields are reflected in the Data Model and the Common Mapping. You can add and delete it.

    • Configurability of Java pre-processors and post-processors:
      In Advanced > Custom Code Invocation > Preprocessor and Postprocessor: The locked Java pre-processors and post-processors are enabled by default. You can choose to enable/disable them.

      • To extend the locked base custom Java code, select new Java pre-processors and post-processors from the list. You can arrange the selected pre and post-processors to be executed in the desired order during the operation call.

      NOTE: Locked apps do not support these Advanced Configurations: Stub Backend Response, Front End API, Pass-through Cookies, and Server Events.

  7. Extensibility of Object data mappings:
    In Visual/XML mapper section, you can configure the following:

    • All locked Visual/XML mapper/s are disabled for editing and deleting. By default, locked mappers are selected with the Enabled option to be included in the custom app by default. You can choose to enable/disable them.

    • You can add new mappings to the locked object verbs.

      To extend the base lock mapper, do the following:

      1. Click Add.
      2. Specify the mapper name and click SAVE. A new mapper placeholder is created.
      3. Click EDIT to configure mappers.

  8. Click SAVE to save the mapper configuration and the changes.
NOTE: For more information on Object Services, refer to Object Services.

 

 

Upgrading Locked Base Fabric Apps

From V9SP2 FP2, Quantum Fabric supports Locking of Fabric Apps, which makes the services in the applications read-only with an ability to extend certain features like pre/post processors and request/response parameters of a service.

The Locking of an app helps to improve the Fabric app development aspects as follows:

Upgradability:

Use case: When partners build vertical-based solutions like Infinity, currently the Client and Fabric applications are shared with customers. Customers make changes to the application to meet their business requirements. When Infinity releases a new version, customers are expected to redo all the changes again on the new version, which is time-consuming and is error-prone.

By using the locking functionality, you can clearly demarcate the base functionality from the extensions done by the customers. With a locked base app, customers can extend the base product functionality as per their business requirements, without changing the base app functionality. When a new base app version is released, customers can import the updated base application, which only upgrades the locked portion of the app keeping the extensions intact.

While upgrading locked custom apps with the higher versions of locked base apps, the custom locked app gets updated for the following:

  • Merges all the new changes in the higher version of the locked base app version into the custom app.
  • Retains all the extended configurations in the custom lock app version intact.

How to Upgrade a custom locked Fabric App version with a Higher Locked Base Fabric App version

  1. Log into your Fabric account, in which you have created a custom app version based on a locked base app version.
  2. From the Quantum Fabric Console, click Apps to display the Applications page > Import.

  3. The Import App dialog that appears, Drag and drop an app zip file (locked base app.zip) into the dialog box or click Browse to select the app you want to import, and click IMPORT. You can import an app as a new app or overwrite an existing app across various Quantum Fabric Consoles.

    Your custom locked app version has been upgraded with a higher locked base app version.

    For more information on importing apps, refer to Importing a Fabric Application.