Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Info
iconfalse
titleWhat is it for?

AQ_Instance_Update is used for updating an Attribute and/or Relation of one or more existing instances

Parameters

NameDescriptionTypeRequired
EntityThe type of the instance that should be updated.Module Element - EntityTrue
Select one or moreYou can use an expression to select the instance that you want to update. They have to be instances of the entity selected in the above parameter. If left empty, it is assumed that the selected entity is either singleton or that an active instance exists.ExpressionFalse
Clear existing valuesClears all attributes and relations before execution.BooleanFalse
Attributes and RelationsAdd one line for each attribute or relation that you want to set.LineFalse

AttributeSelect an attribute or relation of the entity selected above.Module element - Attribute/RelationFalse

Value

Write an expression that results in a value for the selected attribute or relation. Leaving the expression empty or removing it clears the value of the selected attribute or relation.

ExpressionFalse

...

UI Text Box
typeinfo

The selected instance is not active in expressions. This allows for copying an instance of the same type. To have the option to have it active is an improvement for the future.

Example

Imagine a situation in which you want to update all job instances. You want to calculate the years of experience. All jobs that have no until date filled in, should get the value TODAY. The service shown below will update all job instances with an unknown end date within one service.

...