AnsweredAssumed Answered

Workflow / document association

Question asked by yann1806 on Oct 15, 2013
Latest reply on Nov 25, 2013 by yogeshpj
Hi guys,

I have a workflow that moves document between folders. My problem is that when I create the workflow (using code along the lines of (simplified)):

    node = search.findNode("workspace://SpacesStore/"+args.nodeid);
    var workflow = actions.create("start-workflow");

The problem is: when I want to end a task, my client has only the document id. From the document Id I can get the workflows:


and from there locate the task to end.

BUT if a previous task has caused the document to move, the document ID (or node ID) has changed, and then node.activeWorkflows returns nothing on the moved document.

Is there any way out of this? Either a move operation that would preserve document IDs, or a way to attach workflows from the previous document ID to the new one?

Help greatly appreciated…