Creating an AEM asset programmatically on AEMaaCS using Java, but it fails to generate previews/renditions
We are programmatically creating an AEM DAM asset in AEM as a Cloud Service (AEMaaCS) using the Node API and adding required path and properties for assets.
Node childNode =JcrUtil.createPath(path, SyncAssetWithMetadataFromDAMConstants.SLING_ORSEREDFOLDER, DamConstants.NT_DAM_ASSET, session, true);
Node jcrContentNode = getOrCreateNode(childNode, SyncAssetWithMetadataFromDAMConstants.JCR_CONTENT, SyncAssetWithMetadataFromDAMConstants.NT_UNSTRUCTURED);
Node metadataNode = getOrCreateNode(jcrContentNode, SyncAssetWithMetadataFromDAMConstants.METADATA, SyncAssetWithMetadataFromDAMConstants.NT_UNSTRUCTURED);
..........
asset.setRendition(SyncAssetWithMetadataFromDAMConstants.ORIGINAL_RENDITION, binary, renditionProperties);If we manually reprocess the asset via the AEM UI, then the preview/renditions are generated correctly, and the asset becomes fully usable.
Que: Can we trigger the 'Asset Processor' custom workflow process step in a custom workflow and invoke it from our code after creating the asset? & In the screenshot, it was mentioned that this should be confirmed by the Adobe engineering team.

Any guidance on how to correctly integrate asset processing into our programmatic asset creation flow would be greatly appreciated!