Hi All,

I see that IvyScript does not support some of the new features in Java8 like Streams and Lambda expressions. Is it in the road-map ?

alt text

Best Regards, Yordan Yunchov

asked 18.07.2016 at 13:22

Stelt0's gravatar image

accept rate: 12%

It is not planned to extend the ivyscript functionality in any way. Its more likely that in the future another scripting language like Groovy will be supported to configure process elements.

I'd only use ivyscript for simple mappings or short snippets ( <= 20 lines of code). More complex code is normally easier to maintain and especially easiert to test if is written in plain java and then called from ivyscript.

Especially if I look at your code example. I'd anyway encapsulate it in a simple DAO class.

 public class IncidentDao{
      private static final String PERSISTENT_CRM_UNIT = "EventDashboard2";

      protected static IIvyEntityManager getEntityManager() {
         return Ivy.persistence().get(PERSISTENT_CRM_UNIT);

      public static Incident getIncidientByService(String service){
           // your code...
           // getEntityManager().createQuery(...)

answered 18.07.2016 at 13:58

Reguel%20Wermelinger's gravatar image

Reguel Werme... ♦♦
accept rate: 70%

edited 18.07.2016 at 13:59

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "Title")
  • image?![alt text](/path/img.jpg "Title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported



Asked: 18.07.2016 at 13:22

Seen: 2,531 times

Last updated: 18.07.2016 at 13:59