public abstract class ReplicatePageProcess extends java.lang.Object implements WorkflowProcess
ReplicatePageProcess
class serves as the basis for
all replication specific JavaProcess
classes, like activate,
deactivate...getReblicationType()-method
of payloads of type path or uuidSession
starting the
process is lacking the Privilege to replicate, an event of this topic
"com/day/cq/wcm/workflow/req/for/activation"
is send out. Listeners to this topic, may handle this situation.
Configuration
This process supports the following configuration arguments:
false
,
meaning the replication is performed as workflow-session-service-user. This process supports this configuration either as a dedicated process
arguments or as part of the generic PROCESS_ARGS argument. If set to true
the workflow model must have
a participant or dynamic participant step modeled ahead this replication process, to determine the participant. If no
participant can be determined, it falls back to workflow-session-service-user.
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
TYPE_JCR_PATH |
static java.lang.String |
TYPE_JCR_UUID |
Constructor and Description |
---|
ReplicatePageProcess() |
Modifier and Type | Method and Description |
---|---|
void |
execute(WorkItem workItem,
WorkflowSession workflowSession,
MetaDataMap args)
Executes a new Java process with the given
and . |
abstract ReplicationActionType |
getReplicationType()
Specifies the
for which this
class is designed for. |
public static final java.lang.String TYPE_JCR_PATH
public static final java.lang.String TYPE_JCR_UUID
public void execute(WorkItem workItem, WorkflowSession workflowSession, MetaDataMap args) throws WorkflowException
WorkflowProcess
WorkItem
and WorkflowSession
.execute
in interface WorkflowProcess
workItem
- The WorkItem
that defines the newly
started JavaProcessNew
.workflowSession
- The WorkflowSession
that is used for starting the JavaProcess
.args
- Process specific arguments can be passed hereWorkflowException
- Thrown in case something goes wrong during execution.WorkflowProcess.execute(com.day.cq.workflow.exec.WorkItem,
com.day.cq.workflow.WorkflowSession,
com.day.cq.workflow.metadata.MetaDataMap)
public abstract ReplicationActionType getReplicationType()
ReplicationActionType
for which this
class is designed for.ReplicationActionType
Copyright © 2010 - 2020 Adobe. All Rights Reserved