AEM 6.5 Restrict workflow initiation on assets in assets console

Avatar

Avatar

cquser1

Avatar

cquser1

cquser1

08-09-2019

Hi All,

For an asset placed under DAM[say http://localhost:4502/assets.html/content/dam ], for which certain mandatory metadata fields are not provided, we want to prevent user from triggering a workflow from timeline[i.e, on click of "Start" in timeline it should throw alert workflow cannot be started due to mandatory fields not filled and workflow should not get initiated]

Any thoughts on how to do this will be really helpful. Tried looking for some reference code, but could not find any.

Any pointers/reference code will be really helpful.

Below is timeline pic in bottom left corner in http://localhost:4502/assets.html/content/dam from where workflow is initiated, after selection of asset.

Workflow timeline.png

arunpatidar26​ Any sample code/reference will be helpful.

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar

Arun_Patidar

MVP

Total Posts

3.0K

Likes

1.1K

Correct Reply

840

Avatar

Arun_Patidar

MVP

Total Posts

3.0K

Likes

1.1K

Correct Reply

840
Arun_Patidar
MVP

08-09-2019

please check sample code at Make workflow title field mandatory

Answers (1)

Answers (1)

Avatar

Avatar

cquser1

Avatar

cquser1

cquser1

09-09-2019

Hi Arun Patidar​,

Thank you. That helped.