to.setAttribute(Field.DESCRIPTION, from.getDescription());
to.setAttribute(Field.NEXT_FIRE_TIME, from.getNextFireTime());
to.setAttribute(Field.TIMEOUT, (parameters != null) ? parameters.getSimpleValue(
OperationDefinition.TIMEOUT_PARAM_NAME, null) : null);
JobTrigger jobTrigger = from.getJobTrigger();
Record jobTriggerRecord = new ListGridRecord();
jobTriggerRecord.setAttribute(Field.START_TIME, jobTrigger.getStartDate());
jobTriggerRecord.setAttribute(Field.REPEAT_INTERVAL, jobTrigger.getRepeatInterval());
jobTriggerRecord.setAttribute(Field.REPEAT_COUNT, jobTrigger.getRepeatCount());
jobTriggerRecord.setAttribute(Field.END_TIME, jobTrigger.getEndDate());
jobTriggerRecord.setAttribute(Field.CRON_EXPRESSION, jobTrigger.getCronExpression());
to.setAttribute("jobTrigger", jobTriggerRecord);
return to;
}