Class POCalculateTotalsActivityFlow
Activity flow that is used to update all the discounts for an order.
Inherited Members
Namespace: Mediachase.Commerce.Workflow
Assembly: Mediachase.Commerce.Workflow.dll
Version: 14.26.0Syntax
[ActivityFlowConfiguration(Name = "RecalculateTotalsWorkflow")]
public class POCalculateTotalsActivityFlow : ActivityFlow
Constructors
POCalculateTotalsActivityFlow()
Declaration
public POCalculateTotalsActivityFlow()
Methods
Configure(ActivityFlowRunner)
Configures, sets up the execution scenario for the ActivityFlow, containing sequential steps.
Declaration
public override ActivityFlowRunner Configure(ActivityFlowRunner activityFlow)
Parameters
Type | Name | Description |
---|---|---|
ActivityFlowRunner | activityFlow | The execution ActivityFlow. |
Returns
Type | Description |
---|---|
ActivityFlowRunner | Instance of ActivityFlowRunner class. |
Overrides
Examples
The following example demonstrates how to configure the ActivityFlow:
return activityFlow.If(() =>
{
return InStock > 0;
})
.Step<AddToCartActivity>()
.EndIf()
.Step<CalculateTotalsActivity>();