Home Search

DriveWorks Pro 22
Write Variables To Simple Table

Send Feedback

Write Variables To Simple Table

This Specification Flow Task gets data from a set of Variables, and writes them to a Simple Table.

The task relies on Variables having a common prefix. This is the portion of the Variable name after the default DWVariable, but before any distinguishing suffix.

For example:

DWVariableType1

Properties

Property NameDescription
TitleChanges the Title (not the name) of the task.
Item Prefix StringA pipe bar (|) delimited string of Variable prefixes.
Table NameThe name of the DriveWorks Project Table that the Variables will be written to.

Example

When this Task is added the properties are static. To be able to build rules on a static property see How To: Change A Static Property To A Dynamic Property.

Property NameExample RuleExample ResultMeaning
Item Prefix String"Type|Material|Price"Type|Material|PriceThis is the pipebar (|) delimited list of all the prefixes for the Variables values to export to the Simple Table.
Table Name"VariableExport"VariableExportThis is the name of the Simple Table to export the Variable values to for the specified Variable prefixes.

Example Variables

Variable NameVariable Value
DWVariableType1A
DWVariableType2B
DWVariableType3C
DWVariableMaterial1Plastic
DWVariableMaterial2Steel
DWVariableMaterial3Stainless Steel
DWVariablePrice112.32
DWVariablePrice245.87
DWVariablePrice378.54

Example Table Outcome

The table would have the following written into it, including the headers.

IndexTypeMaterialPrice
1APlastic12.32
2BSteel45.87
3CStainless Steel78.54

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

  • Variables successfully written to the table

Success with Warnings

  • N/A - Should never be fulfilled

Failed (one of the following occurred).

  • Table is not a simple table
  • Table does not exist
  • Generic error. An exception was raised in the code