BizVR to DMN Strings Mapping - Gnorion/BizVR GitHub Wiki
Strings in FEEL are any sequence of characters delimited by double quotation marks.
Strings in BizVR are any sequence of characters delimited by single quotation marks.
| BizVR | DMN | Return value |
|---|---|---|
| ? | string length(“Learn DMN in 15 minutes”) | 23 |
| ? | upper case(“Learn DMN in 15 minutes”) | “LEARN DMN IN 15 MINUTES” |
| ? | lower case(“Learn DMN in 15 minutes”) | “learn dmn in 15 minutes” |
| ? | substring(“Learn DMN in 15 minutes”, 7, 3) | “DMN” |
| ? | replace(“Learn DMN in 15 minutes”, “DMN”, “FEEL”) | “Learn FEEL in 15 minutes” |
| ? | contains(“Learn DMN in 15 minutes”, “DMN”) | true |
| ? | contains(“Learn DMN in 15 minutes”, “FEEL”) | false |
| ? | string(123) | “123” |
| ? | substring("foobar",3) | = "obar" |
| ? | substring("foobar",3,3) | = "oba" |
| ? | substring("foobar", -2, 1) | = "a" |
| ? | string length(string) | length("foo") = 3 |
| ? | upper case(string) | upper case("aBc4") = "ABC4" |
| ? | lower case(string) | lower case("aBc4") = "abc4" |
| ? | substring before (string, match) | substring before("foobar", "bar") = "foo" |
| ? | . | substring before("foobar", "xyz") = "" |
| ? | substring after (string, match) | substring after("foobar", "ob") = "ar" |
| ? | . | substring after("", "a") = "" |
| ? | replace(input, pattern,replacement, flags?) | replace("abcd", "(ab) |
| ? | contains(string, match) | contains("foobar", "of") = false |
| ? | starts with(string, match) | starts with("foobar", "fo") = true |
| ? | ends with(string, match) | ends with("foobar", "r") = true |
| ? | matches(input, pattern,flags?) | matches("foobar", "^fo*b") = true |
| ? | split( string, delimiter ) | split( “John Doe”, “\s” ) = [“John”, “Doe”] |
| ? | . | split( “a;b;c;;”, “;” ) = [“a”,”b”,”c”,””,””] |