Workflow Studio
Manual
© 2002-2008 - TMS Software
Table of Contents
Chapter I Introduction 5
................................................................................................................................... 51 Overview
................................................................................................................................... 52 Licensing and Copyright Notice
................................................................................................................................... 63 What's New
................................................................................................................................... 64 Getting Support
Chapter II Basic Concepts 9
................................................................................................................................... 91 Workflows and Tasks
................................................................................................................................... 92 Workflow Definition
................................................................................................................................... 93 Workflow Instance
................................................................................................................................... 94 Task Definition (concept)
................................................................................................................................... 105 Task Instance
................................................................................................................................... 106 Workflow Engine
................................................................................................................................... 107 Workflow Users and Groups
Chapter III Getting Started 13
................................................................................................................................... 131 Installation
................................................................................................................................... 142 Running Demos
................................................................................................................................... 143 Components Overview
.......................................................................................................................................................... 14TWorkflowStudio component
.......................................................................................................................................................... 15TWorkflowDB component
......................................................................................................................................................... 16TWorkflowADODB component
......................................................................................................................................................... 16TWorkflowDBXDB component
......................................................................................................................................................... 16TWorkflowpFIBDB component
.......................................................................................................................................................... 16Auxiliary components
................................................................................................................................... 174 "Hello world" tutorial
................................................................................................................................... 185 E-mail notifications
................................................................................................................................... 196 Localization
Chapter IV Database Structure 21
................................................................................................................................... 211 Underlying Database Structure
Chapter V Creating Workflow Definitions 25
................................................................................................................................... 251 Workflow diagram objects
.......................................................................................................................................................... 25Start block
.......................................................................................................................................................... 25End block
.......................................................................................................................................................... 25Error block
.......................................................................................................................................................... 25Source connector
.......................................................................................................................................................... 26Target connector
Workflow Studio ManualI
© 2002-2008 - TMS Software
.......................................................................................................................................................... 26Transition
.......................................................................................................................................................... 26Fork object
.......................................................................................................................................................... 27Join object
.......................................................................................................................................................... 27Decision block
.......................................................................................................................................................... 27Task block
.......................................................................................................................................................... 28Task definition properties
.......................................................................................................................................................... 31Approval block
.......................................................................................................................................................... 31Script block
................................................................................................................................... 322 Workflow variables
................................................................................................................................... 333 Attachments
................................................................................................................................... 344 Expressions
................................................................................................................................... 365 Scripts
Chapter VI User interface windows 39
................................................................................................................................... 391 Workflow definitions dialog
................................................................................................................................... 392 Workflow definition editor
................................................................................................................................... 413 Task list dialog
Chapter VII Using Workflow Studio programatically 46
................................................................................................................................... 461 Running an instance based on a definition name
................................................................................................................................... 462 Workflow with workflow instance variables
................................................................................................................................... 463 Running an instance from code: full example
................................................................................................................................... 474 Retrieve the list of tasks for a specified user
................................................................................................................................... 475 Creating and editing an workflow definition
Chapter VIII Extending the scripting system 49
................................................................................................................................... 491 Accessing Delphi objects
.......................................................................................................................................................... 49Registering Delphi components
.......................................................................................................................................................... 49Access to published properties
.......................................................................................................................................................... 49Class registering structure
.......................................................................................................................................................... 50Calling methods
.......................................................................................................................................................... 50More method calling examples
.......................................................................................................................................................... 51Acessing non-published properties
.......................................................................................................................................................... 52Registering indexed properties
.......................................................................................................................................................... 52Retrieving name of called method or property
.......................................................................................................................................................... 53Registering methods with default parameters
................................................................................................................................... 532 Acessing Delphi functions, variables and constants
.......................................................................................................................................................... 54Overview
.......................................................................................................................................................... 54Registering global constants
.......................................................................................................................................................... 54Acessing global variables
.......................................................................................................................................................... 55Calling regular functions and procedures
................................................................................................................................... 563 Using libraries
.......................................................................................................................................................... 56Overview
.......................................................................................................................................................... 56Delphi-based libraries
.......................................................................................................................................................... 58The TatSystemLibrary library
.......................................................................................................................................................... 60Removing functions from the System library
IIContents
II
© 2002-2008 - TMS Software
Workflow Studio ManualIII
© 2002-2008 - TMS Software
Chapter
I
Introduction