Home Search

DriveWorks Pro 22
Invoke Child Specification Operation

Send Feedback

Invoke Child Specification Operation

The Invoke Child Specification Operation task will trigger a child specification operation to be run.

Properties

Property NameDescription
Child Specification ListThe name of the child specification control that contains the child specification you wish to invoke an operation on.
Operation NameThe name of the specification operation that you wish to invoke.
Specification IndexThe index of the specification that you wish to invoke an operation on. This does not need to be set if the Specification Name property has been set.
Specification NameThe name of the specification that you wish to invoke an operation on. This does not need to be set if the Specification Index property has been set.
TitleChanges the Title (not the name) of the task.

Ensure that the DriveWorks user running this task has permission to run the Operation.

The Child Specifications State must also have an available Operation with the named specified.

Specification Index is not the Specification's Id. It is the index of the Specification in the Child Specification List

The first Child Specification in the Child Specification List would have an index of 1.

Example

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.

Using Specification Index

PropertyExample RuleExample ResultMeaning
Child Specification List"OrderItems"OrderItemsOrderItems is the name of the Child Specification List to search in for the Specification and invoke the Operation.
Operation NameDWVariableOperationNameDeleteThe Variable OperationName must evaluate to the exact name of an Operation available on the Child Specification.
Specification IndexDataTableReturn4Child Specification List Data is being shown in a Data Table. The return of the Data Table is the Selected Row Index. This is the Index of a Child Specification.

Using Specification Name

PropertyExample RuleExample ResultMeaning
Child Specification List"OrderItems"OrderItemsOrderItems is the name of the Child Specification List to search in for the Specification and invoke the Operation.
Operation NameDWVariableOperationNameDeleteThe Variable OperationName must evaluate to the exact name of an Operation available on the Child Specification.
Specification NameTableGetValue(ChildSpecList,1,DataTableReturn)Door Project 0001TableGetValue returns the name of the Child Specification based on the Data Tables Selected Index.

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

  • Operation was successfully executed.

Success with Warnings

  • N/A - should never be fulfilled.

Failed (one of the following occurred)

  • Specification is not running.
  • Could not find child specification control.
  • Could not find child spec with the name provided.
  • Could not find child spec with the ID provided.
  • Child specification failed to load.
  • Operation not enabled.
  • Operation not found.
  • Operation not specified.
  • Current user is not authorized to execute the operation.

DriveWorks Tech Tips Portal

Custom Child Spec List

How to create your own Child Specification List control which can be tailored to suit your forms, using a Data Table and Macro Buttons to reskin it.

View all Tech Tips

DriveWorks Tech Tips Portal is available to DriveWorks Pro customers with an active subscription and support contract.

Tech Tips provide cut down projects that highlight specific functionality for faster and more effective learning.

To access the portal:

  1. Go to https://my.driveworks.co.uk/learn/tech-tips/
  2. Login with your DriveWorks Pro account credentials, if asked
  3. Click the Visit Tech Tips Portal button for access

The portal provides a search facility, start typing the name of the Tech Tip (as indicated above) to display the Tip you require.

See Also

Specification Flow Security