Lifecycle Tags in v4.6

Building Lifecycle Applications for v4.5 and v4.6

Table of Contents

When creating Business Rules using DocScript for either Capture, Indexing or Distribution the following tags are used:

  • <PreRules> Business Rules </PreRules> is a script that is run before the capture, indexing or distribution of documents begins.
  • <PostRules> Business Rules </PosRules> is a script that is run after the capture indexing or distribution of documents ends.
  • <CaptureRules> Business Rules </CaptureRules> is a capture script that is run just before a document is captured. The odocname (and related variables) can be used but docname cannot because it is not yet captured.
  • <LookupRules> Business Rules </LookupRules> is a capture script that is run before the document is added to DocuNECT, but after CaptureRules. The docname variable is not available. However it does use docpages if used in the CaptureRules.
  • <IndexRules> Business Rules </IndexRules> is a capture script that is run after the document is added to DocuNECT and index variables are loaded from the index file (if one exists).
  • <DistributionRules> Business Rules </DistributionRules> is a capture script that is run after the document is added to DocuNECT and index variables are loaded from the index file (if one exists).
  • <PostDistributionRules> Business Rules </PostDistributionRules> is a capture script that is run after the document is added to DocuNECT and index variables are loaded from the index file (if one exists).
  • <NeedsQC>value</NeedsQC> - Only used in indexing. If 1 or true, then all docs in the batch will not have an indexed status. To set them to indexed, the documents will need QC by a user via the inbox. If 0 or false then a doc in the batch will be set to indexed if all its required fields have correct values. If the rule is not defined the value is set to 0 by default.
  • <HideBatch>value</HideBatch> - Only used in distribution. If 1 or true, then a batch is hidden after it is distributed. If 0 or false then a batch is still visible, from the inbox, after it is distributed. If the rule is not defined the value is set to 1 by default.
  • <ErrorRules>code</ErrorRules> - This is called when an error is thrown in the distribution rules.
  • <SuccessRules>code</SuccessRules> - This is called when a document is successfully distributed.