Bridge
The package "bridge" contains steps that interact with docuteam feeder API.
Bridge: download deposition
Downloads a deposition from docuteam feeder API. After a successful download the status of the delivery is set to processing.
java ch.docuteam.actions.bridge.DownloadDeposition \
--depositionId=depositionId [--targetDirPath=path/to/targetDir]
| Parameter | Description |
|---|---|
--depositionId=depositionId | name 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]
| Parameter | Description |
|---|---|
--bagitZipName=depositionId.zip | name of bagit SIP, with or without extension '.zip' |
--saTemplate=sa_all-formats-01 | submission agreement template |
--dssId=newDssId | ID 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 in docuteam feeder API with the status submitted and sets the status of these deliveries to queued.
java ch.docuteam.actions.bridge.QueueSubmittedDepositions \
--workflowId=workflowId \
[--organization=docuteam] \
[--organizationBridge=myOrg]
| Parameter | Description |
|---|---|
--workflowId=workflowId | ID of workflow to be started |
[--organization=docuteam] | |
[--organizationBridge=myOrg] | name of bridge organization |
Bridge: upload PIDs for deposition
Transfers PIDs from Fedora to docuteam feeder 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
| Parameter | Description |
|---|---|
--depositionId=1234.zip | deposition ID, assuming it is also the name of the SIP |
Bridge: report error
Sets the status of a deposition to error.
java ch.docuteam.actions.bridge.ReportDepositionStatus \
--workflowExecutionId=workflowExecutionId \
--depositionId=depositionId \
--organization=1
| Parameter | Description |
|---|---|
--workflowExecutionId=workflowExecutionId | workflow execution ID in docuteam feeder |
--depositionId=depositionId | deposition ID |
--organization=1 | number of organization |