New Actions have been added to perform the following:-
- Call a Work Item. Parameters can be either literal values, or bound to a Fact or Fact Field.
- Set the value of a field on an existing Fact to the value of a Work Item result.
- Set the value of a field on a new Fact to the value of a Work Item result.
Significantly, to maximize the usefulness of using Work Items in actions, is the ability to define bindings for Fact field values. This allows Facts' fields to be passed to Work Items.
Bound fields can also be used in predicate and formula Condition definitions too; which opens a world of further possibility which up until now has been unavailable.
Work Item definitions can either be defined as assets in Guvnor or included in a workitem-definitions.xml the format of which follows the normal jBPM Work Item definition.
A short video here demonstrates using Work Items in a decision table and a short example of how the feature can be leveraged from a Java application.
Unrelated to Work Items, but a welcome addition, is the ability to define an action to retract Facts.