Package au.edu.qut.yawl.engine

Examples of au.edu.qut.yawl.engine.YWorkItem.toXML()


        } catch (YAuthenticationException e) {
            return OPEN_FAILURE + e.getMessage() + CLOSE_FAILURE;
        }
        YWorkItem workItem = _engine.getWorkItem(workItemID);
        if (workItem != null) {
            return workItem.toXML();
        } else {
            return
                    OPEN_FAILURE + "WorkItem with ID (" +
                    workItemID +
                    ") not found.<failure><reason>";
View Full Code Here


        try {
            _userList.checkConnection(sessionHandle);
            YWorkItem item = _engine.suspendWorkItem(workItemID);

            if (item != null)
                return OPEN_SUCCESS + item.toXML() + CLOSE_SUCCESS;
            else
                return OPEN_FAILURE +
                        "WorkItem with ID [" + workItemID + "] not found." +
                        CLOSE_FAILURE;
        }
View Full Code Here

        try {
            _userList.checkConnection(sessionHandle);

            YWorkItem item = _engine.unsuspendWorkItem(workItemID);
            if (item != null)
                return OPEN_SUCCESS + item.toXML() + CLOSE_SUCCESS;
            else
                return OPEN_FAILURE +
                        "WorkItem with ID [" + workItemID + "] not found." +
                        CLOSE_FAILURE;
        }
View Full Code Here

                if( child == null ) {
                  throw new YAWLException(
                      "Engine failed to start work item " + item.toString() +
                      ". The engine returned no work items." );
                }
                return OPEN_SUCCESS + child.toXML() + CLOSE_SUCCESS;
            }
            return OPEN_FAILURE + "No work item with id = " + workItemID + CLOSE_FAILURE;
        } catch (YAWLException e) {
            if (e instanceof YPersistenceException) {
                enginePersistenceFailure = true;
View Full Code Here

    public String createNewInstance(String workItemID, String paramValueForMICreation, String sessionHandle) throws RemoteException {
        try {
            _userList.checkConnection(sessionHandle);
            YWorkItem existingItem = _engine.getWorkItem(workItemID);
            YWorkItem newItem = _engine.createNewInstance(existingItem, paramValueForMICreation);
            return OPEN_SUCCESS + newItem.toXML() + CLOSE_SUCCESS;
        } catch (YAWLException e) {
            if (e instanceof YPersistenceException) {
                enginePersistenceFailure = true;
            }
            return OPEN_FAILURE + e.getMessage() + CLOSE_FAILURE;
View Full Code Here

        StringBuffer result = new StringBuffer();
        Iterator iter = workItems.iterator();
        while (iter.hasNext()) {
            YWorkItem workitem = (YWorkItem) iter.next();

            result.append(workitem.toXML());
        }
        return result.toString();
    }

View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.