List of usage examples for org.apache.commons.scxml2 Context get
Object get(String name);
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; }