Originally posted by: repanzer
Ok, so you have an XML date/time field ( DateEfficiency) on your input'
<DateEfficiency start="090920091250" end="091220091250">
First thing you do is pull the start date into a functional map (f_DateTimeItem_To(start date)).
In the functinal map, you split up the date/time on the input and map the date to the date element on the output and the time into the time element on the output. While in the functional map, you populate the core~uid attribute with a unique id using;
=INDEX($) + CURRENTTIME().
Next, you need to create the Effectivity object on the right side, and add the core~uid attribute of the Date_time object to the Start_definition element.
If by "add", you mean map, go to your rule for functional map F_dateEfficecy(), and drag the core~uid attribute of the Date_time output object into the rule, so it gets passed into the functional map; F_dateEfficecy(DateEfficency:input, core~uid:output).
Now the core~uid you mapped into the date_time above, is available in F_dateEfficecy().
If by "add" you meant add as in a mathmatical expression, I'm not sure what you mean. You said it's INDEX($) CURRENTTIME(), and if it were just CURRENTTIME(), you could ADDMINUTES().
#IBMSterlingTransformationExtender#IBM-Websphere-Transformation-Extender#DataExchange