Posts

AutoStore: Workflow Loop Example

Image
Regardless of the programming language, a looping-statement is a common declaration for iterating through collections of things, such as the items of an array, records selected from a database, elements within an XML file, or the files inside a directory. A recent AutoStore challenge was presented where a script was used to fetch data in a process that returned either one or many items. This was the easy part. However, each return record needed to be specific to an individual Route based on one of those items returned. Example Example1@email.com Example1/URL Example2@email.com Example2/URL Example3@email.com Example3/URL Although the captured document being processed would be common for all in the return, the recipient belonging to one of these unique records should not be aware of  nor  receive any of the information that would belong to a different recipient. Because an unknown number of return records would be expected, this presents a challenge due ...

AutoStore: Smart RRT

Image
If Runtime Replacement Tags (RRTs) make an AutoStore configuration come to life, then workflows can get a bit more clever when Smart RRT technology is used. The Smart RRT is not a new gadget, but these little wonders can come in handy. What is a Smart RRT? As a placeholder for information, an AutoStore RRT has an RRV, which stands for Runtime Replacement Value. We can take a user-defined RRT, also referred to as a FRTN (Field Replacement Tag Name), and inject VBScript into the RRT to quickly modify that tag's value. The result is a Smart RRT. A Smart RRT is certainly not the only way to modify the value of an RRT. The VB/JScript component allows a custom script to be used to generate a needed value based on a metadata value, and the Data Filter component also provides several filters to do the same. There are cases where implementing a Smart RRT may generally be a quicker approach if a given workflow can benefit from the RRV of its modified RRT. We'll look at some ex...

AutoStore: RRT Anatomy

Image
One of the many great things that make AutoStore so powerful is the Runtime Replacement Tag, better-known by its more familiar acronym as the RRT. These placeholders of information positioned inside the desired location of an AutoStore workflow configuration provide solution designers with the ability to simplify front-end business processes by connecting variable source values to create both well-structured and dynamic routes. Adding RRTs to a configuration is quick and simple. For a given component's configuration properties, set the mouse cursor, and from the list of available RRTs, drag-and-drop the desired RRT. For example, an RRT could variably define the email address that the Send to Mail Recipient should send the message to, or perhaps define all or part of a UNC path for the Send to Folder component to write the file over to. Most of the components in AutoStore have an RRT that show up in the list of available RRTs, as well as a description in its Help file. By mo...

VBScript: Ensure Backslash Folder Path

Image
To preface what could be regarded as a very small thing, I am reminded of a common turn of phrase concerning the amount of perspiration that should be afforded to the "stuff" belonging to a particular size-category, and pretty sure there was a book written about that topic. Not to come across as disagreeable, but rather to invite a little balance based on my own general observations over time, an increase in cost with things such as time, money, even relationships, can be avoided when the "small stuff" is given the regard that it deserves. One of these tiny details has to do with string variables that reference folder paths within a script. There are times when it is important that a defined directory for a particular folder should and must always end with a backslash. As an example: folderPath = "C:\Example"   Of course, it really is not very difficult to manually enter that backslash into the path. folderPath = "C:\Example\" ...

SQL: Using SQLCMD for Large SQL Scripts

Image
When using SQL Server Management Studio, executing very large queries can bring up a message that the operation cannot be completed, and that there is not enough storage to process the command. An example of a large file would be a sql script that inserts thousands of records into a table. Rather than using the GUI, we can use Sqlcmd at the command line. Open a CMD Prompt as Administrator. There is no need to change to any specific directory in the CMD prompt. Enter the following, and press Enter: C:\>sqlcmd -S ServerName -d DataBaseName -i "FolderPath\FileName.sql" Run a SQL script from the command prompt -S indicates the name of the SQL Server instance -d indicates the name of the SQL database -i indicates the file path to the .sql input file For more information on available paramteters, enter: C:\>sqlcmd /? Enter sqlcmd /? for more information

AutoStore: How to Fail a Job using Data Filter Validate

Image
There may be instances when processing a document through AutoStore needs to fail in order to prevent the job from reaching other parts of the intended workflow. Let's consider documents that are captured from a multi-function device which contain barcodes on the pages. The Barcode component can detect a barcode, and when one is found, it can (1) split the job, or (2) read the value. For either of these actions to be achieved, a barcode would need to be on the page. Sounds simple enough, but what's tricky is how to know whether any given page should or should not actually have a barcode. In other words, under what condition should we know there is no barcode. For example, perhaps a given job should have a barcode on every single page, maybe the job should have a certain number of pages with a barcode on it, or possibly a barcode value needs to be present on exactly page n . Because a logical determination needs to be performed to make that decision, it sounds like thi...