This chapter provides a complete listing and reference for the methods in the OpenScript AdfLoadService Class of ADF Load Module Application Programming Interface (API).
The following section provides an alphabetical listing of the enums in the OpenScript AdfLoadService API.
The following section provides an alphabetical listing of the methods in the OpenScript AdfLoadService API.
The following table lists the AdfLoadService API methods in alphabetical order.
Table 6-2 List of AdfLoadService Methods
Method | Description |
---|---|
Constructor for an ADF variable. |
|
Extracts multiple ADF variables from the ADF Rich Response Content and stores them in the variables collection. |
The following sections provide detailed reference information for each method and enum in the AdfLoadService Class of ADF Load Module Application Programming Interface.
Constructor for an ADF variable.
The adfload.getAdfVariable method has the following command format(s):
adfload.getAdfVariable(name, xpath, variableValue, segmentIndex, variableIndex, variableType, encodeOption);
a String spcifying the variable name. Must not be null
.
a String specifying the XPath which is used to locate the value of an ADF variable from the last retrieved contents. Must not be null
.
a String specifying last value of the variable. Must not be null
.
an int specifying the index of the segment in which variable appears. Must not be null
.
an int specifying the index of the appearance that matches the XPath in a segment. Must not be null
.
an enum specifying the type of ADF Variable, such as VariableType.RICHCOMPONENT or VariableType.INPUT. Must not be null
.
an EncodeOptions enum specifying the encoding or decoding operation to perform on the variable's value after solving the variable. A null
value is equivalent to EncodeOptions.None
.
represents an exception that may be thrown during the execution of adfload script.
Extracts multiple ADF variables from the ADF Rich Response Content and stores them in the variables collection.
The adfload.solveGroupAdf method has the following command format(s):
adfload.solveGroupAdf(adfVariables);
one or more AdfVariable objects representing multiple ADF variables. Must not be null
.
represents an exception that may be thrown during the execution of adfload script.
Extracts two ADF variables from the ADF Rich Response Content and stores them in the variables collection.
adfload.solveGroupAdf(adfload.getAdfVariable("adf_comp_ptemppt_soc1",
"//AdfRichSelectOneChoice[@immediate='true']" +
"/@fullId","ptemp:pt_soc1", -1, -1, VariableType.RICHCOMPONENT,
EncodeOptions.None),
adfload.getAdfVariable("adf_option_0_9", ".//OPTION[@id='opt']" +
"/@value", "2",0, 0, VariableType.OPTION, EncodeOptions.None));