Database Reference
In-Depth Information
Note Because we did not set a value for User::WorkingCopyFileName , there
will be a red X on the task. Do not worry about that.
Rename the second File System task fsys Rename File and open its editor. Set the
Operation property to Rename File . Set the IsSourcePathVariable prop-
erty to True and the SourceVariable property to
User::WorkingCopyFileName . Set the IsDestinationPathVariable to
True and set the DestinationVariable property to
User::FormattedFileName . Set the OverwriteDestination property to
True . Close the File System Task Editor.
Rename the third File System task fsys Move File and open its editor. Set the
Operation property to Move File . Set the IsSourcePathVariable property
to True and the SourceVariable property to User::FormattedFileName .
Set the IsDestinationPathVariable to True and set the Destina-
tionVariable property to $Package::ArchiveDirectory . Set the Over-
writeDestination property to True . Close the File System Task Editor.
Rename the fourth File System task fsys Delete Original File and open its editor.
Set the Operation property to Delete File . Set the IsSourcePathVari-
able property to True and the SourceVariable property to $Pack-
age::SourceFilePath . Close the File System Task Editor.
Use a Success Precedence constraint to connect the scr Apply Format Script task to
the fsys Copy Working File File System task. Double-click the Precedence constraint
to open the editor and set the Evaluation Option property to Expression
and Constraint . Set the Value property to Success and the Expression
property to @[User::OkToProceed] . This constraint will only fire if the scr Ap-
ply Format Script task completes execution successfully and sets the OkToProceed
(Boolean) variable to True . Connect Success Precedence constraints between the
fsys Copy Working File File System task and the fsys Rename File File System task,
the fsys Rename File File System task and the fsys Move File File System task, and the
fsys Move File File System task and the fsys Delete Original File File System task.
Double-click the Precedence constraint between the fsys Move File File System task
and the fsys Delete Original File File System task to open the editor. Set the Evalu-
ation Option property to Expression and Constraint . Set the Value
property to Success and the Expression property to !@[$Pack-
age::CopyOnly] (this equates to NOT [!] $Package::CopyOnly , or when
$Package::CopyOnly is False ). For the fsys Delete Original File File System
Search WWH ::




Custom Search