OrderPipeline.OrderExecute
Use this method to run the stages in the pipeline configuration file, which was previously specified by the LoadPipe method.
Definition
Function OrderExecute(lMode As Long,pdispOrder As IDispatch,pdispContext As IDispatch,lFlags As Long) As Long
Parameters
lMode
A Long indicating the mode in which to run the pipeline. This parameter is provided only for backward compatibility with Site Server 2.0 sites.
pdispOrder
A reference to a Dictionary object, usually an OrderForm object. The Order dictionary that will be used by the pipeline.
pdispContext
A reference to a Dictionary object. The Context dictionary that will be used by the pipeline.
lFlags
An unused Long parameter. Must be set to zero (0).
Return Values
If this method completes successfully, it returns a Long indicating whether there were warnings or errors detected by components in the pipeline. See the Error Values section for more details.
Error Values
This method sets the Number property of the global Err object to S_OK (&H00000000) to indicate success and to standard COM error values to indicate failure. For more information about standard COM errors, see Standard COM Errors. Additional information may be available using the global Err object. In particular, the Description property may contain a text description of the error.
In addition, the method returns one of the following three values:
Value | Description |
1 | The pipeline ran successfully. |
2 | A pipeline component raised a warning. Generally, these are basket or user errors that would be reported to the user through the ASP page. |
3 | A pipeline component failed to run. |
Remarks
The lMode parameter is included only for backward compatibility with sites created in Site Server 2.0. In Site Server 3.0 Commerce Edition and later, the selection of pipeline stages is made by loading an appropriate pipeline configuration file with the LoadPipe method. Commerce Server 2000 applications should use the value one (1) for this parameter; zero (0) will cause no stages to run.
For more information about memory ownership issues related to COM property and method parameters, see Managing COM Parameter Memory.
Example
' pOrdPipeline is a Commerce.OrderPipeline object
' lMode is a Long
' dOrder and dContext are Commerce.Dictionary objects
errVal = pOrdPipeline.Execute(l, dOrder, dContext, 0)