Examples of YIdentifier


Examples of au.edu.qut.yawl.elements.state.YIdentifier

        try {
            _userList.checkConnection(sessionHandle);
        } catch (YAuthenticationException e) {
            return OPEN_FAILURE + e.getMessage() + CLOSE_FAILURE;
        }
        YIdentifier id = _engine.getCaseID(caseID);
        if (id != null) {
            return _engine.getStateForCase(id);
        }
        return OPEN_FAILURE + "Case [" + caseID + "] not found." + CLOSE_FAILURE;
    }
View Full Code Here

Examples of au.edu.qut.yawl.elements.state.YIdentifier

        try {
            _userList.checkConnection(sessionHandle);
        } catch (YAuthenticationException e) {
            return OPEN_FAILURE + e.getMessage() + CLOSE_FAILURE;
        }
        YIdentifier id = _engine.getCaseID(caseID);
        if (id != null) {
            try {
                _engine.cancelCase(id);
                return SUCCESS;
            } catch (YPersistenceException e) {
View Full Code Here

Examples of au.edu.qut.yawl.elements.state.YIdentifier

                    Set cases = _engineManagement.getCasesForSpecification(spec.getID());
                    logger.debug("Loading " + cases.size() + " active cases for this specification");

                    Iterator iterCases = cases.iterator();
                    while (iterCases.hasNext()) {
                        YIdentifier caseID = (YIdentifier) iterCases.next();
                        addCase(spec.getID(), caseID.get_idString());
                    }
                }
            } catch (YPersistenceException e) {
                logError("Failure to load specifications", e);
                System.exit(99);
View Full Code Here

Examples of au.edu.qut.yawl.elements.state.YIdentifier

             */
            try {
                int selectedRow = _activeCasesTable.getSelectedRow();
                if (selectedRow >= 0) {
                    String caseIDStr = (String) _activeCasesTable.getValueAt(selectedRow, 1);
                    YIdentifier id = _engineManagement.getCaseID(caseIDStr);
                    if (id != null) {
                        _engineManagement.cancelCase(id);
                        _activeCasesTableModel.removeRow(id.toString());
                    }
                }
            } catch (YPersistenceException e2) {
                logError("Failure to cancel case", e2);
            }
        } else if (command == _inspectStateCommand) {
            /**
             * Report the state of a case
             */
            try {
                int selectedRow = _activeCasesTable.getSelectedRow();
                if (selectedRow >= 0) {
                    String caseIDStr = (String) _activeCasesTable.getValueAt(selectedRow, 1);
                    YIdentifier id = _engineManagement.getCaseID(caseIDStr);
                    if (id != null) {
                        String textToDisplay = _engineManagement.getStateTextForCase(id);
                        new YInspectStateDialog(_frame, textToDisplay);
                    }
                }
View Full Code Here

Examples of au.edu.qut.yawl.elements.state.YIdentifier

            _validTask.t_fire(null);
        }catch(YAWLException e){
            f= e;
        }
        assertNotNull(f); f= null;
        _aCondition.add(null, new YIdentifier());
        assertTrue(_validTask.t_enabled(null));
        List childIdentifiers = null;
        try {
            childIdentifiers = _validTask.t_fire(null);
        } catch (YStateException e) {
View Full Code Here

Examples of au.edu.qut.yawl.elements.state.YIdentifier

        c2 = new YCondition("c2", null);
        t1.setPostset(new YFlow(t1, c2));
        List l1 = new ArrayList();
        l1.add(t1);
        t1.setRemovesTokensFrom(l1);
        c1.add(null, new YIdentifier());

        List kids = null;
        try {
            kids = t1.t_fire(null);
        } catch (YDataStateException e) {
            e.printStackTrace();
            fail();
        }
        assertTrue(kids.size() == 1);
        YIdentifier kid;
        kid = (YIdentifier)kids.iterator().next();
        t1.t_start(null, kid);
        try {
            t1.t_complete(null,
                    kid,
View Full Code Here

Examples of au.edu.qut.yawl.elements.state.YIdentifier

            e.printStackTrace();
            fail();
        } catch (YStateException e) {
            e.printStackTrace();
        }
        YIdentifier extraID = _netRunner1.addNewInstance(null, "b-top", null, null);
        assertNull(extraID);
        YIdentifier id = (YIdentifier)children.iterator().next();
        _netRunner1.startWorkItemInTask(null, id, "b-top");
        extraID = _netRunner1.addNewInstance(null, "b-top", id, new Element("stub"));
        assertTrue(children.size() == 7 || extraID.getParent().equals(id.getParent()));
    }
View Full Code Here

Examples of au.edu.qut.yawl.elements.state.YIdentifier

    }


    public YWorkItem createChild(YPersistenceManager pmgr, YIdentifier childCaseID) throws YPersistenceException {
        if (this._parent == null) {
            YIdentifier parentCaseID = getWorkItemID().getCaseID();
            if (childCaseID.getParent() != parentCaseID) {
                return null;
            }
            YWorkItem childItem = new YWorkItem(pmgr,
                    new YWorkItemID(childCaseID, getWorkItemID().getTaskID()),
View Full Code Here

Examples of au.edu.qut.yawl.elements.state.YIdentifier

                Object objKey = keys.next();

                if (objKey == null) {
                    logger.debug("Key = NULL !!!");
                } else {
                    YIdentifier key = (YIdentifier) objKey;
                    YNetRunner runner = (YNetRunner) _caseToNetRunnerMap.get(key);

                    logger.debug("Entry " + sub + " Key=" + key.get_idString());
                    logger.debug(("    CaseID        " + runner.get_caseID()));
                    logger.debug("     YNetID        " + runner.getYNetID());
                }
            }
        }
View Full Code Here

Examples of au.edu.qut.yawl.elements.state.YIdentifier

        List allWorkItems = new ArrayList(_idStringToWorkItemsMap.values());
        //go through all the work items and if there are any belonging to
        //the id for this net then remove them.
        for (int i = 0; i < allWorkItems.size(); i++) {
            YWorkItem item = (YWorkItem) allWorkItems.get(i);
            YIdentifier identifier = item.getWorkItemID().getCaseID();
            if (identifier.isImmediateChildOf(caseIDForNet) ||
                    identifier.toString().equals(caseIDForNet.toString())) {
                itemsToRemove.add(item.getIDString());
            }
        }
        removeItems(itemsToRemove);
    }
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.