Configuration of the Activity

  • Updated

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 Name

The name of the entity that will be created.

EntityState

The 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.

KeepRuleExecutionLog

Indicates 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 Source

This 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.

Filename

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

The irCatalog Group

These properties are required when RuleSource is set to irCatalog.

IrCatalogCacheTimeout

The number of milliseconds to cache a rule application retrieve from an irCatalog.

IrCatalogConnectionTimeout

The number of milliseconds to wait for a  response from the irCatalog.

IrCatalogIntegratedSecurity

Indicates whether integrated security should be used instead of a username and password.

IrCatalogPassword

The password for the irCatalog. Required only when IrCatalogIntegratedSecurity is false.

IrCatalogUri

The URI of the irCatalog.

IrCatalogUsername

The username for the irCatalog. Required only when IrCatalogIntegratedSecurity is false.

RuleApplicationLabel

The label of the rule application to retrieve. If a label is not specified, the latest version is retrieved.

RuleApplicationName

The name of the rule application to retrieve. This value is required.

Was this article helpful?

0 out of 0 found this helpful

Comments

0 comments

Please sign in to leave a comment.