CORESTOREVALUES
Use this function library to store values into a variable.
This section provides a list of functions in the library, along with the usage details.
setVariable
Stores the specified input value into a global variable specified in the Output Variable Name column.
Usage:
setVariable(String valueToStore)
elementNotNull("32425683235")
 
Input Parameters:
valueToStore - The value to be stored in a global variable.
 
Return Type: String
appendValueToList
This function appends a value to a list of values. The input to the function can either be a value or a variable. The output will be a list stored into a global variable. The function can be used as part of subroutine looping to store a list of values into the function, one from each iteration of the subroutine.
Example: Consider a subroutine that has a component that adds a new meter read into Oracle Utilities Meter Solution Cloud Service, for each loop that it runs for. Oracle Utilities Meter Solution Cloud Service,responds with the meterReadId for each of the meter read add transactions, which can be stored as a list of values i.e., the list of meterReadIds that are generated as part of subroutine looping. MeterReadId can be extracted from the response into a variable using coreresponseutilib functions and then this variable can be used as input to the appendValueToList function.
Users can also use the value of the incrementer from the subroutine looping data as the input.
Stores the list of values in a global variable specified in the OP Variable Name column.
Usage:
appendValueToList (String variable)
 
Input Parameters:
Variable: The value to be appended to the list
Return Type: String
getListValueUsingIndex
Fetches a particular value from the a list of values based on the provided index. This function complements the appendValueToList function in that it allows for extracting individual values from the list of values generated by the appendValueToList function. The input to the function is the index of the value that we need.
Stores the fetched value from the list into a global variable specified in the OP Variable Name column.
Usage:
getListValueUsingIndex (String index)
 
Input Parameters:
index: Index of the value to be retrieved from the list
VariableName: Variable holding the list of values
 
Return Type: String
appendKeyValueToList
Creates a key based list of values, which users can later use to retrieve specific values. This is an extension of the appendValueToList function wherein the index has been replaced with a custom key.
The function appends a key and a value/variable to a map. The input to the function will be a key and a corresponding value/variable. The output will be a map stored into a global variable.
An example is a subroutine iteration that needs to create activities and complete them. After the completion of the subroutine loop run with 10 iterations that create 10 activities, subsequent steps in the parent flow will be able to get the ID of an activity that could not be completed or that remained in the started state.
Usage:
appendKeyValueToList (String key,String value)
 
Input Parameters:
key: The key for the corresponding value
value: The value to be added along with the key to the map
Return Type: map
getListValueUsingKey
Fetches a particular value from the key value pair map generated by appendKeyValueToList function based on the provided key. The input to the function is a key.
Stores the fetched value from the map into a global variable specified in the OP Variable Name column.
Usage:
getListValueUsingKey (String key)
 
Input Parameters:
key: The key corresponding to a value that needs to be fetched from the map
Return Type: String