Skip to main content
Skip table of contents

Subprocess

Subprocess: Provides the possibility to outsource parts of processes into separate process files. You can include each process in another process as a subprocess. In doing so, a subprocess can receive an input from the preceding process module and passes on the last status within the subprocess as well as an output document, if applicable, to the subsequent process module in the parent process.
  • To edit the subprocess, double-click the corresponding icon in the drawing area.
  • If an input or output schema was stored when the process was created, it can be called up via the context menu entry Show input schema or Show output schema.

Properties

Document

Relative path to the subprocess

(info) This path is dynamically parameterizable via the workflow parameter. The use of placeholders (e.g., %START_PROCESS_PATH% or %CALLING_PROCESS_PATH%) is also possible (not in debug mode of the X4 Designer)

Label

Label of the symbol within the process diagram

Creating subprocesses from process parts

For more extensive processes, it is useful to outsource related modules as subprocesses. This makes the process clearer and the subprocesses can be used more than once. Processes can be nested into each other to practically any depth. Subprocesses are saved as separate .wrf files.

Like other process modules, processes can be dragged and dropped from the Projects view into the drawing area of the Process Editor.

  1. Mark at least two modules, including all transition lines that are to be outsourced.

  2. Select the Pack As Subprocess function from the context menu:

    • In File name, enter the name of the subprocess.

    • Click Finish.

  3. The subprocess with the selected modules is created as an independent process file in the repository. In the main process, the selected modules are automatically replaced by the newly created subprocess module.

Using private subprocesses

Subprocesses can be used privately. Private subprocesses can only be reused for their parent process. A private subprocess can either be newly created or packed from existing process modules.

To create a private subprocess, follow these steps:

  1. Select an existing process in the Projects view.
  2. In the menu, click on Project > Add Process….

    Alternative

    Right-click on an existing process. In the context menu, click New > Process.

    A new process is created as a private subprocess of the existing process and can be edited.

To pack a private subprocess from existing process modules, follow these steps:

  1. Open an existing process.
  2. Mark at least two modules, including all transition lines.
  3. Right-click on the selected modules.
  4. Click Pack as Private Subprocess in the context menu.
  5. In File name, enter the name of the subprocess.
  6. Confirm with Finish.
    The marked modules are created as a private subprocess and can be edited there.


JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.