Converting flow templates and definitions to LSF Application Center templates
Learn how to convert LSF Process Manager flow templates and flow definitions to LSF Application Center templates using a tool provided with LSF Process Manager version 10.2 Fix Pack 10 and later.
About the template conversion tool
The traditional LSF Process Manager template which is added through the "Insert Application" action in LSF Process Manager java client is the same function as LSF Application Center templates. To consolidate these concepts, we provide tools for converting LSF Process Manager templates to LSF Application Center templates. User can edit and insert LSF Application Center templates in Flow Editor in LSF Application center after conversion. Users should transition to the web interface through LSF Application Center after the conversion as it offers the latest features the LSF Process Manager java client does not.
Prerequisites for the template conversion tool
- Read and write permission to the current directory
- Read and write permission to the $GUI_CONFDIR/application/draft and $GUI_CONFDIR/application/published directory
- Read and write permission to the $GUI_TOP/work/pm_data/flow_drafts directory
- Read and write permission to properties files in the $GUI_CONFDIR/application/published directory
Using the conversion tools
The following describes usage of the two template conversion tools.
$ convertDefinition.sh -h
Usage: convertDefinition.sh [-h] [DIRECTORY]
Converts flow definitions of the defined DIRECTORY (the current directory by default).
$ convertTemplate.sh -h
Usage: convertTemplate.sh [-h] [-p | --publish]
Converts templates of the directory defined by JS_TEMPLATE_DIR in $JS_ENVDIR/js.conf
-p,--publish Publishes converted templates in LSF Application Center.
Limitations
- Param lookup=false
- Param repeatable
- Param HostDependent
- Param SubmissionCmd, (Use fixed value: bsub)
- Execution hasArray property
- Exception handling
- About
Notes about the conversion tool
- Spaces in the template name will be replaced with an underscore (_) when it is converted. For example, "Blast Template Name" is converted to "Blast_Template_Name".
- The parameter UserName is only effective in a flow when JS_CHANGE_FLOW_OWNER=false in $JS_ENVDIR/js.conf.
- The convert definition script needs to create a directory temp_draft_definitions in the current directory for the purpose of saving intermediate files.
- The convert script generates a convert.log in the current directory. If convert.log already exists, make sure you have write permission to append to the file.
- Since the conversion process is based on OS file operations, users may need to ask the Administrator for help if errors of permission denied occurs.