@Service @Property(name="process.label", value="Extract Export Data") public class ExtractExportDataProcess extends java.lang.Object implements WorkflowProcess
Extracts the payload path and saves it as a sling:Folder property
PN_PAYLOAD
below a a predefined
destPath
provided as process argument. The sling:Folder node
name is a SHA-1 hexadecimal representation of the payload path. The node will
be created only if it does not exist already.
Process is only executed if the destPath
argument is provided
and the payload type is JCR_PATH.
Prefix | Example |
destPath | destPath:/var/dataexport/example |
Modifier and Type | Class and Description |
---|---|
static class |
ExtractExportDataProcess.Arguments
The available arguments to this process implementation.
|
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
PN_PAYLOAD |
Constructor and Description |
---|
ExtractExportDataProcess() |
Modifier and Type | Method and Description |
---|---|
void |
execute(WorkItem item,
WorkflowSession workflowSession,
MetaDataMap metaData)
Executes a new Java process with the given
and . |
public static final java.lang.String PN_PAYLOAD
public void execute(WorkItem item, WorkflowSession workflowSession, MetaDataMap metaData) throws WorkflowException
WorkflowProcess
WorkItem
and WorkflowSession
.execute
in interface WorkflowProcess
item
- 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.Copyright © 2010 - 2020 Adobe. All Rights Reserved