I have this rudimentary question. Do I need to write my own java service in order to convert Float variable in the pipeline to a String??? I would expect there is something that does that.
But when I have a map step and I just map a Float variable into a String variable the String is empty.
I didn’t find any transformers to do this work.
Check out the WmTransformationServices Package on Advantage. It has many useful services that have already been written, including a FloatToString. It can be found under Best Practices -> Utilities and Samples.
I will check out the services. However my surprise was rather the fact that the map step does not perform this automatic conversion. In fact I have already created a simple one-line java service that takes Object as input and calls toString() on that object and returns the resulting string to the pipeline. This is really easy and I am sure that WmTransformationServices package contains services like that. I was just surprised that when mapping to String value the map step is not converting the source object automatically.
The Enterprise Server with its Enterprise Integrator was more helpful as it did the work automatically…
The java service takes an input parameter called object of type Object and returns output parameter called string of type String. The body of the service is