This content has been marked as final. Show 4 replies
There is custom trasformation named "Multiply".
It isn't added to standard trasformations for some reason...
Mapping Parameters -> Custom Transformations -> Add -> <IC_Home>\integration\interconnect\istudio\Multiply.tdf -> Ok
Than use it
Thanks for this tip, I didn't know about the examples of the custom transformations.
It works, but raises new questions to me:
How do they work?
I opened the tdf-files and for example the multiplier is written as:
description=Multiplies two in fields or an in field and a constant
Where in this file the multiply action is stated? How does interconnect know what to do? I expected that the package and class field had to be filled before a custom transformation could work. and that the package and class are java written functions/applications.
Maybe Multiply is a reserved word which is a standard function within interconnect that can be used in standard transformations.
What are the functions that are available to use in my own custom transformations, without coding in java???
Is there documentation on this?
A small investigation indicate that Multiply is realized class in oai.jar lib.
Package name is not needed because all libraries with custom transformations must be added to classpath in istudio.bat. And of course oai.jar is there as one of the core IC libraries.
As for class name - I think if "class" atribute is ommited it takes class name from "name" attribute...
You can quite easily write your own java code that does the custom transformation. Compile the code, add it to the UserDefinedTransformation.jar, this gets included in the classpath of the adapter so that it can be used at runtime.
You then need a .tdf file placed in the iStudio directroy which defines the input parameters that are captured at design time by iStudio.