How can I debug Workflow in AEM Cloud? | Community
Skip to main content
July 18, 2023
Solved

How can I debug Workflow in AEM Cloud?

  • July 18, 2023
  • 2 replies
  • 1838 views

Hi team, hope you're doing well.

Wanted to know if I can get some guidance on how to debug and understand why a workflow is not doing what is supposedly do.

Below you will find some screens with more details.

 

 

We are expecting that when this workflow runs it removes the asset from Brand Portal without requesting approval, but it does request it.

Is it possible to debug or see some logs of the behavior? We are using AEM Cloud.

Thanks in advance.

 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by DPrakashRaj

Thanks @dprakashraj - if you see the first workflow it does not have the waiting for unpublish step and it is still waiting for the approval. Is there any other config we need to use?


The workflow that you executed for the payload is schedule asset unpublish from brand portal that’s the reason it asking for approval

2 replies

DPrakashRaj
Community Advisor
Community Advisor
July 18, 2023

From cloud manager go to your program overview, click on 3 ellipses for the environment and select download logs. It will pop up a new windows for download logs. You can now download the logs from there. 
Remeber that there you can see log for 7 days, download the logs only for the day you interested 

by default it should go to aem error log if no specific log has been configured for this workflow 

nsoria1Author
July 18, 2023

Thanks a lot @dprakashraj - I have reviewed the logs but looks like nothing useful came in.

 

Let me share my current situation to see if someone more experienced can provide me guidance on where to approach the issue.

 

From our design of the workflow, it should un-publish the asset from Brand Portal without requesting approval to remove the asset from Brand Portal.

 

Do you know why it may be happening this?

Thanks.

DPrakashRaj
Community Advisor
DPrakashRajCommunity AdvisorAccepted solution
Community Advisor
July 19, 2023

Thanks @dprakashraj - if you see the first workflow it does not have the waiting for unpublish step and it is still waiting for the approval. Is there any other config we need to use?


The workflow that you executed for the payload is schedule asset unpublish from brand portal that’s the reason it asking for approval

Sid_Gour
July 19, 2023

Hi @nsoria1 ,

Looking at the Workflow model screenshot, seems like you are using the default OOTB model. Default model has the Waiting for unpublish step. Please remove this step and try once. 

 

For your other question  "As of the OOTB workflow, is it possible to rollback to the default version?"- yes, you can revert back to default. You will see the option Revert on the topwhen you select that model.

 

Thanks,