Video Screencast Help
Search Video Help Close Back
to help

Initialize Data

Created: 13 Jun 2012 | Updated: 21 Jan 2013
Language Translations
Collaborators: SymantecWorkflowTeam, Chan Eil Fhios
SymantecWorkflowTeam's picture
0 0 Votes
Login to vote

Component definition

This component initializes one or more variables to a constant initial value. If the variable doesn't already exist in the flow, it will be added.

Component icon

[Insert component icon Image file here.]

Definition of component input value or values

Configuration
Input Value Name Input Value Data Type Req'd Example Format Explanation
Configuration VariableInitializer[] Yes   One or more variables to initialize. The type (including whether is is an array), default value(s) and a name must be supplied. See below for more information about setting up the variable initializers.

*When the field is required is described in the "Explanation" column.

Variable Initializer

When adding a new variable to initialize or editing a variable that is already configured the following fields apply:

Add/Edit Object
Input Value Name Input Value Data Type Req'd Example Format Explanation
Data Type String Yes Text, Date The type of data to store in this variable.
IS Array Boolean Yes   Check the checkbox to indicate that this variable will be an array.
Value As above No Text:"Initial String", Number(Integer):200 The value to set the variable to. This will be a constant of the type set in "Data Type" above. In the case of an array, multiple values can be entered. For complex data types that have multiple fields, each field can be set in the dialog. Arrays of complex data types can also be created and initialized. Each field of each entry in the array can be set independently. One interesting note, because this is not required, this is one of the few ways to create an empty string.
Variable Name String Yes testString The name for the new variable.

Definition of component output value or values

Adds the initialized variables to the process flow.

Connection information

None

Component settings

None

Use case

Setup Constants and Empty Strings

             

  • One way to use this component would be to setup some variables that are referenced later throughout the flow, essentially constants. In this example, the minimumAge is an integer variable used to check whether a person is old enough and the Departments array is an array of strings describing the departments in a company.
  • The selectedID variable is an example of another use case, if no person is selected then it should be empty. This component allows the variable to be set to an empty string so later code can determine if a person has been selected yet.

[Example 2]

[Describe the use case. Insert screen shots or package files. Insert a description of how the settings are configured. Insert additional information about the use case that you are submitting.]

Article Filed Under:
Group Ownership: