@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()); } } }
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()); } } }