io.takari.bpm.model.UserTask Maven / Gradle / Ivy
package io.takari.bpm.model;
import java.io.Serializable;
import java.util.Arrays;
import java.util.List;
public class UserTask extends AbstractElement {
private static final long serialVersionUID = 1L;
private final List extensions;
public UserTask(String id) {
this(id, (List) null);
}
public UserTask(String id, List extensions) {
super(id);
this.extensions = extensions;
}
public UserTask(String id, Extension... extensions) {
this(id, Arrays.asList(extensions));
}
public List getExtensions() {
return extensions;
}
public interface Extension extends Serializable {
}
@Override
public String toString() {
return "UserTask (" + getId() + ") {" +
"extensions=" + extensions +
'}';
}
}