Package de.danet.an.workflow.api

Examples of de.danet.an.workflow.api.ProcessDefinition


                    "Allowed value for process language is XPDL only!");

            return;
        }

        ProcessDefinition pd;
        try {
            pd = getProcessDefinition();
        } catch (InvalidKeyException e) {
            FaultUtils.setFault(respMsg,
                    ASAPException.ASAP_INVALID_INSTANCE_KEY, e.getMessage());

            return;
        } catch (NoSuchElementException e) {
            FaultUtils.setFault(respMsg,
                    ASAPException.ASAP_INVALID_INSTANCE_KEY, e.getMessage());

            return;
        }

        SOAPBodyElement defNode = createWfxmlResponseNode(respMsg,
                Consts.GET_DEFINITION_RESPONSE);

        SAXEventBuffer sax = pd.toSAX();
        importSAXAsChild(respMsg, defNode, sax);
    }
View Full Code Here


            if (subject != null) {
                proc.setDescription(subject);
            }

            if (contextData != null) {
                ProcessDefinition procdef = proc.processDefinition();
                ProcessData procData = getProcessData(procdef, contextData);
                proc.setProcessContext(procData);
            }

            if (startImmediately) {
                proc.start();
                // proc.setDebugEnabled(debug);
            }
        } catch (NotEnabledException e) {
            FaultUtils.setFault(respMsg, ASAPException.ASAP_OPERATION_FAILED, e
                    .getMessage());
            return;
        } catch (InvalidRequesterException e) {
            FaultUtils.setFault(respMsg, ASAPException.ASAP_OPERATION_FAILED, e
                    .getMessage());
            return;
        } catch (RequesterRequiredException e) {
            FaultUtils.setFault(respMsg, ASAPException.ASAP_OPERATION_FAILED, e
                    .getMessage());
            return;
        } catch (CannotStartException e) {
            FaultUtils.setFault(respMsg, ASAPException.ASAP_OPERATION_FAILED, e
                    .getMessage());
            return;
        } catch (AlreadyRunningException e) {
            FaultUtils.setFault(respMsg, ASAPException.ASAP_OPERATION_FAILED, e
                    .getMessage());
            return;
        } catch (InvalidDataException e) {
            FaultUtils.setFault(respMsg, ASAPException.ASAP_OPERATION_FAILED, e
                    .getMessage());
            return;
        } catch (UpdateNotAllowedException e) {
            FaultUtils.setFault(respMsg, ASAPException.ASAP_OPERATION_FAILED, e
                    .getMessage());
            return;
        } catch (ParseException e) {
            FaultUtils.setFault(respMsg, ASAPException.ASAP_PARSING_ERROR, e
                    .getMessage());
            return;
        }

        String observer = getChildsTextContent(action, "ObserverKey");
        if (observer != null) {
            try {
                ProcessDefinition procdef = proc.processDefinition();
                ObserverRegistry obs = getObserverRegistry();
                obs.subscribe(observer, procdef.packageId(), procdef
                        .processId(), proc.key(), getResourceReference()
                        .getBaseUrl());
            } catch (SQLException e) {
                FaultUtils.setFault(respMsg, e);
View Full Code Here

            logger.debug("get factory properties...");
        }

        String receiverKey = getHeaderValue(reqMsg, Consts.RECEIVER_KEY);

        ProcessDefinition pd;
        try {
            pd = getProcessDefinition();
        } catch (InvalidKeyException e) {
            FaultUtils.setFault(respMsg,
                    ASAPException.ASAP_INVALID_INSTANCE_KEY, e.getMessage());
View Full Code Here

            logger.debug("set factory properties...");
        }

        String receiverKey = getHeaderValue(reqMsg, Consts.RECEIVER_KEY);

        ProcessDefinition pd;
        try {
            pd = getProcessDefinition();
        } catch (InvalidKeyException e) {
            FaultUtils.setFault(respMsg,
                    ASAPException.ASAP_INVALID_INSTANCE_KEY, e.getMessage());
View Full Code Here

    throws InvalidKeyException {
        RequestScope scope = RequestLog.enterScope
            (this, "processMgr", new Object[] { packageId, processId });
        ProcessMgr res = null;
  try {
      ProcessDefinition procDef
    = lookupProcessDefinition (packageId, processId);
      res = new ProcessMgrStub
    (packageId, processId, procDef.mgrName(), null,
     (ProcessDefinitionDirectoryHome)ctx.getEJBHome(),
     processHome());
  } catch (ResourceNotAvailableException re) {
      throw new EJBException (re);
  } catch (InvalidKeyException ikex) {
View Full Code Here

                        while (rs.next()) {
                            removeXpdlIfOrphaned(rs.getLong(1));
                        }
                        Iterator it = l.subList(1, l.size()).iterator();
      while (it.hasNext()) {
          ProcessDefinition pd = (ProcessDefinition)it.next();
          insertProcessDefinition(ds, con, pd);
      }
        } finally {
      JDBCUtil.closeAll (rs, prepStmt, con);
        }
View Full Code Here

    public ProcessDefinition lookupProcessDefinition
  (String packageId, String processId) throws InvalidKeyException {
        RequestScope scope = RequestLog.enterScope
            (this, "lookupProcessDefinition",
             new Object[] { packageId, processId });
        ProcessDefinition res = null;
        try {
            res = lookupProcessDefinitionInfo
                (packageId, processId).processDefinition;
        } finally {
            scope.leave (res);
View Full Code Here

     * @return the xpdl
     * @ejb.interface-method view-type="local"
     */
    public ProcessDefinition lookupArchivedProcessDefinition (long id) {
        try {
            ProcessDefinition processDefinition = null;
            processDefinition = (ProcessDefinition)
                archivedProcessDefinitionCache.get(new Long(id));
            if (processDefinition != null) {
                return processDefinition;
            }
View Full Code Here

TOP

Related Classes of de.danet.an.workflow.api.ProcessDefinition

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.