/** * @see BpelManagementFacade#getProcessDef(String) * @param procid */ public OProcess getProcessDef(String procid) throws ManagementException { if (_server._engine == null) throw new ProcessingException("ServiceProvider required for debugger operation."); BpelProcess process = _server._engine._activeProcesses.get(QName.valueOf(procid)); if (process == null) throw new InvalidRequestException("The process \"" + procid + "\" is not available. Please make sure it is deployed and encompassing System is activated." ); return process.getOProcess(); }
StatusKeys.valueOf(statusFilter.toUpperCase()); } catch (IllegalArgumentException e) { throw new InvalidRequestException( "The status you're using in your filter isn't valid, " + "only the activated and retired status are valid. " ISO8601DateParser.parse(getDateWithoutOp(ddf)); } catch (ParseException e) { throw new InvalidRequestException( "Couldn't parse one of the filter date, please make " + "sure it follows the ISO-8601 date or date/time standard (yyyyMMddhhmmss). " orders.add(orderKey); } catch (IllegalArgumentException e) { throw new InvalidRequestException( "One of the ordering keys isn't valid, processes can only " + "be sorted by name, namespace, version, status and deployed date."
throw new InvalidRequestException("Must specifiy scope instance id."); siidl = new Long(siid); } catch (NumberFormatException nfe) { throw new InvalidRequestException("Invalid scope instance id."); ScopeDAO instance = conn.getScope(siidl); if (instance == null) throw new InvalidRequestException("Scope not found: " + siidl);
StatusKeys.valueOf(status.toUpperCase()); } catch (IllegalArgumentException e) { throw new InvalidRequestException( "The status you're using in your filter isn't valid, " + "only the active, suspended, error, completed, terminated and faulted status are " parseDateExpression(getDateWithoutOp(ddf)); } catch (ParseException e) { throw new InvalidRequestException( "Couldn't parse one of the filter date, please make " + "sure it follows the ISO-8601 date or date/time standard (yyyyMMddhhmmss). " parseDateExpression(getDateWithoutOp(ddf)); } catch (ParseException e) { throw new InvalidRequestException( "Couldn't parse one of the filter date, please make " + "sure it follows the ISO-8601 date or date/time standard (yyyyMMddhhmmss). " orders.add(orderKey); } catch (IllegalArgumentException e) { throw new InvalidRequestException( "One of the ordering keys isn't valid, processes can only " + "be sorted by pid, name, namespace, version, status, started and last-active "
private ProcessInfoDocument genProcessInfoDocument(BpelDAOConnection conn, QName procid, ProcessInfoCustomizer custom) throws ManagementException { if (procid == null) { throw new InvalidRequestException("Valid QName as process id expected."); } ProcessInfoDocument ret = ProcessInfoDocument.Factory.newInstance(); TProcessInfo pi = ret.addNewProcessInfo(); try { ProcessConf pconf = _store.getProcessConfiguration(procid); if (pconf == null) throw new ProcessNotFoundException("ProcessNotFound:" + procid); fillProcessInfo(pi, pconf, custom); fillProcessInfoSummary(conn, Collections.singletonList(pi), custom); } catch (ManagementException me) { throw me; } catch (Exception e) { __log.error("Exception while retrieving process information", e); throw new ProcessingException("Exception while retrieving process information: " + e.toString()); } return ret; }
/** * Generate a {@link InstanceInfoDocument} for a given instance. This * document contains general information about the instance. * * @param iid * instance identifier * @return generated document */ private InstanceInfoDocument genInstanceInfoDocument(BpelDAOConnection conn, Long iid) { if (iid == null) throw new InvalidRequestException("Must specifiy instance id."); InstanceInfoDocument ret = InstanceInfoDocument.Factory.newInstance(); TInstanceInfo ii = ret.addNewInstanceInfo(); ii.setIid(iid.toString()); ProcessInstanceDAO instance = conn.getInstance(iid); if (instance == null) throw new InstanceNotFoundException("InstanceNotFoundException " + iid); // TODO: deal with "ERROR" state information. fillInstanceInfo(ii, instance); return ret; }