org.jbpt.pm.structure.ContainsTaskCheck Maven / Gradle / Ivy
package org.jbpt.pm.structure;
import java.util.ArrayList;
import java.util.List;
import org.jbpt.pm.ProcessModel;
/**
* Checks if a {@link ProcessModel} contains any {@link Task}
* @author Christian Wiggert
*
*/
public class ContainsTaskCheck implements ICheck {
@Override
public List check(ProcessModel process) {
List errors = new ArrayList();
if (process.getActivities().size() == 0)
errors.add("Process " + process.getName() + " contains no task");
return errors;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy