Creating a Production Script

This example describes creating a simple Production script that deletes the previous version of a cBase, recreates it, and copies it to the production folder. This is an example of a job that can be scheduled to run nightly.

To create a Production script:

  1. Select FileNew > Production Script.

    The New Production Script browse dialog box displays.

  2. Navigate to where you want to save the script, enter a file name, and click Finish.

    NOTE: You can alternatively right-click a folder and select New > Production Script. Rename the script in Workbench Explorer to locate the new script within that folder.

    A Start control node appears where you can set some script-wide settings such as the default email for notifications and the working directory. See Start Control Node.

  3. To set a Delete node for the second node, right-click the Start node and select New Object after this > Process > Delete.

  4. Set the file to be deleted in the Files section of the Delete node attributes pane. See Delete Process Node for more information about the other Delete node attributes.

  5. Right-click the Delete node and select New Object after this > Process > Build cBase.

  6. Set the Build file to use for this build in the Build Scripts section of the Build cBase attributes pane. In this example the Build file outputs to a staging folder. See Build cBase Process Node for more information about the other Build cBase node attributes.

  7. Right-click the Build cBase node and select New Object after this > Process > Copy.

  8. Set the file in the staging folder to be copied (in this example it is the output cBase of the Build script called in the Build cBase node) as the Source in the Copy Operations section of the Copy node attributes pane. Set a cBase folder as the Destination. See Copy Process Node for more information about the other Copy node attributes.

  9. Finish the script by adding the optional End control node. Right-click the Build cBase node and choose New Object after this > Control > End.

  10. Run the script by clicking the run icon, which is a green circle with a white arrow.

See also: