io.takari.bpm.api.ExecutionContext Maven / Gradle / Ivy
package io.takari.bpm.api;
import java.util.Map;
import java.util.Set;
/**
* The execution context. Provides access to the process variables.
*/
public interface ExecutionContext {
/**
* Key of latest handled @{BpmnError}. Can be accessed with @{code #getVariable(LAST_ERROR_KEY}.
*/
String LAST_ERROR_KEY = "lastError";
String PROCESS_BUSINESS_KEY = "__processBusinessKey";
Object getVariable(String key);
Map getVariables();
void setVariable(String key, Object value);
boolean hasVariable(String key);
void removeVariable(String key);
Set getVariableNames();
T eval(String expr, Class type);
Map toMap();
Object interpolate(Object v);
}