DAM Asset Upload Workflow status
Hello All,
Is there a way to identify the workflow status of the asset, i.e> if renditions have been generated etc. I tried uploading an asset using assetManager.createAsset(), passing an inputstream, and then tried to identify the workflow status using the
WorkflowStatus wfStatus=assetResource.adaptTo(WorkflowStatus.class);
boolean isinWF = wfStatus.isInRunningWorkflow(false);
this always returned false.
I tried to use, thread.sleep(5000), but looks like thread.sleep(10000) works, but i want to use thread.sleep based on the workflow status.
Scenario, After successfully uploading the asset if the asset's hash value is different since the first upload, then assetmanager.createAsset should upload the new asset with the renditions displayed,
Please help