I'm trying create a transformation that can change field value in DB (postgreSQL what i use).
Case :
In postgre db I have table called Monitoring
and it has several field like id, date, starttime, endtime, duration, transformation name, status, desc
. All those value I get from Transformation Logging.
So, when I run the transformation it will insert into Monitoring
table and set value for field status
with Running
. And when it done it will update the status into Finish
. What I'm trying is to define value in table field by myself not take it from Transformation Logging so I can customize the value like I want to.
Goal is Update transformation status value from 'running' to 'finish/error/abort etc' in my db using pentaho and display that status in web app
I have thinking to used Modified Java Script
step to do it but if there any other way maybe? A better one. (Just need opinion about this)
modified javascript is not a good idea to use. Ideally, it shouldn't be used due to the performance issue. You can use "add constant" step or "User defined Java Class" for an alternative.