Provides utilities for obtaining XPath instances which are "good-to-go" with access to the Workflow
namespace and custom XPath functions.
author: ewestfal
A utility to extract the WorkflowFunctionResolver from the given XPath instances. If the XPath instance
does not contain a WorkflowFunctionResolver, then this method will throw a WorkflowRuntimeException.
throws: WorkflowRuntimeException - if the given XPath instance does not contain a WorklflowFunctionResolver
hasWorkflowFunctionResolver
public static boolean hasWorkflowFunctionResolver(XPath xPath)(Code)
Returns true if the given XPath instance has a WorkflowFunctionResolver, false otherwise.
Creates a new XPath instances and initializes it with the WorkflowNamespaceContext and the
WorkflowFunctionResolver. Also sets the root node on the WorkflowFunctionResolver to
the given Node. This is required for some of the functions in the function resolver
to perform properly.