<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def addChildren(self, child_ids):
 """Add children to current workitem :param child_ids: a :class:`list` contains the children workitem id/number (integer or equivalent string) """


        if not hasattr(child_ids, "__iter__"):
            error_msg = "Input parameter 'child_ids' is not iterable"
            self.log.error(error_msg)
            raise exception.BadValue(error_msg)

        self.log.debug("Try to add children <Workitem %s> to current "
                       "<Workitem %s>",
                       child_ids,
                       self)
        self._addChildren(child_ids)
        self.log.info("Successfully add children <Workitem %s> to current "
                      "<Workitem %s>",
                      child_ids,
                      self)