This class provides methods to handle current configuration (global values) available in current run context based on the name of the configuration provided. To get a handle to a FlowPDF::Config object you need to use the getConfigValues() method from FlowPDF::Context.
getParameter($parameterName)
Returns either a FlowPDF::Parameter object or a FlowPDF::Credential object based on how it called.
Usage
To retrieve parameter object:
my $query = $configValues->getParameter('query');
If parameter is a FlowPDF::Parameter you can either use getValue() method or the string context:
print "Query:", $query->getValue();
Or:
print "Query: $query"
If parameter is FlowPDF::Credential follow the steps in its documentation.
getRequiredParameter($parameterName)
Returns a FlowPDF::Parameter object or a FlowPDF::Credential object if parameter exists.
If parameter does not exist, this method aborts execution with exit code 1.
This exception cannot be caught.
Usage
To retrieve parameter object:
my $query = $stepParameters->getRequiredParameter('query');
If your parameter is of type FlowPDF::Parameter you can retrieve its value either by getValue() method, or using string context:
print "Query:", $query->getValue();
Or:
print "Query: $query"
If your parameter is of type FlowPDF::Credential refer to its documentation.