/******************************************************************************* *******************************************************************************/ package at.gv.egiz.eaaf.core.impl.idp.process.model; import java.io.Serializable; import org.apache.commons.collections4.CollectionUtils; /** * Represents a start event. Each process description contains a single start event. Process execution starts with a * start event. * * @author tknall * */ public class StartEvent extends ProcessNode implements Serializable { private static final long serialVersionUID = 1L; @Override public String toString() { StringBuilder builder = new StringBuilder(); builder.append("StartEvent ["); if (getId() != null) { builder.append("id="); builder.append(getId()); } if (CollectionUtils.isNotEmpty(getIncomingTransitions())) { if (builder.length() > 0) { builder.append(", "); } builder.append("incomingTransitions="); builder.append(getIncomingTransitions()); } if (CollectionUtils.isNotEmpty(getOutgoingTransitions())) { if (builder.length() > 0) { builder.append(", "); } builder.append("outgoingTransitions="); builder.append(getOutgoingTransitions()); } builder.append("]"); return builder.toString(); } }