Accessing files from the DAM
New developer here, just wondering what the pathname I would use if I were to implement a workflow on a folder
or running a custom process step?
I'm guessing if were to implement the workflow on the asset it be:
WorkflowData workflowData = workItem.getWorkflowData();
if (workflowData.getPayloadType().equals(TYPE_JCR_PATH)) { String path = workflowData.getPayload().toString();
And to process arguments it be:
String pathFromArgument = args.get("PROCESS_ARGS", String.class);
Also if i were to process some assets and create a different file format of it, how would I store it?
Would I use the Asset API and create a rendition? Is there a pathname to specify when storing it or will it automatically populate in the DAM?
Thanks,
Ram