}
protected void addWorkitem(ProcessInstance instance, String defaultStatus) throws Exception{
if(instance instanceof SimulatorProcessInstance){
(new HumanActivitySimulator(this, (SimulatorProcessInstance)instance)).run();
return;
}
RoleMapping roleMapping = null;
try{