Package org.apache.ode.bpel.pmapi

Examples of org.apache.ode.bpel.pmapi.ProcessInfoDocument


        return ret;
    }

    public ProcessInfoDocument setProcessProperty(final QName pid, final QName propertyName, final String value)
            throws ManagementException {
        ProcessInfoDocument ret = ProcessInfoDocument.Factory.newInstance();
        final TProcessInfo pi = ret.addNewProcessInfo();
        try {
            _db.exec(new BpelDatabase.Callable<Object>() {
                public Object run(BpelDAOConnection conn) throws Exception {
                    try {
                        _store.setProperty(pid, propertyName, value);
View Full Code Here


    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);
View Full Code Here

        if (server.isDeployed("1")) server.undeployProcess(bundleName + "/1");
        if (server.isDeployed("2")) server.undeployProcess(bundleName + "/2");
    }

    public TProcessInfo getProcessDetails(QName pid){
        ProcessInfoDocument pDoc = server.getODEServer().getProcessManagement().getProcessInfo(pid);
        return pDoc.getProcessInfo();
    }
View Full Code Here

            if (count <= 0) throw new AssertionError("No failures info, which are required");
            Thread.sleep(sleep);
            sleep = 1000;
            TFailuresInfo failures = instance.getFailures();
            if (!(failures != null && failures.getCount() == 1)) continue;
            ProcessInfoDocument m = _management.getProcessInfo(_processId);
            if (!m.getProcessInfo().isSetInstanceSummary()) continue;
            failures = m.getProcessInfo().getInstanceSummary().getFailures();
            if (!(failures != null && failures.getCount() == 1)) continue;
            break;
        }
        // Look for individual activities inside the process instance.
        ArrayList<TActivityInfo> recoveries = getRecoveriesInScope(instance, null, null);
View Full Code Here

        }
    }

    public ProcessInfoDocument setProcessPropertyNode(final QName pid, final QName propertyName, final Node value)
            throws ManagementException {
        ProcessInfoDocument ret = ProcessInfoDocument.Factory.newInstance();
        final TProcessInfo pi = ret.addNewProcessInfo();
        try {
            try {
                _store.setProperty(pid, propertyName, value);
            } catch (Exception ex) {
                // Likely the process no longer exists in the store.
View Full Code Here

        return ret;
    }

    public ProcessInfoDocument setProcessProperty(final QName pid, final QName propertyName, final String value)
            throws ManagementException {
        ProcessInfoDocument ret = ProcessInfoDocument.Factory.newInstance();
        final TProcessInfo pi = ret.addNewProcessInfo();
        try {
            try {
                _store.setProperty(pid, propertyName, value);
            } catch (Exception ex) {
                // Likely the process no longer exists in the store.
View Full Code Here

    private ProcessInfoDocument genProcessInfoDocument(final QName procid, final ProcessInfoCustomizer custom)
            throws ManagementException {
      if (procid == null) {
        throw new InvalidRequestException("Valid QName as process id expected.");
      }
        ProcessInfoDocument ret = ProcessInfoDocument.Factory.newInstance();
        final TProcessInfo pi = ret.addNewProcessInfo();
        try {
            ProcessConf pconf = _store.getProcessConfiguration(procid);
            if (pconf == null)
                throw new ProcessNotFoundException("ProcessNotFound:" + procid);
            fillProcessInfo(pi, pconf, custom);
View Full Code Here

            if (count <= 0) throw new AssertionError("No failures info, which are required");
            Thread.sleep(sleep);
            sleep = 1000;
            TFailuresInfo failures = instance.getFailures();
            if (!(failures != null && failures.getCount() == 1)) continue;
            ProcessInfoDocument m = _management.getProcessInfo(_processId);
            if (!m.getProcessInfo().isSetInstanceSummary()) continue;
            failures = m.getProcessInfo().getInstanceSummary().getFailures();
            if (!(failures != null && failures.getCount() == 1)) continue;
            break;
        }
        // Look for individual activities inside the process instance.
        ArrayList<TActivityInfo> recoveries = getRecoveriesInScope(instance, null, null);
View Full Code Here

        }
    }

    public ProcessInfoDocument setProcessPropertyNode(final QName pid, final QName propertyName, final Node value)
            throws ManagementException {
        ProcessInfoDocument ret = ProcessInfoDocument.Factory.newInstance();
        final TProcessInfo pi = ret.addNewProcessInfo();
        try {
            _db.exec(new BpelDatabase.Callable<Object>() {
                public Object run(BpelDAOConnection conn) throws Exception {
                    try {
                        _store.setProperty(pid, propertyName, value);
View Full Code Here

        return ret;
    }

    public ProcessInfoDocument setProcessProperty(final QName pid, final QName propertyName, final String value)
            throws ManagementException {
        ProcessInfoDocument ret = ProcessInfoDocument.Factory.newInstance();
        final TProcessInfo pi = ret.addNewProcessInfo();
        try {
            _db.exec(new BpelDatabase.Callable<Object>() {
                public Object run(BpelDAOConnection conn) throws Exception {
                    try {
                        _store.setProperty(pid, propertyName, value);
View Full Code Here

TOP

Related Classes of org.apache.ode.bpel.pmapi.ProcessInfoDocument

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.