Add item to existing workflow

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-18-2014 03:35 AM
I need help with update workflowTask, add file to existing workflow.
My code is:
- 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
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
Labels:
- Labels:
-
Archive
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-18-2014 03:16 PM
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
http://stackoverflow.com/questions/24279718/alfresco-add-item-to-existing-workflow
Gizmo16, please pick one place for your question going forward.
Jeff
