Example usage for org.apache.commons.scxml2 Context get

List of usage examples for org.apache.commons.scxml2 Context get

Introduction

In this page you can find the example usage for org.apache.commons.scxml2 Context get.

Prototype

Object get(String name);

Source Link

Document

Get the value of this variable; delegating to parent.

Usage

From source file:org.onehippo.repository.scxml.AbstractAction.java

/**
 * @return the {@link SCXMLWorkflowData} from the {@link Context} of this action.
 * May only be called when invoked within the context of {@link #doExecute(ActionExecutionContext)}
 *//*w w w  . java  2s  .  c  o m*/
protected SCXMLWorkflowData getSCXMLWorkflowData() {
    Context context = tlContext.get();
    return context != null ? (SCXMLWorkflowData) context.get(SCXMLWorkflowData.SCXML_CONTEXT_KEY) : null;
}

From source file:org.onehippo.repository.scxml.AbstractAction.java

/**
 * @return the {@link SCXMLWorkflowContext} from the {@link Context} of this action.
 * May only be called when invoked within the context of {@link #doExecute(ActionExecutionContext)}
 *///from  w w w . j  av  a 2s . com
protected SCXMLWorkflowContext getSCXMLWorkflowContext() {
    Context context = tlContext.get();
    return context != null ? (SCXMLWorkflowContext) context.get(SCXMLWorkflowContext.SCXML_CONTEXT_KEY) : null;
}