Class OrderGroupWorkflowManager
Inheritance
System.Object
OrderGroupWorkflowManager
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Assembly: Mediachase.Commerce.dll
Version: 10.8.0
public static class OrderGroupWorkflowManager
Fields
Declaration
public const string CartCheckOutWorkflowName = "CartCheckout"
Field Value
Type |
Description |
System.String |
|
Declaration
public const string CartPrepareWorkflowName = "CartPrepare"
Field Value
Type |
Description |
System.String |
|
Declaration
public const string CartValidateWorkflowName = "CartValidate"
Field Value
Type |
Description |
System.String |
|
Declaration
public const string CheckAndReserveInstorePickupWorkflowName = "CheckAndReserveInstorePickupWorkflow"
Field Value
Type |
Description |
System.String |
|
Declaration
[Obsolete("This field has a typo. Use OrderCalculateTotalsWorkflowName instead. Will be removed in version 10.", false)]
public const string OrderCalculateTotalsWorflowName = "RecalculateTotalsWorkflow"
Field Value
Type |
Description |
System.String |
|
Declaration
public const string OrderCalculateTotalsWorkflowName = "RecalculateTotalsWorkflow"
Field Value
Type |
Description |
System.String |
|
Declaration
[Obsolete("This field has a typo. Use OrderCompleteShipmentWorkflowName instead. Will be removed in version 10.", false)]
public const string OrderCompleteShipmentWorflowName = "CompleteShipmentWorkflow"
Field Value
Type |
Description |
System.String |
|
Declaration
public const string OrderCompleteShipmentWorkflowName = "CompleteShipmentWorkflow"
Field Value
Type |
Description |
System.String |
|
Declaration
public const string OrderRecalculateWorkflowName = "RecalculatePurchaseOrderWorkflow"
Field Value
Type |
Description |
System.String |
|
Declaration
public const string OrderSaveChangesWorkflowName = "SaveChangesWorkflow"
Field Value
Type |
Description |
System.String |
|
Declaration
[Obsolete("This field has a typo. Use OrderSplitShipmentsWorkflowName instead. Will be removed in version 10.", false)]
public const string OrderSplitShipmentsWorflowName = "SplitShipmentsWorkflow"
Field Value
Type |
Description |
System.String |
|
Declaration
public const string OrderSplitShipmentsWorkflowName = "SplitShipmentsWorkflow"
Field Value
Type |
Description |
System.String |
|
Declaration
public const string ReturnFormCompleteWorkflowName = "ReturnFormCompleteWorkflow"
Field Value
Type |
Description |
System.String |
|
Declaration
public const string ReturnFormRecalculateWorkflowName = "ReturnFormRecalculateWorkflow"
Field Value
Type |
Description |
System.String |
|
Methods
Declaration
public static IEnumerable<string> GetWarningsFromWorkflowResult(WorkflowResults result)
Parameters
Returns
Type |
Description |
System.Collections.Generic.IEnumerable<System.String> |
|
Runs the specified workflow, exception will be thrown and should be handled by the caller. The execution will be synchronious.
Declaration
public static WorkflowResults RunWorkflow(OrderGroup orderGroup, string name)
Parameters
Type |
Name |
Description |
OrderGroup |
orderGroup |
The order group.
|
System.String |
name |
The name.
|
Returns
Runs the specified workflow.
Declaration
public static WorkflowResults RunWorkflow(OrderGroup orderGroup, string name, bool throwException)
Parameters
Type |
Name |
Description |
OrderGroup |
orderGroup |
The order group.
|
System.String |
name |
The name.
|
System.Boolean |
throwException |
if set to true the exception will be thrown and should be handled by the caller.
|
Returns
Executes an order workflow.
Declaration
public static WorkflowResults RunWorkflow(OrderGroup orderGroup, string name, bool async, bool throwException, Dictionary<string, object> param)
Parameters
Type |
Name |
Description |
OrderGroup |
orderGroup |
The order group to execute the workflow against.
|
System.String |
name |
The name of the workflow to execute.
|
System.Boolean |
async |
This parameter is ignored.
|
System.Boolean |
throwException |
If true, and the target workflow throws an exception, an System.ApplicationException
will be throw with the inner exception set to the exception thrown by the workflow.
|
System.Collections.Generic.Dictionary<System.String, System.Object> |
param |
The parameters to pass to the workflow.
|
Returns
Type |
Description |
WorkflowResults |
A workflow result created from the arguments to the last idle, completed, terminated,
or aborted event from the order runtime with the instance ID of this cart.
|
Runs the specified workflow.
Declaration
public static WorkflowResults RunWorkflow(OrderGroup orderGroup, string name, bool throwException, Dictionary<string, object> param)
Parameters
Type |
Name |
Description |
OrderGroup |
orderGroup |
The order group.
|
System.String |
name |
The name.
|
System.Boolean |
throwException |
if set to true the exception will be thrown and should be handled by the caller.
|
System.Collections.Generic.Dictionary<System.String, System.Object> |
param |
The additional input parameters.
|
Returns