I have a series of documents in a document imaging system that need to be manually reviewed.
I can query the relevant documents from my data warehouse via an API call (Process/DataWarehouseDoucmentQuery), which will return data along these lines:
| Account | Document | Status | IndexId |
|---|---|---|---|
| 12345 | Document A | Late | 9876 |
| 12345 | Document B | Late | 5432 |
| 12345 | Document C | Late | 1098 |
| 23456 | Document A | Late | 7654 |
| 23456 | Document D | Late | 3210 |
The goal is to:
- Create a
Taskfor each document - Create a
Workflowfor each document - Group the documents associated with the same account under common
Process
Configuration should include:
Workflow Template, perhaps namedDocument Review, that applies toAttachmentTaskto this workflow, perhaps namedDocument ReviewYou can use qbo's
ImportFile/BatchApplyfeature to create a scheduled job along these lines:Query:
Process/DataWarehouseDoucmentQueryAction:More detail on the parameters you are passing:
Attachment.Status.{Child}_{Template}_*. Note that when passingTemplate, you should remove any non-alpha-numeric characters from the template name.Attachmentmodule is based on qbo'sGenericObject, which can be a 'child' of any other object. In this case, theAttachmentwill be bound to a parentProcess, which will be created on the fly if required.Note that creating a parent
Processrecord as detailed above required that the application setting forGenericParentClassesincludeProcess. This can be verified from the Configuration > Modules > Matrix > Settings panel.An alternative to adding
ProcesstoGenericParentClassesis to specify both anObjectto indicate the parent, and {Object}_* to indicate parent field values: