<joblist>
<job>
<context>
<options preserveOrder='true'>
<option enforcedvalues='true' name='variable' values='foo,bar,baz' valuesListDelimiter=',' />
</options>
</context>
<defaultTab>nodes</defaultTab>
<description></description>
<executionEnabled>true</executionEnabled>
<id>7091b22a-5e87-40ad-8728-5477ccd68646</id>
<loglevel>INFO</loglevel>
<name>JobEXAMPLE</name>
<nodeFilterEditable>false</nodeFilterEditable>
<scheduleEnabled>true</scheduleEnabled>
<sequence keepgoing='false' strategy='sequential'>
<command>
<plugins>
<LogFilter type='key-value-data'>
<config>
<logData>true</logData>
<regex>^(VARIABLE)\s*=\s*(.+)$</regex>
</config>
</LogFilter>
</plugins>
<script><![CDATA[echo "VARIABLE=@option.variable@"]]></script>
<scriptargs />
</command>
<command>
<script><![CDATA[if [ @data.VARIABLE@ = "foo" ]
then
echo "doing the step two."
fi]]></script>
<scriptargs />
</command>
<command>
<script><![CDATA[if [ @data.VARIABLE@ = "bar" ]
then
echo "skipping step two, doing the step three"
fi]]></script>
<scriptargs />
</command>
<command>
<script><![CDATA[if [ @data.VARIABLE@ = "baz" ]
then
echo "job success"
fi]]></script>
<scriptargs />
</command>
</sequence>
<uuid>7091b22a-5e87-40ad-8728-5477ccd68646</uuid>
</job>
</joblist>