All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.takari.bpm.api.ExecutionContext Maven / Gradle / Ivy

There is a newer version: 1.0.3
Show newest version
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);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy