Home Search

DriveWorks Pro 22
Copy Closed Child Specification

Send Feedback

Copy Closed Child Specification

The Copy Closed Child Specification task will copy the specified Child Specification without opening it.

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.
Child Specification NameThe name of the Specification to copy. (Not required if using Specification Index)
Child Specification IndexThe index of the Child Specification to copy. (Not required if using Specification Name)
Child Specification ListThe name of the Child Specification List to copy within.
Copied Specification Name Constant NameThe name of the Constant to place the name of the copied Child Specification into (This is optional).

Example

Example Specification

Specification IdSpecification Name
134DriveWorks Child Project 0134

Specification Name

Example shown for when the Specification Name is used.

Property NameExample RuleExample ResultMeaning
Child Specification Name"DriveWorks Child Project "&SpecificationIdReturnDriveWorks Child Project 0134Will create a copy of the Specification with the name DriveWorks Child Project 0134.
Child Specification ListChildSpecList1ChildSpecList1Will copy the Child Specification from the Child Specification List Control named ChildSpecList1.
Copied Specification Name Constant NameDWConstantCopiedSpecificationDWConstantCopiedSpecificationThe Name of the copied specification will be written to this constant.

Specification Index

Example shown for when the Specification Index is used.

Property NameExample RuleExample ResultMeaning
Child Specification IndexChildSpecRowReturn3Will create a copy of the Child Specification on row 3 of the Child Specification List.
Child Specification ListChildSpecList1ChildSpecList1Will copy the Child Specification from the Child Specification List Control named ChildSpecList1.
Copied Specification Name Constant NameDWConstantCopiedSpecificationDWConstantCopiedSpecificationThe Id of the copied specification will be written to this constant.

Example Results

Where 144 is the next available Specification Id.

Specification Name

The Output results for the example would be:

Output NameOutput Value
Created Id144
Created NameDriveWorks Project 0144

Specification Index

The Output results for the example would be:

Output NameOutput Value
Created Id144
Created NameDriveWorks Project 0144

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. Child specification was copied and constant driven.
  • Constant was not provided, but child Sspecification was copied.

Success with Warnings

  • Constant was provided, but could not be found. Child Specification was copied anyway.

Failed (one of the following occurred)

  • Could not find child Specification control.
  • Child Specification name was empty.
  • Could not find child Specification with the name provided.
  • General failure - Check the Specification report for more details.