public void mergeResult (ActivityLocal act, Map result)
throws InvalidDataException {
try {
ProcessLocal process = (ProcessLocal)act.containerLocal();
ApplicationDefinition appl = (ApplicationDefinition)
process.processDefinition().applicationById(id());
FormalParameter[] fps = appl.formalParameters();
mergeResult (process, fps, result);
} catch (InvalidIdException e) {
// cannot happen since procdef is initially verified
logger.error (e.getMessage(), e);