Aller au contenu principal
Version: 7.0

Bridge

The package "bridge" contains steps that interact with the Deposition API of docuteam feeder.

Most of these steps are not necessary anymore, since the Deposition API is no longer part of a separate application (docuteam bridge), but has been integrated into docuteam feeder with version 5.4.0.

Bridge: download deposition

Downloads a deposition. After a successful download the status of the delivery is set to processing.

deprecated docuteam feeder can now directly access uploaded depositions. If a workflow is executed with a deposition the SIP variable points to the deposition storage.

java ch.docuteam.actions.bridge.DownloadDeposition \
--depositionId=depositionId [--targetDirPath=path/to/targetDir]
ParameterDescription
--depositionId=depositionIdname of deposition
[--targetDirPath=path/to/targetDir]target directory, defaults to actions.workbench.inbox

Bridge: create SIP from DublinCore Bagit SIP

Creates a SIP based on the Matterhorn profile from a zipped DublinCore Bagit SIP.

java ch.docuteam.actions.bridge.CreateSIPFromDublinCoreBagitSIP \
--bagitZipName=depositionId.zip \
--saTemplate=sa_all-formats-01 \
--dssId=newDssId \
[--levelsFilePath=path/to/levels_bagit-dublincore.xml]
ParameterDescription
--bagitZipName=depositionId.zipname of bagit SIP, with or without extension '.zip'
--saTemplate=sa_all-formats-01submission agreement template
--dssId=newDssIdID of dataSubmissionSession in submission agreement
[--levelsFilePath=path/to/levels_bagit-dublincore.xml]optional, path to levels file

Bridge: queue submitted depositions

Starts a workflow in docuteam feeder for all depositions with the status submitted and sets the status of these deliveries to queued.

deprecated If a deposition is created in docuteam feeder, feeder will automatically create an event. Using event handlers, new workflow executions can be automatically created for the uploaded depositions.

java ch.docuteam.actions.bridge.QueueSubmittedDepositions \
--workflowId=workflowId \
[--organization=docuteam] \
[--organizationBridge=myOrg]
ParameterDescription
--workflowId=workflowIdID of workflow to be started
[--organization=docuteam]
[--organizationBridge=myOrg]name of bridge organization

Bridge: upload PIDs for deposition

Transfers PIDs from Fedora to the Deposition API and sets the status of the deposition to processing. Assumes that the SIP can be found in actions.workbench.work.

java ch.docuteam.actions.bridge.UploadPIDsForDeposition \
--depositionId=1234.zip
ParameterDescription
--depositionId=1234.zipdeposition ID, assuming it is also the name of the SIP

Bridge: report error

Sets the status of a deposition to error.

deprecated docuteam feeder automatically sets the status of the deposition to error if the workflow execution encounters an error.

java ch.docuteam.actions.bridge.ReportDepositionStatus \
--workflowExecutionId=workflowExecutionId \
--depositionId=depositionId \
--organization=1
ParameterDescription
--workflowExecutionId=workflowExecutionIdworkflow execution ID in docuteam feeder
--depositionId=depositionIddeposition ID
--organization=1number of organization