INNER CODE UNIT · Java
getSelfCompensation
jolie/jolie · jolie/src/main/java/jolie/ExecutionThread.java:133
public Process getSelfCompensation() {
return compMap.get( id );
}
/**
* Returns the termination/compensation handler for the specified sub-scope. The handler gets
* uninstalled as a result of this method.
*
* @param scopeName the scope name of the termination/compensation handler to retrieve
* @return the termination/compensation handler for the specified sub-scope
*/
public Process getCompensation( String scopeName ) {
Process p = compMap.get( scopeName );
if( p != null )
compMap.remove( scopeName );
return p;
}