I have modified the DAM Update Asset Workflow and now we have a situation where the workflow stops in between and hence the asset is no longer part of the workflow. Now I have written a code to start the workflow if the asset is not in the workflow.
Now my question is, how do we check if the asset is a part of the workflow or not. I will start the workflow only if the asset is not a part of the workflow. Please help me with the java code.
//Check if asset is not in WorkFlow --- 1
{
//start the workflow
invokeWorkFlow(WORKFLOWPATH,assetMetadatPath,workflowSession);
}else{
//do nothing
}
My question is for point 1.