This class provides methods to process current step parameters, that are either defined in a procedure step or a pipeline task.
To initialize a FlowPDF::StepParameters object you need to use the getStepParameters() method from FlowPDF::Context.
getParameter($parameterName)
Returns either a FlowPDF::Parameter object or FlowPDF::Credential object.
Usage
my $query = $stepParameters->getParameter('query');
If your parameter is of type FlowPDF::Parameter, you can get its value either by getValue() method, or using string context:
print "Query:", $query->getValue();
Or:
print "Query: $query"
If your parameter is FlowPDF::Credential follow its own 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.