Skip to main content



Configuration of the Activity

The following information details the steps required for configuration of the InRule ApplyRules activity for Windows Workflow.

Overview

The ApplyRules activity contains three groups of properties:

  • irCatalog: Those that are required when executing rules retrieved from an irCatalog
  • File: A filename, required when executing rules from a file-base rule application
  • Common: Settings required when using either of the above

mceclip1.png

Figure 1: Apply Rules activity property grid

The Common Group

All of the following properties are required:

Entity NameThe name of the entity that will be created.
EntityStateThe object that the rule engine will execute rules against. Figure 1 shows a property grid that indicates that an Invoice entity will be created, and the object returned by the workflow's Invoice property will be used as the entity state. Note that EntityState is a dependency property, so it's easy to select the entity state by clicking the EntityState cell, then the ellipsis button. Figure 2 shows the dependency property binding form.
KeepRuleExecutionLogIndicates whether the rule execution log will be saved after rule execution ends. If set to true, the log can be accessed via the LastRuleExecutionLog property on the activity.
Rule SourceThis setting indicates whether the rules will be retrieved from an irCatalog or the file system.

mceclip2.png

Figure 2: EntityState selection dialog.

The File Group

This property is only required when RuleSource is set to RuleApplicationFile.

FilenameThe filename of the rule application file (*.ruleapp).

The irCatalog Group

These properties are required when RuleSource is set to irCatalog.

IrCatalogCacheTimeoutThe number of milliseconds to cache a rule application retrieve from an irCatalog.
IrCatalogConnectionTimeoutThe number of milliseconds to wait for a response from the irCatalog.
IrCatalogIntegratedSecurityIndicates whether integrated security should be used instead of a username and password.
IrCatalogPasswordThe password for the irCatalog. Required only when IrCatalogIntegratedSecurity is false.
IrCatalogUriThe URI of the irCatalog.
IrCatalogUsernameThe username for the irCatalog. Required only when IrCatalogIntegratedSecurity is false.
RuleApplicationLabelThe label of the rule application to retrieve. If a label is not specified, the latest version is retrieved.
RuleApplicationNameThe name of the rule application to retrieve. This value is required.