PooledPipeline.Execute
Use this method to run the stages in the pipeline configuration file, which was previously specified by the LoadPipe method.
Definition
Function Execute(lMode As Long,pdispOrder As Object,pdispContext As Object,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 previous versions of Commerce Server. Specify 1 for this parameter.
pdispOrder
A reference to a business object (typically a dictionary object or an order form object).
pdispContext
A reference to a secondary business object (typically a context dictionary).
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
For more information about memory ownership issues related to COM property and method parameters, see Managing COM Parameter Memory.
Example
' dOrder, dContext are Commerce.Dictionary objects
' pPooledPipeline is a Commerce.PooledPipeline object
errVal = pPooledPipeline.Execute(1, dOrder, dContext, 0)