List operation in FEEL

563 views
Skip to first unread message

si...@zambrovski.org

unread,
Nov 21, 2015, 2:23:40 PM11/21/15
to camunda BPM users
Hi Folks,

I'm playing around with the new DMN Engine and trying to understand what part of the FEEL is already implemented. I'm interested in the list operations. Can I express the following checks, imageine X is bound to a column of the decision table:

- list X is empty
- list X contains element A
- list X is a subset of a list with element A
- list X is a subset of a list with elements A and B


Thanks a lot and kind regards,

Simon

Sebastian Menski

unread,
Nov 23, 2015, 4:18:13 AM11/23/15
to camunda BPM users, si...@zambrovski.org
Hi Simon,

currently our FEEL "implementation" is only supported for input entries. Which corresponds to FEEL grammar rule 14 "simple unary tests". We don't have a
implementation for simple expression.

To solve your use case you can use JUEL as expression language. So you can use normal Java Functions like contains.

Cheers,
Sebastian

Bernd Rücker

unread,
Nov 23, 2015, 4:24:48 AM11/23/15
to camunda-...@googlegroups.com, si...@zambrovski.org

Hi Simon.

 

Sebastian showed me a trick to extend the FEEL -> JUEL transformation to allow introducing own operators. Maybe not the “final” solution but a nice workaround if required:

https://github.com/camunda/camunda-consulting/tree/master/snippets/dmn-collection-contains

 

Allows to check for containment in a list of “Vorerkrankungen”:

 

 

Cheers

Bernd

--
You received this message because you are subscribed to the Google Groups "camunda BPM users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to camunda-bpm-us...@googlegroups.com.
To post to this group, send email to camunda-...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/camunda-bpm-users/b425e7ba-6d11-4de7-aa99-e4cf435768c1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages