Not able to see Workflow Model in aem 6.5 | 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.
Best answer by Vijayalakshmi_S

Hi @tushaar_srivastava,

Workflow models rendering logic

In Classic UI is /libs/cq/workflow/components/console/models/options.json.jsp 

In Touch UI is /libs/cq/workflow/admin/console/components/datasource/modelsdatasource/modelsdatasource.jsp

Both retrieves models from WorkflowSession but former from com.day.cq.workflow.* API and latter using com.adobe.granite.workflow.*

 

Given that problem is in Touch UI alone, per the logic you should see a log message in error.log - "Error while retrieving workflow models." (Screenshot below)

Also you have mentioned that you have tried creating many new models, can you check where it got created. Is it under /var or /etc (if its fresh 6.5 instance, it should be in /var)

 

7 replies

Nikhil-Kumar
Community Advisor
Community Advisor
August 25, 2020

@tushaar_srivastava - Are you able to see it in classic version ?

tushaar_srivastava
Level 6
August 25, 2020
yes I am able to see all WF in classic Ui
vanegi
Adobe Employee
Adobe Employee
August 25, 2020

Hi @tushaar_srivastava,

Do you see any error in AEM error.log when you hit the workflow model screen, please share the logs?

 

Thanks!!

tushaar_srivastava
Level 6
August 25, 2020
I tried to refactor(beautify) this log but seems it is not accepting in comments. Could you please check this one
Vijayalakshmi_S
Vijayalakshmi_SAccepted solution
Level 10
August 25, 2020

Hi @tushaar_srivastava,

Workflow models rendering logic

In Classic UI is /libs/cq/workflow/components/console/models/options.json.jsp 

In Touch UI is /libs/cq/workflow/admin/console/components/datasource/modelsdatasource/modelsdatasource.jsp

Both retrieves models from WorkflowSession but former from com.day.cq.workflow.* API and latter using com.adobe.granite.workflow.*

 

Given that problem is in Touch UI alone, per the logic you should see a log message in error.log - "Error while retrieving workflow models." (Screenshot below)

Also you have mentioned that you have tried creating many new models, can you check where it got created. Is it under /var or /etc (if its fresh 6.5 instance, it should be in /var)

 

tushaar_srivastava
Level 6
August 25, 2020
it is under /var
Varun_Shakya
Community Advisor
Community Advisor
August 25, 2020
tushaar_srivastava
Level 6
August 26, 2020

Hi Team, I tried to clear error.log and checked, I have deleted one Workflow Model from CRX that was under /var and /conf folder and because of this manually deleting the model, affected on the WF Model screen as per attached above. when I checked log and created the same model in Local and uploaded it into the local where this error was coming, then it got resolved, still wondering by deleting the WF Model from /var & /conf from CRX how this affected?

knitshweta
Level 2
August 27, 2020

My first question is after deleting how did u create this model? Was it via code deployment or via workflow console?

Either way, when you create the model you will definitely see it in /conf.

You just have to make sure it exists in /var also.

If not, just open http://localhost:4502/cf#/conf/settings/workflow/models/my-model.html  

manually and save it. This will create a /var node then you will be able to see the model.

 

tushaar_srivastava
Level 6
August 27, 2020
My first question is after deleting how did u create this model? by going through WF console. but once I created a WF Model though WF console and can see the node created under /var and /conf and if manually we delete those WF through CRX in that case this WF Model console is blank. and when I again created the WF which I deleted in different Local and uploaded into the local where we were seeing issue, then it worked.
Level 2
September 15, 2022

Hello All,

 

I am also facing the same issue that not able to see any workflow model under touch UI. It is working in Classic UI.

http://localhost:4512/libs/cq/workflow/admin/console/content/models.html

 

Getting below error in the log:

+++++++++++++++++++++++++++++++++++++

15.09.2022 13:58:17.872 | ERROR | 127.0.0.1 [1663250297802] GET /libs/cq/workflow/admin/console/content/models.html HTTP/1.1 | org.apache.sling.engine.impl.SlingRequestProcessorImpl | service: Uncaught SlingException
java.lang.NullPointerException: null
at org.apache.jsp.libs.cq.workflow.admin.console.components.item.workflowmodel.card.card_jsp._jspService(card_jsp.java:502)
at org.apache.sling.scripting.jsp.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:725)
at org.apache.sling.scripting.jsp.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:502)
at org.apache.sling.scripting.jsp.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:449)
at org.apache.sling.scripting.jsp.JspScriptEngineFactory.callJsp(JspScriptEngineFactory.java:339)

+++++++++++++++++++++++++++++++++++++++

 

Any ideas how to get away with the issue

Level 2
September 16, 2022

Issue is now resolved for me....
There was one workflow model at my side wherein the design time path was not found properly under /conf which was creating the issue.