Java XML Node Value Check isSynchronousInvoke(Node invoke)

Here you can find the source of isSynchronousInvoke(Node invoke)

Description

Checks whether an invoke activity is synchronous or not.

License

Open Source License

Parameter

Parameter Description
invoke a parameter

Declaration

public static boolean isSynchronousInvoke(Node invoke) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

import org.w3c.dom.Node;

public class Main {
    /**/*  w  ww . ja v a 2s  .  co  m*/
     * Checks whether an invoke activity is synchronous or not. That
     * depends on the definition of output data, either set via the 
     * attribute outputVariable or a toParts construct.
     * 
     * @param invoke
     * @return
     */
    public static boolean isSynchronousInvoke(Node invoke) {
        if (!invoke.getNodeName().equalsIgnoreCase("invoke"))
            return false;

        boolean isSynchronousInvoke = false;

        if (invoke.getAttributes().getNamedItem("outputVariable") != null)
            isSynchronousInvoke = true;

        for (Node child = invoke.getFirstChild(); child != null; child = child.getNextSibling()) {
            if (child.getNodeName().equalsIgnoreCase("toParts")) {
                isSynchronousInvoke = true;
            }
        }
        return isSynchronousInvoke;
    }
}

Related

  1. isOrphanNode(Node node)
  2. isReturnTag(Node node)
  3. isSimpleValueProperty(Node node)
  4. isSubTagExist(Node node, String tagName)
  5. isSuppressJoinFailure(Node node)
  6. isText(final Node n)
  7. isText(Node node)
  8. isText(Node node)
  9. isText(Node node)