Asset Upload from a WorkflowProcess step on AEM as Cloud service
What is the recommended way to upload a file as a DAM asset from a workflow process step (WorkflowProcess) on AEM as Cloud service?
https://experienceleague.adobe.com/docs/experience-manager-cloud-service/assets/admin/developer-reference-material-apis.html?lang=en#use-cases-and-apis proposes open source upload libraries: https://github.com/adobe/aem-upload.
However I am not using HTTP API, I am generating a file and have a need to perform the upload within a workflow step, this happens entirely on the back-end.
Prior to Cloud we were using com.day.cq.dam.api.AssetManager createAsset method, but based on previous document, this is now deprecated. What is the official recommendation?
Thanks
