Shared pipeline protocol XML files

LabKey Support Forum (Inactive)
Shared pipeline protocol XML files Ben Bimber  2011-02-15 13:30
Status: Closed
 
Each run of a Labkey pipeline is defined in an XML file. These can be saved as protocols, which basically serve as a template for future runs.

Labkey has an API for obtaining saved templates for a given pipeline/folder:


        LABKEY.Pipeline.getProtocols({
            taskId: this.taskId
            ,successCallback: function (protocols, defaultProtocolName){.....}
            ,scope: this
            });

I have a pipeline defined in a file-based module. Is there any mechanism such that the pipeline could provide a set of default protocols, that would be automatically available when this pipeline is used in any folder or on any server that installs this module?

The primary reasons I ask are:

1. general portability
2. situations where you create a workbook, then execute the pipeline from within it. because each workbook is its own container, they do not have any shared protocols

Points 1 and 2 share similarities, but are slightly different problems that might have different answers.

Thanks.