Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

NameDescriptionTypeRequired
EntityThe type of the instance that should be createdModule Element - EntityTrueYes
Instance ActivationSelect whether the created instance is activated before or after setting the attributes and relations. The instance will remain activated after the service call, regardless of which value is chosen.

Enumeration

  • Before (default)
  • After
TrueYes
Attributes and RelationsAdd one line for each attribute or relation that you want to setLineFalseNo

Attribute/RelationSelect an attribute or relation of the entity selected aboveModule element - Attribute/RelationFalseNo

Value

Write an expression that results in a value for the selected attribute or relation

ExpressionFalseNo

This service executes all lines from top to bottom, so when setting InstanceActivationType to "Before" you could use the new value of an attribute or relation that you set in a previous line by using this attribute or relation in the expression of a subsequent line. Attributes and relation will be set in the order that you specify.

...

  • A new Job instance is created
  • The instance is activated before the attributes and relations are set
  • The attribute Job.Name gets the value "Business Engineer"
  • The backwards relation is set with the active Person.

Image RemovedImage Added

UI Text Box
typeinfo

If a person can have multiple jobs, then the above service will work. By adding setting the Job.BelongsToPerson relation, the Person.HasJobs relation will be updated by adding the instance to the existing job instances.

...

  • A new Job instance is created
  • The instance is activated after the attributes and relations are set, therefore we can retrieve values from the current active job instance.
  • The attribute Job.Name gets the value from the active job instance.
  • The backwards relation is set with the person from the active job instance.

Image RemovedImage Added

UI Text Box
typeinfo

If the instance activation parameter is set to before. The newly created instance would be been activated before setting the attributes and relations. This would mean that the Name attribute and ofPerson relation would have been set to UNKNOWN, because the values would have been retrieved from the newly created job instance. Instead of the old active job instance.