How to programmatically control the status of Uploaded Asset?
We have a custom Workflow where it move the asset from one location of the dam to other. Once after the move even workflow Status is completed. Asset Status would display as "In workflow" not "New"

Added purge event for workflow payload after the completion of the process. Still no go.
Any idea how to get rid of "In workflow" Status?
Workflow workflow = workItem.getWorkflow();
String workflowId = workflow.getId();
Dictionary<String, Object> properties = new Hashtable<>();
properties.put("EventType", "WorkflowPurgedEvent");
properties.put("WorkflowInstanceId", workflowId);
properties.put("payloadPath", runPath);
Event event = new Event("com/adobe/granite/workflow/event_purge", properties);
eventAdmin.postEvent(event);
Regards,
Mrudul