Here you can find the source of isSynchronousInvoke(Node invoke)
Parameter | Description |
---|---|
invoke | a parameter |
public static boolean isSynchronousInvoke(Node invoke)
//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; } }