public JpdlException(String message) { super(message); problems = Collections.singletonList(new Problem(Problem.LEVEL_ERROR, message)); }
public JpdlException(String message) { super(message); problems = Collections.singletonList(new Problem(Problem.LEVEL_ERROR, message)); }
public JpdlException(String message, Throwable cause) { super(message, cause); problems = Collections.singletonList(new Problem(Problem.LEVEL_ERROR, message, cause)); }
public JpdlException(String message, Throwable cause) { super(message, cause); problems = Collections.singletonList(new Problem(Problem.LEVEL_ERROR, message, cause)); }
public void addProblem(String msg) { problems.add(new Problem(Problem.LEVEL_ERROR, msg)); }
public void addProblem(String msg) { problems.add(new Problem(Problem.LEVEL_ERROR, msg)); }
public void addWarning(String description) { addProblem(new Problem(Problem.LEVEL_WARNING, description)); }
public void addError(String description) { addProblem(new Problem(Problem.LEVEL_ERROR, description)); }
public void addError(String description) { addProblem(new Problem(Problem.LEVEL_ERROR, description)); }
public void addError(String description, Throwable exception) { addProblem(new Problem(Problem.LEVEL_ERROR, description, exception)); }
public void addError(String description, Throwable exception) { addProblem(new Problem(Problem.LEVEL_ERROR, description, exception)); }
public void addWarning(String description) { addProblem(new Problem(Problem.LEVEL_WARNING, description)); }
private void addProblem(int level, SAXParseException pe) { Problem problem = new Problem(level, pe.getMessage(), pe); problem.setResource(pe.getSystemId()); int line = pe.getLineNumber(); if (line != -1) problem.setLine(new Integer(line)); problemListener.addProblem(problem); } }
private void addProblem(int level, SAXParseException pe) { Problem problem = new Problem(level, pe.getMessage(), pe); problem.setResource(pe.getSystemId()); int line = pe.getLineNumber(); if (line != -1) problem.setLine(new Integer(line)); problemListener.addProblem(problem); } }
public void write(ProcessDefinition processDefinition) { if (processDefinition == null) throw new JbpmException("process definition is null"); problems.clear(); try { // collect the actions of the process definition // we will remove each named event action and the remaining ones will be written // on the process definition. Document document = createDomTree(processDefinition); // write the document using the given writer XMLWriter xmlWriter = new XMLWriter(writer, OutputFormat.createPrettyPrint()); xmlWriter.write(document); xmlWriter.flush(); } catch (IOException e) { Problem problem = new Problem(Problem.LEVEL_ERROR, "could not write process definition", e); problems.add(problem); } if (problems.size() > 0) throw new JpdlException(problems); }
public void write(ProcessDefinition processDefinition) { if (processDefinition == null) throw new JbpmException("process definition is null"); problems.clear(); try { // collect the actions of the process definition // we will remove each named event action and the remaining ones will be written // on the process definition. Document document = createDomTree(processDefinition); // write the document using the given writer XMLWriter xmlWriter = new XMLWriter(writer, OutputFormat.createPrettyPrint()); xmlWriter.write(document); xmlWriter.flush(); } catch (IOException e) { Problem problem = new Problem(Problem.LEVEL_ERROR, "could not write process definition", e); problems.add(problem); } if (problems.size() > 0) throw new JpdlException(problems); }
addProblem(new Problem(Problem.LEVEL_INFO, "no assignment specified for task: " + taskElement.getPath()));
addProblem(new Problem(Problem.LEVEL_INFO, "no assignment specified for task: " + taskElement.getPath()));