in your documentation of the BPM-API, there is a part where i can add a process file to a running process. See here.
Unfortunately, this script does not work. I get this error: "File element not found". The script works as long as I set the dmsObjectId to the id of the object the process was started with. But it fails with every other id.
The use case is that a workflow is started on a folder-object and some objects are added to this folder during the process. Now, I want to display an object (which object depends on the workflow step) instead of the folder.
In the digest for version 6.2 a similar example is mentioned.