Package de.danet.an.workflow.api

Examples of de.danet.an.workflow.api.FormalParameter.mode()


                    Element binding
                        = doc.createElementNS(XMLUtil.XMLNS_XFORMS, "bind");
                    binding.setAttribute("id", applicationId + ":" + fp.id());
                    binding.setAttribute
                        ("nodeset", "ActualParameter[@name='" + fp.id() + "']");
                    if (fp.mode() == FormalParameter.Mode.IN) {
                        binding.setAttribute ("readonly", "true()");
                    }
                    if (fp.type().equals(Date.class)) {
                        binding.setAttribute ("type", "date");
                    }
View Full Code Here


                if (formalParameters[i].id().equals(name)) {
                    fp = formalParameters[i];
                    break;
                }
            }
            if (fp == null || fp.mode().equals(FormalParameter.Mode.IN)) {
                continue;
            }
            if (XPDLUtil.isXMLType(fp.type())) {
                SAXEventBufferImpl saxVal = new SAXEventBufferImpl();
                try {
View Full Code Here

      String actParam = ((String)actualParams.get(index)).trim();
      if (callerFpMap.containsKey(actParam)) {
    // check the mode of the formal parameter of the calling
    // process
    String callerParamMode = (String)callerFpMap.get(actParam);
    if (callerParamMode.indexOf(fp.mode().toString()) == -1){
        eh.add (new PrioritizedMessage
          (PrioritizedMessage.Priority.ERROR, bundleBase
           + "#procdef.activity.subflow.parammode.notmatched",
           new Object [] {
        subFlowId, actParam, callerParamMode,
View Full Code Here

        eh.add (new PrioritizedMessage
          (PrioritizedMessage.Priority.ERROR, bundleBase
           + "#procdef.activity.subflow.parammode.notmatched",
           new Object [] {
        subFlowId, actParam, callerParamMode,
        fp.mode().toString(), activityId,
        processId}));
        return false;
    }
      }
      if (procdataMap.containsKey(actParam)) {
View Full Code Here

        return false;
    }
      }
      if (procdataMap.containsKey(actParam)) {
                boolean compat = true;
                if (fp.mode().equals(FormalParameter.Mode.IN)
                    || fp.mode().equals(FormalParameter.Mode.INOUT)) {
                    compat = typeCompatible
                        (fp.type(), XPDLUtil.extractDataType
                         (((ProcData)procdataMap.get(actParam)).dataType));
                }
View Full Code Here

    }
      }
      if (procdataMap.containsKey(actParam)) {
                boolean compat = true;
                if (fp.mode().equals(FormalParameter.Mode.IN)
                    || fp.mode().equals(FormalParameter.Mode.INOUT)) {
                    compat = typeCompatible
                        (fp.type(), XPDLUtil.extractDataType
                         (((ProcData)procdataMap.get(actParam)).dataType));
                }
                if (fp.mode().equals(FormalParameter.Mode.OUT)
View Full Code Here

                    || fp.mode().equals(FormalParameter.Mode.INOUT)) {
                    compat = typeCompatible
                        (fp.type(), XPDLUtil.extractDataType
                         (((ProcData)procdataMap.get(actParam)).dataType));
                }
                if (fp.mode().equals(FormalParameter.Mode.OUT)
                    || fp.mode().equals(FormalParameter.Mode.INOUT)) {
                    compat = compat && typeCompatible
                        (XPDLUtil.extractDataType
                         (((ProcData)procdataMap.get(actParam)).dataType),
                         fp.type());
View Full Code Here

                    compat = typeCompatible
                        (fp.type(), XPDLUtil.extractDataType
                         (((ProcData)procdataMap.get(actParam)).dataType));
                }
                if (fp.mode().equals(FormalParameter.Mode.OUT)
                    || fp.mode().equals(FormalParameter.Mode.INOUT)) {
                    compat = compat && typeCompatible
                        (XPDLUtil.extractDataType
                         (((ProcData)procdataMap.get(actParam)).dataType),
                         fp.type());
                }
View Full Code Here

           + "#procdef.activity.subflow"
           + ".paramdatatype.notmatched", errDatas));
        return false;
    }
      } else {
    if (fp.mode() != FormalParameter.Mode.IN) {
        eh.add
      (new PrioritizedMessage
       (PrioritizedMessage.Priority.ERROR, bundleBase
        + "#procdef.activity.subflow.datanotfound",
        new Object[] {subFlowId, actParam, activityId,
View Full Code Here

  try {
      ProcessData pd = new DefaultProcessData ();
      Set items = new HashSet (result.keySet());
      for (int i = 0; i < fps.length; i++) {
    FormalParameter fp = fps[i];
    if (fp.mode() == FormalParameter.Mode.IN) {
        continue;
    }
    Object actParam = actualParameters()[i];
    if (!result.containsKey(fp.id())) {
        throw new InvalidDataException
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.