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
This abstract
This Process starts the Replicator with the type provided by the implementing Classes
This process checks permissions.
In case the
ReplicatePageProcess class serves as the basis for
all replication specific JavaProcess classes, like activate,
deactivate...This Process starts the Replicator with the type provided by the implementing Classes
getReblicationType()-method of payloads of type path or uuidThis process checks permissions.
In case the
Session 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 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 -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidexecute(WorkItem workItem, WorkflowSession workflowSession, MetaDataMap args) Executes a new Java process with the givenandWorkItem.WorkflowSessionabstract ReplicationActionTypeSpecifies thefor which this class is designed for.ReplicationActionType
-
Field Details
-
TYPE_JCR_PATH
- See Also:
-
TYPE_JCR_UUID
- See Also:
-
-
Constructor Details
-
ReplicatePageProcess
public ReplicatePageProcess()
-
-
Method Details
-
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:
-
getReplicationType
Specifies thefor which this class is designed for.ReplicationActionType- Returns:
ReplicationActionType
-