Create an infrastructure for storing and displaying data in Appian
A record type displays information from the data store in Tempo. To store and display a new type of data in Appian, build the supporting infrastructure by completing these tasks in order:- Create a database table (data type).
- Create a data source.
- Create a data store.
- Create a record type.
- Create a constant of type “Data Store Entity” to link the data store and the data type.
- Edit the
AFC_GetDataTypeByRecordTypeNameandAFC_GetConstantDSEByRecordTypeNamerules. - Create a folder of type “Knowledge Center” to store processed files received from ABBYY FlexiCapture.
Create a data type
Open the ABBYYFlexiCapture application
Create the data type
Add the table fields
Add an auxiliary data type for table columns
- Before the data type table in Appian can accept table rows from ABBYY FlexiCapture, create an auxiliary data type for the fields that correspond to table columns in the Document Definition.
- Create a field in the data type, specify the name of the auxiliary data type as its type, and select the Array option.
Save the data type
Create a data source
Open the Data Sources page
Start a new data source
Complete the data source fields
- Name – A name for the new data source (for example,
jdbc/Appian) - Type – The type of the new data source (for example,
SQL Server) - Username/Password – The credentials of the database user
- Connection String – The string used to connect to the database (for example,
jdbc:sqlserver://appian.company.com:1433;databaseName=appian_db)
Test and save the connection
- Click Test Connection to check that you have entered the correct data.
- If the test is successful, click Save.
Create a data store
Open the ABBYYFlexiCapture application
Name the data store
Configure the data store on the Data Management tab
- Select a data source.
- Click the Add Entity button and add a data type.
- Click the Verify button to verify your data store.
- Click Save & Publish.
Create a record type
Open the ABBYYFlexiCapture application
Name the record type
Configure the data and display
- In the Data section, select Data Store Entity and add your data store and your data type.
- Configure the display of your record list. For more information, see Configure the record list.
- Configure the display of the Summary tab. For more information, see Configure the record view.
Create a constant of type “Data Store Entity”
This constant links your data store to your data type. When a new record is created, this link determines the record type of the record.Create a new constant
Name the constant
Save the constant
Edit the rules
Once you have added the new record type and constant, modify the expression rules by adding conditions for the new record type.Open the AFC_GetConstantDSEByRecordTypeName rule
- In Appian Designer, open the ABBYYFlexiCapture application and select Expression Rule in the left-hand pane.
- Locate and click the
AFC_GetConstantDSEByRecordTypeNamerule to start editing it.
Add the condition for the new constant
null with the following if condition for the new record type and constant:RecordTypeName is the same as the name of a stored record type (in the plural), the DataStoreEntity constant that links the data store and the data type is returned.Edit the AFC_GetDataTypeByRecordTypeName rule
- In Appian Designer, open the ABBYYFlexiCapture application and select Expression Rule in the left-hand pane.
- Locate and click the
AFC_GetDataTypeByRecordTypeNamerule to start editing it. - In the code editor, replace
nullwith the followingifcondition for the new record type and the full name of the data type:
RecordTypeName is the same as the name of a stored record type (in the plural), a string that contains the full name of the data type you created is returned. You can look up the namespace in the data type properties. To display the properties of a data type, open the data type in the ABBYYFlexiCapture application. Clicking the name of the data type in the top left corner opens the Data Type Properties window, where you can see the namespace.Create a knowledge center
To store document images in Appian, create a knowledge center folder.Open the ABBYYFlexiCapture application
Create the Knowledge Center folder
Repository field of the ABBYY FlexiCapture Connector for Appian export script settings. When data is exported from ABBYY FlexiCapture, image files are saved to this folder.
