Following to ELEMENTS-748, it is now possible to attach a file to a workflow.
It is possible to read the file in a following task.
But it does not work if more than 2 tasks.
For instance, the following 3 tasks scenario shows the issue:
- create a workflow with 3 tasks
- add a workflow variable
- make it available and editable in each of them
- set assignee to administrators group
- start nuxeo
- sync the project
- create a document
- start the workflow
- attach a file (task 1)
- approve the task
- observe the following traffic in Google Inspector:
2: {entity-type: "task", id: "b1aae882-1aae-435e-9be7-d4940cc2b751", name: "ApproveB",…} actors: [{entity-type: "group", groupname: "administrators", grouplabel: "Administrators group",…}] comments: [] created: "2019-03-18T10:41:40.618Z" delegatedActors: [] directive: "Acknowledgement" dueDate: "2019-03-18T10:41:40.615Z" entity-type: "task" graphResource: "http://localhost:8080/nuxeo/api/v1/workflow/ef24afbe-ce44-49da-ad9b-37f734b82f82/graph" id: "b1aae882-1aae-435e-9be7-d4940cc2b751" name: "ApproveB" nodeName: "testWkfBlob-20190318111151123-approve-task" state: "opened" targetDocumentIds: [{entity-type: "document", repository: "default", uid: "26b7ae70-01c0-4cc0-a8a2-1d8f6eae5397",…}] taskInfo: {allowTaskReassignment: false, taskActions: [{name: "approve",…}],…} variables: {myBlob: {name: "algo_webui.txt", mime-type: "text/plain", encoding: null, digestAlgorithm: "MD5",…}} myBlob: {name: "algo_webui.txt", mime-type: "text/plain", encoding: null, digestAlgorithm: "MD5",…} data: "http://localhost:8080/nuxeo/nxfile/default/ef24afbe-ce44-49da-ad9b-37f734b82f82/var_testWkfBlob:myBlob/algo_webui.txt" digest: "94818c31fce8fef9e83fb0a7ff939d2c" digestAlgorithm: "MD5" encoding: null length: "623" mime-type: "text/plain" name: "algo_webui.txt" workflowInitiator: "Administrator" workflowInstanceId: "ef24afbe-ce44-49da-ad9b-37f734b82f82" workflowLifeCycleState: "running" workflowModelName: "testWkfBlob" workflowTitle: "testWkfBlob"
- in task 2, observe the file if correctly displayed
- approve the task
- observe the following traffic in Google Inspector:
2: {entity-type: "task", id: "ffbc1b73-02a5-4967-a750-40ab0c260148", name: "ApproveC",…} actors: [{entity-type: "group", groupname: "administrators", grouplabel: "Administrators group",…}] comments: [] created: "2019-03-18T10:44:59.500Z" delegatedActors: [] directive: "Acknowledgement" dueDate: "2019-03-18T10:44:59.498Z" entity-type: "task" graphResource: "http://localhost:8080/nuxeo/api/v1/workflow/ef24afbe-ce44-49da-ad9b-37f734b82f82/graph" id: "ffbc1b73-02a5-4967-a750-40ab0c260148" name: "ApproveC" nodeName: "testWkfBlob-20190318112514074-approve-task" state: "opened" targetDocumentIds: [{entity-type: "document", repository: "default", uid: "26b7ae70-01c0-4cc0-a8a2-1d8f6eae5397",…}] taskInfo: {allowTaskReassignment: false, taskActions: [{name: "approve",…}],…} variables: {myBlob: null} myBlob: null workflowInitiator: "Administrator" workflowInstanceId: "ef24afbe-ce44-49da-ad9b-37f734b82f82" workflowLifeCycleState: "running" workflowModelName: "testWkfBlob" workflowTitle: "testWkfBlob"
- observe the myBlob variable value is now null
- in task 3, observe the attached file does not appear any longer
- is related to
-
NXP-25598 Do not remove attachments from Document when ignore Blob property in PUT requests
- Resolved
-
ELEMENTS-748 Workflow attachment does not work
- Resolved
-
ELEMENTS-907 Selecting file twice does not work in workflow
- Resolved