My FNZ Studio Version

Application Business Components (ABCs)

Latest Update: 16.11.2023 | , Margherita Taffarel
Documentation
2022.2

Some features described in this article may subject to separate surcharge. See the Digital Binder Licensing article for detailed information.

Note that Appway 2022.2 has been renamed FNZ Studio 2022.2. In this document it is also referred to, generically, as Platform.

This article refers to the Digital Binder ABC v5 or higher, compatible with Appway 11.1.3 or higher. See the Digital Binder (v5 and higher) Products card for more information.

1 Introduction to Digital Binder v5

Digital Binder v5 introduces significant changes with respect to the previous versions. It is designed and implemented as an App Task, following the principles of the new Data Model-driven configuration approach and the user interface is fully auto-generated starting from a Data Logic Business Object.

See details on App Tasks in the App Task - Generic Configuration article.

On the developer experience side, Digital Binder provides capabilities such as:

  • A data-driven and configuration-oriented approach.
  • Minimal effort for visuals and a reduced implementation effort thanks to its auto-generated UI.
  • A declarative approach, which reduces configuration time and effort.
  • Modularity and reusability by sharing basic concepts with other App Tasks (Data Rules, validation, actions, and so on) thus improving overall efficiency.

A large part of the configuration can be reused across Digital Binder, Data Gathering and Data Review App Tasks, hence reducing the configuration and maintenance effort.

1.1 Documentation Resources

This document contains configuration information and technical details on the Digital Binder App Task, and is intended for users in charge of Digital Binder configuration. See also:

2 Digital Binder Installation

2.1 Ingredients

All ingredients are provided by Support. Always check the Digital Binder Products card for information on all available ABC versions, their specific ingredients, and their compatibility with the Core Platform.
  1. AppTask Extension (included in the FNZ Studio Platform)
  2. AppTaskAPI Extension (included in the FNZ Studio Platform)
  3. DigitalBinder Extension

2.2 Technical Requirements

Digital Binder v5 requires the Appway Platform 11.1.3 or higher. Check the Platform version compatible with your Digital Binder version in the Digital Binder Products card. Moreover:

  • Make sure that your Platform installation includes all other mandatory extensions in addition to the AppTask and AppTaskAPI mentioned above. Check the System Upgrade guide compatible with your Platform version.
  • Make sure that your Platform installations includes the mandatory Packages (dowloadable from the Products page). Check the System Upgrade guide compatible with your Platform version.

2.3 Installation Steps

  1. Upload and start the extensions:
    • AppTask
    • AppTaskAPI
    • DigitalBinder

2.4 Digital Binder Upgrade

Upgrading from Digital Binder v6.1 to v7

Label Refactoring
Some Labels have been refactored in Digital Binder v7, therefore some actions may be necessary if you are upgrading to this version. See also the Labels and Translations section in the App Tasks - Generic Configuration documentation for further details.

  • Added Labels — The following Labels have been added to the AppTask Platform Package with default English texts. You can add and edit translations for such Labels (in Solution Design> Translations tab):
    • ErrorMessages.Savepoints.Fetch
    • ErrorMessages.Catalog.Fetch
    • ErrorMessages.Collaboration.Update
    • ErrorMessages.Data.Fetch
    • ErrorMessages.Default
    • ErrorMessages.Update.Collection.Add
    • ErrorMessages.Update.Collection.Remove
    • ErrorMessages.Update.Object.Create
    • ErrorMessages.Process.Action.Execute
    • ErrorMessages.Task.Init
    • ErrorMessages.Theme.Fetch
    • ErrorMessages.Document.Add
    • ErrorMessages.EndTask
    • ErrorMessages.StartSubprocess
    • ErrorMessages.Definition.Update

Upgrading from Digital Binder v5 to v6.1

Label Refactoring
The following Label has been added to Digital Binder v6.1. You should add translations for such Labels in Solution Design> Translations tab:

  • AddNewDocument.Loading.Text

Upgrading from v4 and lower to v5 and higher

Digital Binder v5 introduces significant changes with respect to the previous version (v4). It is designed and implemented as an App Task, following the principles of the new Data Model-driven configuration approach and the user interface is fully auto-generated starting from a Data Logic Business Object.
The user experience is also brand new and includes significant changes with respect to previous versions. For these reasons, no automated migration is available to upgrade from v4 to v5. The upgrade steps are individual to each solution and depend on the features being used and existing integration with the rest of the Solution.

3 The Digital Binder App Task in the Process Editor

After following the installation steps above, the Digital Binder App Task is available in your Platform installation in the Components library of the Process Editor.
Drag a Digital Binder App Task into your Process and configure it.

6DBDocumentationprocesseditor.png

The Digital Binder App Task is configured using the following tabs:

Tab Description Documentation Link
Properties Configure general properties of the App Task:
  • Task Title field: select the Label Business Object containing the title for the whole Relationship Definition page. In case the property is not set, it shows 'Appway'.
  • Task type dropdown: select the Task pattern.
App Task Types documentation
Documents Configure the set of Documents to be managed by the Digital Binder App Task and their properties (mandatoriness, business metadata, visibility, and so on). Documents section
Document Categories Configure the supported Document Categories, that is, the types of Documents handled following the same steps (referred to as Stages in the Digital Binder terminology). Document Categories section
Actions Configure generic and Document-level Actions that move Documents through Stages depending on their Category, type etc. Actions section.
Variable Assignments Configure assignments for the Business Objects used in the Digital Binder App Task.-

4 Documents

The Documents managed by the Digital Binder App Task are Data Class Instances with an associated Document Behavior. The Document Behavior marks Data Class Instances as Documents, with one or more files (for example front and back scan of a document) and their business metadata. Data Classes with this Behavior must contain one or more properties of type Blob:File (the actual files), while all other properties are considered business metadata.

The same approach is also used in the Data Gathering App Task to identify Documents and let the user populate corresponding files and metadata. Configuration details are described in the Data Class Configuration: File Uploader section of the App Tasks - Generic Configuration article.

Note: As in Data Gathering, the files contained by Documents are Blob:Files saved in the Platform Blob Storage. Therefore, all files to be managed by the Digital Binder App Task must be stored in that location. This is always automatically taken care of for files uploaded from App Task UIs (Data Gathering, Digital Binder), but must be ensured by the developer for other files (for example PDF files generated using Platform PDF generation capabilities).

In the Documents tab of the Digital Binder App Task, you can define the Data Class and Data Logic Business Object handling Documents:
DocProcessEditor.png

  1. In the Document Parent Data Class field, select the Data Class which all the Data Classes representing Documents inherit from. In case all Documents have the same Data Class type, that Data Class can be selected. The Documents whose type does not inherit from the selected Data Class are ignored. If the Data Classes representing Documents do not have a common parent Data Class, it is possible to keep the default selection Any.
  2. In the Data Logic field, select the Data Logic Business Object that defines the set of Documents to be managed. The necessary assignments are to be set in the Variable Assignments tab.

See the following sections for all Document configuration details.

4.1 Configuring Document Metadata & Nesting Structure

Unlike the Data Gathering App Task, the Digital Binder App Task ignores all Data Logic configurations which are not a single (or Collection of) Document(s), that is, Data Class Controls or Collection Controls (in the Data Logic Controls tab) whose design-time type is a Data Class associated with a Document Behavior that inherits from the Document Parent Data Class described above (if specified).
The Controls contained in such Data Class Controls and Collection Controls are used by the Digital Binder to render file upload and metadata UI elements for each Document, exactly as in the Data Gathering App Task. All of Data Logic standard features (sentries, Data Rules for Document metadata and so on) are fully supported.

The same Data Logic Business Object used to configure the Data Gathering App Task and Data Review App Task can therefore be used in the Digital Binder App Task. Such Data Logic will filter out all irrelevant Controls.

Note: Documents should be stored in dedicated properties nested in the Data Model. For example, the passport of each Client should be stored in a binding similar to $client.passport, instead of having one single collection containing all Documents handled by the Process. The recommended approach provides more fine-grained configuration capabilities (for example when defining Data Rules to be applied to each Document to determine its mandatoriness). However, the approach based on a single Collection containing all Documents is also supported.

In addition to the Data Class and Collection Controls representing Documents, the Data Logic Business Object also provides the nesting structure of Documents inside the Data Model (described by Group, Data Class and Collection Controls that contain the Controls representing Documents). This is shown as a "path" in the Categories View of the Digital Binder ABC to help the user identify Documents. The same information is also used in the Documents View to structure the list of Documents using the same hierarchy defined in the Data Logic, similarly to the approach used in Data Gathering.
7DBDocumentationdatalogic.png

See Data Logic configuration in the Data Gathering App Task for further details.

4.2 Configuring Document Table View

In the Digital Binder App Task, Documents are also displayed in Table View. This view is configured through the following Document Behavior properties (no additional configuration is required to render the table):

  • Title (Configuration tab) — The name of the Document in the table
    filefoldertitle.png
  • Label / Value (Labeled Values tab) — The table columns
    filefolderlabelledvalues.png
    Note: Since Documents with different Document Behaviors can have different Labeled Values, the table displays one column for each unique Label Id found in all Labeled Values of all Document Behaviors used by Documents in the table.

4.3 Adding Documents

The Digital Binder provides an option to add new Documents. This action allows adding Document instances to one of the Collections corresponding to Data Logic Collection Controls whose design-time type is a Data Class associated with the Document Behavior that inherits from the Document Parent Data Class described above (if specified).

Note: the Document Category selected in the Document Behavior of the Data Class corresponding to the Collection Control must be one of the Categories supported by the Digital Binder App Task (Document Categories tab). See the Document Categories section for more details.

The Data Logic Controls tab is therefore used to determine which Collections are available when adding new Documents.
In addition, if an Eligible Types Data Rule is defined in the Data Logic for the Data Class corresponding to the Collection type, the user can also select the specific Document type to be created when adding a new Document.

4.4 Configuring Document Mandatoriness

The Digital Binder relies on Mandatory Fields Data Rules defined in the Data Logic Business Object to identify mandatory files and metadata and, therefore, handle violations:

  • If a 'Mandatory Fields' Data Rule is specified for the Blob:File property of the Document, uploading a file for that Document is mandatory.

  • If a 'Mandatory Fields' Data Rule is specified for other properties of the Document, those properties are considered mandatory metadata.

    See more details on violations in the Information Framework: Data Logic Rules section of App Tasks - Generic Configuration article.

In addition, the Digital Binder ABC may show a marker for mandatory Documents in its Table View. This is configured through the Data Class Document Behavior (Mandatoriness tab): Use the Add Property selector to set those properties (language, title, and so on) that make the whole Document appear marked as "mandatory" in the Digital Binder Table View.

Note that, if any of the properties selected in the Document Behavior (Data Class) is made mandatory by a Mandatory Fields Data Rule (Data Logic), the Document itself is marked as mandatory in the Digital Binder. This is only a visual indicator, since violations are driven solely by Data Rules.

14DBDocumentationMandatoriness.png

5 Document Categories

Documents can be organized in Categories to support the user in handling large amounts of Documents. Categories are sets of Documents processed following the same steps. Such steps are referred to as Stages in the Digital Binder App Task.

Note that this configuration step is entirely optional, and the Digital Binder App Task can also be used when no Document Category is defined.

5.1 Creating Document Categories and Stages

Categories can be defined using the new Document Category Business Object. DocCategoryBOicon.png
To create a Document Category:

  1. Select the Document Category entry in the Business Objects list in Studio (Solution Design module).
  2. Create a new Document Category Business Object from the context menu.
  3. In the Settings tab, configure:
    • Category Name — Select a Label Business Object to be used as the Document Category name in the Workspace.
    • Icon Type — Select an Icon or Resource to illustrate the Document Category in the Workspace (either the Icon Id or Resource Id selector is available depending on your choice).
  4. (Optionally) In the Stages tab, configure one or more Stages. These represent the steps the Documents contained in the Category being created need to go through. Stages can be dragged vertically and sorted. This sorting determines the order in which Stages are shown in the Workspace.
    • Drag a Stage element from the right-hand side library. Then set:
    • Id — Define a Stage Id, which is unique in the Document Category. Uppercase and/or lowercase Latin letters (A to Z), digits (0 to 9) and underscore are allowed. The id cannot start with a digit.
    • Label — Select a Label Business Object to be used as the Stage name in the Workspace.
    • Percentage (%) — (1 in image below) (optional) Specify the progress ratio of the Document when in the current Stage (e.g., Stage "to be sent" represents the 10% of a contract workflow completion). The first Stage (e.g., "to be sent") should be 0 and the final Stage (e.g., "signed") should be 100. Percentages must either increase or remain the same from top to bottom of the Stage list. If a Percentage different from 0 is defined for one of the Stages in the Document Category, then Percentages for each Stage must be specified.
    • Sentry — (2 in image below) (optional) Define the conditions that determine the availability of the Stage for Workspace users. Use the Functions available in the DocumentCategory:StageSentryState Data Class to return one of the possible states (enabled or hidden). The Sentry can be used to show or hide the Stage for certain Users, Groups, or Roles.
      9DBDocumentationdocumentcategorybo.png
    • Empty State — Select an option between "this Stage is relevant even when it contains no documents" or "this Stage can be de-emphasized or ignored when empty". This selection determines whether an Empty Stage is displayed or not in the Workspace.

5.2 Assigning Document Categories to Documents

After creating a Document Category, you need to assign it to actual Documents through the Document Behavior in the Data Class editor:

  1. In the Configuration tab:
    10DBDocumentationcategoriesandstagesinbehaviour.png
    • Document Category — (1) Select the desired Document Category Business Object. Note that this is an optional settings, as Document do not need to be assigned to any Category.
    • Stage ID — (2) This selector lists all Single Element String properties of the Data Class. Select the property to be used to store the current Stage. The selected property is excluded from the metadata view of the Document and, therefore, not shown in the Controls tab of the Data Logic editor when unfolding the Data Class Control corresponding to the Document Data Class.
      If a 'Document' Data Class has a Document Category set in the Document Behavior, the Script Function DocumentCategory:GetFromDocument can be used to get the Document Category Business Object Reference corresponding to a given Document instance provided as an input of the Script Function. Additionally, if the Document Category has Stages, each Document must be in one of the defined Stages at any time. The current Stage is stored in a String property defined in the 'Document' Data Class. The property must contain the Stage Id (Stages tab in the Document Category editor).

Consider the following information:

  • If the Document Category property is set in the Document Behavior and the selected Document Category has Stages, the Stage ID property of the Behavior must also be set. Viceversa, if the Stage ID is set in the Behavior, the Document Category must also be set and it must contain Stages.
  • There is no built-in mechanism that sets the content of the property selected for the Stage ID. Instead, the property must be manually set and updated as necessary, depending on the Actions triggered by the user (see the Actions section).

5.3 Configuring App Task Document Categories

11DBDocumentationdocumentcategoriesinprocesseditor.png
In the Document Categories tab of the Digital Binder App Task, select the Document Categories that must be supported by the App Task. Only Documents assigned to the selected Categories are shown in the Workspace, while other Documents found in the Data Logic are ignored.

  1. Select the Show Uncategorized Documents option if you want Documents with no assigned Category to be supported by the App Task.
  2. In the Categorized Documents section, select and add the Document Categories to be supported by the App Task. The Document Categories to be added can be chosen among the ones assigned to Documents found in the Data Logic Business Object and selected in the Documents tab of the Digital Binder App Task (see section). Once added, Document Categories can be sorted by dragging them vertically. This sorting determines the order in which Categories are shown in the Workspace.

6 Actions

The Digital Binder App Tasks provides features to configure:

  1. Global Actions (applied to the whole App Task, such as Submit or Reassign) The configuration of Global Actions is common to all types of App Tasks (see the App Tasks - Generic Configuration document).

    13DBDocumentationactionsinprocesseditor.png
  2. Document-level Actions (applied to specific Documents, such as Upload File or Send for Signature) These Actions are executed on one or a set of Documents and allow moving Documents through the available Stages, depending on their Document Category (if defined). Unlike previous versions of the Digital Binder (v4 and lower), the workflow that describes how each Document is handled is defined using standard Process Editor capabilities. Therefore, in order to move Documents through Stages in the Digital Binder it is necessary to:
    • In the Digital Binder App Task, define the Actions that are available for each Stage (for example if a Document has not been signed yet, the Action "Send for Signature" is available). Each Action corresponds to an $action value (see configuration details in the next section)
    • In the Process Editor, define the steps corresponding to the available Actions by modeling them with outgoing connections from the Digital Binder App Task to follow-up Tasks (Scripts, other App Tasks, Integration Tasks and so on)
      12DBDocumentationprocess.png
    • When an Action is executed, if necessary, update the Stage in the selected property of the Document instance using a Script in the Process
      Note: Stages can also be updated in the Document instance using the Update Function field available for Data Logic Controls. For example, if a Document should move to Stage "Uploaded" after Blob:File is uploaded to the Platform, it is possible to set the Update Function on the Blob:File Data Logic Control to update the Stage.

6.1 Configuring Document-Level Actions

Document-level Actions are defined for each Document Category and Stage. These Actions are available in the Workspace for each applicable Document,e.g., Documents currently located in a given Stage (based on the Stage Id property selected in the Document Behavior) will have Actions defined for that Stage.
DocActionsDocumentLevel.png
The Document Categories selected in the Document Categories tab of the App Task are listed as sections of the Actions tab, and their Stages are listed as subsections. For each Stage, you can set one File Upload Action and one or more Process Actions:

  1. Select File Upload and click on the Add Action button. This is a predefined Action that allows the user to upload a file for the Document; it is not a Process Action (it does not move the Process Token). The File Upload Action has the following properties:
    • Label — Label of the Upload button
    • Extended Label — Tooltip of the Upload button
    • Sentry — Script determining whether the File Upload Action is currently shown as enabled, disabled, or hidden altogether for the Document. The Sentry script must return one of the following values: Process:ConnectionSentryState.ENABLED(), Process:ConnectionSentryState.DISABLED() or Process:ConnectionSentryState.HIDDEN(). The script has access to the predefined variable $document, which represents the Document for which the File Upload Action should be enabled/disabled/hidden.
  2. Select Process Action and click on the Add Action button. These are Solution-specific, custom Actions available for a given Document. They have the following properties (Digital Binder Process Action configuration is very similar to the configuration of Custom Actions available for other App Tasks):
    • Action Value — the String that is stored in the Process $action value when the Custom Action is triggered
    • Type — Custom Actions can have three types:
      • Submit for actions that submit the current form, i.e. they trigger a Process step that cannot be undone.
      • Destructive for actions that have destructive effects, such as deleting an object from a collection.
      • Other for all other actions.
    • Label — The button label
    • Extended Label — The button tooltip
    • Sentry — A script determining whether the button is currently shown as enabled, disabled, or hidden altogether. The script has access to the predefined Variable $document which represents the Document that the Custom Action should be enabled/disabled/hidden for. The Sentry script must return one value among the following:
      • Process:ConnectionSentryState.ENABLED()
      • Process:ConnectionSentryState.DISABLED()
      • Process:ConnectionSentryState.HIDDEN()
    • Confirmation Label — The message to be shown when confirming a Submit or Destructive Action.
    • Process Behavior — Allows Specifying the Process behavior when the action is executed:
      • Move Current User Token — The user leaves App Task and follows the created Action
      • Stay on Task, Spawn New Token — The user stays on the App Task and a separate token is created to follow the created Action (the Action can be assigned to other users).
    • Bulk Action — If selected, Workspace users can select multiple Documents and apply this Action to all of them at once (see the Bulk Action section below for full details)
    • Selected Document(s) — Select the variable to be automatically populated at runtime with the Document (or Documents in case of Bulk Actions) selected by the user. The type of the variable must be the same as the type selected in the Document Parent Data Class setting in the Documents tab (see section) or a type that inherits from it. If the Bulk Action property is selected, the variable must be an Indexed Collection.
  3. Optionally, reorder the Actions defined for each Stage by dragging them vertically. This sorting defines the order in which they are shown in the Workspace for each Document. In particular, the first Action is consider "primary" (marked with a special icon and shown in the UI). If the first Action is hidden by a Sentry, the second Action is considered primary (and so on).

6.1.1 Configuring Bulk Actions

As mentioned in the section above, the user can select multiple Documents and apply a Process Action to all of them at once if the Bulk Action option is selected in their configuration. When the user selects a set of Documents, such Process Actions are made available for bulk execution. In this case, the variable selected in the Selected Documents setting contains all the Documents selected for the bulk action.

7 Localization and Theming

All Labels used by the Digital Binder are contained in Platform Packages called DigitalBinderResources and AppTask, which are deployed when the extensions are started for the first time. Such Labels can be changed using the Overriding Translations feature.
This approach is common to all App Tasks. You can see all details in the Localization section of the App Task - Generic Configuration document.

The Theme Editor is a tool available in the workspace side of the App Tasks out-of the-box, which allows editing the look-and feel of the Workspace itself to achieve the desired branding. See the Theming section of the App Task - Generic Configuration document.

© 2026 Appway AG. All Rights Reserved