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 abstractReplicatePageProcessclass serves as the basis for all replication specificJavaProcessclasses, like activate, deactivate...
This Process starts the Replicator with the type provided by the implementing ClassesgetReblicationType()-methodof payloads of type path or uuid
This process checks permissions.
In case theSessionstarting 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 totruethe 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.StringTYPE_JCR_PATHstatic java.lang.StringTYPE_JCR_UUID
-
Constructor Summary
Constructors Constructor Description ReplicatePageProcess()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voidexecute(WorkItem workItem, WorkflowSession workflowSession, MetaDataMap args)Executes a new Java process with the givenandWorkItem.WorkflowSessionabstract ReplicationActionTypegetReplicationType()Specifies thefor 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:WorkflowProcessExecutes a new Java process with the givenandWorkItem.WorkflowSession- Specified by:
executein interfaceWorkflowProcess- Parameters:
workItem- Thethat defines the newly startedWorkItemJavaProcessNew.workflowSession- Thethat is used for starting theWorkflowSessionJavaProcess.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 thefor which this class is designed for.ReplicationActionType- Returns:
ReplicationActionType
-
-