/
Input/Output Documents from Parent Case to Sub Process

Input/Output Documents from Parent Case to Sub Process

Search the IFS Workflow Wiki
 

 Back to Tips and Tricks



Input Documents from Parent Case to Sub Process

To get the input documents from the parent case and bring them into the sub process, the input document UID from the parent case and the sub process are required.

  • The master case UID can be found using the following query, or taken from the process itself.

  • Then obtain all input document files using the master case UID and the master input document UID.

  • Iterate through each input document file, and use the PMFCopyDocumentCase to bring them all into the sub process input document.

Output Documents from Parent Case to Sub Process

Moving output documents is very similar to the input documents. The main difference is that the output document files must be converted into input documents and added to the sub process case.

1. Store the master output document UID and sub process input document UID, as well as the sub process case ID (@@application).

2. Obtain the master case ID by using the following query or getting it from the process itself.

  • Using the master output document uid and the master case id, a query can be used to obtain all the files associated with the output document.

3. For each file, build its file path and file name using the following information. If the name of the document needs to be changed (by default it is document id_version number), use the exec command to run a Linux command on the server to do so.

4. Call PMFAddInputDocument to associate these files with the sub process input document.

Input or Output Document Files Simultaneously

The following trigger can used to obtain both input and output document files at the same time.


Copyright© 2024 IFS AB. Copying prohibited. All rights reserved.