Skip to main content
GK-007
Level 9
Oct 16, 2015 2:28 AM UTC
Solved

Separate logger configuraiton for workflows

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.
GK-007
GK-007Accepted solution
Level 9
Oct 16, 2015 2:28 AM UTC

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
Oct 16, 2015 2:28 AM UTC

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

Translate
GK-007
GK-007Author
Level 9
Oct 16, 2015 2:28 AM UTC

Attached Permission Info.

Translate
GK-007
GK-007Author
Level 9
Oct 16, 2015 2:28 AM UTC

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)

Translate
Adobe Employee
Oct 16, 2015 2:28 AM UTC

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

Translate
smacdonald2008
Level 10
Oct 16, 2015 2:28 AM UTC

See this AEM topic:

Example: Create a Logger Workflow Step

Translate
edubey
Level 10
Oct 16, 2015 2:28 AM UTC

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]

Translate