String Expressions
Introduction
String expressions can be used to visually calculate the values of attributes. A distinction is made between context and function expressions. Context expressions can be understood as input modules. Function expressions can be used to control the logic and mutate the context expressions.Kontext-Expressions
The following context expressions are available:
Name | Description | Parameter | Example |
---|---|---|---|
| If an asset is assigned to the object, the attributes of the asset can be selected here | Relation Attribut | The primary phone number |
| All attributes of the current object | The first name of the person | |
| A fixed text | "ITSENSE AG" | |
| The current iteration of the calculation. If the value cannot be determined unambiguously, the iteration is increased. | ||
| A random number | Minimum Maximum | |
| Random characters from a group of characters | Quantity Drawing group | |
| Random bytes | Anzahl |
Functions-Expressions
The following context expressions are available:
Name | Description | Parameter | Example |
---|---|---|---|
| If the input is | If | |
| Formats the input in the specified format | Formatting | d MMM yyyy |
| Resolves an LCID to a culture name | Standard-Kulturname | |
| Removes all invalid characters | Replace Diacritics A-Z a-z 0-9 Zusätzliche Zeichen | |
| Joins several elements together | Prefix Suffix | Prefix → "_" Input → "Hello" Suffix → "_" Result → "_Hello_" |
| Removes double names | Name-Min-Length | Müller-Meier → Müller Bo Tao → Bo Tao (For minimum length 4) Template→ Template |
| classic If / Then / Else | If Comparative value | |
| Converts the input to lowercase letters | Input → "This is a house" Result → "This is a test" | |
| Calculates the MD5 hash value of the input | Input → "This is a test" Result → "B112C76D02B5832E8D83B74C102E0CA5" | |
| Fills the input on the left side with the specified character up to the specified length | Fill character Total length | Fill character→ "-" Total length→ 10 Input → "Hello" Result → "-----Hello" |
| Fills the input on the right side with the specified character up to the specified length. | Fill character Total length | Fill character→ "-" Total length→ 10 Input → "Hello" Result → "Hello-----" |
| Generates a password | Length Drawing group(1-6) Seed | Length→ 8 Drawing group 1 → "ABCD" Drawing group 2 → "1234" Result → "AC4D22AB" |
| Replaces the specified pattern with the specified replacements in the input | Pattern Replacements | Pattern → "T.*t" Replacements → "House" Input → "This is a test" Result → "This is a house" |
| Removes all umlauts from a text and replaces them with the corresponding equivalent. | "Ä" --> "Ae" | |
| Simple Find / Replace | Old value New value | Alter Wert → "Test" New value → "House" Input → "This is a test" Result → "This is a house" |
| Cuts the input to the desired length | StartIndex Max. length | StartIndex → 0 Max. length→ 7 Input → "This is a test" Result → "This is" |
| Converts the input to uppercase letters | Input → "This is a test" Result → "THIS IS A TEST" | |
| Executes a .net code block | Expression Input | Expression: → Input: → |
Example
The following example shows how to generate a user name from first and last name which follows the following rule:Erstes Zeichen Vorname
At least four characters of the double name exempt surname
Maximum 14 characters in lower case
If the user name is already assigned, a numbering is to take place
© ITSENSE AG. Alle Rechte vorbehalten. ITSENSE und CoreOne sind eingetragene Marken der ITSENSE AG.