Skip to main content
The IF activity routes documents to the correct Extraction Rules activity based on classification result. The processing flow is in place — now define the condition for each branch.
1

Select the IF activity

Click the IF activity in the workflow.
2

Open the Sick Note DE case condition

In the Case Conditions section of the Activity Properties pane, click the settings icon next to the “Sick Note DE” activity.
3

Add the script for the DE branch

The IF activity uses a script to select the next activity based on the document class determined by the Classify By Text and Image activity. The classification result is recorded to the “Layout” field, whose possible values are the names of the classes created in the Classify By Text and Image activity.Paste the following script to the script editor to forward all documents of class “DE” to the “Sick Note DE” activity:
Click Save.
4

Add the script for the BE branch

Click the settings icon next to the “Sick Note BE-NL” activity and paste the following script in the script editor:
Click Save.
If the document is of an unknown class or if the “Layout” field doesn’t exist (which means the document couldn’t be processed by the classification activity), it will be forwarded directly to Fast Learning.
To extract data from documents whose class couldn’t be determined, create a special Extraction Rules activity for no-class documents, or forward them to an existing Extraction Rules activity.

What’s next

Step 5. Configure the Fast Learning activity

Define the data form, label fields on German sick notes, and train the Fast Learning activity.

Tutorial overview

Back to the tutorial introduction.