self is not available in the uploadPublishWorkflow method. This would fail in runtime.