int count = 0 ;
final Iterator<Map.Entry<Mapping, Object>> variableEntryIter = variables.entrySet().iterator() ;
do
{
final Map.Entry<Mapping, Object> variableEntry = variableEntryIter.next() ;
final Mapping mapping = (Mapping)variableEntry.getKey() ;
final String name = mapping.getBpm() ;
setVariable(contextInstance, token, name, variableEntry.getValue()) ;
final Boolean isProcessScope = mapping.getIsProcessScope() ;
final boolean setScope = (isProcessScope == null ? defaultProcessScope : isProcessScope.booleanValue()) ;
if (setScope)
{
setVariable(contextInstance, token, ESB_ASYNC_SIGNAL_VARIABLE_NAMES + (count++), name) ;
}