|
|
@ -15,7 +15,9 @@ public class TaskSampleAdd extends DiTaskBase { |
|
|
|
private String addStatus = "waiting"; |
|
|
|
|
|
|
|
@Override |
|
|
|
public void run() { |
|
|
|
protected void execute() { |
|
|
|
this.setStatus(TaskStatus.RUNNING); |
|
|
|
|
|
|
|
ResHeatingTubeRackSlotManager slotMan = this.getResourceManager(ResHeatingTubeRackSlotManager.class); |
|
|
|
ResHeatingTubeRackSlot slot = slotMan.allocFreeSlot(); |
|
|
|
MdbOperationLog.log(this.getUser(), "试管架%d : 放入样本", slot.index); |
|
|
@ -47,6 +49,7 @@ public class TaskSampleAdd extends DiTaskBase { |
|
|
|
|
|
|
|
// wait for user action |
|
|
|
private void waitForUserAction() { |
|
|
|
this.setRuntimeStatus("WAIT_FOR_PUTTING_CONFIRM"); |
|
|
|
synchronized (this.doneLock) { |
|
|
|
try { |
|
|
|
this.doneLock.wait(); |
|
|
@ -54,6 +57,7 @@ public class TaskSampleAdd extends DiTaskBase { |
|
|
|
throw new RuntimeException(e); |
|
|
|
} |
|
|
|
} |
|
|
|
this.clearRuntimeStatus(); |
|
|
|
} |
|
|
|
|
|
|
|
// close cover |
|
|
|