@Service @Property(name="process.label", value="Set Last Modified") public class AssetSetLastModifiedProcess extends AbstractAssetWorkflowProcess
AssetSetLastModifiedProcess
sets the last modified
properties of the Asset
. These are the
jcr:lastModified and jcr:lastModifiedBy
Properties
of Asset's Node and its MetaData
"dc:modified" value.
In addition custom properties for the modification date and modifier can be set.
Arguments:
Prefix | Description | Example |
relativeLastModifiedPath: | A path pointing to a Property that may store a
Calendar . The Asset's Content Node will be take as
root for the relative Path |
relativeLastModifiedPath:myModificationDate |
relativeLastModifiedByPath: | A path pointing to a Property that may store a
String. The Asset's Content Node will be take as root for the relative Path |
relativeLastModifiedByPath:myModifier |
AbstractAssetWorkflowProcess
Modifier and Type | Class and Description |
---|---|
static class |
AssetSetLastModifiedProcess.Arguments
The available arguments to this process implementation.
|
TYPE_JCR_PATH
Constructor and Description |
---|
AssetSetLastModifiedProcess() |
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