}
/***********************/
} else {
//fire the empty atomic task
YIdentifier id = null;
try {
id = (YIdentifier) atomicTask.t_fire(pmgr).iterator().next();
atomicTask.t_start(pmgr, id);
completeTask(pmgr, null, atomicTask, id, null);//atomicTask.t_complete(id);
} catch (YAWLException e) {
YProblemEvent pe =
new YProblemEvent(atomicTask,
e.getMessage(),
YProblemEvent.RuntimeError);
pe.logProblem(pmgr);
}
}
} else {
//fire the composite task
_busyTasks.add(task);
/*************************/
/* INSERTED FOR PERSISTANCE*/
busyTaskNames.add(task.getID());
// YPersistance.getInstance().updateData(this);
if (pmgr != null) {
pmgr.updateObject(this);
}
/****************************/
Iterator caseIDs = null;
try {
caseIDs = task.t_fire(pmgr).iterator();
} catch (YAWLException e) {
e.printStackTrace();
YProblemEvent pe =
new YProblemEvent(task,
e.getMessage(),
YProblemEvent.RuntimeError);
pe.logProblem(pmgr);
}
while (caseIDs.hasNext()) {
YIdentifier id = (YIdentifier) caseIDs.next();
try {
task.t_start(pmgr, id);
} catch (YSchemaBuildingException e) {
YProblemEvent f = new YProblemEvent(task,
e.getMessage(),