Package com.day.cq.dam.core.process
Class DeleteDamAssetProcess
- java.lang.Object
-
- com.day.cq.dam.commons.process.AbstractAssetWorkflowProcess
-
- com.day.cq.dam.core.process.DeleteDamAssetProcess
-
- All Implemented Interfaces:
WorkflowProcess
@Service @Property(name="process.label", value="Delete Dam Asset") public class DeleteDamAssetProcess extends AbstractAssetWorkflowProcess
TheDeleteDamAssetProcess
will delete the file in the /var/dam when the asset in the /content/dam location got deleted. Deletes anItem
for the Payload under the following condition:
The Payloads relative path to a given source root exists in a given destination branch.Example with the following workflow step arguments:
/content/dam/, /var/dam/
If the Payload points to /content/dam/geometrixx/buildings, The Process checks if an
Item
exists at /var/dam/geometrixx/buildings. If there is an Item and this Item is not involved in a Workflowm, it will be deleted.Arguments:
Index: Name: Description Example 0 Source Root Absolute Path the Payload's relative path should be calculated
NOTE:The root must end with an / character/content/dam/ 1 Destination Root Absolute Path the matching Item to the Payload should be search for
NOTE:The root must end with an / character/var/dam/ - See Also:
AbstractAssetWorkflowProcess
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
DeleteDamAssetProcess.Arguments
The available arguments to this process implementation.
-
Field Summary
-
Fields inherited from class com.day.cq.dam.commons.process.AbstractAssetWorkflowProcess
TYPE_JCR_PATH
-
-
Constructor Summary
Constructors Constructor Description DeleteDamAssetProcess()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String[]
buildArguments(MetaDataMap metaData)
void
execute(WorkItem workItem, WorkflowSession workflowSession, MetaDataMap metaData)
Executes a new Java process with the given
andWorkItem
.WorkflowSession
-
-
-
Method Detail
-
execute
public void execute(WorkItem workItem, WorkflowSession workflowSession, MetaDataMap metaData) throws WorkflowException
Description copied from interface:WorkflowProcess
Executes a new Java process with the given
andWorkItem
.WorkflowSession
- Parameters:
workItem
- The
that defines the newly startedWorkItem
JavaProcessNew
.workflowSession
- The
that is used for starting theWorkflowSession
JavaProcess
.metaData
- Process specific arguments can be passed here- Throws:
WorkflowException
- Thrown in case something goes wrong during execution.
-
buildArguments
public java.lang.String[] buildArguments(MetaDataMap metaData)
-
-