Is there a way to import / export tasks from different CQ instances?

I have two CQ instances, and between them I want to be able to import / export tasks.

For example:

In example 1, I see all the tasks by going to http://instance1/libs/cq/taskmanagement/content/taskmanager.html#/tasks/Delta

In example 2, I see all the tasks by going to http://instance2/libs/cq/taskmanagement/content/taskmanager.html#/tasks/Delta

There may be some scenarios in which I want to take all tasks from instance2 and add them as additional tasks to instance1 (on top of tasks that may already be installed).

Can this be done?

+7
osgi aem cq5 sling
source share
2 answers

Yes, you can do this using the package manager. Tasks are stored as nodes in the JCR repository, so you can create a package that will filter the nodes of the tasks that you want to transfer from one instance to another. For example, you can define a package with this filter definition to include all tasks:

 /etc/taskmanagement/tasks 

If you do not need all the tasks, you may need to define the filter (s) more narrowly to select only those that you want to include.

For example:

 /etc/taskmanagement/tasks/2015-05-04/Delta/TheTaskYouWantToMigrate 

Use a browser when defining a filter to find the tasks you want to enable.

enter image description here

For more information on using package manager, see Tutorial also shows how to create a package and add filters. Once you have created a package with filters for the tasks you want to include, then create a package and download it. On another instance, download the package you created and install it. You will then see the tasks that your first instance replicated to the second instance.

+1
source share

In addition to what Sean said, you can also use replication mechanisms to do your job and replicate the right nodes between any two instances.

0
source share

All Articles