SaaS CMS has officially launched! Learn more now.

Class LegacyPOCalculateTotalsActivityFlow

This class represents the Purchase Order Calculate Totals workflow

Inheritance
System.Object
LegacyPOCalculateTotalsActivityFlow
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.Workflow
Assembly: Mediachase.Commerce.Workflow.dll
Version: 11.8.3
Syntax
[ActivityFlowConfiguration(Name = "RecalculateTotalsWorkflow", LegacyMode = true)]
[Obsolete("This ActivityFlow uses activities which are obsoleted. We recommend to use new ActivityFlows. Will be removed August 2018.")]
public class LegacyPOCalculateTotalsActivityFlow : ActivityFlow

Constructors

LegacyPOCalculateTotalsActivityFlow()

Declaration
public LegacyPOCalculateTotalsActivityFlow()

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>();