Flow control defines how data flows through the different components of a document processing workflow, such as connectors, extractors, and classifiers.
Users must have any one of the following policies to define flow control in a Use case:
- Administrator Policy
- Creator Policy
Loop
The Loop is a flow control to automate repetition of tasks or processes across a set of data. It ensures consistency and efficiency by systematically processing each item in a sequence, executing them one by one.
- Click on Flow Control and drag and drop the Loop definer on the canvas.
- Place the classifier and/or extractor in the Loop then connect the Assets using
icon then double click the Loop component.
- In the Loop window that appears, select the following information.
- In the Iterator type, select any one of the following options.
- File List: Choose this option if you wish to process multiple file formats. (.pdf, .doc, .docx, .csv, .txt, .json, .xlsx).
- JSON: Choose this option if you wish to process the JSON as input value.
- Fixed Iteration: Choose this option if you wish to iterate in count based. You need to enter the iteration count in seconds.
- Click Save Properties to save the Loop in the Use case flow.
Path
Path involves managing the sequence and execution of a use case based on predefined conditions (if-then-else). It helps to define the data flow among multiple assets and their respective attributes as parameters.
- Click on Flow Control and drag and drop the Path definer on the canvas and link it to the classifier and/or extractor using
icon.
- Double click on Path to expand the right hand side panel and click on New Path to define the flow based on various parameters such as document type or confidence score.
- Define the conditions for the newly created path and click on Save Properties.
Stop
The stop refers to halting the execution of a process, loop, or sequence in use case design.
- Click Flow Control and drag and drop the Stop on the canvas and link it to the Asset using
icon to the Stop to complete the flow of Use case design.