List operation in FEEL

瀏覽次數:574 次
跳到第一則未讀訊息

si...@zambrovski.org

未讀,
2015年11月21日 下午2:23:402015/11/21
收件者: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

未讀,
2015年11月23日 凌晨4:18:132015/11/23
收件者: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

未讀,
2015年11月23日 凌晨4:24:482015/11/23
收件者: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.

回覆所有人
回覆作者
轉寄
0 則新訊息