def serialize(self, serializer):
return serializer.serialize_pathattrib(self)<EOL>
Serializes the instance using the provided serializer.

:type  serializer: :class:`SpiffWorkflow.serializer.base.Serializer`
:param serializer: The serializer to use.
:rtype:  object
:returns: The serialized object.