April 8, 2020
Estimated Post Reading Time ~

Set Replication Status

Purpose
Sets the cq:lastReplicated, cq:lastReplicateBy and cq:lastReplicatedAction on the payload to the values provided in the Workflow process’s PROCESS_ARGS.

During asset migrations, after using a tool like VLT-RCP to transfer assets to a puvblish server, this process can be used in conjunction with Bulk Workflow Manager to mark the assets that were VLT’ed over as replicated.

How to Use
A new Workflow Process step that executes Set Replication Status can be added to a workflow model, and the WF Processes Process ARGS can be supplied as defined below.
Workflow process step

Process Args Options
Set the Workflow Process Steps’ PROCESS_ARGS to a line break-delimited list of property pairs, which are in turn delimited by =.
  • replicationAction
    • The replication action to use in the replication status property
    • Options: ACTIVATED, DEACTIVATED, CLEAR
      • CLEAR will remove all replication state from the resource (including replication date, and replicated by)
    • Required field. No default provided.
  • replicationDate
    • The date/time to use in the replicated at property
    • Accepts format: yyyy-MM-dd’T’HH:mm
    • Defaults to Now
  • replicatedBy
    • The user name to use in the replicated by property
    • Defaults to ‘migration’
Example:
replicationDate = 2017 - 01 - 20 T14: 30
replicatedBy = ireasor

replicationAction = ACTIVATED

Source: https://adobe-consulting-services.github.io/acs-aem-commons/features/workflow-processes/set-replication-status/index.html


By aem4beginner

No comments:

Post a Comment

If you have any doubts or questions, please let us know.