All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.sourceforge.plantuml.bpm.BpmBranch Maven / Gradle / Ivy

There is a newer version: 1.2024.8
Show newest version
// THIS FILE HAS BEEN GENERATED BY A PREPROCESSOR.
package net.sourceforge.plantuml.bpm;

public class BpmBranch {

	private final int uid;
	private int counter = 1;

	public BpmBranch(int uid) {
		this.uid = uid;
	}

	public int incAndGetCounter() {
		counter++;
		return counter;
	}

	private String getEntryId() {
		return "$branchA" + uid;
	}

	private String getExitId() {
		return "$branchB" + uid;
	}

	public BpmElement getEntryElement() {
		return new BpmElement(getEntryId(), BpmElementType.MERGE, null);
	}

	public BpmElement getElseElement() {
		return new BpmElement(getExitId(), BpmElementType.MERGE, null);
	}

	public BpmEvent getResumeEntryEvent() {
		return new BpmEventResume(getEntryId());
	}

	public BpmEvent getGoToEndEvent() {
		return new BpmEventGoto(getExitId());
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy