Skip to main content
A document set may include document variants with different layouts, e.g. statements from different banks or invoices issued by different companies. Advanced Designer allows you to create a single processing flow item that contains several independent Extraction Rules activities and activity choice conditions. The choice of activity is determined by the value of the field which contains data that is used to distinguish among the document variants. This is typically a field containing classification results, but generally this can be any field that has been filled by any preceding activity. You configure branching conditions for activities in the set by mapping the field values to the activities. You may also select an action for all field values not specified in the mapping table: you can either assign them an Extraction Rules activity from the set or choose to skip this processing step.

Use Cases

This method can be useful in the following cases:
CaseHow document variants are distinguishedSample mapping
You have classified your documents by layout or by a certain parameter, e.g. the year the document was issued. You need to configure separate extraction rules for some of the document classes.Based on the results of classification by text and image or some document parameter extracted to a fieldField value = A : Extraction Rules A / Field value = B : Extraction Rules B / All other field values : Skip this step
You have classified your documents by company and need to configure separate extraction rules for documents from each company in your catalog. You want to use a general Extraction Rules activity for all companies not listed in the catalog.Based on the results of classification by companyCompanyID = 1 : Extraction Rules 1 / CompanyID = 2 : Extraction Rules 2 / … / Other company IDs : General Extraction Rules
The activities merged into one processing flow item have the same set of output fields. If you change the state of a field for one activity, it will be consistently changed for all other activities in the set. If you delete the item from the document processing flow, all activities inside it are also deleted and cannot be restored.

Creating a New Set of Activities

  1. Add a regular Extraction Rules activity to the document processing flow.
  2. Click Add activity and set condition for its use on the Activity Properties pane.
  3. Specify the name of a new activity and click Add.
  4. Go to the Activities tab on the Activity Properties pane and add as many activities as needed by clicking Add.
Note: You may set branching condition for each activity in the Add Extraction Rules Activity dialog or configure all activities later.

Configuring the Activities and Branching Conditions

Select the activity in the processing flow and open the Activities tab of the Activity Properties pane. You will see a list of activities added to the item. The error icon indicates that an activity has errors or is not configured. The alert icon indicates that the branching condition for an activity is not set. To configure the branching conditions, do the following:
  1. Click Conditions at the bottom of the Activity Properties pane.
  2. In the dialog that will open, specify the field whose values will determine the choice of an Extraction Rules activity.
Note: Changing a field to get values from will reset the mapping.
  1. All available Extraction Rules activities are listed in the mapping table. Map the field values to the activities.
  2. Select an action for the values not listed in the mapping table. You can select either to use one of the activities added to the set or to skip this processing step.
  3. Click Save.
Each activity should be configured in the Activity Editor the same way as a regular Extraction Rules activity. For more information, see Extraction Rules activity description. To open the Activity Editor for a certain activity, click on the activity name in the list of activities. If the activity is selected in the list, you can also open the editor by clicking the Activity Editor button at the bottom of the Activity Properties pane. You can rename and delete an activity via the menu that opens when you click the more icon to the right of the activity name. By selecting the Use as Separate Activity option in this menu, you can detach an activity from the set. It will be recreated as a separate item of the document processing flow. All configured extraction rules will be preserved.

Merging Existing Activities

You can also merge existing activities by dragging and dropping a regular Extraction Rules activity on another such activity or on a set of activities. After dropping the activity, you’ll have to open the Conditions dialog to set the branching condition for the newly added activity. The list of fields enabled for the dropped activity will be harmonized with the list of fields enabled for the item with which it is merged. All extraction rules configured in the activities will be preserved.

Splitting an Activity

Having created the set of Extraction Rules activities, you may decide to add other activities to the branches of the document processing flow. For example, you may want to replace one of the Extraction Rules activities with a Fast Learning activity or add a Script activity to a certain branch of the workflow. In this case you can split the set of activities into a bunch of regular Extraction Rules activities preceded by an IF activity. To do so, select the activity in the workflow and click the split icon in the pop-up window. All configured extraction rules will be preserved. You will have to configure the case conditions for each activity manually.