Fabric Workflow Adapter

From V9 SP3, the new Fabric Workflow adapter (integration service) has been introduced in Quantum Fabric.

From V9 SP3, a new type of Fabric workflow has been introduced called “Integration Service” trigger type. This workflow type helps to visually create service orchestrations and then map them to an Integration service endpoint. This results in exposing Fabric workflows as API endpoints that can be invoked by clients or other backends without linking them to object models. In order to facilitate this, the new Fabric Workflow adapter has also been introduced as one of the Integration connectors.

Using the Fabric Workflow adapter, you can map Integration Trigger Workflows to an operation and invoke them directly as endpoints from external clients. The integration service when invoked then passes the request handling to workflow engine along with the Request Input. The Request Input is propagated as “Device_Request” scope to the workflow. Fabric then executes the workflow and responds back to the invoking integration service with an output response as mapped in the workflow designer. The integration service finally responds back to the clients with httpstatus, opstatus, workflow instance id and response output similar to all integration service invocations.

The following flow diagram details how the Sync Workflow works:

The following flow diagram details how the Async Workflow works:

For more information on how to create Integration (Sync/Async) Workflows, refer to the Integration Service Trigger Workflow.

Prerequisites

  • One or more Integration triggered Workflow Services should be created.

Configuring a Fabric Workflow Adapter involves the following steps:

How to Configure Service Definition for Fabric Workflow Adapter

To configure a Fabric Workflow adapter in the Integration Service Definition tab, follow these steps:

  1. In the Name field, provide a unique name for your service. When you enter the name, the name is updated for the active service under the Services section in the left pane.
  2. From the Service Type list, select Fabric Workflow.
  3. In the Authentication section, you can select an identity provider from Use Existing Identity Provider. This drop-down lists the identity providers created on the Identity page. If you select any identity provider, you have to enter valid login credentials.

    NOTE: The Authentication section is optional.

    NOTE: For more information on Externalizing Identity Services, refer to Replace the Identity Service references in a Fabric app.

  4. NOTE: All options in the Advanced section are optional.

  5. Enter the Description for the service.
  6. Click SAVE to save your service definition. The Operations List tab appears only after the service definition is saved. The following section details how to create operations.

How to Create and Configure Operations in Fabric Workflow Adapter

To create an operation, follow these steps:

  1. Click SAVE & ADD OPERATION in your service definition page to save your service definition and display the Operations List tab for adding operations.             
  2. From the ADD OPERATION, expand the Select Operations list and select check boxes for the available operations.
    NOTE: This list displays all the Integration Workflows linked to the App. Otherwise, displays the message There are no Integration Workflows linked to the App.

    The default name format of operations are as per the Integration Workflows, for example <IntegrationWorkflowServicenName>.

  3. Click ADD OPERATION. The new operations are created under Configured Operations section.

  4. Operation names are auto-generated in the default name format. You can change the operation name if required.
  5. To configure an operation: Once you create operations for Fabric Workflow adapter, you can configure the operations such as configuring advanced configurations, adding test values, and fetching the response.

    NOTE: To edit an operation, you can also click the operation from the service tree pane.

    The system displays the selected operation in the edit mode. Provide the following details to configure the operation.

    FieldsDescription
    NameThe Name field is pre-populated with field names of the selected operation. You can edit this field.
    Operation Security Level

    It specifies how a client must authenticate to invoke this operation.

    NOTE: The field is set to Authenticated App User, by default.

    Front End HTTP MethodThe Front End HTTP Method specifies the HTTP method that is used to invoke the Service operation from an HTTP Client. Visualizer and Other SDKs use POST method for communicating with Quantum Fabric.
    Associated WorkflowThe Name field is pre-populated with workflow names. You cannot edit this field.
  6. NOTE: All options in the Advanced section for operations are optional.

  7. Enter the Description for the operation.
  8. After you create operations, you can configure the request and response parameters.

  9. Click SAVE OPERATION.

    NOTE: You can view the service in the Data Panel feature of Quantum Visualizer. By using the Data Panel, you can link back-end data services to your application UI elements seamlessly with low-code to no code. For more information on Data Panel, click here.