London Dev Meetup Rescheduled! Due to unavoidable reasons, the event has been moved to 21st May. Speakers remain the same—any changes will be communicated. Seats are limited—register here to secure your spot!

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()
Namespace: Mediachase.Commerce.Orders.Managers
Assembly: Mediachase.Commerce.dll
Version: 13.30.0
Syntax
public static class OrderGroupWorkflowManager

Fields

CartCheckOutWorkflowName

Declaration
public const string CartCheckOutWorkflowName = "CartCheckout"
Field Value
Type Description
System.String

CartPrepareWorkflowName

Declaration
public const string CartPrepareWorkflowName = "CartPrepare"
Field Value
Type Description
System.String

CartValidateWorkflowName

Declaration
public const string CartValidateWorkflowName = "CartValidate"
Field Value
Type Description
System.String

CheckAndReserveInstorePickupWorkflowName

Declaration
public const string CheckAndReserveInstorePickupWorkflowName = "CheckAndReserveInstorePickupWorkflow"
Field Value
Type Description
System.String

OrderCalculateTotalsWorkflowName

Declaration
public const string OrderCalculateTotalsWorkflowName = "RecalculateTotalsWorkflow"
Field Value
Type Description
System.String

OrderCompleteShipmentWorkflowName

Declaration
public const string OrderCompleteShipmentWorkflowName = "CompleteShipmentWorkflow"
Field Value
Type Description
System.String

OrderRecalculateWorkflowName

Declaration
public const string OrderRecalculateWorkflowName = "RecalculatePurchaseOrderWorkflow"
Field Value
Type Description
System.String

OrderSaveChangesWorkflowName

Declaration
public const string OrderSaveChangesWorkflowName = "SaveChangesWorkflow"
Field Value
Type Description
System.String

OrderSplitShipmentsWorkflowName

Declaration
public const string OrderSplitShipmentsWorkflowName = "SplitShipmentsWorkflow"
Field Value
Type Description
System.String

RejectedInventoryDueToInsufficientQuantityWarning

Declaration
public const string RejectedInventoryDueToInsufficientQuantityWarning = "RejectedInventoryDueToInsufficientQuantity"
Field Value
Type Description
System.String

ReturnFormCompleteWorkflowName

Declaration
public const string ReturnFormCompleteWorkflowName = "ReturnFormCompleteWorkflow"
Field Value
Type Description
System.String

ReturnFormRecalculateWorkflowName

Declaration
public const string ReturnFormRecalculateWorkflowName = "ReturnFormRecalculateWorkflow"
Field Value
Type Description
System.String

Methods

GetWarningsFromWorkflowResult(WorkflowResults)

Declaration
public static IEnumerable<string> GetWarningsFromWorkflowResult(WorkflowResults result)
Parameters
Type Name Description
WorkflowResults result
Returns
Type Description
System.Collections.Generic.IEnumerable<System.String>

RunWorkflow(OrderGroup, 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
Type Description
WorkflowResults

RunWorkflow(OrderGroup, String, Boolean)

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
Type Description
WorkflowResults

RunWorkflow(OrderGroup, String, Boolean, Boolean, Dictionary<String, Object>)

Declaration
[Obsolete("This method is no longer used. Use the overload without 'async' parameter instead. Will remain at least until July 2020.")]
public static WorkflowResults RunWorkflow(OrderGroup orderGroup, string name, bool async, bool throwException, Dictionary<string, object> param)
Parameters
Type Name Description
OrderGroup orderGroup
System.String name
System.Boolean async
System.Boolean throwException
System.Collections.Generic.Dictionary<System.String, System.Object> param
Returns
Type Description
WorkflowResults

RunWorkflow(OrderGroup, String, Boolean, Dictionary<String, Object>)

Executes an order 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 to execute the workflow against.

System.String name

The name of the workflow to execute.

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.