_context = new ArrayList<SimulationContextFacade>();
if (_selection.equals("0.1")) {
_ustep = getProjectElementService().getFirstStep(_mystudy);
- }
- _ustep.setActor(_cuser);
+ }
+ _ustep.setActor(_cuser);
if ((_involving.isEmpty()) || (_involving.get(0).getOwnerStudy().getIndex()
!= _ustep.getOwnerStudy().getIndex())) {
_involving.clear();
public void setMystudy(final Study mystudy) {
this._mystudy = mystudy;
}
+
+ /**
+ * Update the current step.
+ *
+ */
+ public final void updateCurrentStep() {
+ setupPreviousToSelectedSteps();
+ _ustep = _involving.get(_involving.size() - 1);
+ }
}
\ No newline at end of file
File upfile = commonInitialize(Constants.TRUE);
_mystudy = getOpenStudy();
+ _mystudy.updateCurrentStep();
_defuses = new ArrayList<Document>();
-
+
Publication tag = _mystudy.getSelectedStep().getDocument(
Integer.valueOf(_index));
Document doc = tag.value();