cancel
Showing results for 
Search instead for 
Did you mean: 

Add item to existing workflow

gizmo16
Champ in-the-making
Champ in-the-making
I need help with update workflowTask, add file to existing workflow.

My code is:

      List<NodeRef> addNodes = new ArrayList<NodeRef>();      addNodes.add(addNodeRef);         Map<QName, List<NodeRef>> nodesAdd = new HashMap<QName, List<NodeRef>>();      nodesAdd.put(WorkflowModel.ASSOC_PACKAGE, addNodes);      workflowService.updateTask(currentTask.getId(), null, nodesAdd, null);  //nullpointer‍‍‍‍‍‍‍‍‍‍‍‍


- currentTask is not null, is actual task in workflow, where I want add item
- addNodes is list actual NodeRef uploaded to alfresco folder
- addNodeRef is only one item uploaded to alfresco


Is there any other way an item is added to the already running workflow?

Where's my mistake?


Thanks in advance
1 REPLY 1

jpotts
World-Class Innovator
World-Class Innovator
This question is cross-posted on stack, so if anyone wants to reply to this, let's do it over there:
http://stackoverflow.com/questions/24279718/alfresco-add-item-to-existing-workflow

Gizmo16, please pick one place for your question going forward.

Jeff