Package org.enhydra.shark.xpdl.elements

Examples of org.enhydra.shark.xpdl.elements.Activities


    protected boolean checkActivityId(Activity newEl)
    {
        int idCnt = 0;
        WorkflowProcess proc = XMLUtil.getWorkflowProcess(newEl);
        String newId = newEl.getId();
        Activities acts = proc.getActivities();
        idCnt += XMLUtil.cntIds(acts, newId);
        ActivitySets actSets = proc.getActivitySets();
        for(int y = 0; y < actSets.size(); y++)
        {
            ActivitySet actSet = (ActivitySet)actSets.get(y);
View Full Code Here


    protected boolean checkGraphConformanceForWpOrAs(XMLCollectionElement wpOrAs, List existingErrors, boolean fullCheck)
    {
        Package pkg = XMLUtil.getPackage(wpOrAs);
        String conformanceClass = pkg.getConformanceClass().getGraphConformance();
        int ct = XMLUtil.getConformanceClassNo(conformanceClass);
        Activities acts = (Activities)wpOrAs.get("Activities");
        List activities = acts.toElements();
        if(activities.size() == 0)
            return true;
        boolean isGraphConformant = true;
        Set splitActs = XMLUtil.getSplitOrJoinActivities(activities, 0);
        Set joinActs = XMLUtil.getSplitOrJoinActivities(activities, 1);
View Full Code Here

                GraphParticipantInterface gpar = getGraphManager().findParentActivityParticipantForLocation(whereTo, null,
                        null);
                Point partLoc = getGraphManager().getBounds(gpar, null).getBounds().getLocation();
                Point off = new Point(whereTo.x - partLoc.x, whereTo.y - partLoc.y);
                String partId = gpar.getPropertyObject().get("Id").toValue();
                Activities acts = (Activities) getGraph().getXPDLObject().get("Activities");
                Activity act = JaWEManager.getInstance().getXPDLObjectFactory().createXPDLObject(acts, subType, false);
                GraphUtilities.setOffsetPoint(act, off);
                GraphUtilities.setParticipantId(act, partId);
                int acttype = act.getActivityType();
                if (acttype == XPDLConstants.ACTIVITY_TYPE_NO || acttype == XPDLConstants.ACTIVITY_TYPE_TOOL) {
                    if (!partId.equals(FreeTextExpressionParticipant.getInstance().getId())) {
                        act.setPerformer(partId);
                    }
                }
                graphController.setUpdateInProgress(true);
                JaWEManager.getInstance().getJaWEController().startUndouableChange();
                acts.add(act);
                getGraphManager().insertActivity(act);
                List toSelect = new ArrayList();
                toSelect.add(act);
                JaWEManager.getInstance().getJaWEController().endUndouableChange(toSelect);
                getGraph().selectActivity(act, false);
View Full Code Here

      }
   }

   public boolean checkActivityId (Activity newEl,String newId) {
       WorkflowProcess proc = XMLUtil.getWorkflowProcess(newEl);
       Activities acts = proc.getActivities();
       List elsWithId=getElementsForId(acts, newId);
       ActivitySets actSets = proc.getActivitySets();
       for(int y = 0; y < actSets.size(); y++) {
           ActivitySet actSet = (ActivitySet)actSets.get(y);
           acts = actSet.getActivities();
View Full Code Here

                updateSpecialInProgress = true;
                JaWEManager.getInstance().getXPDLUtils().removeTransitionsForActivities(info.getChangedSubElements());
                selectionMng.removeFromSelection(info.getChangedSubElements());
                updateSpecialInProgress = false;
            } else if (changedElement instanceof Transitions) {
                Activities acts = (Activities) ((XMLCollectionElement) changedElement.getParent()).get("Activities");

                updateSpecialInProgress = true;
                JaWEManager.getInstance().getXPDLUtils().correctSplitsAndJoins(acts.toElements());
                updateSpecialInProgress = false;
                if (action == XMLElementChangeInfo.REMOVED) {
                    selectionMng.removeFromSelection(info.getChangedSubElements());
                }
            }
View Full Code Here

TOP

Related Classes of org.enhydra.shark.xpdl.elements.Activities

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.