Asset Approval

The "Asset Approval" plugin is a workflow to approve assets if they are moved to a specific node or node of a specific nodetype. For this workflow a special info field with the approval status must be defined. Also it need an appoval node where the asset will be move to wait for the approval.

Steps

  • On asset added event: The added asset will be verified, if it is already approved and if the node is a public node.
  • If the asset must be approved it will be directly moved to the approval folder.
  • In the approval folder a specified user group can approve or deny the asset.
  • If the asset will be denied, it will be deleted from the approval folder and the status set to rejected.
  • If the asset will be approved, the asset will be move back to the public folder and the status will be set to approved.

  • On version updated the workflow will also triggered if the asset is in a public node. The asset will also change the status and move to the approval node.

Properties

To be configured in {home}/appserver/conf/custom.properties

assetApproval.approvalUserGroupIds

type: numbers, required: yes, default: -

With userGroupIds, groups will be defined which can approve or deny asset in the approval node.

e.g. 12,73,32

assetApproval.approvalNodeId

type: long, required: yes, default: -

With the approvalNodeId the node will be defined where the assets will be moved to approved or deny them.

e.g. 1000

assetApproval.publicNodeIds

type: long, required: no, default: -

The publicNodeIds define which nodes are public. On this nodes the approval workflow will be started.

e.g. 12,73,32

assetApproval.statusInfoFieldId

type: Long, required: yes, default: -

The statusInfoFieldId defines which info field will be taken to save the status of the approval workflow.

e.g. 128

The info field must have following syntax. 1 -> new, 2 -> pending, 3 -> released, 4 -> denied

<dropdown id="?" name="Approval">
            <label messageKey="infofield.approval"/>
            <options>
                <option index="1">
                    <label messageKey="infofield.approval.new"/>
                </option>
                <option index="2">
                    <label messageKey="infofield.approval.pending"/>
                </option>
                <option index="3">
                    <label messageKey="infofield.approval.released"/>
                </option>
                <option index="4">
                    <label messageKey="infofield.approval.denied"/>
                </option>
            </options>
            <default>1</default>
        </dropdown>
assetApproval.assetTypesToApprove

type: Long, required: yes, default: -

The assetTypesToApprove defines which types of Asset have to go trough the workflow, asset of other types will be ignored.

e.g. 1234,5678

assetApproval.fileCategoryAlwaysToApprove

type: String, required: no, default: -

The fileCategoryAlwaysToApprove defines a file category which always has to be approved.

e.g. VIDEO

assetApproval.nodeTypeId

type: Long, required: no, default: -

The nodeTypeId defines a node type, node with this nodeType will all be handled as a public node.

e.g. 109

Screenshots

Node structure

Approve Assets

Status Infofield

Release Notes

1.0

Initial Version