Facts
A fact is an object with certain business data. Each time a routing slip assignee sets the outcome of a task, instead of automatically routing the task to the next assignee, the task service performs the following steps:
-
Asserts facts into the decision service
-
Executes the advanced routing ruleset
Rules can test values in the asserted facts and specify the routing behavior by setting values in a TaskAction
fact type.
Table 29-11 describes the fact types asserted by the task service.
Table 29-11 Fact Types Asserted By the Task Service
Fact Type | Description |
---|---|
|
This fact contains the current state of the workflow task instance. All task attributes can be tested against it. The task fact also contains the current task payload. This fact enables you to construct tests against payload values and task attribute values. |
|
This fact describes the previous task outcome and the assignee who set the outcome. The previous outcome fact contains the following attributes:
|
|
This fact is not intended for writing rule tests against it. Instead, it is updated by the ruleset, and returned to the task service to indicate how the task should be routed. Rules should not directly update the |
Some fact types can only be used in workflow routing rules, while others can only be used in workflow participant rules. Table 29-12 describes where you can use each type.
Table 29-12 Use of Fact Types
Fact Type | Can Use in Routing Rules? | Can Use in Participant Rules? |
---|---|---|
|
Yes |
Yes |
|
Yes |
No |
|
Yes |
No |
|
No |
Yes |
|
No |
Yes |
|
No |
Yes |
|
No |
Yes |
|
No |
Yes |
|
No |
Yes |
|
No |
Yes |
|
No |
Yes |