private void writeAssignments()
   {
      Allocations allocations = m_factory.createAllocations();
      m_plannerProject.setAllocations(allocations);

      List<Allocation> allocationList = allocations.getAllocation();
      for (ResourceAssignment mpxjAssignment : m_projectFile.getResourceAssignments())
      {
         Allocation plannerAllocation = m_factory.createAllocation();
         allocationList.add(plannerAllocation);

         plannerAllocation.setTaskId(getIntegerString(mpxjAssignment.getTask().getUniqueID()));
         plannerAllocation.setResourceId(getIntegerString(mpxjAssignment.getResourceUniqueID()));
         plannerAllocation.setUnits(getIntegerString(mpxjAssignment.getUnits()));

         m_eventManager.fireAssignmentWrittenEvent(mpxjAssignment);
      }
   }
private void writeAssignments ( ) { Allocations allocations = m_factory . createAllocations ( ) ; m_plannerProject . setAllocations ( allocations ) ; List < Allocation > allocationList = allocations . getAllocation ( ) ; for ( ResourceAssignment mpxjAssignment : m_projectFile . getResourceAssignments ( ) ) { Allocation plannerAllocation = m_factory . createAllocation ( ) ; allocationList . add ( plannerAllocation ) ; plannerAllocation . setTaskId ( getIntegerString ( mpxjAssignment . getTask ( ) . getUniqueID ( ) ) ) ; plannerAllocation . setResourceId ( getIntegerString ( mpxjAssignment . getResourceUniqueID ( ) ) ) ; plannerAllocation . setUnits ( getIntegerString ( mpxjAssignment . getUnits ( ) ) ) ; m_eventManager . fireAssignmentWrittenEvent ( mpxjAssignment ) ; } }
This method writes assignment data to a Planner file.