• Engelska

Workflow Rules Engine

Help menu

You can use the Windows Workflow Foundation rules engine inside your BlueIntegrator Workflow, by using a Policy activity.  This allows you to define a set of rules as a policy, and then invoke that policy.  Rules are defined in terms of reading and conditionally writing Workflow messages and variables, and conditionally executing methods on the Workflow Visual Studio for Applications class.

Methods on the Visual Studio for Applications class are available for use in rules if the BlueIntegrator.Workflow.MethodVisible attribute is defined, and can also include the System.Workflow.Activities.Rules.RuleReadAttributeSystem.Workflow.Activities.Rules.RuleWriteAttribute and System.Workflow.Activities.Rules.RuleInvokeAttribute attributes.


(1)    Launch BlueIntegrator

(2)    Create a new Workflow

(3)    Drag a Policy activity onto the workflow

(4)    Select RuleSetReference in the properties window, and click the  button.

(5)    You can now define a new rule set, consisting of a set of individual rules.

Rules essentially have conditional actions by setting Workflow messages and variables, or invoking VSTA methods.  The Halt action can also be used to explicitly stop execution of the rule set.  Inference behavior can chain rules together, for example if rule 1 says if balance < 0 then overdrawn = true and rule 2 says if subscriptionDue then balance = balance - 100, then firing rule 2 may cause overdrawn to be set to true if there was less than 100 in the account.