Docs
  • Getting Started
  • Overview
    • Understanding
      • User-Interface
      • Shortcuts
    • Getting Started
      • Creating A New Application
      • Adding Basic Structure using Class Designer
      • Creating a link to the TIVITY File Class
      • Setting Rights
      • Creating Queries
      • Building The Layout
        • Creating an App Page
        • Creating an Object Page
        • Creating a List Item Layout
  • Building an Application
    • Application Setup
      • General
      • Documentation
      • License Management
      • Publishing the Application
      • Advanced Settings
        • Document-MailEditor
    • Data
      • Sources
      • Data Modelling
        • Class
        • Field
        • Action
        • Link
      • Query Data
        • Get Started with Query Designer
        • Common
        • Fields
        • Conditions
        • Default Values
        • Preview
      • Roles & Permissions
        • Rights Designer
      • Access Control Lists (ACL)
    • Views
      • Design UI
        • Page Types
        • Fields and Links
        • Layout Controls
          • Actions
          • Panels
          • Sections
          • Lists
          • Input
        • Layout Templates
      • Document Templates
        • Get started with Template Designer
        • Expressions in Templates
    • Execution
      • Functions
      • Workflows
        • Control Types
      • Trigger
      • Scripting
        • Accessing the Script Designer
        • Using the Script Designer
        • Commonly used Actions
        • Reference: Actions
          • Math
          • System
          • Date
          • Collection
          • LogicalOperators
          • Web
          • Structure
          • Constants
          • Converters
          • Commands
          • Text
          • PDF
          • Operators
          • PowerPoint
          • QR-/Barcode
          • Messaging
          • Cells
          • Xml
          • Admin
          • Integrations
    • Expressions
      • Expressions in Expressions
      • Expressions in Condition Values
  • Administration
    • Platform
    • Workspace
    • Security
    • Platform Setup
  • Extensibility and Integration
    • REST API
    • Source Adapter
      • Getting Started
      • Source Adapter Interface
      • RESTful Adapter Service
  • Adapter Portfolio
    • MongoDB Adapter
  • Platform Features
    • Enterprise Search
      • Integration into an App
      • General Settings
    • Templates
    • Tagging
      • Getting Started
      • Manage Tags
      • Settings
      • Usage
        • Tag filter
        • Tag panel
    • DMS Setup
Powered by GitBook
On this page
  • Adapter configuration and call within the platform
  • Create class for adapter
  • Connection between class action and service call
  • A workflow for a simple call of an execute action

Was this helpful?

  1. Extensibility and Integration
  2. Source Adapter

Getting Started

PreviousSource AdapterNextSource Adapter Interface

Last updated 4 years ago

Was this helpful?

Adapter configuration and call within the platform

Here is described how to call an Adapter REST Service from the TIVITY platform in a simple way. The prerequisite for this is a running REST service with the mandatory service method calls (). The service must be callable from "outside", that means, the platform must be able to call the adapter URL.

Create class for adapter

First of all, after the source has been configured, a class must be created in the ClassDesginer. To do this, before adding a new class, a source must be selected. At the top right of the ClassDesginer are the available data sources. There you can select the Adapter Service you have previously set up. If the source is not available in the list, you can optionally select it using the "Add Data Source" button.

After the adapter class has been set up, it is sufficient to name the key and mapping, a class action can now be created. In the settings of this Action on the Common tab the Execution / ValidOn value "Class" must be selected.

Of course, the internal key and the mapping key must also be entered. As Result Data Type you first select String to be able to test it better later.

Connection between class action and service call

For our example (above in the chapter), this means that when triggering the newly created action "QueryService", the Execute call is started with the Name "QueryService" as ActionName in the request. You can then react to the call from there.

A workflow for a simple call of an execute action

A workflow can be created for the direct call of the Adapter Service, which can then be called from the app. First create a workflow as usual. You can select a class from the app as the class in settings.

The script consists of only two local variables for simplicity. The Request variable, which contains a message that is sent to the adapter service is sent. And ResultValue, where the response from the service is stored.

To initiate the service call now, the script action "ExecuteClassAction" must be executed. The necessary parameters are the OfficeId, ApplicationId and ClassId, Since we assume that the workflow is started in the same app as the Adaper Service class, we can take the IDs from the context. However, the ClassId has to fetch via "Get System Id".

Further the ActionId is still needed. There the action is specified, which we have previously created in ClassDesigner. This ID is also fetched with "Get System Id". Optional is nor the parameter dictionary. However, since we want to send a message to the service, we add the request to the dictionary.

Any number of values can be transferred to the Adapted Service in the form of an entry (key value pair). In this example it is the key "MyRequest" which contains the message from the variable Request.

To the test you can now add a Message script action and output the ReturnValue.

A class that has a service adapter as DataSource automatically connects to the source. This means that when certain class actions are executed, these are those that were already created in advance for a newly created Main-Base-Class, a call to the service is started. These specific actions include Delete, New, Read and List. For this, there is an Adapter Service corresponding calls (Capabilities). See the documentation on the and .

All new actions created by the user go to the . The request object of an execute call contains the name of this action and the name of the class under which this action is called. You can also specify other parameters (see next chapter about workflows).

RESTful Adapter Service
Service Adapter Interfaces
see Adapter documentation
Execute method of the service