@Service @Property(name="service.description",value="Download selected asset(s).") @Property(name="process.label",value="Download Dam Asset") public class DownloadAssetProcess extends AbstractAssetWorkflowProcess
DownloadAssetProcess
will invoke the downloadasset service to process asset(s) download.Modifier and Type | Field and Description |
---|---|
AssetDownloadService |
assetDownloadService |
Externalizer |
externalizer |
SlingRepository |
slingRepository |
TYPE_JCR_PATH
Constructor and Description |
---|
DownloadAssetProcess() |
Modifier and Type | Method and Description |
---|---|
void |
execute(WorkItem workItem,
WorkflowSession workflowSession,
MetaDataMap metaData)
Executes a new Java process with the given
and . |
@Reference(cardinality=MANDATORY_UNARY, policy=STATIC) public AssetDownloadService assetDownloadService
@Reference(policyOption=GREEDY) public Externalizer externalizer
@Reference public SlingRepository slingRepository
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.Copyright © 2010 - 2020 Adobe. All Rights Reserved