Class RuleExecutionContext
Class RuleExecutionContext.
Namespace: Unity.Industrial.Forma.Core.Ruling
Syntax
[MovedFrom(true, "UnityEngine.Industrial.Configuring.Core.Ruling", "Unity.Industrial.Configurator", null)]
public class RuleExecutionContext
Constructors
RuleExecutionContext(Product, Context, IReadOnlyConfiguration, ConfigurationChange)
Initializes a new instance of the RuleExecutionContext class.
Declaration
public RuleExecutionContext(Product product, Context context, IReadOnlyConfiguration configuration, ConfigurationChange configurationChange)
Parameters
Type | Name | Description |
---|---|---|
Product | product | The product. |
Context | context | The context. |
IReadOnlyConfiguration | configuration | The configuration. |
ConfigurationChange | configurationChange | The configuration change. |
Properties
allSelectedFeatures
Includes the current configuration and demanded configuration changed features
Declaration
public IEnumerable<Feature> allSelectedFeatures { get; }
Property Value
Type | Description |
---|---|
IEnumerable<Feature> | All selected features. |
allSelectedFeaturesByCode
Dictionary of all selected features from the current configuration concatenated with Rules selected features
Declaration
public IReadOnlyDictionary<string, Feature> allSelectedFeaturesByCode { get; }
Property Value
Type | Description |
---|---|
IReadOnlyDictionary<String, Feature> |
configuration
Gets the configuration.
Declaration
public IReadOnlyConfiguration configuration { get; }
Property Value
Type | Description |
---|---|
IReadOnlyConfiguration | The configuration. |
configurationChange
Gets or sets the configuration change.
Declaration
public ConfigurationChange configurationChange { get; set; }
Property Value
Type | Description |
---|---|
ConfigurationChange | The configuration change. |
context
Gets the context.
Declaration
public Context context { get; }
Property Value
Type | Description |
---|---|
Context | The context. |
deselectedFeatures
Gets or sets the deselected features.
Declaration
public IEnumerable<Feature> deselectedFeatures { get; }
Property Value
Type | Description |
---|---|
IEnumerable<Feature> | The deselected features. |
featureAvailabilities
Gets or sets the feature availabilities.
Declaration
public Dictionary<Feature, FeatureAvailability> featureAvailabilities { get; set; }
Property Value
Type | Description |
---|---|
Dictionary<Feature, FeatureAvailability> | The feature availabilities. |
product
Gets the product.
Declaration
public Product product { get; }
Property Value
Type | Description |
---|---|
Product | The product. |
reply
Gets or sets the reply.
Declaration
public RuleEngineReply reply { get; protected set; }
Property Value
Type | Description |
---|---|
RuleEngineReply | The reply. |
selectedFeatures
Gets or sets the selected features.
Declaration
public IEnumerable<Feature> selectedFeatures { get; }
Property Value
Type | Description |
---|---|
IEnumerable<Feature> | The selected features. |
Methods
AddSelectedFeature(Feature)
Add feature to the selectedFeatures
Declaration
public void AddSelectedFeature(Feature feature)
Parameters
Type | Name | Description |
---|---|---|
Feature | feature |
RemoveSelectedFeature(Feature)
Remove feature from selectedFeatures
Declaration
public bool RemoveSelectedFeature(Feature feature)
Parameters
Type | Name | Description |
---|---|---|
Feature | feature |
Returns
Type | Description |
---|---|
Boolean | Operation was successful |
Stop(RuleEngineReply)
Stops the specified reply.
Declaration
public void Stop(RuleEngineReply replyArg)
Parameters
Type | Name | Description |
---|---|---|
RuleEngineReply | replyArg | The reply. |
Stop(RuleEngineReplyStatus)
Stops the specified status.
Declaration
public void Stop(RuleEngineReplyStatus status)
Parameters
Type | Name | Description |
---|---|---|
RuleEngineReplyStatus | status | The status. |