You can split a document into multiple parts using the Documents plugin.
This guide provides step-by-step instructions on how to split a document, such as when a user uploads a bulk scanned file that needs to be separated into distinct files.
Access Permissions: Ensure that you have the necessary permissions to use the Documents Plugin. The user account used for these operations should have the required access rights.
Kafka Configuration: Verify that the Kafka messaging system is properly configured and accessible. The Documents Plugin relies on Kafka for communication between nodes.
Ensure that the uploaded document contains more than one file.
You have two options to obtain the file ID:
Extract the file ID from a Response Message of an upload file request. For more details, refer to the upload process documentation.
Extract the file ID from a Response Message of a generate from template request. For more details, refer to the document generation reply documentation.
In the following example, we will use the fileId
generated for a document with multiple files using Uploading a New Document scenario.
To create a process that splits a document into multiple parts, follow these steps:
Configure the first node (Send Message Task) by adding a Kafka Send Action.
Specify the Kafka topic where you want to send the splitting request.
To identify your defined topics in your current environment, follow the next steps:
KafkaTopicsHealthCheckIndicator
line and then details → configuration → topic → document → split. Here you will find the in and out topics for splitting documents.The response will be sent to this ..out
Kafka topic.
The following values are expected in the reply body:
Here’s an example of the response JSON:
The split document is now available in the storage solution and can be downloaded: