@Override protected void cloneInto(WorkflowBean clone, Cloning cloning) { super.cloneInto(clone, cloning); Profile cloneProfile = (Profile) clone; cloneProfile.setProfilePosition(getProfilePosition()); } }
@Override public void visitProfile(Profile bean) { Integer profilePosition = bean.getProfilePosition(); if (profilePosition != null && profilePosition < 0) listener.negativeValue(bean, "profilePosition", profilePosition); if (checkComplete) { if (bean.getProcessorBindings() == null) listener.nullField(bean, "processorBindings"); if (bean.getConfigurations() == null) listener.nullField(bean, "configurations"); // It may be OK for the profilePosition to be null if (bean.getActivities() == null) listener.nullField(bean, "activities"); } }