def __init__(self, name=None, description=None, filename=None, svg=None): """ Constructor. :param svg: This provides the SVG representation of the workflow as an LXML node. (optional) """ super(BpmnProcessSpec, self).__init__(name=name, filename=filename) self.end = _EndJoin(self, '%s.EndJoin' % (self.name)) end = Simple(self, 'End') end.follow(self.end) self.svg = svg self.description = description