blob: 5c5b3018b72f56717a92bc9c4b5fc4240dedddfe [file] [log] [blame]
package org.apache.ode.bpel.common;
import java.io.Serializable;
import java.util.ArrayList;
import org.apache.ode.utils.CollectionUtils;
/**
* An instance of this class represents a correlation key that has a 'join' use case in the process definition.
* For instance, if a correlation set, 'orderId' is used as initiate="no" in 3 occurrences and initiate="join"
* in 1 occurrence, any correlation keys that are derived from the correlation set, 'orderId' is an
* optional correlation key.
*
* @author sean
*
*/
public class OptionalCorrelationKey extends CorrelationKey implements Serializable {
private static final long serialVersionUID = 1L;
public OptionalCorrelationKey(String csetName, String[] keyValues) {
super(csetName, keyValues);
}
public OptionalCorrelationKey(String canonicalForm) {
super(canonicalForm);
}
/**
* @see Object#toString
*/
public String toString() {
StringBuffer buf = new StringBuffer("{OptionalCorrelationKey ");
buf.append("setName=");
buf.append(getCorrelationSetName());
buf.append(", values=");
buf.append(CollectionUtils.makeCollection(ArrayList.class, getValues()));
buf.append('}');
return buf.toString();
}
}