Pentaho

 View Only

 Startup Rule Engine does not work since Pentaho 7

  • Pentaho
  • Pentaho
Dan Keeley's profile image
Dan Keeley posted 10-16-2018 07:48

The startup rule engine does not work.

Does not work in Pentaho 8.1 · Issue #11 · webdetails/startupRuleEngine · GitHub

Someone else has raised that it doesnt work in 7 either.

The error in 8 is:

2018-10-16 08:41:53,568 INFO  [org.pentaho.di] 2018/10/16 08:41:53 - PurRepository - Creating repository meta store interface

2018-10-16 08:41:53,599 INFO  [org.pentaho.di] 2018/10/16 08:41:53 - [install files]._install_files - Dispatching started for transformation [_install_files]

2018-10-16 08:41:53,646 ERROR [org.pentaho.di] 2018/10/16 08:41:53 - [processRules (cpk.executeAtStart)].[_process Rules].List Endpoints.0 - ERROR (version 8.1.0.0-SNAPSHOT, build 8.1.0.0-SNAPSHOT from 2018-09-17 11.29.04 by codek) : Unable to load the mapping transformation because of an error : java.lang.RuntimeException: Endless loop detected for substitution of variable: ${rules.dir}

2018-10-16 08:41:53,661 ERROR [org.pentaho.di] 2018/10/16 08:41:53 - [processRules (cpk.executeAtStart)].[_process Rules].List Endpoints.0 - ERROR (version 8.1.0.0-SNAPSHOT, build 8.1.0.0-SNAPSHOT from 2018-09-17 11.29.04 by codek) : java.lang.RuntimeException: Endless loop detected for substitution of variable: ${rules.dir}

2018/10/16 08:41:53 - [processRules (cpk.executeAtStart)].[_process Rules].List Endpoints.0 - at org.pentaho.di.core.util.StringUtil.substitute(StringUtil.java:154)

 

 


#Pentaho
David McWhinnie's profile image
David McWhinnie

Looks like this is still not working in 8.2? 

I have noticed some other plugins seem to longer work either.  Does anyone maintain them anymore?

David McWhinnie's profile image
David McWhinnie
Pedro Vale's profile image
Pedro Vale

For 8.2 I just made available in the marketplace a version that runs (I merged the pr from David - thanks!).

I don't seem to be able to use the login/logout hooks, however. Not sure what's going on there.

Dan Keeley's profile image
Dan Keeley

wow, what a simple fix, embarassed i didnt delve deeper into it now! Thanks!

David McWhinnie's profile image
David McWhinnie

Yeah, I was excited until I realized the login hook wasn't working too.  I think I have solved the that (file.dir in the the list_endpoints.ktr).  Once I do some more testing I'll submit a another PR.

Pedro Vale's profile image
Pedro Vale

yeah, I got it to work with a minor change - in processRules.ktr, step _process Rules, the value for parameter rules.dir was ${folder}. I replaced that with ${rules.dir} and the kjb/ktr are being triggered on login/logout.

The issue now is that I don't see an updated status in the control dashboard. It says that a given ktr was never executed on login/logout, but that's not the case. Trying to figure out that logic...