Package com.day.cq.wcm.workflow.process
Class ReplicatePageProcess
- java.lang.Object
-
- com.day.cq.wcm.workflow.process.ReplicatePageProcess
-
- All Implemented Interfaces:
WorkflowProcess
- Direct Known Subclasses:
ActivatePageProcess
,DeactivatePageProcess
,ReverseReplicateProcess
public abstract class ReplicatePageProcess extends java.lang.Object implements WorkflowProcess
This abstractReplicatePageProcess
class serves as the basis for all replication specificJavaProcess
classes, like activate, deactivate...
This Process starts the Replicator with the type provided by the implementing ClassesgetReblicationType()-method
of payloads of type path or uuid
This process checks permissions.
In case theSession
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:- replicateAsParticipant
- Boolean flag indicating if the replication should be performed under the context of the latest participant, Default is
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 totrue
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.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
TYPE_JCR_PATH
static java.lang.String
TYPE_JCR_UUID
-
Constructor Summary
Constructors Constructor Description ReplicatePageProcess()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description void
execute(WorkItem workItem, WorkflowSession workflowSession, MetaDataMap args)
Executes a new Java process with the given
andWorkItem
.WorkflowSession
abstract ReplicationActionType
getReplicationType()
Specifies the
for which this class is designed for.ReplicationActionType
-
-
-
Field Detail
-
TYPE_JCR_PATH
public static final java.lang.String TYPE_JCR_PATH
- See Also:
- Constant Field Values
-
TYPE_JCR_UUID
public static final java.lang.String TYPE_JCR_UUID
- See Also:
- Constant Field Values
-
-
Method Detail
-
execute
public void execute(WorkItem workItem, WorkflowSession workflowSession, MetaDataMap args) throws WorkflowException
Description copied from interface:WorkflowProcess
Executes a new Java process with the given
andWorkItem
.WorkflowSession
- Specified by:
execute
in interfaceWorkflowProcess
- Parameters:
workItem
- The
that defines the newly startedWorkItem
JavaProcessNew
.workflowSession
- The
that is used for starting theWorkflowSession
JavaProcess
.args
- Process specific arguments can be passed here- Throws:
WorkflowException
- Thrown in case something goes wrong during execution.- See Also:
WorkflowProcess.execute(com.day.cq.workflow.exec.WorkItem, com.day.cq.workflow.WorkflowSession, com.day.cq.workflow.metadata.MetaDataMap)
-
getReplicationType
public abstract ReplicationActionType getReplicationType()
Specifies the
for which this class is designed for.ReplicationActionType
- Returns:
ReplicationActionType
-
-