Wednesday, August 20, 2008

Flow Control

The Flow Control actions in FinalBuilder make it very easy to structure your action lists, deal with errors, conditionally execute actions etc.

 

Try/Catch/Finally 

The  Try/Catch/Finally actions enable structured exception handling just like you have in many programming languages. The image below shows how they can be used to create localised error handling.

The Try/Catch/Finally actions also need an End action to complete the block and they all need to be at the same node level in the tree to form a valid block. You can also nest the Try/Catch/Finally blocks, and they can be used in Try/Catch/Finally/End or Try/Catch/End or Try/Finally/End constructs.

 

Switch/Case/Else

The Switch/Case/Else actions provide a selector construct using simple case insensitive string comparisons.

The Case Action must be a child of the Switch Action, the same goes for the Else. Note that the Else can also be used with the If..Then action

When used with the If..Then action the Else action must be the next sibling action of the If..Then action. Another action is the "If Previous Action Failed" action. This action will only work if it's previous sibling action has "Ignore Failure" enabled (otherwise the build would stop).

 

Async Action Group

The Aysnc Action Group enables you to use multi-threading in projects. Run multiple steps in the build process simultaneously or entire build processes in parallel to speed up the build process. The image below shows a very simple implementation of the Aysnc Action Group executing 3 DOS commands simultaneously.

Privacy Statement  |  Terms Of Use  |  Contact
Copyright © 2008 VSoft Technologies Pty Ltd