Examples of XPDLObjectFactory


Examples of org.enhydra.jawe.base.xpdlobjectfactory.XPDLObjectFactory

   // CUSTOM: update editable variables for all activities
    @Override
    public void add(XMLElement el) {
        super.add(el);
        // add editable variable for all existing activities when a variable is added
        XPDLObjectFactory xpdlObjectFactory = JaWEManager.getInstance().getXPDLObjectFactory();
        DataField df = (DataField)el;
        XMLElement parent = getParent();
        if (parent instanceof WorkflowProcess) {
            parent.setNotifyListeners(false);
            parent.setNotifyMainListeners(false);
            WorkflowProcess wp = (WorkflowProcess)parent;
            Activities acts = wp.getActivities();
            for (int i=0; i<acts.size(); i++) {
                Activity act = (Activity)acts.get(i);
                if (act.getActivityType() == XPDLConstants.ACTIVITY_TYPE_NO) {
                    ExtendedAttribute attribute = xpdlObjectFactory.createXPDLObject(act.getExtendedAttributes(), null, true);
                    attribute.setName("VariableToProcess_UPDATE");
                    attribute.setVValue(df.getId());
                }
            }
            parent.setNotifyListeners(true);
View Full Code Here

Examples of org.enhydra.jawe.base.xpdlobjectfactory.XPDLObjectFactory

   // CUSTOM: update editable parameters for all activities
    @Override
    public void add(XMLElement el) {
        super.add(el);
        // add editable variable for all existing activities when a variable is added
        XPDLObjectFactory xpdlObjectFactory = JaWEManager.getInstance().getXPDLObjectFactory();
        FormalParameter fp = (FormalParameter)el;
        XMLElement parent = getParent();
        if (parent instanceof WorkflowProcess) {
            parent.setNotifyListeners(false);
            parent.setNotifyMainListeners(false);
            WorkflowProcess wp = (WorkflowProcess)parent;
            Activities acts = wp.getActivities();
            for (int i=0; i<acts.size(); i++) {
                Activity act = (Activity)acts.get(i);
                if (act.getActivityType() == XPDLConstants.ACTIVITY_TYPE_NO) {
                    ExtendedAttribute attribute = xpdlObjectFactory.createXPDLObject(act.getExtendedAttributes(), null, true);
                    attribute.setName("VariableToProcess_UPDATE");
                    attribute.setVValue(fp.getId());
                }
            }
            parent.setNotifyListeners(true);
View Full Code Here

Examples of org.enhydra.jawe.base.xpdlobjectfactory.XPDLObjectFactory

            Package pkg = jc.getMainPackage();
            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

Examples of org.enhydra.jawe.base.xpdlobjectfactory.XPDLObjectFactory

            xpdlObjectFactory = (XPDLObjectFactory) c.newInstance(new Object[]{
                        os
                    });
            loggingManager.info("JaWEManager -> Working with '" + xpdlofClass + "' implementation of XPDL Object Factory");
        } catch (Throwable ex) {
            xpdlObjectFactory = new XPDLObjectFactory();
            if (JaWE.getJaWEVersion() != JaWE.COMMUNITY_VERSION) {
                String msg = "JaweManager -> Problems while instantiating XPDL Object Factory class '" + xpdlofClass + "' - using default implementation!";
                loggingManager.error(msg, ex);
            } else {
                loggingManager.info("JaWEManager -> Working with '" + XPDLObjectFactory.class.getName() + "' implementation of XPDL Object Factory");
View Full Code Here

Examples of org.enhydra.jawe.base.xpdlobjectfactory.XPDLObjectFactory

                    break;
                }
            }
            if (!hasxpdlns) {
                Namespaces nss = pkg.getNamespaces();
                XPDLObjectFactory xpdlof = JaWEManager.getInstance().getXPDLObjectFactory();
                Namespace ns = xpdlof.createXPDLObject(nss, "", false);
                ns.setName("xpdl");
                ns.setLocation("http://www.wfmc.org/2002/XPDL1.0");
                nss.add(ns);
                xpdlof.adjustXPDLObject(pkg, null);
                changed = true;
            }
        }
        Iterator comps = JaWEManager.getInstance().getComponentManager().getComponents().iterator();
        while (comps.hasNext()) {
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.