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

io.takari.bpm.model.CallActivity Maven / Gradle / Ivy

There is a newer version: 1.0.3
Show newest version
package io.takari.bpm.model;

import java.util.Set;

public class CallActivity extends AbstractElement {
	
	private static final long serialVersionUID = 1L;

    private String name;
    private final String calledElement;
    private final String calledElementExpression;
    private final Set in;
    private final Set out;
    private final boolean copyAllVariables;
    
    public CallActivity(String id, String calledElement) {
        this(id, calledElement, null, null, false);
    }

    public CallActivity(String id, String calledElement, boolean copyAllVariables) {
        this(id, calledElement, null, null, copyAllVariables);
    }

    public CallActivity(String id, String calledElement, Set in, Set out) {
        this(id, calledElement, in, out, false);
    }

    public CallActivity(String id, String calledElement, Set in, Set out, boolean copyAllVariables) {
        this(id, calledElement, null, in, out, copyAllVariables);
    }

    public CallActivity(String id, String calledElement, String calledElementExpression, Set in, Set out, boolean copyAllVariables) {
        super(id);
        this.calledElement = calledElement;
        this.calledElementExpression = calledElementExpression;
        this.in = in;
        this.out = out;
        this.copyAllVariables = copyAllVariables;
    }

    public String getCalledElement() {
        return calledElement;
    }

    public String getCalledElementExpression() {
        return calledElementExpression;
    }

    public Set getIn() {
        return in;
    }

    public Set getOut() {
        return out;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public boolean isCopyAllVariables() {
        return copyAllVariables;
    }

    @Override
    public String toString() {
        return "CallActivity (" + getId() + ") {" +
                "name='" + name + '\'' +
                ", calledElement='" + calledElement + '\'' +
                ", in=" + in +
                ", out=" + out +
                ", copyAllVariables=" + copyAllVariables +
                '}';
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy