
174 WebSphere Business Integrator Server Foundation V5.1 Handbook
This cannot be done using the Assign activity, because the xsd:dateTime is
converted to a java.util.Date by WebSphere Studio Application Developer
Integration Edition, which cannot be directly assigned to java.util.Calendar. The
following example shows how to perform this conversion within a Java snippet
for the dateDeparture parts of travelRequest and flightRequest.
Example 7-6 Conversion java.util.Date (results from xsd:dateTime) to java.util.Calendar
//assign travelRequest part to filghtRequest part
//to do this a conversion is necessary
Calendar calDeparture = Calendar.getInst ...