Skip to content

Commit

Permalink
kie-issues#672: Implement DMN 1.5 new FEEL functions support (range) …
Browse files Browse the repository at this point in the history
…in the new DMN Editor (apache#2152)
  • Loading branch information
yesamer authored Feb 9, 2024
1 parent 261f494 commit 55bc883
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ export class ReservedWords {
"overlaps before",
"overlaps",
"product",
"range",
"remove",
"replace",
"reverse",
Expand Down
13 changes: 13 additions & 0 deletions packages/feel-input-component/src/FeelConfigs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1161,6 +1161,19 @@ export const feelDefaultSuggestions = (): Monaco.languages.CompletionItem[] => {
parameters: [["list", `\`list\` of \`number\` elements`]],
examples: ["product( [2, 3, 4] ) = 24", "product( [] ) = null", "product( 2, 3, 4 ) = 24"],
},
{
label: "range(from)",
insertText: "range($1)",
description: "Convert from a range `string` to a `range`.",
parameters: [["from", `range \`string\``]],
examples: [
'range( "[18..21)" ) is [18..21)',
'range( "[2..)" ) is >=2',
'range( "(..2)" ) is <2',
'range( "" ) is null',
'range( "[..]" ) is null',
],
},
{
label: "remove(list, position)",
insertText: "remove($1, $2)",
Expand Down

0 comments on commit 55bc883

Please sign in to comment.