ETL problem [message #589163] |
Tue, 11 May 2010 18:11 |
|
Hello.
I'm trying do a transformation using ETL.
I have this model, created by a other previous transformation:
<?xml version="1.0" encoding="ASCII"?>
<xmi:XMI xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:pimnat="afpl.nat.pim">
<pimnat:Policy id="fw2">
<rule>
<filter interface="eth1" direction="out" action="deny">
<matches ipsrc="10.1.1.0/24" ipdst="10.10.10.2" protocol="*" prtsrc="*" prtdst="*"/>
</filter>
</rule>
<rule>
<filter interface="eth2" direction="in" action="deny">
<matches ipsrc="10.1.1.0/24" ipdst="10.1.1.3" protocol="tcp" prtsrc="*" prtdst="23"/>
</filter>
</rule>
</pimnat:Policy>
</xmi:XMI>
And two rules for try. This is the first one:
rule trasnform_policie
transform f: Source!Policy
to p : Target!Policy{
"policy".println();
}
and it's working ok.
And the second one:
rule trasnform_policie2
transform f: Source!Rule
to p : Target!Filter_Rule{
f.println();
"hello".println();
}
But when I executed this rule, nothing hapen
The problem is that ETL is not taking <rule> like Source!Rule, but I don't know why. I have checked the metamodel and I think every is ok.
Any idea?
Thank you very very much for your help!!!
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03405 seconds