process4.biz 7.x Documentation

features description for Process4.biz

Conditions for Link Rules

Conditions  can be created for link rules in Database Designer (or in the class matrix), following the following logic:

The link technology should only lead to a link, if the condition is “true”, otherwise it is ignored.

Condition

In this field, you can either enter a condition, or enter a small program in Visual Basic. In the second case the variable “Result” must have a value (“True” or “False”).

Please make sure that you enter its db name when using a class or property in the condition, and not only the name, as the db name does not depend on the content language (your model) and so that you have no problems with model translations.

You can also use all the API functions of process4.biz here; their description can be found here: https://dev.process4.biz/confluence/display/KB/p4b+API+Description

Message

In this field, the text appearing in the validation of a diagram should be entered in order to confirm the correct link between two objects or inform about the non-fulfilment of the condition. If you leave the rule message empty, no information will be displayed for the conditioned link rule in the validation window.

You can use the message both positive (= successful link; for example: “The link between input and customer is successful ”), or negative (=link failure; for example: “The Shape ‘End’ cannot have any incoming link.”).

Create conditions

For the creation of conditions for link rules, the following context objects can be used:

Name

Description

LinkedObject ("Event")

Object from the class with the Db name "Event".

SrcObject

Source object for the link (P4B.Object).

DstObject

Target object for the link (P4B.Object).

Object

The association object itself (P4B.Object).

DiagramObjects

List of all the objects on the diagram (P4B.Objects).

DiagramLinks

List of all discovered automatic links on the diagram.

Result

Variable for the result of the condition "True" or "False"; If "True", the link between the objects was successfully created.

If the link is directed (i.e. with an arrow head or reading direction) and you can easily understand which object the source object is and which the target object is, then you can use the functions SrcObject and DstObject. However, there is also the LinkedObject function(“X”): in this case it does not matter whether the object is a source or a target object - what is important, is that this object belongs to the class with the db name “X”.

Condition

Description

The conditioned link rule is only used when the property value (the source object of the link, i.e. SrcObject) with the Db name "master shape" is exactly "1".

The conditioned link rule is only used when the property value (the source object of the link, i.e. SrcObject) with the Db name "master shape" is not equal to "1".

The conditioned link rule is only used when the property values (the source or target object of the link, i.e. SrcObject OR DstObject) with the Db name "master shape" is equal to "2".

The conditioned link rule will only be used if the property values (the source and target object of the link, i.e. SrcObject AND DstObject) with the DbName "master shape" are exactly "2".

The conditioned link rule is only used when the property value (the source object of the link, i.e. SrcObject) with the Db name "master shape" is empty or equal to "1".

The conditioned link rule is only used when the source object is placed to the left of the target object of the link.

It can also function reversely, if the condition is adjusted accordingly.

The conditioned link rule is only used when the source object has been placed under the target object of the link.

It can also function reversely, if the condition is adjusted accordingly.