Workflow
Studio Manual
May, 2013
TMS SOFTWARE
Workflow Studio Manual
Copyright (c) 2010 by tmssoftware.com bvba
Web: http://www.tmssoftware.com
E-mail: info@tmssoftware.com
Table of Contents
Chapter I Introduction 5
................................................................................................................................... 51 Overview
................................................................................................................................... 52 Licensing and Copyright Notice
................................................................................................................................... 63 What's New
................................................................................................................................... 84 Upgrading to version 1.5
................................................................................................................................... 85 Upgrading to version 1.4
................................................................................................................................... 86 Manual Installation
................................................................................................................................... 97 Getting Support
Chapter II Basic Concepts 11
................................................................................................................................... 111 Workflows and Tasks
................................................................................................................................... 112 Workflow Definition
................................................................................................................................... 113 Workflow Instance
................................................................................................................................... 114 Task Definition (concept)
................................................................................................................................... 125 Task Instance
................................................................................................................................... 126 Workflow Engine
................................................................................................................................... 127 Workflow Users and Groups
Chapter III Getting Started 15
................................................................................................................................... 151 Installation
................................................................................................................................... 162 Running Demos
................................................................................................................................... 163 Components Overview
.......................................................................................................................................................... 16TWorkflowStudio component
.......................................................................................................................................................... 17TWorkflowDB component
......................................................................................................................................................... 18TWorkflowADODB component
......................................................................................................................................................... 18TWorkflowDBXDB component
......................................................................................................................................................... 18TWorkflowpFIBDB component
......................................................................................................................................................... 19TWorkflowAnyDACDB component
.......................................................................................................................................................... 19Auxiliary components
................................................................................................................................... 204 "Hello world" tutorial
................................................................................................................................... 215 E-mail notifications
................................................................................................................................... 216 Monitoring expired tasks (task timeout)
................................................................................................................................... 217 Localization
Chapter IV Database Structure 24
................................................................................................................................... 241 Underlying Database Structure
................................................................................................................................... 262 Upgrading database from previous versions
Workflow Studio ManualI
© 2002-2013 - TMS Software
Chapter V Creating Workflow Definitions 28
................................................................................................................................... 281 Workflow diagram objects
.......................................................................................................................................................... 28Start block
.......................................................................................................................................................... 28End block
.......................................................................................................................................................... 28Error block
.......................................................................................................................................................... 29Source connector
.......................................................................................................................................................... 29Target connector
.......................................................................................................................................................... 29Transition
.......................................................................................................................................................... 30Fork object
.......................................................................................................................................................... 30Join object
.......................................................................................................................................................... 30Decision block
.......................................................................................................................................................... 31Task block
.......................................................................................................................................................... 31Task definition properties
.......................................................................................................................................................... 37Approval block
.......................................................................................................................................................... 37Script block
.......................................................................................................................................................... 38Run workflow block
................................................................................................................................... 392 Workflow variables
................................................................................................................................... 403 Attachments
................................................................................................................................... 414 Expressions
................................................................................................................................... 435 Scripts
Chapter VI User interface windows 46
................................................................................................................................... 461 Workflow definitions dialog
................................................................................................................................... 462 Workflow definition editor
................................................................................................................................... 483 Task list dialog
Chapter VII Using Workflow Studio programatically 54
................................................................................................................................... 541 Running an instance based on a definition name
................................................................................................................................... 542 Workflow with workflow instance variables
................................................................................................................................... 543 Running an instance from code: full example
................................................................................................................................... 554 Retrieve the list of tasks for a specified user
................................................................................................................................... 555 Creating and editing an workflow definition
................................................................................................................................... 556 Running workflow instances for expired tasks
Chapter VIII Extending the scripting system 57
................................................................................................................................... 571 Accessing Delphi objects
.......................................................................................................................................................... 57Registering Delphi components
.......................................................................................................................................................... 57Access to published properties
.......................................................................................................................................................... 57Class registering structure
.......................................................................................................................................................... 58Calling methods
.......................................................................................................................................................... 59More method calling examples
.......................................................................................................................................................... 59Acessing non-published properties
.......................................................................................................................................................... 60Registering indexed properties
.......................................................................................................................................................... 61Retrieving name of called method or property
IIContents
II
© 2002-2013 - TMS Software
.......................................................................................................................................................... 61Registering methods with default parameters
................................................................................................................................... 622 Acessing Delphi functions, variables and constants
.......................................................................................................................................................... 62Overview
.......................................................................................................................................................... 62Registering global constants
.......................................................................................................................................................... 62Acessing global variables
.......................................................................................................................................................... 63Calling regular functions and procedures
................................................................................................................................... 643 Using libraries
.......................................................................................................................................................... 64Overview
.......................................................................................................................................................... 64Delphi-based libraries
.......................................................................................................................................................... 66The TatSystemLibrary library
.......................................................................................................................................................... 68Removing functions from the System library
Workflow Studio ManualIII
© 2002-2013 - TMS Software
Chapter
I
Introduction