User Assignment in Custom Workflows | Community
Skip to main content
October 16, 2015
Solved

User Assignment in Custom Workflows

  • October 16, 2015
  • 9 replies
  • 2327 views

Hi,

    i created custom workflow and assigned newly created user to work Item.During testing I am getting Exception in logs states that 

com.adobe.granite.workflow.WorkflowException: Cannot add WorkItem to nobody's inbox at com.adobe.granite.workflow.core.jcr.WorkItemManager.addWorkItem(WorkItemManager.java:125) at com.adobe.granite.workflow.core.jcr.WorkItemManager.addWorkItem(WorkItemManager.java:98) at com.adobe.granite.workflow.core.job.JobHandler.process(JobHandler.java:133) at org.apache.sling.event.jobs.JobUtil$1.run(JobUtil.java:365) at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) Caused by: javax.jcr.ItemExistsException: node2_etc_workflow_instances_2015-08-11_model_106121726446863

It is not properly assigned to the user.Verified under respective user inbox.

I created user under workflow-users group which will be the built-in group of AEM having access to create/modify/delete under workflow folder.Please guide me how to proceed with this.

About Work Item: I created project Task component under workflow and assigned to new user.

 

Thanks!

 

 

Kirithi

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 WillMc1

Hi,

Which step is failing?  The "project task" step only works if the worklfow was started from a project and has some metadata setup in the workflow to direct it to the project.

Will

9 replies

Lokesh_Shivalingaiah
New Participant
October 16, 2015

Hi,

can you make sure the user has the ACLs for the notifications

WillMc1Accepted solution
Employee
October 16, 2015

Hi,

Which step is failing?  The "project task" step only works if the worklfow was started from a project and has some metadata setup in the workflow to direct it to the project.

Will

smacdonald2008
New Participant
October 16, 2015

what CQ version are you using. Can you also paste a pic of your workflow model. 

October 16, 2015

Hi,

    I am using CQ-6.0.0 version.

    [img]PrjtTaskStep.JPG[/img]  ; [img]WorkflowSteps.JPG[/img]

    Under ACL for the newly created group under new user it is having jcr:read privilege.

    

   Thanks!

 

  Kirithi

October 16, 2015

Thanks Will. I have modified project task step to participant step.

New Participant
October 16, 2015

Hi,

Try providing read/write/modify/delete permissions to /etc/workflow/instances folder. It should work.

Thanks!

Lokesh_Shivalingaiah
New Participant
October 16, 2015

Hi, give write privilage aswell and try

October 16, 2015

Hi,

    I tried giving above permissions but it is not working.I am using Project Task Component in my model.

    Is it correct to use the component in the model for taking decisions? Based on task action I am deciding next steps.

   Thanks!

 

  Kirithi

New Participant
October 16, 2015

Try Goto Step for switching tasks. Write a simple ECMA scripts to have the checks. Sample ECMA script for reference

function check() { var path = workflowData.getPayload().toString() + "/jcr:content/workflowdata"; var node = jcrSession.getItem(path); var reviewvalue = ""; if (node.hasProperty("review")) { reviewvalue = node.getProperty("review").getString(); } var expectedString ="/home/groups/project/group_reviewers"; if (reviewvalue.indexOf(expectedString) == 0){ return false; } else { return true; } }