@Service @Property(name="process.label", value="Delete Dam Asset") public class DeleteDamAssetProcess extends AbstractAssetWorkflowProcess
DeleteDamAssetProcess
will delete the file in the /var/dam
when the asset in the /content/dam location got deleted. Deletes an
Item
for the Payload under the following condition: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/ |
AbstractAssetWorkflowProcess
Modifier and Type | Class and Description |
---|---|
static class |
DeleteDamAssetProcess.Arguments
The available arguments to this process implementation.
|
TYPE_JCR_PATH
Constructor and Description |
---|
DeleteDamAssetProcess() |
Modifier and Type | Method and Description |
---|---|
java.lang.String[] |
buildArguments(MetaDataMap metaData) |
void |
execute(WorkItem workItem,
WorkflowSession workflowSession,
MetaDataMap metaData)
Executes a new Java process with the given
and . |
public void execute(WorkItem workItem, WorkflowSession workflowSession, MetaDataMap metaData) throws WorkflowException
WorkflowProcess
WorkItem
and WorkflowSession
.workItem
- The WorkItem
that defines the newly
started JavaProcessNew
.workflowSession
- The WorkflowSession
that is used for starting the JavaProcess
.metaData
- Process specific arguments can be passed hereWorkflowException
- Thrown in case something goes wrong during execution.public java.lang.String[] buildArguments(MetaDataMap metaData)
Copyright © 2010 - 2020 Adobe. All Rights Reserved