Apply workflow on the AEM Package | Community
Skip to main content
This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

2 replies

arunpatidar
Community Advisor
Community Advisor
July 24, 2018

Yes, you can do it with workflows.

you need to create steps/task which will get package/upload and approve install.

similar like curl

PACKAGES:

Upload a new package

        curl -u admin:admin -F package=@"name_of_package.zip" http://localhost:4505/crx/packmgr/service/.json/?cmd=upload

Install an existing package
        curl -u admin:admin -X POST http://localhost:4505/crx/packmgr/service/.json/etc/packages/export/name of package?cmd=install

Upload a package AND install
        curl -u admin:admin -F file=@"name of zip file" -F name="name of package"
        -F force=true -F install=true http://localhost:4505/crx/packmgr/service.jsp

Upload a package DO NOT install
        curl -u admin:admin -F file=@"name of zip file" -F name="name of package"
        -F force=true -F install=false http://localhost:4505/crx/packmgr/service.jsp

Rebuild an existing package in CQ
        curl -u admin:admin -X POST http://localhost:4505:/crx/packmgr/service/.json/etc/packages/name_of_package.zip?cmd=build

Download (the package)
        curl -u admin:admin http://localhost:4505/etc/packages/export/name_of_package.zip > name of local package file

Arun Patidar
edubey
Level 10
July 24, 2018

No, That's not the correct answer.

umamaheswariy46147403​, I am not sure what you are trying to achieve, can you elaborate your use case ?

Umamaheswari_Yakkala
Community Advisor
Community Advisor
September 12, 2018

Hi , We have use case where business wants to promote only few pages / few links for the production (few things handled by tech teams) .. request was need to package those changes from UAT and send for the approval .. so business just take a look at the package and approve.. then that package only goes to the production instead of approval first and package it to production. 

its kind of unique use case , approval workflow on package instead of resources.

Note: on each and individual pages and images we are having the approval workflow..

Please let me know if needed more details and please advise.

Thanks

Adobe Employee
July 24, 2018

You can create workflow packages from batch processing. See (1)

(1) : Starting Workflows