Package au.edu.qut.yawl.exceptions

Examples of au.edu.qut.yawl.exceptions.Problem


                    if (allocatedResources.contains(username)) {
                        filteredItems.add(workItemRecord);
                    }
                    } catch (YQueryException e) {
                      e.printStackTrace();
                      Problem warning = new Problem();
                      warning.setTimeStamp(new Date());
                      warning.setSource(workItemRecord.getID());
                      warning.setMessageType(Problem.EMPTY_RESOURCE_SET_MESSAGETYPE);
                      _dbConnector.saveWarning(warning);
                    }
                } catch (SQLException e) {
                    e.printStackTrace();
                } catch (HibernateException e) {
View Full Code Here


    }

    public void logProblem(YPersistenceManager pmgr) throws YPersistenceException {
        Logger.getLogger(this.getClass()).error("Problem source: " + _source + " " +
                " Message: " + _message);
        Problem error = new Problem();
        error.setMessage(_message);
        error.setMessageType(EXECUTION_ERROR_STR);
        error.setTimeStamp(new Date());
        error.setSource(_source.toString());

        /**
         * AJH: Bugfix - Prevent NPE being thrown if persistence switched off
         */
        if (pmgr != null) {
View Full Code Here

TOP

Related Classes of au.edu.qut.yawl.exceptions.Problem

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.