Workflow Type Form, Script Code
<< Previous |

Workflow Type, Script Code

ButtonDescription
Undo
Undo the last action (Ctrl + Z).
Redo
Redo the last action (Ctrl + Y).
CodeCommentOut
Comment out the selected code.
CodeUncommentOut
Uncomment out the selected code.
IndentDecrease
Decrease the Indent (Shift + Tab).
IndentIncrease
Increase the Indent (Tab).
Bookmark
Toggle a Bookmark at the current line.
BookmarkPrevious
Move to the Previous Bookmark.
BookmarkNext
Move to the Next Bookmark.
BookmarksClear
Clear all Bookmarks.

Workflows maintain their own Script. The following events are supported (the "Paste template Script code" button will generate a template script):

AfterInitialise

BeforeProcess

BeforeItemAction

AfterItemAction

BeforeItemReset

AfterItemReset

BeforeClose

BeforeAccountDecline

CanActionItem

CouldActionItem

UpdateDocumentsList

Button Strip

ButtonDescription
Information
Show information about directives that can be inserted into the code.
ScriptCodePaste
Paste template Script code.
ScriptBuild
Build Script to verify that it compiles correctly.
Import Button
Import Script from a file.
Export
Export Script to a file.
EncryptDocument
Encrypt
Encrypt or Decrypt Script Code.

Scripting makes the Workflow even more powerful. It can be used to

  • Pre-initialise checklists
    • Set items to n/a or skipped
    • Include or delete items from the list
    • Answer questions or check items based on information already collected.
  • Control the flow and branching of the workflow
  • Perform complicated testing

The script code is included with the Workflow, rather than linking to a script you setup separately.