Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Updated: Create relation, Drop relation


Expand
titleCore Objects: Check Relation

Description

Use this task to check if a relation between two core objects exists. The names of both data pools have to be provided. The direction of the relation is not relevant, meaning that source and destination may be exchanged.

Configuration

To use this task, configure the following delegate expression in your service task:

Code Block
${checkObjectRelationParametrizedTask}


The following parameters can be configured in PRIME Designer:

ParameterMandatorySample ValueDescription
sourceDataPoolName


The name of the source data pool that is used to check the relation with the destination data pool.

destinationDataPoolName


The name of the destination data pool that is used to check the relation with the source data pool.
resultVariable


The name of the field indicating if a relation between the source and destination data pool exists. Contains either a "true" or "false" value.

"True" means that the objects are related to each other. "False" means that there is no relation between them.


...

Expand
titleCore Objects: Create Relation

Description

Use this task to create a relation between two core objects. 

Configuration

To use this task, configure the following delegate expression in your service task:

Code Block
${createRelationParametrizedJavaDelegate}

The following parameters can be configured in PRIME Designer: 

ParameterMandatoryDefault valueValueDescription

source


Data pool name of the source of the relation, which has to be created. The core template name of this data pool will be saved in the database.

destination


Data pool name of the target of the relation, which has to be created. The core template name of this data pool will be saved in the database.

relationTypeToDestinationincludeRelationTypeToCompareOfObjects

HAS_A

Description of the relation between source and destination.

relationTypeToSource

Image Removed

CAME_FROM

Description of the relation between destination and source.

includeRelationTypeToCompareOfObjects

Image Removed

false
  • true
  • false (default) 

Flag indicating if the relation type should be included when searching if the relation already exists.

exceptionIsThrownIfRelationAlreadyExists

  • true (default)
  • false

Flag indicating how the application reacts if the relation already exists. If set to "true" then throw Exception, else do nothing.

relationType

Image Added

DefaultType of the relation. The object relation type must exist or an exception is thrown.



Expand
titleCore Objects: Drop Relation

Description

Use this task to remove existing relations between objects. The direction of the relation is not relevant, meaning that source and destination may be exchanged.

For example, if an employee started working with a replacement card while receiving his employee-card, the connection to the re-usable replacement card will be removed.

Configuration

To use this task, configure the following delegate expression in your service task: 

Code Block
${dropRelationsParametrizedTask}

The following parameters can be configured in PRIME Designer: 

ParameterMandatoryDefault valueValueDescription

dataPoolName


Data pool name of the source whose relation shall be removed.


destinationTypeobjectType


Core template name of the destination whose relation shall be removed.


...