Simple Uses of Captiva’s Multi Module – Part 1

In this post I demonstrate how to delete selected pages and documents from a Captiva batch using the Multi module and IA Value assignments. Refer to the previous post for details regarding the requirements for removing pages and documents. For context, the CaptureFlow snippet is repeated here.

CaptureFlowMulti2

Removing Divider Sheets

To remove all of the divider sheets in a batch, ensure the Multi module that implements this task (RemoveDividers in my CaptureFlow) is triggered at the Batch level. Then set the following IA Values before the module is triggered (location A on the diagram):

RemoveDividers:0.Ready = 8
RemoveDividers:0.Ready = 16 when ToUpper(ImageProcessor:0.Barcode0_Text) = “DIVIDER”

This has the effect that for every page, the Multi module is set to process the page normally (i.e., Ready state 8), unless it contains a barcode that reads “DIVIDER”. If a divider sheet is recognized in this way, the Ready trigger is set to 16 for that page. This structure of IA assignments is necessary because the simple IA assignment language does not contain an if-then-else construct. Also notice that although the Multi module triggers at the Batch level (7), I am setting IA values at the Page level (0). This has the desired effect of removing all of the divider sheets from the batch.

Removing Blank Pages

Removing blank pages from the batch is similar to removing the divider sheets. Prior to executing the instance of the Multi module (RemoveBlankPages in my CaptureFlow), set the following IA Values (location B on the diagram):

RemoveBlankPages:0.Ready = 8
RemoveBlankPages:0.Ready = 16 when ( (ScanPlus:0.BlankPage <> 0) OR (ImageProcessor:0.BlankPage = 1) )

Blank pages can be detected in two places: by the scanner, or by the Image Processor module. A non-blank page receives a value of 0 (zero) from ScanPlus and a value of 1 from the Image Processor. So, if either of these conditions is not true, set Multi’s Ready trigger to the delete value (16). Notice again that IA Values are set at the Page level, even though the Multi module is triggered at the Batch level. This has the desired effect of removing all of the blank pages from the batch.

Removing Empty Documents

Removing empty documents from the batch follows the same pattern as the previous two examples. The only difference is the level at which the Ready trigger is set and the condition used to set the trigger. These IA Values are set at location C in the diagram; the Multi module is named RemoveEmptyDocs in my CaptureFlow.

RemoveEmptyDocs:1.Ready = 8
RemoveEmptyDocs:1.Ready = 16 when (_Node:1.NumChildrenAtL0 = 0)

Notice here that I set the Ready trigger at level 1 (document) to delete the document if it does not have any children at level 0 (page).
In the next post, I will demonstrate how to process the Patch 3 separator sheets such that all pages following it are processed as individual documents. This implementation will utilize some simple CaptureFlow scripting.

Advertisements

About Scott
I have been implementing Documentum solutions since 1997. In 2005, I published a book about developing Documentum solutions for the Documentum Desktop Client (ISBN 0595339689). In 2010, I began this blog as a record of interesting and (hopefully) helpful bits of information related to Documentum, and as a creative outlet.

2 Responses to Simple Uses of Captiva’s Multi Module – Part 1

  1. Pingback: Simple Uses of Captiva’s Multi Module – Part 2 | dm_misc: Miscellaneous Documentum Information

  2. Pingback: Simple Uses of Captiva’s Multi Module – Part 0 | dm_misc: Miscellaneous Documentum Information

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: