parameters: (self, explanation)
return_statement: return max(date_list)
docstring: Returns the date of completion of business path in the
      context of the explanation. The completion date of the Business
      Path is the max date of all simulation movements which are
      related to the Business Link and which are part of the explanation.
  
      explanation -- the Order, Order Line, Delivery or Delivery Line which
                     implicitely defines a simulation subtree and a union
                     business process.
docstring_summary: Returns the date of completion of business path in the
      context of the explanation. The completion date of the Business
      Path is the max date of all simulation movements which are
      related to the Business Link and which are part of the explanation.
docstring_tokens: Returns the date of completion of business path in the context of the explanation . The completion date of the Business Path is the max date of all simulation movements which are related to the Business Link and which are part of the explanation .
function: def getCompletionDate(self, explanation):
      """Returns the date of completion of business path in the
      context of the explanation. The completion date of the Business
      Path is the max date of all simulation movements which are
      related to the Business Link and which are part of the explanation.
  
      explanation -- the Order, Order Line, Delivery or Delivery Line which
                     implicitely defines a simulation subtree and a union
                     business process.
      """
      date_list = []
  
      # First, let us try to find simulation movements in simulation
      # (hoping that it is already built)
      for movement in self._getExplanationRelatedSimulationMovementValueList(explanation):
        date_list.append(self.getMovementCompletionDate(movement))
  
      # Next, try to find delivery lines or cells which may provide
      # a good definition of completion date.
      if not date_list:
        for movement in self._getExplanationRelatedMovementValueList(explanation):
          date_list.append(self.getMovementCompletionDate(movement))
  
      return max(date_list)
function_tokens: def getCompletionDate ( self , explanation ) : date_list = [ ] # First, let us try to find simulation movements in simulation # (hoping that it is already built) for movement in self . _getExplanationRelatedSimulationMovementValueList ( explanation ) : date_list . append ( self . getMovementCompletionDate ( movement ) ) # Next, try to find delivery lines or cells which may provide # a good definition of completion date. if not date_list : for movement in self . _getExplanationRelatedMovementValueList ( explanation ) : date_list . append ( self . getMovementCompletionDate ( movement ) ) return max ( date_list )