Skip to main content
Version: 7.0

Workflows

Workflows and steps

A workflow consists of various so-called "steps". A single step has a precisely defined task. Usually, docuteam feeder uses the steps of docuteam actions. You can also create and execute your own steps.

The tab "Workflows" shows all defined ingest workflows that can be applied to a concrete SIP.

Workflows

Execute workflow

A workflow is started with a click on start. In a second step, the SIP to be processed is selected. For this there are three possibilities:

  • Dropdown list for SIP, which are stored in the folder defined as "Inbox folder for packages".
  • Dropdown list for SIP, which were uploaded as depositions.
  • Manual entry of a SIP name (if feature manual_input is activated).

Execute workflow

The dropdown for SIPs is populated from the "inbox folder for packages" specified for the respective workflow.

Create or edit workflow

If you have the appropriate permissions, you can edit existing workflows by clicking on "edit". A workflow is always a linear process: The SIP is sent into a pipeline in which one step after the other is processed. In case of an error the execution stops and omits any subsequent steps.

Edit workflow

The steps selected here in the left column are documented at docuteam actions. The right column contains the parameters that are given to the selected step when it is called. SIP can be referenced with the following variables:

VariableExplanationExample
${SIP}Name of the SIP (path included)C:\docuteam\workbench\1_inbox\example.zip
${SIPBASE}Name of the SIP without file extensionexample
${SIPEXT}File extension of the SIPzip
${SIPNAME}Name of the SIP with file extensionexample.zip
${SIPPATH}Path to the folder containing the SIPC:\docuteam\workbench\1_inbox
${SAFESIPNAME}Name of the SIP with special characters normalizedexample.zip
${DEPOSITIONID}Numeric ID of the deposition123

If the SIP was uploaded using a deposition, ${SIPBASE} and ${SIPNAME} contain the internal ID of the deposition (e.g. CmLdaZVcjpncG57G7jjf7SjX). Additionaly ${DEPOSITIONID} contains the numeric ID of the deposition. ${SIPEXT} is empty in this case, as the deposition is stored without a file extension. Additionally ${SAFESIPNAME} is empty, as the deposition ID does not contain special characters.

Additionally the following variables exist:

VariableExplanationExample
${LAST_EXECUTION_CREATION_DATE}Date and time of the last execution of the workflow1970-01-01T00:00:00.000Z
${CURRENT_EXECUTION_CREATION_DATE}Date and time of the current workflow execution2040-01-01T00:00:00.000Z

Besides editing an existing workflow, it is also possible to create a completely new workflow.

Create workflow

The field "Step prefix" must contain the a console command to switch to the actions_home_dir folder of the organisation, which is executed before each step (e.g. cd "${ENV:ACTIONS_HOME_999}"). The optional field "Inbox folder for packages" contains a path to a folder of the workbench where feeder looks for SIPs when starting a workflow. In both fields you can enter Windows or Linux environment variables using the following syntax: ${ENV:ACTIONS_HOME_999}. The same syntax is also support in the step parameters and step commands.

A workflow can be configured to be run automatically and repeatedly based on a schedule.

workflow scheduling

Using Event handlers, workflow executions can be linked to each other, so that a follow-up workflow is started automatically if a workflow finishes with success and/or an error.

Create or edit step

Like workflows, existing steps can be edited or new steps can be created with the appropriate authorization, for example to integrate further migration tools or to extend the ingest process with additional functionalities.

Create or edit step