Skip to content

Commit

Permalink
HPCC-18650 Document LABEL attribute on INDEPENDENT, PERSIST, FAILURE,…
Browse files Browse the repository at this point in the history
… & SUCCESS

Signed-off-by: Jim DeFabia <[email protected]>
  • Loading branch information
Jim DeFabia committed Sep 21, 2023
1 parent 8f13dbf commit a64f46d
Show file tree
Hide file tree
Showing 4 changed files with 73 additions and 9 deletions.
20 changes: 18 additions & 2 deletions docs/EN_US/ECLLanguageReference/ECLR_mods/WkFlo-FAILURE.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,10 @@
</emphasis><emphasis role="bold">: FAILURE<indexterm>
<primary>FAILURE</primary>
</indexterm>(</emphasis><emphasis>handler</emphasis><emphasis
role="bold">) <indexterm>
role="bold">) [,LABEL</emphasis>(<emphasis>Text</emphasis>)<emphasis
role="bold">]</emphasis><indexterm>
<primary>FAILURE workflow service</primary>
</indexterm></emphasis>;</para>
</indexterm>;</para>

<para><informaltable colsep="1" frame="all" rowsep="1">
<tgroup cols="2">
Expand All @@ -36,6 +37,21 @@

<entry>The action to run if the expression fails.</entry>
</row>

<row>
<entry><emphasis role="bold">LABEL</emphasis></entry>

<entry>Optional. Defines the <emphasis>Text</emphasis> to display
for the workflow item in the Graph for the workunit. If omitted,
the code generator will deduce a label from the identifier being
defined.</entry>
</row>

<row>
<entry><emphasis>Text</emphasis></entry>

<entry>A string constant containing the text to display</entry>
</row>
</tbody>
</tgroup>
</informaltable></para>
Expand Down
22 changes: 19 additions & 3 deletions docs/EN_US/ECLLanguageReference/ECLR_mods/WkFlo-INDEPENDENT.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,9 @@

<para><emphasis>attribute </emphasis>:= <emphasis>expression
</emphasis><emphasis role="bold">: INDEPENDENT
[</emphasis><emphasis>(cluster)</emphasis><emphasis role="bold">]</emphasis>
<indexterm>
[</emphasis><emphasis>(cluster)</emphasis><emphasis
role="bold">][(LABEL</emphasis>(<emphasis>Text</emphasis>)<emphasis
role="bold">)]</emphasis><indexterm>
<primary>INDEPENDENT</primary>
</indexterm><indexterm>
<primary>INDEPENDENT workflow service</primary>
Expand Down Expand Up @@ -40,6 +41,21 @@
<emphasis>attribute</emphasis> is run on the currently executing
cluster.</entry>
</row>

<row>
<entry><emphasis role="bold">LABEL</emphasis></entry>

<entry>Optional. Defines the <emphasis>Text</emphasis> to display
for the workflow item in the Graph for the workunit. If omitted,
the code generator will deduce a label from the identifier being
defined.</entry>
</row>

<row>
<entry><emphasis>Text</emphasis></entry>

<entry>A string constant containing the text to display</entry>
</row>
</tbody>
</tgroup>
</informaltable></para>
Expand All @@ -59,7 +75,7 @@

<para>Example:</para>

<programlisting lang="ECL" role="runnable">I := RANDOM() : INDEPENDENT; //calculated once, period
<programlisting lang="ECL" role="runnable">I := RANDOM() : INDEPENDENT(LABEL('CalcRandom')); //calculated once, period
G := RANDOM() : GLOBAL; //calculated once in each graph

ds :=
Expand Down
20 changes: 18 additions & 2 deletions docs/EN_US/ECLLanguageReference/ECLR_mods/WkFlo-PERSIST.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,10 @@
</indexterm> | MULTIPLE<indexterm>
<primary>MULTIPLE</primary>
</indexterm>[(</emphasis><emphasis>count</emphasis><emphasis
role="bold">)]] ) <indexterm>
role="bold">)]] [,LABEL </emphasis>(<emphasis>Text</emphasis>)<emphasis
role="bold">])</emphasis>; <indexterm>
<primary>PERSIST workflow service</primary>
</indexterm></emphasis>;</para>
</indexterm></para>

<para><informaltable colsep="1" frame="all" rowsep="1">
<tgroup cols="2">
Expand Down Expand Up @@ -155,6 +156,21 @@
omitted, the system default is used. If set to -1, then an
unlimited number are kept.</entry>
</row>

<row>
<entry><emphasis role="bold">LABEL</emphasis></entry>

<entry>Optional. Defines the <emphasis>Text</emphasis> to display
for the workflow item in the Graph for the workunit. If omitted,
the code generator will deduce a label from the identifier being
defined.</entry>
</row>

<row>
<entry><emphasis>Text</emphasis></entry>

<entry>A string constant containing the text to display</entry>
</row>
</tbody>
</tgroup>
</informaltable></para>
Expand Down
20 changes: 18 additions & 2 deletions docs/EN_US/ECLLanguageReference/ECLR_mods/WkFlo-SUCCESS.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,10 @@
</emphasis><emphasis role="bold">: SUCCESS<indexterm>
<primary>SUCCESS</primary>
</indexterm>(</emphasis><emphasis>handler</emphasis><emphasis
role="bold">) </emphasis><indexterm>
role="bold">) [,LABEL</emphasis>(Text)<emphasis role="bold">]</emphasis>;
<indexterm>
<primary>SUCCESS workflow service</primary>
</indexterm>;</para>
</indexterm></para>

<para><informaltable colsep="1" frame="all" rowsep="1">
<tgroup cols="2">
Expand All @@ -36,6 +37,21 @@

<entry>The action to run if the expression succeeds.</entry>
</row>

<row>
<entry><emphasis role="bold">LABEL</emphasis></entry>

<entry>Optional. Defines the <emphasis>Text</emphasis> to display
for the workflow item in the Graph for the workunit. If omitted,
the code generator will deduce a label from the identifier being
defined.</entry>
</row>

<row>
<entry><emphasis>Text</emphasis></entry>

<entry>A string constant containing the text to display</entry>
</row>
</tbody>
</tgroup>
</informaltable></para>
Expand Down

0 comments on commit a64f46d

Please sign in to comment.