Commit f9895fb8 authored by Ibouniyamine Nabihoudine's avatar Ibouniyamine Nabihoudine
Browse files

No commit message

No commit message
parent cb9ea8c3
......@@ -71,6 +71,7 @@
<li><a href="#storage" >Storage</a></li>
<li><a href="#softwares" >Softwares</a></li>
<li><a href="#components" >Components</a></li>
<li><a href="#workflows" >Workflows</a></li>
<li><a href="#resources" >Resources</a></li>
......@@ -269,6 +270,16 @@ BWAIndex.batch_options = -l mem=1G -l h_vmem=1G -q myflowq
BWAmem.batch_options = -l mem=10G -l h_vmem=10G -q myflow2q</code></pre>
<section id="workflows">
<h1 class="page-header">Workflows <small>section</small></h1>
<p>Each workflow has a default group. In this section you can set a group name for each one of your workflow,
thus while using the <code>availablewf()</code> plugin, you will be able to specify which group of workflow you want to get.
You can set the group of a workflow by adding a line of the following schema : [workflow_classname].group = [group_name].</p>
<pre class="pre-hl "><code class="ini">[workflows] = tutorial</code></pre>
<section id="ressources">
<h1 class="page-header">Ressources <small>section</small></h1>
<p>In a production environment, it can be useful to set an ensemble of variables, such as path to databanks, for
......@@ -186,6 +186,20 @@
<td>Defines the workflow classes that should not be displayed.</td>
<td>Defines the workflow groups that should be filtered.</td>
<td>If true the workflows filtered using the filter_groups option will be displayed, if false they will not.</td>
......@@ -23,7 +23,7 @@ import logging
from configparser import RawConfigParser, NoOptionError
from jflow.utils import which, display_error_message
from jflow.workflow import Workflow
class JFlowConfigReader(object):
......@@ -124,6 +124,6 @@ class JFlowConfigReader(object):
return self.reader.get("workflows", workflow_class+".group")
return ""
return Workflow.DEFAULT_GROUP
\ No newline at end of file
......@@ -145,7 +145,7 @@ class Workflow(threading.Thread): = id = self.get_name()
self.description = self.get_description()
self.__group = self.jflow_config_reader.get_workflow_group(self.__class__.__name__) or self.DEFAULT_GROUP
self.__group = self.jflow_config_reader.get_workflow_group(self.__class__.__name__)
# define the parameters
self.params_order = []
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment