The OrderExecute method runs the specified set of stages in the pipeline, applying their actions to the specified order form. Before invoking OrderExecute, you must load the pipeline configuration using the LoadPipe method.
OrderExecute returns a Long result containing one of the following values:
OrderPipeline.OrderExecute(Mode, OrderForm, PipeContext, Reserved)
1 Runs the product verification stages.
2 Runs all stages except payment and accept.
4 Runs the complete pipeline.
The values for Mode may be defined as constants in Global.asa:
Application("OPPMODE_PRODUCT") = 1
Application("OPPMODE_PLAN") = 2
Application("OPPMODE_PURCHASE") = 4
The Mode parameter is included only for backward compatibility with sites created in Commerce Server 2.0, and will be discontinued in future releases. In Commerce Server 3.0 and later, the selection of pipeline stages is made by loading an appropriate pipeline configuration file with the LoadPipe method. Commerce Server 3.0 applications should use the value one (1) for this parameter; zero (0) will cause no stages to run.
The OrderExecute method should be used instead of the RunProduct, RunPlan, and RunPurchase methods on the Page object, as used in Commerce Server 2.0.