Claims
Workflow modeling has been reworked. We recommend using the process-automation component instead of
the workflow-component. While most features are still available, they should be reconfigured. Consult the process
automation docs for more information.
By default, when an EngineService starts a new batch, it searches for all DataElement with the correct beginState by using a standard finderFinderA search specification combining field-operator pairs to execute standard data queries on a DataElement.. However, if an engine runs alongside other nodes, introducing claims will allow for better communication between the nodes.
Claims require 3 parts to be configured:
- A Claim DataElement with the option is
isClaimElementthat will be used to represent claims - The target DataElement should have an option
isClaimablepointing towards the Claim DataElement - The FlowElement should have the option
useClaims
DataElementClaim elements are DataElements that are used to store claims for other data elementsData Element (DataElement). A fundamental data concept or entity within an application's domain, acting as an anthropomorphic translation of a real-life object or concept.. A claim element must have the following fieldsFieldA property of a DataElement expanded to a database column and user interface input element.:
- element(String): is used in combination with 'targetId' to uniquely identify the claimed instance
- targetId(Long): the id of the target instance that is claimed
- claimId(String): an id to identify the owner of the claim, which can refer to a user or a unique id of the engine run
- timeout(Date): keeps the time until which the claim is valid
For a data elementData Element (DataElement). A fundamental data concept or entity within an application's domain, acting as an anthropomorphic translation of a real-life object or concept. to use this element for its claims, it must be configured with the option isClaimable and reference this element.
<options>
<isClaimElement/>
</options>
DataElementLabels the DataElement as claimable. The value of the option should point to the correct claimElement.
If the value of the option is left blank, it will default to a claim element with name <component>::<component>Claim (e.g. for component 'euRent', 'euRent.EuRentClaim').
Adding this option also makes it possible to define findersFinderA search specification combining field-operator pairs to execute standard data queries on a DataElement. based on claims
<options>
<isClaimable>space::StarshipClaim</isClaimable>
</options>