Condividi tramite


Workflow Changes to Rule Conditions

If your workflow uses declarative Rule Conditions or Policies, you can modify the behavior of your workflow at run time, without having to recompile, by using workflow changes on your conditions and rulesets.

The Condition property on the WhileActivity, IfElseBranchActivity, ReplicatorActivity, and ConditionedActivityGroup activities cannot be changed at runtime; however, if the Condition property refers to a rule condition, then you can use workflow changes to change the rule condition's definition. The same applies to the RuleSetReference property on PolicyActivity -- you cannot dynamically change the name of the RuleSet that gets executed, but you can use workflow changes to change the RuleSet definition.

Any changes you make to the rule conditions are serializable and will be saved if your workflow is persisted.

Note

Any workflow changes that you make are specific to the running instance; they do not affect new instances of the workflow.

See Also

Reference

ConditionedActivityGroup
IfElseBranchActivity
ReplicatorActivity
WhileActivity

Concepts

Using Conditions in Workflows

Other Resources

Workflow Changes From Workflow
Workflow Changes From Host
Changing Rules Sample