Separate logger configuraiton for workflows | Community
Skip to main content
GK-007
Level 9
October 16, 2015
Solved

Separate logger configuraiton for workflows

  • October 16, 2015
  • 16 replies
  • 2969 views

Hi All,

I have custom workflow and we are seeing issues while it's running but we are not getting any relevant information in error.log.

I heard to configure a separate log for workflows we need to include out of the box workflow packages.

If anyone knows please give me the those out of box packages and i will configure a log.

Thanks,

Kishore

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 GK-007

Finally ,

I have solved this issue by following below steps.

And observed my instances folder is created with incorrect sling:resourceType not sure why it's creating like that.

http://aemtips.blogspot.in/2013_05_01_archive.html

Issue while initiating workflow

 

 

Problem: I've deleted 'instances' folder inside /etc/workflow/ directory.  When I initiate the workflow, the folder 'instances' is automatically created under /etc/workflow/ but the workflow is not triggered on the payload.

Solution:

  • Make sure to delete the instances folder.
  • Save the changes
  • Create a instances node of type sling:folder
  • To the instances node add a property sling:resourceType with value equal to ‘cq/workflow/components/instances’

        Also add property jcr:title Instances

  • Restart the workflow bundle from felix console or restart the instance    

16 replies

Adobe Employee
October 16, 2015

Hi,

when you go to "http://localhost:4502/crx/de/index.jsp#/etc/workflow/models/dam/dam_download_asset" open the "Access Control" tab and you will see which groups have permissions to edit the workflow.

Open your workflow and see what permissions your user has, I take it you are not logging in as an admin user?

Regards,

Opkar

GK-007
GK-007Author
Level 9
October 16, 2015

Attached Permission Info.

GK-007
GK-007Author
Level 9
October 16, 2015

Opkar Gill wrote...

Hi,

"we are seeing issues while it's running" What issues are you seeing? 

Create a new logger for "com.adobe.granite.workflow" and set the login level to trace

Regards,

Opkar

 

I making changes to my workflow and changes are not saving.Save button on workflow model GUI is always enabled.

seeing below exception

01.08.2015 10:31:22.569 *TRACE* [155.64.223.66 [1438446682530] GET /libs/cq/workflow/content/console/workflows.json HTTP/1.1] com.adobe.granite.workflow.core.WorkflowSessionImpl getModels called from:
java.lang.Exception: null
    at com.adobe.granite.workflow.core.WorkflowSessionImpl.getModels(WorkflowSessionImpl.java:329)
    at com.adobe.granite.workflow.core.WorkflowSessionImpl.getModels(WorkflowSessionImpl.java:260)
    at com.adobe.granite.workflow.core.WorkflowSessionImpl.getModels(WorkflowSessionImpl.java:246)
    at com.adobe.granite.workflow.console.servlet.WorkflowListServlet.doGet(WorkflowListServlet.java:90)
    at org.apache.sling.api.servlets.SlingSafeMethodsServlet.mayService(SlingSafeMethodsServlet.java:268)
    at org.apache.sling.api.servlets.SlingAllMethodsServlet.mayService(SlingAllMethodsServlet.java:139)
    at org.apache.sling.api.servlets.SlingSafeMethodsServlet.service(SlingSafeMethodsServlet.java:344)
    at org.apache.sling.api.servlets.SlingSafeMethodsServlet.service(SlingSafeMethodsServlet.java:375)
    at org.apache.sling.engine.impl.request.RequestData.service(RequestData.java:533)

Adobe Employee
October 16, 2015

Hi,

"we are seeing issues while it's running" What issues are you seeing? 

Create a new logger for "com.adobe.granite.workflow" and set the login level to trace

Regards,

Opkar

smacdonald2008
Level 10
October 16, 2015
edubey
Level 10
October 16, 2015

If you are writing custom java classes that work with your workflow, the you can create separate logger.

URL: http://localhost:4502/system/console/configMgr ( Refer Attached Image )

Please go through AEM Logging Documentation

[img]AEM Logging.png[/img]