back to forum.

Topic: EL Transformers

Topic by
asbjorn

2011-06-23
07:26

EL Transformers

What is the syntax for EL Transformers?

Is EL a standard or DC own language?

Reply by
kasper

2011-06-23
08:19
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:

Dear #{FIRSTNAME} #{LASTNAME},

Reply by
amdc

2011-08-04
05:20
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?

Reply by
kasper

2011-08-05
05:23
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.

Reply by
amdc

2011-08-05
05:23
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

You need to be logged in to participate

In order to post your own comments on this topic, you need to be logged in.

Username:

Log in by clicking the login link at the top of the screen

 

Go back to forum.