Package org.enhydra.shark.xpdl.elements

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


    }

    protected void removePackage(Package pkg) {
        Iterator it = pkg.getWorkflowProcesses().toElements().iterator();
        while (it.hasNext()) {
            WorkflowProcess wp = (WorkflowProcess) it.next();
            removeGraph(wp);
            Iterator asi = wp.getActivitySets().toElements().iterator();
            while (asi.hasNext()) {
                ActivitySet as = (ActivitySet) asi.next();
                removeGraph(as);
            }
        }
View Full Code Here


    public void validateElement(SubFlow el, List existingErrors, boolean fullCheck)
    {
        validateStandard(el, existingErrors, fullCheck);
        if(existingErrors.size() == 0 || fullCheck)
        {
            WorkflowProcess wp = XMLUtil.findWorkflowProcess(xmlInterface, XMLUtil.getPackage(el), el.getId());
            if(wp != null)
            {
                ActualParameters aps = el.getActualParameters();
                checkParameterMatching(wp.getFormalParameters(), aps, existingErrors, properties.getProperty("ValidateActualParameterExpressions", "false").equals("true"), fullCheck);
            }
        }
    }
View Full Code Here

    {
        validateStandard(el, existingErrors, fullCheck);
        if(existingErrors.size() == 0 || fullCheck)
        {
            String toolId = el.getId();
            WorkflowProcess wp = XMLUtil.getWorkflowProcess(el);
            Application app = XMLUtil.findApplication(xmlInterface, wp, toolId);
            if(app != null)
            {
                XMLElement ch = app.getApplicationTypes().getChoosen();
                if(ch instanceof FormalParameters)
View Full Code Here

    protected boolean checkToolId(XMLAttribute tlId, List existingErrors, boolean fullCheck)
    {
        XMLValidationError verr = null;
        String toolId = tlId.toValue();
        WorkflowProcess wp = XMLUtil.getWorkflowProcess(tlId);
        Application app = XMLUtil.findApplication(xmlInterface, wp, toolId);
        if(app == null)
        {
            verr = new XMLValidationError("ERROR", "LOGIC", "ERROR_NON_EXISTING_APPLICATION_REFERENCE", toolId, tlId);
            existingErrors.add(verr);
View Full Code Here

        XMLValidationError verr = null;
        String subflowId = sbflwId.toValue();
        if(subflowId.trim().equals(""))
            verr = new XMLValidationError("ERROR", "LOGIC", "ERROR_NON_EXISTING_WORKFLOW_PROCESS_REFERENCE", subflowId, sbflwId);
        Package pkg = XMLUtil.getPackage(sbflwId);
        WorkflowProcess wp = null;
        if(verr == null)
        {
            wp = XMLUtil.findWorkflowProcess(xmlInterface, pkg, subflowId);
            if(wp == null && !isRemoteSubflowIdOK(subflowId) && properties.getProperty("ValidateSubFlowReferences", "true").equals("true"))
                verr = new XMLValidationError("ERROR", "LOGIC", "ERROR_NON_EXISTING_WORKFLOW_PROCESS_REFERENCE", subflowId, sbflwId);
View Full Code Here

    }

    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);
            acts = actSet.getActivities();
            idCnt += XMLUtil.cntIds(acts, newId);
View Full Code Here

    }

    protected boolean checkTransitionId(Transition newEl)
    {
        int idCnt = 0;
        WorkflowProcess proc = XMLUtil.getWorkflowProcess(newEl);
        String newId = newEl.getId();
        Transitions trans = proc.getTransitions();
        idCnt += XMLUtil.cntIds(trans, newId);
        ActivitySets actSets = proc.getActivitySets();
        for(int y = 0; y < actSets.size(); y++)
        {
            ActivitySet actSet = (ActivitySet)actSets.get(y);
            trans = actSet.getTransitions();
            idCnt += XMLUtil.cntIds(trans, newId);
View Full Code Here

            if (pkg == null) {
                return;
            }
            jc.startUndouableChange();
            XPDLObjectFactory of = JaWEManager.getInstance().getXPDLObjectFactory();
            WorkflowProcess wp = of.createXPDLObject(pkg.getWorkflowProcesses(),
                    jc.getJaWETypes().getDefaultType(WorkflowProcess.class),
                    true);
            List toSelect = new ArrayList();
            toSelect.add(wp);
            jc.endUndouableChange(toSelect);
View Full Code Here

         return true;
      }
   }

   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();
           elsWithId.addAll(getElementsForId(acts, newId));
       }
View Full Code Here

          return true;
       }return false;
    }

   public boolean checkTransitionId (Transition newEl,String newId) {
      WorkflowProcess proc = XMLUtil.getWorkflowProcess(newEl);

      Transitions trans = proc.getTransitions();
      List elsWithId=getElementsForId(trans, newId);
      ActivitySets actSets = proc.getActivitySets();
      for(int y = 0; y < actSets.size(); y++) {
         ActivitySet actSet = (ActivitySet)actSets.get(y);
         trans = actSet.getTransitions();
         elsWithId.addAll(getElementsForId(trans, newId));
      }
View Full Code Here

TOP

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

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.