Beispiel #1
0
 public StepAPI step(String id, Object... objects) {
   currentStep = currentFlow.add(id, objects);
   if (steps.containsKey(id)) {
     throw new ReqPlayException("Step already exists:" + id);
   }
   steps.put(currentStep.getId(), currentStep);
   return new StepAPI(currentStep);
 }
Beispiel #2
0
 public List<ReqItem> getReferences() {
   List<ReqItem> list = new ArrayList<ReqItem>();
   if (feature != null) {
     list.add(feature);
   }
   if (primaryActor != null) {
     list.add(primaryActor);
   }
   for (Actor actor : actors) {
     list.add(actor);
   }
   if (extended != null) {
     list.add(extended);
   }
   for (Step step : steps.values()) {
     list.addAll(step.getReferences());
   }
   return list;
 }