Topic: EL Transformers
EL Transformers
What is the syntax for EL Transformers?
Is EL a standard or DC own language?
Is EL a standard or DC own language?
EL is a Java standard (aka. Unified Expression Language) used mostly in JSP and JSF pages and other XML-based documents. But it also makes sense in the context of DC for simple concatenation-type transformations.
If you have eg. a FIRSTNAME and LASTNAME column, then you can define a greeting like this:
If you have eg. a FIRSTNAME and LASTNAME column, then you can define a greeting like this:
Dear #{FIRSTNAME} #{LASTNAME},
Hello,
I just tried this example and it returned me this unexpected error
java.util.concurrent.ExecutionException: java.lang.IllegalStateException: Transformer is expected to contain columns originating from 1 table, found 0
java.lang.IllegalStateException: Transformer is expected to contain columns originating from 1 table, found 0
Transformer is expected to contain columns originating from 1 table, found 0
- im pretty sure the columns i specified are inside one table
anything wrong im doing?
I just tried this example and it returned me this unexpected error
java.util.concurrent.ExecutionException: java.lang.IllegalStateException: Transformer is expected to contain columns originating from 1 table, found 0
java.lang.IllegalStateException: Transformer is expected to contain columns originating from 1 table, found 0
Transformer is expected to contain columns originating from 1 table, found 0
- im pretty sure the columns i specified are inside one table
anything wrong im doing?
Hi amdc,
I'm affraid this is a bug. I will make a report on it and hopefully it will be fixed soon. What is happening is that no other component is referencing one of the columns that is included in your expression. Since the transformer doesn't signal the dependency for the column itself, the column is not queried... So it will simply not have it available at the time of running the job.
A workaround is to consume that column in a different component. Eg. if you reference FIRSTNAME and LASTNAME, simply add a string analyzer (or whatever) which references those columns. Then they will be included in the analysis and the EL expression will work.
Sorry for the inconvenience, hope it will get fixed soon.
I'm affraid this is a bug. I will make a report on it and hopefully it will be fixed soon. What is happening is that no other component is referencing one of the columns that is included in your expression. Since the transformer doesn't signal the dependency for the column itself, the column is not queried... So it will simply not have it available at the time of running the job.
A workaround is to consume that column in a different component. Eg. if you reference FIRSTNAME and LASTNAME, simply add a string analyzer (or whatever) which references those columns. Then they will be included in the analysis and the EL expression will work.
Sorry for the inconvenience, hope it will get fixed soon.
i did sent you a message :( i dont know why is it blank.. it says message sent to Kasper.. where can i send it? can you send me a good mail address on my mail so i can send it there? TY
Log in by clicking the login link at the top of the screen
Go back to forum.


