示例#1
0
 @Atomic(mode = TxMode.WRITE)
 private void getBWInstances() {
   for (BWSpecification bwSpecification : BlendedWorkflow.getInstance().getSpecificationSet()) {
     for (BWInstance bwInstance : bwSpecification.getBwInstancesSet()) {
       this.bwInstances.addItem(bwInstance.getExternalId());
       this.bwInstances.setItemCaption(bwInstance.getExternalId(), bwInstance.getName());
     }
   }
 }
示例#2
0
 private void getGoals(BWInstance bwInstance) {
   GoalModelInstance goalModelInstance = bwInstance.getGoalModelInstance();
   for (AchieveGoal goal : goalModelInstance.getAchieveGoalsSet()) {
     if (goal.getGoalWorkItemsSet().size() > 0) {
       this.parentGoal.addItem(goal.getExternalId());
       this.parentGoal.setItemCaption(goal.getExternalId(), goal.getName());
     }
   }
 }