@SPMonkey
In java you can get payload as below and send email
https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/aem-6-5-workflow-notification/td-p/417481
@Override
public void execute(WorkItem workItem, WorkflowSession workflowSession, MetaDataMap metaDataMap) {...