Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Expand
titleDetails
  1. Permissions

To have correct permissions on the creative workflow we also recommend to update or reset pkgroletemplate instances and all the other pkg* objects. If you reset your permissions from the nar, don’t forget to call the update (admin) endpoint given by PACKAGED_Security. A touch on the users may also be needed also to ensure that users, roles and roles templates are correctly synchronized.

If you can’t reset your permissions, you will have to must modify them. You can do this by using wedia-config’s role template menu. For each role template, you will edit it’s “ Collaborative spaces ” permissions.

  • For the “Administrator role type” the permissions should be set to :

    • Create and manage a workspace => All spaces

    • Manage media status => All spaces

  • For the “Contributor role type” the permissions should be set to :

    • Create and manage a workspace => Space owners

    • Manage media status => Space owners

  • For the “Userrole type” the permissions should be set to :

    • Create and manage a workspace => No space

    • Manage media status => No space

Please note that by doing this, you will alter your current permissions on massimportitem & massimportjob objects.

  1. Portal

You will also need to upgrade your portal to retrieve all the new components and configs to benefit from the creative workflow.

  1. Asset Libraries

For all your library structures you will need to add the space prop spaces property and copy missing tags from asset to your library structures (damobject).

  1. Plugins

And finally, you will have to retrieve the plugins configuration from the nar, or activate PACKAGED_CreativeWorkflow and PACKAGED_Activity and restore the default value of PACKAGED_DAM_Utils’s dam_denormalization_config parameter.

...

If you have an existing starter-kit project with no specific customizations on the existing upload feature, you will only have to respect the Prerequisites. It means you will have to create all the new structures, to restore all changes on the existing structures and update/create all the created/updated instances present in the narNAR.

Then if you want to fully benefit from the creative workflow, follow Common steps .

1.2/ Existing with customizations

If your project has a customized workflow for the upload feature, the install installation of the creative workflow will be more complicated. The new feature needs the update made on the workflow of massimportitems objects. This means, that on the project side, a choice has to be made : Using the creative workflow, OR using the upload.

...

  • disable this plugin : PACKAGED_CreativeWorkflow

  • disable the “spaces” feature on portal’s features config

  • enable the uplaod upload feature on the portal’s features config

1.4/ Creative workflow with security from security.xml

Here you will find current permissions by role (provided with a starter-kit) transcribed into readable text. This way, we hope you can setup set up appropriate security rules for the creative worklow workflow while using a security from security.xml.

...

In this case, you will only have to respect the Prerequisites. And they are all comming coming by default with the 2024.1.

Just be sure to call the update (admin) endpoint given by PACKAGED_Security.

For You will need to create all your new library structures you will need to create them by copying the current asset structure, because you will need to have the space spaces prop and the tags from the asset on your library structures.

...

The existing wkfmassimportitem and it’s its actions have been updated for the creative workflow. Also, this workflow is still usable for the upload feature, only some status/action labels will be different.

These are the main updates on the workflow :

  • Position reordering

  • Colors The colors have been changed

...

  • New statuses

    • id 3 : check => default status for imported items

    • id 4 : validate

  • “Index” status (id 8 ) has been renamed to review

  • Wkfmassimportitemactions have been reorganized. Actions have been added from and towards each one of these statuses : rejected, check, review, validate, approved

  • Also for the existing statuses, when it was possible, existing actions have been updated to avoid adding actions and having other actions becoming become useless. Depending on the modified instance, the update was on the target status , or on the action name.

  • Statuses names, ids IDs, and action names are used on the portal’s configuration for dam-import and for spaces domain.

4/ Configuration possibilities

Change the status of assets created by the Creative workflow

By default, the status of a media asset exiting the creative workflow is “published”.

This status can be changed if necessary, following these recommendations :

The current behavior is configured by a damutils configuration, which enables the transition of all assets created through the creative workflow to the published status (ID 6).

The actual configuration :

...

an asset published from the creative workflow has the status Published.

At first, the asset has the default status set on the asset’s structure (Draft state the object asset provided by the NAR). Then, the following asynchronous transformation, configured on the parameter dam_denormalization_config of the plugin PACKAGED_DAM_Utils, will be applied on top of it to execute a workflow trigger that takes the asset to the Published state :

Code Block
languagejson
{
            "objectSelector": "#damobject",
  
         "preventGuard": {
                "classAlias": "negate",
                "input": {
 
                  "preset": "canPublishisSpaceAsset"
                }
            },
            "workflowTrigger": [
                "publish"
   
        ]
        }

This configuration works for the assets created from the creative workflow, only because :

  • We are filling tmpsource with “massimport” on the item (before asset creation), and then the created asset has a tmpsource value which removed just after the status change

  • User has the enough rights to change the status of the asset.

So if you want to change the status of asset created with the creative worfklow, you will have to change the action called in worfklowTriggertransformation does the following, on inserted (or updated if it is enabled) instances :

  • It is applied on object instances that have the tag #damobject on their structure

  • If the instance has been published from a space inside the creative workflow (the preset isSpaceAsset checks if there is at least one instance inside the property spaces), the action “publish“ is processed on the instance.

Note

Other workflow triggers, that are applied on damobject instances, exist inside the parameter dam_denormalization_config. Beware of their execution if you remove for example the above transformation.

In conclusion, to personalize the status of the assets created from creative workflow, you can :

Examples of transformations for damobject instances that utilize workflow triggers

Code Block
    {
        "objectSelector": "#damobject",
        "preventGuard": {
            "classAlias": "negate",
            "input": {
                "preset": "canPublish"
            }
        },
        "workflowTrigger": [
            "publish"
        ]
    },
    {
        "objectSelector": "#damobject",
        "preventGuard": {
            "classAlias": "negate",
            "input": {
                "preset": "canSubmit"
            }
        },
        "workflowTrigger": [
            "submit"
        ]
    }

The above examples of asynchronous transformations, which are set up on the parameter dam_denormalization_config, and are thus applied on damobject instances not having the spaces property filled, do the following in that order:

  • If the damobject instance has been created by a user who has the rights to publish the asset, the workflow action publish will be executed for the asset

  • If the damobject instance has been created by a user who has the rights to submit the asset, the workflow action submit will be executed for the asset.
    To sum up, with those 2 transformations, the new asset will have the Published status if the user who created the asset has rights to publish it. Else, if the surfer has the rights to submit it, the workflow action submit will be executed on the asset.

Portal configuration

Expand
titleSpace domain full configuration
  • back-to.json

  • cursors

    • collaborative-spaces-items.json

    • collaborative-spaces.json

  • default-cursor-name.json

  • explore

    • items

      • actions.json

    • sort

      • default-cursor-config.json

      • hide-sort.json

  • explore-items

    • filters

      • default-resource-config.json

    • items

      • actions.json

      • detail

        • comments

          • filter-options.json

          • sort-options.json

      • display

        • default-config

          • spaces-item-block.json

      • duplicates

        • authorized-resources.json

        • display.json

        • status-color.json

      • workflows

        • asset

          • display-order.json

          • hidden-statuses.json

          • rejected-status-id.json

        • hidden-actions.json

        • statuses-config.json

  • layouts

    • default-resource-config.json

...