Home Search

DriveWorks Pro 22
Copy Closed Specification

Send Feedback

Copy Closed Specification

The Copy Closed Specification task will copy the specified Specification.

Properties

Property NameDescription
TitleChanges the Title (not the name) of the task.
When applying this task to a Specification Macro the title can be changed by clicking in the header of the applied task.
Specification NameThe name of the Specification to copy. (Not required if using Specification Id)
Specification IdThe Id of the Specification to copy. (Not required if using Specification Name)
Copied Specification Id Constant NameThe name of the Constant to place the Id of the copied Specification into (This is optional).

Example

Example Specification

Specification IdSpecification Name
133DriveWorks Project 0133

Specification Name

Example shown for when the Specification Name is used.

Property NameExample RuleExample ResultMeaning
Specification Name"DriveWorks Project "&SpecificationIdReturnDriveWorks Project 0133Will create a copy of the Specification with the name DriveWorks Project 0133.
Copied Specification Id Constant NameDWConstantCopiedSpecificationDWConstantCopiedSpecificationThe Id of the copied Specification will be written to this Constant.

Specification Id

Example shown for when the Specification Id is used.

Property NameExample RuleExample ResultMeaning
Specification IdSpecToCopyReturn133Will create a copy of the Specification with the Id 0133.
Copied Specification Id Constant NameDWConstantCopiedSpecificationDWConstantCopiedSpecificationThe Id of the copied Specification will be written to this Constant.

Example Results

Where 141 is the next available Specification Id.

Specification Name

The Output results for the example would be:

Output NameOutput Value
Created Id141
Created NameDriveWorks Project 0141

Specification Id

The Output results for the example would be:

Output NameOutput Value
Created Id141
Created NameDriveWorks Project 0141

Using the Task in a Specification Macro

This task has different types of Outputs. For more information about Outputs see Specification Macros Task Node.

Outputs are only available within Specification Macros. Currently Outputs are not available for Specification Flow.

Data Outputs

Output NameDescription
Created IdThe Id of the new Specification that was created.
Created NameThe Name of the new Specification that was created.

Status Outputs

This task supports Status Outputs. These can be used to perform different actions depending on what the status outcome of the task is. For more information see Status Outputs in the Task Node Outputs section of Specification Macros Task Node.

The status output navigation is as follows:

Success (one of the following occurred)

  • Constant was provided, and found. Specification was copied and constant driven.
  • Constant was not provided, but the specification was copied.

Success with Warnings (one of the following occurred)

  • Constant was provided, but could not be found. Specification was copied anyway.
  • A constant was provided, and used, and we successfully copied the closed specification but warnings occurred.
  • No constant was provided, but we successfully copied the closed specification without warnings.

Failed (one of the following occurred)

  • Cannot find specification (either by ID or name)
  • General failure - Check the specification report for more details.