Latest post Wed, Jul 3 2013 3:55 PM by akuehlme. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • Tue, Jul 2 2013 3:17 PM

    Interplay MAM - Adding New Buttons

    Hi All,


    Is there an options to create buttons similar to Export/ Edit legal lists /Edit and also those buttons will inturn call External Api using SWODL.


    Is there a way to add Java script externally to trigger workflow?

  • Wed, Jul 3 2013 3:55 PM In reply to

    • akuehlme
    • Not Ranked
    • Joined on Tue, Dec 11 2012
    • Posts 15
    • Points 155
    • Avid Developer Moderator
      Avid Employee

    Re: Interplay MAM - Adding New Buttons

    There's no built-in functionality to directly start the execution of a SWoDL script. However, there's a number of options:

    1.) Usually, we use a StateMachineWS process to handle objects. The setup is a bit more complex, but you gain a lot of advantages. For example:

    * A process can ask for user interaction during execution.

    * You can monitor the progress of the process.

    * You can search for processes in MAM Desktop. 

    * You can create process folders in MAM Desktop that show a selection of processes.

    From a user's perspective, it works like this: The user selects a process folder in MAM Desktop and drags objects from the hit list to that folder. A dialog appears that allows entering additional information, when required. The user sends the request and can monitor the progress in the process folder.

    To use a process, you must basically create a process type and corresponding meta data templates in the Data Model Administrator, create a process model using the Process Modeler and, if necessary, implement SWoDL scripts for automated tasks. There is a number of documents delivered with the software that explain various aspects of processes:

    * References\InterplayMAM_ProcessReference.pdf - information on the architecture and on how to implement a process

    * References\InterplayMAM_SWoDLReference.pdf - SWoDL language reference

    * Admin\InterplayMAM_ProcessModeler.pdf - documentation of the Process Modeler


    2.) You can add application buttons to the toolbar that are shown when you look at the details of an object (see screenshot below). You can use that in two ways:

    a) You can trigger the start of a client application that is installed on the user's PC. That's not a good option if you only want to execute a SWoDL script.

    b) You can configure a URL for a button. In this case, MAM Desktop opens a new window with the configured URL and all required parameters as URL parameters. For example, you could implement an ASP.NET web application that fetches the parameters from this URL and calls WorkflowEngineWS to start execution of a SWoDL script. The parameters - like the DMGUID of the selected object and the AccessKey - can be set as script variables. The page could, for example, show a message telling that the script is running, and a Close button to close the window.

    The visibility of the buttons can be defined using the User Manager, by assigning the rights "Retrieval/See_App1", "Retrieval/See_App2", and so on. The configuration is explained in the System Manual in the chapter about the configuration settings of "RetrievalWS".


    3.) It is possible to add JavaScript code to the page using the Data Model Administrator. When editing a Meta Data Template, you see a button “JavaScript” at the bottom of the page. The code you enter here is injected directly in the generated HTML page.

    A customized JavaScript script could probably add a button to the meta data page, collect the required information and call one of the CreateWorkflowInstance methods of WorkflowEngineWS via HTTP GET or POST. The JavaScript code is only used in MAM Desktop, not in Cataloger. However, there are a number of risks:

    * You may run into security restrictions by the browser. For example, the call to WorkflowEngineWS could be seen as cross-site scripting violation.

    *  JavaScript code usually relies heavily on specifics of the web page implementation, and that may change in future releases of MAM.

Page 1 of 1 (2 items)

© Copyright 2011 Avid Technology, Inc.  Terms of Use |  Privacy Policy |  Site Map |  Find a Reseller