* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setPattern(CorrelationPattern newPattern) {
CorrelationPattern oldPattern = pattern;
pattern = newPattern == null ? PATTERN_EDEFAULT : newPattern;
boolean oldPatternESet = patternESet;
patternESet = true;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, BPELPackage.CORRELATION__PATTERN, oldPattern, pattern, !oldPatternESet));