Search in sources :

Example 1 with FlowStackElement

use of org.mule.runtime.core.api.context.notification.FlowStackElement in project mule by mulesoft.

the class DefaultFlowCallStack method setCurrentProcessorPath.

/**
 * Adds a message processor path to the list of processors that were invoked as part of the processing of this stack's event.
 *
 * @param processorPath the path to mark as invoked.
 * @throws EmptyStackException if this stack is empty.
 */
public void setCurrentProcessorPath(String processorPath) {
    if (!innerStack.empty()) {
        FlowStackElement topElement = innerStack.pop();
        innerStack.push(new FlowStackElement(topElement.getFlowName(), processorPath));
    }
}
Also used : FlowStackElement(org.mule.runtime.core.api.context.notification.FlowStackElement)

Aggregations

FlowStackElement (org.mule.runtime.core.api.context.notification.FlowStackElement)1