Community
Participate
Working Groups
= Problem description = XtendJob provides a convenient API for executing M2M transformation in the Eclipse workspace. Currently, the resulting objects are exposed in the XtendJob#getResultObjects() list but not handled any further in any way. In order to simplify processing of M2M transformation results in applications using XtendJob and appropriate result object hander services should be provided. = Resolution proposal = * Define an interface and abstract implementation of a result object handler that can be registered on XtendJob, gets invoked when the latter completes and lets the handler process the XtendJob#getResultObjects(). They should be based on/extend IJobChangeListener/JobChangeAdapter so as to benefit from job change event support in Eclipse as much as possible. * Provide a result object handler implementation that saves each resulting object tree as a new resource in the workspace if possible and derives resulting file name and location from corresponding target object on which the M2M transformation has been invoked. * For that purpose, XtendJob#getResultObjects() needs to be transformed from a list to a map that is keyed by the XtendEvaluationRequest#getTargetObject() corresponding to the result object trees provided by the values in the map.
Fixed as proposed in description.
Mass-closing Resolved tickets