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
Task
for each document - Create a
Workflow
for each document - Group the documents associated with the same account under common
Process
Configuration should include:
Workflow Template
, perhaps namedDocument Review
, that applies toAttachment
Task
to this workflow, perhaps namedDocument Review
You can use qbo's
ImportFile/BatchApply
feature to create a scheduled job along these lines:Query:
Process/DataWarehouseDoucmentQuery
Action: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.Attachment
module is based on qbo'sGenericObject
, which can be a 'child' of any other object. In this case, theAttachment
will be bound to a parentProcess
, which will be created on the fly if required.Note that creating a parent
Process
record as detailed above required that the application setting forGenericParentClasses
includeProcess
. This can be verified from the Configuration > Modules > Matrix > Settings panel.An alternative to adding
Process
toGenericParentClasses
is to specify both anObject
to indicate the parent, and {Object}_* to indicate parent field values: