InheritAttachedDocumentsHandler

Description

This ActionHandler writes documents from a main process into a sub process, which were uploaded before the subprocess was started, into the the subprocess.

This ActionHandler is set up in the subprocess. If documents from the main process should be available at process start of the subprocess, the ActionHandler should be set up in the first process task with the event type ‘Node-Enter’.

If notes should be transferred at the end of a subprocess to the main process, the ActionHandler should be set up on the last task in the subprocess with the parameter upward=trueand the event type 'Node-Leave'

Folders and their contained documents are not transferred to the subprocess, and they are not written back to the main process.


Class

com.dooris.bpm.actionhandler.InheritAttachedDocumentsHandler

Parameter

Parameter 

Default value

Description

Valid examples

Parameter 

Default value

Description

Valid examples

upward

false

This parameter specifies whether the attached documents should be fetched from the main process (alse) or returned to the main process (true).

true

 


Example:

A main process and subprocess are required to use this ActionHandler. In the main process, the subprocess is called via the hidden suboprocess shape with the name ‘Subprocess Testing’.

The ActionHandler is implemented on the task ‘Subprocess for InheritedDocumentActionHandler’ in the subprocess with the event-type ‘Node-Enter’.

It is important that the sub-process must always be deployed before the main process, so that the system can establish the relationship between the two processes.

If you make changes to the sub-process, the main process must also be deployed again so that the current version of the sub-process is used by the system.

 

Then a new process of the main process can be started and a document can be uploaded in the Documents tab.

 

 

After the "First Task" is completed in the main process, the subprocess is started and the document from the main process is available in the subprocess.