Package com.uc4.api.objects
Class LoopDataSource
java.lang.Object
com.uc4.api.objects.LoopDataSource
- Direct Known Subclasses:
JobPlanMonitor.JobPlanMonitorForEach
This class represents the datasource in a ProcessFlow loop.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the name of the Script Variable which is defined as an array.Returns the name of the Script variable which is used for published items.int
Returns the column.Returns the name of the UC4 VARA Object.boolean
Returnstrue
if the selected datasource is an array,false
otherwise.void
selectSourceArray
(String name) Selects array as datasource.void
selectSourceVariable
(UC4ObjectName vara, int column) Selects a VARA Object as datasource.void
setPublishedVariable
(String publishedVariable) Sets the name of the variable which should be used to publish items of the loop.
-
Constructor Details
-
LoopDataSource
-
-
Method Details
-
selectSourceVariable
Selects a VARA Object as datasource.- Parameters:
vara
- Name of the Variable objectcolumn
- Column starting with 1
-
getVariableName
Returns the name of the UC4 VARA Object.- Returns:
- Variable Object or an empty UC4ObjectName instance if an array has been set as datasource
-
getVariableColumn
public int getVariableColumn()Returns the column.- Returns:
- Column
-
selectSourceArray
Selects array as datasource.- Parameters:
name
- Name of the script variable
-
isSourceArray
public boolean isSourceArray()Returnstrue
if the selected datasource is an array,false
otherwise.- Returns:
- Returns
true
if the selected datasource is an array
-
getArrayName
Returns the name of the Script Variable which is defined as an array.- Returns:
- Array or an empty String if a VARA object has been set as datasource
-
getPublishedVariable
Returns the name of the Script variable which is used for published items.- Returns:
- Script variable name, the default value &ITEM# will be returned if it has not been set
-
setPublishedVariable
Sets the name of the variable which should be used to publish items of the loop.- Parameters:
publishedVariable
- Script variable name
-