2. just like before listen, you can add steps after respond, and have your step next got to listen
1. on each step there is a 'next' step config.. in my vsm. I build the content and then let the normal VSM responder handle it.
I fill in properties that are used in the selected response message.
3. there is nothing built in to notify the VSM of shutdown.. I ended up writing a listener class
you can see this in the lisa sdk javadoc
import com.itko.lisa.test.TestEvent;
import com.itko.lisa.test.TestEventListener;
import com.itko.lisa.test.TestExec;
public class TestListener implements TestEventListener{
private TestExec ts=null;
public TestListener(TestExec t)
{
ts=t;
ts.log("listener constructed");
}
@Override
public void testEvent(TestEvent arg0) throws Exception {
// TODO Auto-generated method stub
//ts.log("event fired");
if(arg0.getEventId()==TestEvent.EVENT_NORMALEND||
arg0.getEventId()==TestEvent.EVENT_ABEND||
arg0.getEventId()==TestEvent.EVENT_STOPTESTSIGNAL
)
{
if(ts!=null)
ts.log("end event fired");
//--> call shutdown handler ---- here
}
}
}