Home Search

DriveWorks Pro 24
Set Specification Host Control

Send Feedback

Set Specification Host Control

The Set Specification Host Control is a task that sets a Specification Host control with the Specification to run.

The Set Specification Host Control task can be used to:.

  • Create a new Specification from any DriveWorks Project in the Group that the user has access to.
  • Transition and view any existing Specification in the DriveWorks Group that the user has access to.
  • Create a new Child Specification based on a Child Specification List Control.
  • Transition and view an existing Child Specification based on a Child Specification List Control.

See How to Use the Specification Host Control for more information on using this task in a host project.

Running the Task

This task is run from the host project, typically by applying it to:

  • The Enter State event of the running state in the specification flow.
  • A macro button on a user form.

Properties

Property NameDescription
Child Specification ListThe name of the Child Specification List that contains the Specification to host. This is only required if you wish to host a Child Specification.
Project NameThe name of the Project to create a Specification from.
Specification Host Control NameThe name of the Specification Host Control to host the Specification in.
Specification IdThe Id of the Specification you wish to host. This can be a root Specification or a Child Specification. If this is set then Specification Name does not have to be set.
Specification NameThe name of the Specification you wish to host. This can be a root Specification or a Child Specification. If this is set then Specification Id does not have to be set.
Transition NameThe name of the Transition that you wish to use to Transition the target Specification to a Running State.
TitleChanges the Title (not the name) of the task.

Examples

Below are a few examples of how Set Specification Host Control can be used.

When this task is added the properties are static by default. See How To: Change A Static Property To A Dynamic Property to enable rules to be built on these properties.

Host new DriveWorks Specification

Targets the Specification Host Control Name to create a new specification from the project specified in the Project Name property

PropertyExample RuleExample ResultMeaning
Project Name"Door Project"Door ProjectDoor Project is the name of the DriveWorks Project as it appears in the Projects List.
Specification Host Control Name"SpecificationHostControl"SpecificationHostControlThe name of the Specification Host Control to set with the DriveWorks Project to run.

Host an existing DriveWorks Specification

Targets the Specification Host Control Name to run the Transition Name on an existing specification based on a Specification Name or Specification ID.

PropertyExample RuleExample ResultMeaning
Specification Host Control Name"SpecificationHostControl"SpecificationHostControlThe name of the Specification Host Control to set with the DriveWorks Specification to run.
Specification Name"Door Project 0001"Door Project 0001Door Project 0001 is the name of the DriveWorks Specification as it appears in Specification Explorer.
Transition Name"Edit"EditEdit is the name of the Transition to run on the existing Specification

Or, you can use the Specification Id to Edit an existing Specification.

PropertyExample RuleExample ResultMeaning
Specification Host Control Name"SpecificationHostControl"SpecificationHostControlThe name of the Specification Host Control to set with the DriveWorks Specification to run.
Specification Id333333 is the Id of a DriveWorks Specification.
Transition Name"Edit"EditEdit is the name of the Transition to run on the existing Specification

Host a new Child Specification

Targets the Specification Host Control Name and a Child Specification List in the host, to create a new child specification from the project specified in the Project Name property.

PropertyExample RuleExample ResultMeaning
Child Specification List"ChildSpecList"ChildSpecListChildSpecList is the name of the Child Specification List that exists in the host project.
Project Name"Door Project"Door ProjectDoor Project is the name of the DriveWorks Project as it appears in the Projects List.
Specification Host Control Name"SpecificationHostControl"SpecificationHostControlThe name of the Specification Host Control in the host project to set with the project to run.

Host an existing Child Specification

Targets the Specification Host Control Name and a Child Specification List in the host, to run the Transition Name that edits an existing child specification based on the Specification Name or Specification ID property.

PropertyExample RuleExample ResultMeaning
Child Specification List"ChildSpecList"ChildSpecListChildSpecList is the name of the Child Specification List that exists in the host project.
Specification Host Control Name"SpecificationHostControl"SpecificationHostControlThe name of the Specification Host Control in the host project to set with the project to run.
Specification Id105105105 is the Specification Id, not Index, of the Child Specification to Edit and Host.
Transition Name"Edit"EditEdit is the Transition to run in the chosen Child Specification.

Or, you can use the Specification Name to Edit an existing Child Specification.

PropertyExample RuleExample ResultMeaning
Child Specification List"ChildSpecList"ChildSpecListChildSpecList is the name of the Child Specification List that exists in the host project.
Specification Host Control Name"SpecificationHostControl"SpecificationHostControlThe name of the Specification Host Control in the host project to set with the project to run.
Specification Name"Door Project 0001"Door Project 0001This is the name of the Child Specification to Edit and Host in the Specification Host Control.
Transition Name"Edit"EditEdit is the Transition to run in the chosen Child Specification.

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.

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

  • Task was successfully executed.

Success with Warnings

  • N/A - should never be fulfilled.

Failed (one of the following occurred)

  • Unable to nest Specifications more than 50 levels deep.
  • Host Control could not be found.
  • Project Could not be found.
  • User does not have Specify permissions.
  • User does not have edit permissions for Project.
  • Transition name wasn't set.
  • General failure - Check the Specification report for more details.