<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent posts to job follow regard pred job end condition ?</title><link>https://sourceforge.net/p/jobscheduler/discussion/486122/thread/50cd69023b/</link><description>Recent posts to job follow regard pred job end condition ?</description><atom:link href="https://sourceforge.net/p/jobscheduler/discussion/486122/thread/50cd69023b/feed.rss" rel="self"/><language>en</language><lastBuildDate>Thu, 19 Mar 2026 07:24:06 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/jobscheduler/discussion/486122/thread/50cd69023b/feed.rss" rel="self" type="application/rss+xml"/><item><title>job follow regard pred job end condition ?</title><link>https://sourceforge.net/p/jobscheduler/discussion/486122/thread/50cd69023b/?limit=25#f36b</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Alright, i forget to slide this toolbar to sedd what was available &amp;gt;_&amp;lt;&lt;/p&gt;
&lt;p&gt;manage to do what i wanted.&lt;br/&gt;
but case-when should be align side by side, instead of following, would be easier to visually understand, dk if the visual alignment can be changed for this&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Chico</dc:creator><pubDate>Thu, 19 Mar 2026 07:24:06 -0000</pubDate><guid>https://sourceforge.net5eab00bc84528edf0179a0294dbd541733bfec8b</guid></item><item><title>job follow regard pred job end condition ?</title><link>https://sourceforge.net/p/jobscheduler/discussion/486122/thread/50cd69023b/?limit=25#1d77</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Hi Chico,&lt;/p&gt;
&lt;p&gt;if I get it right, the intended logic is designed like this:&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;code&gt;&lt;span class="k"&gt;*&lt;/span&gt; job1
    &lt;span class="k"&gt;*&lt;/span&gt; Case When: return code == 0 then job2
    &lt;span class="k"&gt;*&lt;/span&gt; Case When: returncode == 1 then job3
    &lt;span class="k"&gt;*&lt;/span&gt; Case Else: prompt
&lt;span class="k"&gt;*&lt;/span&gt; job4
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;

&lt;p&gt;Find attached the example of a workflow implementing the above flow (consider adjusting Agent assignments to jobs). For details how to use the example see &lt;a href="https://kb.sos-berlin.com/display/JS7/JS7+-+How+to+upload+.json+examples" rel="nofollow"&gt;JS7 - How to upload .json examples&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Consider the following hints:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;job1 is configured to ignore return codes (exit codes), see attached screenshot. The job is always considered being completed successfully in order to trigger  subsequent jobs.&lt;/li&gt;
&lt;li&gt;job2 and job3 are triggered if the related Case When Instruction evaluates the condition of job1's exit code successfully, using predicates such as &lt;code&gt;$returnCode == 0&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;a promt is triggered from the Case Else Instruction for exit codes other than 0 and 1.&lt;/li&gt;
&lt;li&gt;job4 is executed if the order passes one of the Case When Instructions.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;For releases before 2.8.2, the &lt;a href="https://kb.sos-berlin.com/display/JS7/JS7+-+Case+Instruction" rel="nofollow"&gt;Case Instruction&lt;/a&gt; cannot be used. In this situtation you can use nested &lt;a href="https://kb.sos-berlin.com/display/JS7/JS7+-+If+Instruction" rel="nofollow"&gt;If Instructions&lt;/a&gt;.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Andreas</dc:creator><pubDate>Wed, 18 Mar 2026 23:12:23 -0000</pubDate><guid>https://sourceforge.net842d4cd41f4679419a22db91a26e9d87a6f7b21e</guid></item><item><title>job follow regard pred job end condition ?</title><link>https://sourceforge.net/p/jobscheduler/discussion/486122/thread/50cd69023b/?limit=25#c55b</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;Is it possible in JS7 to make 2 path in case or returne code from a job ?&lt;br/&gt;
to explain&lt;/p&gt;
&lt;p&gt;Job1&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;end in CR 0 &amp;gt; job 2&lt;/li&gt;
&lt;li&gt;end in CR 1 &amp;gt; job 3&lt;/li&gt;
&lt;li&gt;end in other CR &amp;gt; prompt&lt;br/&gt;
job 4, only launch if job 2 or job 3 are CR 0, or prompt confirmed. &lt;/li&gt;
&lt;/ul&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Chico</dc:creator><pubDate>Wed, 18 Mar 2026 14:42:59 -0000</pubDate><guid>https://sourceforge.neted34920a1c04944361106153a27231dc88bfd9a0</guid></item></channel></rss>