wttech/gradle-aem-plugin

Allow to easily run any workflow at any repository path

pun-ky opened this issue · 0 comments

Imagine

sh gradlew instanceWorkflow \
 -Pinstance.workflow=dam/update_asset \
 -Pinstance.workflow.path=/content/dam/icons \
 -Pinstance.workflow.resourceType=dam:Asset
 -Pinstance.author

or shorthand

# whole dam
sh gradlew instanceWorkflow -Pinstance.workflow.dam_asset

# only subpath
sh gradlew instanceWorkflow -Pinstance.workflow.dam_asset=/content/dam/icons

-Pinstance.workflow.dam_asset - I was thinking to treat is a predefined config set as when used it will apply path to "/content/dam", resourceType to "dam:Asset" and workflow type accordingly but still any value from that config set still could be overridable