InternalWorkingMemory wm = (InternalWorkingMemory) context.get( WORKING_MEMORY );
for ( DslStep step : steps ) {
String name = step.getName();
Object object = this.steps.get( name );
if ( object != null && object instanceof Step ) {
Step stepImpl = (Step) object;
try {
stepImpl.execute( context,
step.getCommands() );
} catch ( Exception e ) {
e.printStackTrace();
throw new IllegalArgumentException( "line " + step.getLine() + ": unable to execute step " + step,
e );