GetChannelLinkedAssetsTask

Introduction

The GetChannelLinkedAssetsTask uses the OMN API to get all assets linked to a given channel.

Usage

Input is the ID or TID of the channel which linked assets to retrieve. Furthermore the order of the linked assets can be controlled by the parameters described below.

A special input flag controls if a BPMN Error should be used to indicate an error.

Implementation

Delegate Expression: $\{getChannelLinkedAssetsTask}

Input Variables

Name Description Type Default Value

channelId

Channel ID (ID or TID is required)

Long

channelTid

Channel TID (ID or TID is required)

String

sortBy

Describes by which attribute the linked assets should be sorted.
Allowed values:
id
tid
name
type
path
parentTid
creationDate
modficationDate
fileCreationDate
fileModificationDate

String

path

sortDirection

Describes the sort direction.
Allowed values:
asc
desc

String

asc

doThrowBpmnError

Describes if a BPMN Error should be thrown in case of an error.

Boolean

false

Output Variables

Name Description Type

linkedAssets

The linked assets for the channelId, channelTid.
The keys of the map are the asset ids as Long values.
The values are maps which contain the property key as map key and the property value as map value.
For example:
id, 12256`
tid, "Document FS 2014"
name, "Document FS 2014"
…​

The following properties are supported and the map can be sorted by each of these via the “sortBy“ input parameter:
id (Long)
tid (String)
name (String)
type (String)
path (String)
parentTid (String)
creationDate (OffsetDateTime)
modficationDate (OffsetDateTime)
fileCreationDate (OffsetDateTime)
fileModificationDate (OffsetDateTime)

Map<Long, Map<String, Object>>

Welcome to the AI Chat!

Write a prompt to get started...