If you have ever wondered how to retrieve a document from a sub-process after a call activity, this article is for you.
As documented, you can follow this article to retrieve a document in a sub-process that was previously uploaded in a main-process:
https://documentation.bonitasoft.com/bonita/7.9/documents#toc3
In the other hand, to do the opposite you can follow the steps of this example :
In the sub-pool
- We create a human task containing a simple upload widget ;
- We store the “rootProcessInstanceId” (under General->Search keys);
In the main-pool
- We create a call-activity calling our sub-pool;
- We create after a service task that searches among archived processes the human task of the sub-pool (and get the submitted document);
In our example, we used a “Script” under “Operations”.
You find on the following link an simple projet performing the steps above (Bonita 7.8.4):
https://drive.google.com/file/d/1orUb23o21d_iUgITDFf-DXKwq0BewTed/view?usp=sharing
I hope this article helps.