Package org.enhydra.shark.xpdl.elements

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


         Map m=createContextMap(aps,fps);
         Iterator itFps=fps.toElements().iterator();
         Iterator itAps=aps.toElements().iterator();
         while (itFps.hasNext() && itAps.hasNext()) {
            FormalParameter fp=(FormalParameter)itFps.next();
            ActualParameter ap=(ActualParameter)itAps.next();
            String fpMode=fp.getMode();
            String fpId=fp.getId();
            Object paramVal=m.get(fpId);

            param=new AppParameter(ap.toValue(),fpId,fpMode,paramVal,SharkUtilities.getJavaClass(fp));
            parameters.add(param);
         }
         ApplicationMappingManager mm=SharkEngineManager.getInstance().getApplicationMapPersistenceManager();
         ApplicationMap tad=null;
         if (mm!=null) {
View Full Code Here


         Map m=createContextMap(aps,fps);
         Iterator itFps=fps.toElements().iterator();
         Iterator itAps=aps.toElements().iterator();
         while (itFps.hasNext() && itAps.hasNext()) {
            FormalParameter fp=(FormalParameter)itFps.next();
            ActualParameter ap=(ActualParameter)itAps.next();
            String fpMode=fp.getMode();
            String fpId=fp.getId();
            Object paramVal=m.get(fpId);

            param=new AppParameter(ap.toValue(),fpId,fpMode,paramVal,SharkUtilities.getJavaClass(fp));
            parameters.add(param);
         }
         ApplicationMappingManager mm=SharkEngineManager.getInstance().getApplicationMapPersistenceManager();
         ApplicationMap tad=null;
         if (mm!=null) {
View Full Code Here

         Map m=createContextMap(aps,fps);
         Iterator itFps=fps.toElements().iterator();
         Iterator itAps=aps.toElements().iterator();
         while (itFps.hasNext() && itAps.hasNext()) {
            FormalParameter fp=(FormalParameter)itFps.next();
            ActualParameter ap=(ActualParameter)itAps.next();
            String fpMode=fp.getMode();
            String fpId=fp.getId();
            Object paramVal=m.get(fpId);

            param=new AppParameter(ap.toValue(),fpId,fpMode,paramVal,SharkUtilities.getJavaClass(fp));
            parameters.add(param);
         }
         ApplicationMappingManager mm=SharkEngineManager.getInstance().getApplicationMapPersistenceManager();
         ApplicationMap tad=null;
         if (mm!=null) {
View Full Code Here

    }

    public ActualParameter createXPDLObject(ActualParameters aps,
            String type,
            boolean addToCollection) {
        ActualParameter ap = (ActualParameter) aps.generateNewElement();
        adjustType(ap, type);

        JaWETypes jts = JaWEManager.getInstance().getJaWEController().getJaWETypes();
        boolean hasTemplate = jts.hasTemplateId(type);
        if (hasTemplate) {
View Full Code Here

        for(int i = 0; i < fps.size(); i++)
        {
            FormalParameter fp = (FormalParameter)fps.get(i);
            if(aps.size() - 1 < i)
                return;
            ActualParameter ap = (ActualParameter)aps.get(i);
            String fpMode = fp.getMode();
            if(fpMode.equals("IN") && !checkExpression)
                continue;
            DataType fpdt = fp.getDataType();
            DataTypes fpdtt = fpdt.getDataTypes();
            XMLElement fpType = fpdtt.getChoosen();
            Map idToDFOrFP = XMLUtil.getWorkflowProcess(aps).getAllVariables();
            String apWRD = ap.toValue();
            XMLCollectionElement ce = (XMLCollectionElement)idToDFOrFP.get(apWRD);
            if(ce == null)
            {
                if(!fpMode.equals("IN"))
                {
View Full Code Here

                Tool t = (Tool) ts.get(0);
                str += "\n\tToolId=" + t.getId();
                Iterator it = t.getActualParameters().toElements().iterator();
                int i = 1;
                while (it.hasNext()) {
                    ActualParameter ap = (ActualParameter) it.next();
                    str += "\n\t   Ap" + (i++) + "=" + ap.toValue();
                }
            }
            System.err.println("Activity data for " + act + " is:" + str);
        } else {
            if (el instanceof XMLSimpleElement) {
View Full Code Here

TOP

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

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.