Workflow 8 : Best Practices for Creating Starting Rules. White Paper

Similar documents
Guide to the Laserfiche Support Site. White Paper

Using Microsoft Performance Monitor. Guide

Laserfiche Web Access 8 and Kerberos Configuration in a Windows Server 2008 and IIS 7 Environment. White Paper

Enterprise Deployment: Failover Clustering Considerations for Laserfiche. White Paper

Registering and Unregistering Laserfiche Repositories

Laserfiche Volumes: Introduction and Best Practices

Backup and Recovery in Laserfiche 8. White Paper

Enterprise Deployment: Laserfiche 8 in a Virtual Environment. White Paper

Laserfiche. and SharePoint Integration. Your potential, realized. Learn More Inside. Include imaged documents in collaborative processes.

Data Collection Agent for Active Directory

Laserfiche Hardware Planning and Specifications. White Paper

EMC Documentum Business Process Suite

Business Process Management IBM Business Process Manager V7.5

Data Collection Agent for NAS EMC Isilon Edition

Studio Visual Steps. Windows Defender. For Windows XP, Vista and 7

An Introduction to Transparent Records Management

Setting Up and Using the Funambol Outlook Sync Client v8.0

EMC Documentum Webtop

Enterprise Vault 6.0. SMTP Archiving

Web Admin Console - Release Management. Steve Parker Richard Lechner

EMR. The Easiest Path to. White Paper. Healthcare Document Management for Provider Organizations

Nokia for Business. Nokia and Nokia Connecting People are registered trademarks of Nokia Corporation

Setting Up and Using the Funambol Outlook Plug-in v7

BIGPOND ONLINE STORAGE USER GUIDE Issue August 2005

NTP Software File Reporter Analysis Server

Symantec Endpoint Protection (SEP) 11.0 Configuring the SEP Client for Self-Protection

User Document. Adobe Acrobat 7.0 for Microsoft Windows Group Policy Objects and Active Directory

Enterprise Content Management for Healthcare

Version 5.x. Barracuda Spam & Virus Firewall User s Guide. Barracuda Networks Inc S. Winchester Blvd Campbell, CA

Using Internet or Windows Explorer to Upload Your Site

Setting Up Person Accounts

Extension Course Notes, Attachments, and Document Management Version 9.0

Essential Managing the BlackBerry Enterprise Server using the BlackBerry Administration Service

Event Manager. LANDesk Service Desk

Workflow approval via

Symantec AntiVirus Corporate Edition Patch Update

Front-Office Server 2.7

HP ARCHIVING SOFTWARE FOR EXCHANGE

GRAVITYZONE HERE. Deployment Guide VLE Environment

Content Author's Reference and Cookbook

Website Maintenance Information For My Clients Bob Spies, Flying Seal Systems, LLC Updated: 08- Nov- 2015

PRINT FLEET MANAGER USER MANUAL

HP Quality Center. Software Version: Microsoft Word Add-in Guide

EventTracker: Support to Non English Systems

CB 5 Business Process Procedures

Setting up a Scheduled task to upload pupil records to ParentPay

Nokia E90 Communicator support

IBM Unica emessage Version 8 Release 6 February 13, User's Guide

Acrolinx IQ. Acrolinx IQ Plug-in for Adobe CQ Rich Text Editor Installation Guide Version: 2.9

Privileged Account Access Management: Why Sudo Is No Longer Enough

How the Town of Palm Beach Manages Revenue Bond Documentation with Laserfiche Laserfiche ECM Laserfiche Workflow

Avigilon Control Center System Integration Guide

Front-Office Server 2.7

Xcalibur. Foundation. Administrator Guide. Software Version 3.0

HP Application Lifecycle Management

NTP Software File Auditor for Windows Edition

Version 3.x. Barracuda Spam & Virus Firewall User s Guide. Barracuda Networks Inc S. Winchester Blvd Campbell, CA

inforouter Version 8.0 Administrator s Backup, Restore & Disaster Recovery Guide

Pipeliner CRM Phaenomena Guide Getting Started with Pipeliner Pipelinersales Inc.

HOW TO GUIDE. Pcounter Scan Server. For Support Click here INTRODUCTION

How To Install Caarcserve Backup Patch Manager (Carcserver) On A Pc Or Mac Or Mac (Or Mac)

Universal Tracking Application Reference and Training Guide

High Availability Setup Guide

Configuring Load Balancing for EMC ViPR SRM

HP OpenView AssetCenter

Symantec Mail Security for Microsoft Exchange Management Pack Integration Guide

Registered Investment Advisor Case Study

Parallels Plesk Automation

HP INTEGRATED ARCHIVE PLATFORM

ESET NOD32 Antivirus 4 for Linux Desktop. Quick Start Guide

DIRECTORY PASSWORD V1.0 Quick Start Guide

Using Microsoft Windows Authentication for Microsoft SQL Server Connections in Data Archive

MobileStatus Server Installation and Configuration Guide

HP Quality Center. Software Version: Microsoft Excel Add-in Guide

Using EMC Documentum with Adobe LiveCycle ES

Adobe Acrobat 9 Deployment on Microsoft Windows Group Policy and the Active Directory service

Redtail CRM Integration. Users Guide Cities Digital, Inc. All rights reserved. Contents i

HP Device Manager 4.6

EMC Celerra Network Server

Front-Office Server 2.7

Version 2.1.x. Barracuda Message Archiver. Outlook Add-In User's Guide

Setting Up Person Accounts

RMFT Outlook Add-In User Guide

WebEx Integration to Lotus Notes. Users Guide

Streamline Enterprise Records Management. Laserfiche Records Management Edition

Configuration Guide. How to Configure SSL VPN Features in DSR Series. Overview

CA VPN Client. User Guide for Windows

CA Service Desk Manager - Mobile Enabler 2.0

Mapping ITS s File Server Folder to Mosaic Windows to Publish a Website

NETWRIX EVENT LOG MANAGER

Enable File and Folder Auditing

Create a Balanced Scorecard

HP Device Manager 4.7

Symantec Mail Security for Microsoft Exchange Management Pack Integration Guide

Enterprise Vault Whitepaper Configuring a NAS device as Enterprise Vault storage

Community Edition 3.3. Getting Started with Alfresco Explorer Document Management

Symantec Mail Security for Microsoft Exchange Management Pack Integration Guide

Mapping the ITS File Server Folders to Mosaic Windows

Enterprise Vault Whitepaper

1: Scanning Overview. Scanning versus copying. How are documents scanned?

Transcription:

Workflow 8 : Best Practices for Creating Starting Rules White Paper May 2008

The information contained in this document represents the current view of Compulink Management Center, Inc on the issues discussed as of the date of publication. Because Compulink must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Compulink, and Compulink cannot guarantee the accuracy of any information presented after the date of publication. This chapter is for informational purposes only. COMPULINK MAKES NO WARRANTIES, EXPRESS OR IMPLIED, AS TO THE INFORMATION IN THIS DOCUMENT. 1

Table of Contents Summary... 3 General Best Practices... 4 Shortcuts to Shortcuts... 6 Problem... 6 Solution... 7 Entry Moved Conflicts... 8 Problem... 8 Solution... 9 Solution #1... 9 Solution #2... 10 Entry Changed Conflicts... 12 Problem... 12 Solution... 13 Entry Created Conflicts... 14 Problem... 14 Solution... 15 Solution #1... 15 Solution #2... 15 Solution #3... 16 Multiple Repository Conflicts... 17 Problem... 17 Solution... 18 2

Summary This paper details starting rule best practices that will help you avoid workflows that: Fail to start. Are triggered by the wrong events. Run continuously. Before reading this paper, you should be familiar with the general concept of starting rules and the process of building and publishing workflows and starting rules. In addition to general best practices, solutions to these specific problems will be addressed. 1. If the creation of a shortcut triggers a workflow that is designed to create shortcuts to the starting entry, the workflow will terminate (page 5). 2. A workflow that moves entries may not perform correctly if it is also triggered whenever an entry is moved (page 7). 3. A workflow that changes entries may not perform correctly if it is also triggered whenever an entry is changed (page 11). 4. A workflow that creates entries may not perform correctly if it is also triggered when an entry is created (page 13). 5. If the Workflow Subscriber has been configured to monitor multiple repositories, an event that takes place inside any monitored repository has the potential to satisfy any starting rule on the Workflow Server. Since the connection information associated with the workflow is specific to one repository, workflows will terminate when the starting event occurs in all but a single repository (page 16). 3

General Best Practices It is important that starting rules target the desired entry and exclude all others. If a starting rule is not specific enough, it may be performed on the wrong entry, cause a runaway workflow, or conflict with other starting rules and/or workflows. Consider the following best practices when creating a starting rule. If your Workflow Subscriber is configured to monitor multiple repositories, always define the repository where the starting event must take place. If a workflow should only be triggered by a specific entry type (e.g., document, folder, document shortcut, or folder shortcut), exclude all others. If a workflow should only be triggered by a starting event initiated in a specific folder, exclude all other repository locations. For each workflow definition, you must define a Laserfiche user account that Workflow 8 will use to perform the workflow. This user is referred to as the Workflow User. Workflow Users are defined using connection profiles. In most cases, you should configure a starting rule to ignore events initiated by the Workflow User. Doing so will prevent workflows from inadvertently triggering other workflows. 4

In most, but not all, situations you should only select a single starting event. Doing so will prevent multiple workflow instances from being performed on the same entry. In most, but not all, situations a workflow should only have one active starting rule at any given time. This will prevent the workflow from being triggered multiple times by the same event. 5

Shortcuts to Shortcuts Problem If the creation of a shortcut triggers a workflow designed to create shortcuts to the starting entry, the workflow will terminate. For example, Workflow A: Creates a shortcut to the document that starts a workflow. Routes the shortcut to Tina s working folder. Has a starting rule that allows for it to be triggered when a document is created that has the Sales Lead template assigned to it. In this scenario, the following events will take place. 1. A document that satisfies the starting rule is scanned into the repository and Workflow A is triggered. 2. Workflow A creates a shortcut to the document (Shortcut A) and routes it to Tina s working folder. 3. Since the creation of Shortcut A satisfies Workflow A s starting rule, Workflow A will be triggered again immediately. 4. Workflow A will attempt to create a shortcut to Shortcut A. Since Laserfiche shortcuts cannot reference other shortcuts, this instance of Workflow A will terminate. 6

Solution For workflows designed to create shortcuts to starting entries, the assigned starting rule should be configured to ignore starting entries if they are shortcuts. 7

Entry Moved Conflicts Problem A workflow that moves entries may not perform correctly if it is also triggered when an entry is moved. For example, at the Acme Corporation: Documents are stored in the Processing folder while users process them. After processing, users manually move the documents to the Processed folder. Workflow B moves the documents out of the Processed folder and into specific archive folders. The particular archive folder a document is moved to depends on a complex criterion that takes into consideration the date, time, user who processed the document, and a series of field values. After moving the document, Workflow B assigns a series of tags to it. Workflow B s starting rule allows for it to be triggered when a document is moved that has the Accounting template assigned to it. In this scenario, the following events will take place. 1. A user finishes processing a document and manually moves it to the Processed folder. This event satisfies Workflow B s starting rule and Workflow B is triggered. 2. Workflow B moves the document into the appropriate archive folder. Since this event also satisfies Workflow B s starting rule, Workflow B is immediately triggered again. 8

3. Two separate instances of Workflow B are now being performed on the same document, one of which is extraneous and may interfere with the original instance s performance. Solution There are two ways to configure a starting rule so that you are not attempting to both move entries and trigger the workflow when an entry is moved. Solution #1 Configure the starting rule to only trigger the workflow if the document is moved into a specific parent folder. For example, only trigger the workflow if the document is moved into the Processed folder. The above starting rule will only be triggered if a document is moved directly into the Processed folder. Documents moved into sub-folders will be ignored. To include sub-folders, use the following starting rule. 9

Solution #2 Configure the starting rule to only trigger the workflow if the document is moved by someone other than the Workflow User. A workflow logs into the repository and performs its actions using a specific Laserfiche username and password. The user you want designated as the Workflow User is defined using connection profiles. Tip: We recommend you create a new Laserfiche user and designate it as the default Workflow User. This user should have all rights, privileges, and security tags. 10

By configuring a starting rule to ignore events triggered by the Workflow User, the following events will take place. 1. Ted manually moves a document from the Processing folder into the Processed folder. This event satisfies Workflow B s starting rule and Workflow B is triggered. 2. Workflow B moves the document into the appropriate archive folder. Since this event was initiated by the Workflow User, it does not satisfy Workflow B s starting rule. 11

Entry Changed Conflicts Problem A workflow that changes entries may not perform correctly if it is also triggered whenever an entry is changed. For example, Carol needs a way to quickly determine who edited her documents and when they were edited. She builds Workflow C to populate a document s Modified By field with the modifier s name and the modification date. In this scenario, the Modified By field has been enabled to accept multiple values. Workflow C s starting rule allows for it to be triggered when a document inside the Permits folder is changed. In this scenario, the following events will take place. 1. Bob changes the name of a document in the Permits folder. This event satisfies Workflow C s starting rule and Workflow C is triggered. 2. Workflow C populates the document s Modified By field with Bob 04/25/08. Since this event also satisfies Workflow C s starting rule, Workflow C is immediately triggered again. 3. Workflow C populates the document s Modified By field with Workflow User 04/25/08. Since this event also satisfies Workflow C s starting rule, Workflow C is immediately triggered again. 4. This process will continue over and over again, creating a runaway workflow (where folders continue to be created until the starting rule is manually disabled). Until this workflow can be redesigned and republished, its starting rule should be disabled. 12

Solution For workflows designed to both modify entries and be triggered when an entry is modified, the starting rule should be configured to only trigger the workflow if the document is moved by a user other than the Workflow User, which is the user associated with a workflow s connection information. 13

Entry Created Conflicts Problem A workflow that creates entries may not perform correctly if it is also triggered when an entry is created. For example, whenever a permit is scanned into a repository, Workflow D creates a folder and moves the permit into the new folder. Permits are named Permit X when they are scanned in (where X equals a unique number). Workflow D names the folders it creates based on the name of the permit (e.g., All Permit X Files). Workflow D s starting rule allows for it to be triggered when an entry with the word Permit is created. In this scenario, the following events will take place. 1. A permit is scanned into the All City Permits folder. This event satisfies Workflow D s starting rule and Workflow D is triggered. 2. Workflow D creates a folder for the new permit inside the All City Permits folder. Since this event also satisfies Workflow D s starting rule, Workflow D is immediately triggered again. 3. Depending on how Workflow D was designed, a series of unintended consequences may result, including the possibility of a runaway workflow. 14

Solution There are three ways to avoid this issue. Solution #1 Configure the starting rule to only trigger the workflow if the document is moved by a user other than the Workflow User, which is the user associated with a workflow s connection information. Solution #2 Configure the starting rule to only trigger the workflow if the entry created is a document. 15

Solution #3 If the creation of the document and the creation of the folder occur in separate folders, configure the starting rule to only trigger the workflow if the entry is created in a specific folder. For example, permits are manually scanned into the New Permits folder. Workflow D creates a folder for each new permit inside the Organized Permits folder and places the new permit inside the new folder. In this scenario, configure a starting rule that excludes the creation of entries unless it occurs inside the New Permits folder. 16

Multiple Repository Conflicts Problem If the Workflow Subscriber has been configured to monitor multiple repositories, an event that takes place inside any monitored repository has the potential to satisfy any starting rule on the Workflow Server. Since the connection information associated with the workflow is specific to one repository, workflows will terminate when the starting event occurs in all but a single repository. For example, the Fancy Corporation maintains three repositories, each of which is used to store different types of entries: Employee Travel Repository Customer Accounts Repository Employee Benefits Repository Workflow E has been designed to route a shortcut of all 401k documents to the Benefits Coordinator. This workflow is designed to ensure that the Benefits Coordinator stays abreast of all issues relating to employee 401k plans. Workflow E s starting rule allows for it to be triggered when a document is created that contains the word 401k in the title. In this scenario, the following events may take place. 1. A sales order is scanned into the Customer Account s Repository. The customer s account number, which is included in the name of the sales order document, is B54H82401KLB. Since this particular sales order contains the phrase 401K, Workflow E is triggered, despite the fact it has nothing to do with employee 401k plans. 17

2. Since the connection information associated with the workflow does not match the repository where the starting event took place, Workflow E will terminate when it attempts to route a shortcut to the Benefits Coordinator. 3. This event will continue to take place every time this customer places a sales order, leaving behind a series of terminated workflows. Solution If the Workflow Subscriber has been configured to monitor multiple repositories, all starting rules should limit starting events to the appropriate repository. 18

Workflow 8: Best Practices for Creating Starting Rules May 2008 Author: Jonathan Powers Editor: Tammy Kaehler and Miruna Babatie Compulink Management Center, Inc. Global Headquarters 3545 Long Beach Blvd. Long Beach, CA 90807 U.S.A Phone: +1.562.988.1688 www.laserfiche.com Laserfiche is a trademark of Compulink Management Center, Inc. Various product and service names references herein may be trademarks of Compulink Management Center, Inc. All other products and service names mentioned may be trademarks of their respective owners. Copyright 2008 Compulink Management Center, Inc. All rights reserved 19