public void setUserId(String userId) { if (this.groupId != null && userId != null) { throw new ActivitiException("Cannot assign a userId to a task assignment that already has a groupId"); } this.userId = userId; }
dbUpgradeStep = (DbUpgradeStep) ReflectUtil.instantiate(upgradestepClassName); } catch (ActivitiException e) { throw new ActivitiException("database update java class '" + upgradestepClassName + "' can't be instantiated: " + e.getMessage(), e); dbUpgradeStep.execute(this); } catch (Exception e) { throw new ActivitiException("error while executing database update java class '" + upgradestepClassName + "': " + e.getMessage(), e); component); } catch (Exception e) { throw new ActivitiException("couldn't " + operation + " db schema: " + exceptionSqlStatement, e);
LOGGER.warn("Exception while executing " + execution.getCurrentFlowElement().getId() + " : " + e.getMessage());
public void buttonClick(ClickEvent event) { try { managementService.executeJob(job.getId()); jobPage.refreshSelectNext(); } catch (ActivitiException ae) { String errorMessage = ae.getMessage() + (ae.getCause() != null ? " (" + ae.getCause().getClass().getName() + ")" : ""); notificationManager.showErrorNotification(Messages.JOB_ERROR, errorMessage); // Refresh the current job jobPage.refreshCurrentJobDetails(); } } });
@Override public String toString() { return super.toString() + " (errorCode='" + errorCode + "')"; }
dbUpgradeStep = (DbUpgradeStep) ReflectUtil.instantiate(upgradestepClassName); } catch (ActivitiException e) { throw new ActivitiException("database update java class '"+upgradestepClassName+"' can't be instantiated: "+e.getMessage(), e); dbUpgradeStep.execute(this); } catch (Exception e) { throw new ActivitiException("error while executing database update java class '"+upgradestepClassName+"': "+e.getMessage(), e); throw new ActivitiException("couldn't "+operation+" db schema: "+exceptionSqlStatement, e);
handleException(execution, e.getMessage(), e, doIgnoreException, exceptionVariable); } catch (EmailException e) { handleException(execution, "Could not send e-mail in execution " + execution.getId(), e, doIgnoreException, exceptionVariable);
protected void handleActivitiException(org.activiti.engine.ActivitiException e) { if (e instanceof org.activiti.engine.delegate.BpmnError) { org.activiti.engine.delegate.BpmnError activiti5BpmnError = (org.activiti.engine.delegate.BpmnError) e; throw new BpmnError(activiti5BpmnError.getErrorCode(), activiti5BpmnError.getMessage()); } else if (e instanceof org.activiti.engine.ActivitiClassLoadingException) { throw new FlowableClassLoadingException(e.getMessage(), e.getCause()); } else if (e instanceof org.activiti.engine.ActivitiObjectNotFoundException) { org.activiti.engine.ActivitiObjectNotFoundException activiti5ObjectNotFoundException = (org.activiti.engine.ActivitiObjectNotFoundException) e; throw new FlowableObjectNotFoundException(activiti5ObjectNotFoundException.getMessage(), activiti5ObjectNotFoundException.getObjectClass(), activiti5ObjectNotFoundException.getCause()); } else if (e instanceof org.activiti.engine.ActivitiOptimisticLockingException) { throw new FlowableOptimisticLockingException(e.getMessage()); } else if (e instanceof org.activiti.engine.ActivitiIllegalArgumentException) { throw new FlowableIllegalArgumentException(e.getMessage(), e.getCause()); } else { if (e.getCause() instanceof org.activiti.engine.ActivitiClassLoadingException) { throw new FlowableException(e.getMessage(), new FlowableClassLoadingException(e.getCause().getMessage(), e.getCause().getCause())); } else if (e.getCause() instanceof org.activiti.engine.ActivitiException) { throw new FlowableException(e.getMessage(), new FlowableException(e.getCause().getMessage(), e.getCause().getCause())); } else { throw new FlowableException(e.getMessage(), e.getCause()); } } }
public String toString() { return super.toString() + " (errorCode='" + errorCode + "')"; }
public void setUserId(String userId) { if (this.groupId != null && userId != null) { throw new ActivitiException("Cannot assign a userId to a task assignment that already has a groupId"); } this.userId = userId; }
dbUpgradeStep = (DbUpgradeStep) ReflectUtil.instantiate(upgradestepClassName); } catch (ActivitiException e) { throw new ActivitiException("database update java class '"+upgradestepClassName+"' can't be instantiated: "+e.getMessage(), e); dbUpgradeStep.execute(this); } catch (Exception e) { throw new ActivitiException("error while executing database update java class '"+upgradestepClassName+"': "+e.getMessage(), e); throw new ActivitiException("couldn't "+operation+" db schema: "+exceptionSqlStatement, e);
} catch (ActivitiException e) { name = activeTaskName; LOGGER.warn("property not found in task name expression " + e.getMessage()); } catch (ActivitiException e) { description = activeTaskDescription; LOGGER.warn("property not found in task description expression " + e.getMessage());
public void execute(ActivityExecution execution) throws Exception { ScriptingEngines scriptingEngines = Context .getProcessEngineConfiguration() .getScriptingEngines(); boolean noErrors = true; try { Object result = scriptingEngines.evaluate(script, language, execution, storeScriptVariables); if (resultVariable != null) { execution.setVariable(resultVariable, result); } } catch (ActivitiException e) { LOGGER.warn("Exception while executing " + execution.getActivity().getId() + " : " + e.getMessage()); noErrors = false; if (e.getCause() instanceof ScriptException && e.getCause().getCause() instanceof ScriptException && e.getCause().getCause().getCause() instanceof BpmnError) { ErrorPropagation.propagateError((BpmnError) e.getCause().getCause().getCause(), execution); } else { throw e; } } if (noErrors) { leave(execution); } }
public HistoricProcessInstanceQuery endOr() { if (!inOrStatement) { throw new ActivitiException("endOr() can only be called after calling or()"); } inOrStatement = false; currentOrQueryObject = null; return this; }
dbUpgradeStep = (DbUpgradeStep) ReflectUtil.instantiate(upgradestepClassName); } catch (ActivitiException e) { throw new ActivitiException("database update java class '" + upgradestepClassName + "' can't be instantiated: " + e.getMessage(), e); dbUpgradeStep.execute(this); } catch (Exception e) { throw new ActivitiException("error while executing database update java class '" + upgradestepClassName + "': " + e.getMessage(), e); throw new ActivitiException("couldn't " + operation + " db schema: " + exceptionSqlStatement, e);
String errorMsg = e.getMessage().replace(System.getProperty("line.separator"), "<br/>"); notificationManager.showErrorNotification(Messages.DEPLOYMENT_UPLOAD_FAILED, errorMsg); throw e;
@Override public TaskQuery endOr() { if (!orActive) { throw new ActivitiException("endOr() can only be called after calling or()"); } orActive = false; currentOrQueryObject = null; return this; }
@Override public void printInstanceData(PrintWriter out, boolean verbose, boolean quite, HistoricProcessInstance hpi) { this.setVerbose(verbose); this.setQuiet(quite); List<HistoricDetail> varList = null; try { varList = this.processEngine.getHistoryService().createHistoricDetailQuery() .variableUpdates().processInstanceId(hpi.getId()).orderByTime().desc().list(); } catch (ActivitiException ex) { // silent about the error. and log it. LOG.log(Level.INFO, "Error in getting process variables. " + ex.getMessage(), ex); } if (varList != null && varList.size() > 0) { out.println("-------- Instance Variables "); printVariables(out, varList); } else { LOG.info("------ No Instance Variables! for " + hpi.getId()); } }
public HistoricTaskInstanceQuery endOr() { if (!inOrStatement) { throw new ActivitiException("endOr() can only be called after calling or()"); } inOrStatement = false; currentOrQueryObject = null; return this; }
@Override public void printInstanceData(PrintWriter out, boolean verbose, boolean quite, HistoricProcessInstance hpi) { this.setVerbose(verbose); this.setQuiet(quite); List<HistoricDetail> varList = null; try { varList = this.processEngine.getHistoryService().createHistoricDetailQuery() .variableUpdates().processInstanceId(hpi.getId()).orderByTime().desc().list(); } catch (ActivitiException ex) { // silent about the error. and log it. LOG.log(Level.INFO, "Error in getting process variables. " + ex.getMessage(), ex); } if (varList != null && varList.size() > 0) { out.println("-------- Instance Variables "); printVariables(out, varList); } else { LOG.info("------ No Instance Variables! for " + hpi.getId()); } }