public class TaskMessageBuilder extends Object
| Constructor and Description |
|---|
TaskMessageBuilder() |
| Modifier and Type | Method and Description |
|---|---|
static FileAndTaskMessage |
buildTaskMessageForDocument(Long workflowId,
String projectId,
String documentPath)
Constructs a task message for the document at specified path.
|
static List<FileAndTaskMessage> |
buildTaskMessagesForDirectory(Long workflowId,
String projectId,
String directory)
Constructs a task message for each file in the defined directory.
|
public static List<FileAndTaskMessage> buildTaskMessagesForDirectory(Long workflowId, String projectId, String directory) throws com.hpe.caf.api.ConfigurationException, com.hpe.caf.api.CodecException, IOException, com.hpe.caf.api.worker.DataStoreException, InterruptedException
workflowId - The Workflow ID to set on the built task.projectId - The ProjectId to set on the built task. Workflow ID provided should be under this project ID.directory - The directory to build a task message per document for.com.hpe.caf.api.ConfigurationException - If invalid configuration passed.com.hpe.caf.api.CodecException - If a codec error occurs building a task message.IOException - If error occurs accessing files in directory.com.hpe.caf.api.worker.DataStoreException - If error occurs storing data for files.InterruptedExceptionpublic static FileAndTaskMessage buildTaskMessageForDocument(Long workflowId, String projectId, String documentPath) throws com.hpe.caf.api.ConfigurationException, com.hpe.caf.api.CodecException, IOException, com.hpe.caf.api.worker.DataStoreException
workflowId - The Workflow ID to set on the built task.projectId - The ProjectId to set on the built task. Workflow ID provided should be under this project ID.documentPath - Path to the document to construct task for.com.hpe.caf.api.ConfigurationException - If invalid configuration passed.com.hpe.caf.api.CodecException - If a codec error occurs building a task message.IOException - If error occurs accessing the file.com.hpe.caf.api.worker.DataStoreException - If error occurs storing data for file.Copyright © 2015–2017 Hewlett Packard Enterprise Development LP. All rights reserved.