Video Screencast Help
Symantec Appoints Michael A. Brown CEO. Learn more.

Index Of Text Within Text

Created: 13 Jun 2012 • Updated: 04 Apr 2014
Language Translations
Collaborators: SymantecWorkflowTeam, africo
SymantecWorkflowTeam's picture
0 0 Votes
Login to vote

Component definition

This component first checks to see if a string contains a certain piece of text. If the string does contain the specified text, this component will return where in your string the text appears.

Component icon

text_find.png

Definition of component input value or values

Field Names Field Description
Input Text This is the variable of the text you want to search for the index variable.  This variable must be initialized and valued upstream of this component.
Text To Find This value may be a static value, an existing process variable, a merged value, or the result output of a dynamic model.  This is the text you want to locate within the string value of the Input Text variable.

Definition of component output value or values

The field "Index Variable Name" is the variable which will be given the index value of the position of the value in the "Text To Find" field.  The output is an integer datatype.

If the "Text To Find" value is found in the "Input Text" variable, the workflow will follow the "contains" output path.  If the value is not found, the "does not contain" path will be followed.

Component settings

To configure this component, right-click and select "Edit Component." You must first set a DelimeterText, which will specify for which piece of text you are searching. Once set, you may set an IndexVariableName to specify where the control will store its return value, and then set the InputVariableName to specify which string you wish to search. You will search your InputVariableName for your DelimeterText. The component will return whether or not the DelimeterText exists in your InputVariableName. If it does, it will return the position of the text in the IndexVariableName field.

Use case

You may wish to search for a first name within a string which contains a complete name. For example, if you have the name string "Doe, John," you may wish to check whether his first name is John. Therefore, you would use this component to search "Doe, John" for the string "John."

[Example 1]

[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.]

[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.]