Production Actions

Tie in custom actions into the Actions menu of the library search toolbar.

Where in the UI

The library contains an actions menu which will show the production actions:

Production actions

Example

{
  "productionActions": [
    {
      "label": "AAF Checkout",
      "icon": "icon-cloud-upload",
      "requiredRights": "PRODUCTION_VIEW",
      "clientCommand": "ProductionServiceDialog",
      "params": {
        "infoMessage": "Select an aaf file you would like to check out",
        "service": "AAF_CHECK_OUT",
        "userInputFields": [
          {
            "name": "aafFile",
            "label": "AAF File",
            "type": "FILE_RESOURCE",
            "parameterName": "workflowParameters.aaf_file"
          },
          {
            "name": "otherParameter",
            "label": "Some other parameter",
            "parameterName": "workflowParameters.other_param",
            "type": "STRING",
            "whiteList": [
              "rainbows",
              "unicorns"
            ],
            "skipWhiteListValidation": true,
            "defaultValue": "unicorns"
          }
        ]
      },
      "filters": []
    }
  ]
}

possible values for clientCommand

ProductionServiceDialog

Example of a production action which starts a custom workflow.

{
  "icon": "icon-magic",
  "label": "trigger custom workflow",
  "params": {
    "service": "customWorkflow",
    "infoMessage": "Trigger a customWorkflow",
    "userInputFields": [],
    "serviceArguments": {
      "customWorkflowName": "Custom_workflow_name_here",
      "workflowParameters": {}
    }
  },
  "filters": [],
  "clientCommand": "ProductionServiceDialog",
  "requiredRights": "PRODUCTION_VIEW"
}

This command is documented at clipActions