EGL Development User Group

EGL Development User Group

EGL Development User Group

The EGL Development User Group is dedicated to sharing news, knowledge, and insights regarding the EGL language and Business Developer product. Consisting of IBMers, HCL, and users, this community collaborates to advance the EGL ecosystem.

 View Only

Pass a class reference to a java externaltype function

  • 1.  Pass a class reference to a java externaltype function

    Posted Sat May 16, 2015 03:18 PM

    I'm trying to set up Java Quartz on my web service application.

    I've got it working, but I am still relying on coding in Java and I would prefer to get it fully working in EGL.

    To create a scheduled job with Quartz in Java, you need to create a class which implements a java interface named "Job". This forces you program the "Excecute" function. This execute function is where the scheduled business happens.

    This job class is then passed as an argument to create a JobDetail object, which can be scheduled. I still have to write the code to create the JobDetail object in java, because I don't know how to pass the class reference as a parameter.

    Therefore I would like to know if there is an alternative in EGL to accomplish the following:

            JobDetail job = JobBuilder.newJob(SendMailJob.class)                                .withIdentity(jobName, groupName)                                 .build();

    Specifically, how to write the EGL externaltype code for the newJob function.

     

    Many thanks for any pointers.

     

    Kind regards,

     

    Bram

    Bram_Callewaert