User Tools

Site Tools


transformations:halt

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
transformations:halt [2021/05/23 00:48] craigttransformations:halt [2021/11/12 22:27] – [See also] updated See Also section craigt
Line 29: Line 29:
 \\  \\ 
 =====Remarks===== =====Remarks=====
-The condition must return either TRUE or FALSE for each row. Iffor some reason, it returns an error then the action will also fail.\\+The condition must return either TRUE or FALSE for each row. If for some reason, it returns an error then the action will also fail.\\
  
-If the condition is global (i.e. doesn't refer any field) then it's still evaluated even if the dataset is empty.\\+If the condition is global (i.e. doesn't refer to any field) then it's still evaluated even if the dataset is empty.\\
  
  
Line 38: Line 38:
 \\  \\ 
 =====Examples===== =====Examples=====
-**Objective:**  Let's assume we expect amounts to be numbers in all rows.  If any values are NOT numeric, we want the action chain to stop.  If the dataset is empty at this point, we want the action chain to continue - empty datasets will be handled downstream.\\+**Example:**  Let's assume we expect amounts to be numbers in all rows.  If any values are NOT numeric, we want the action chain to stop.  If the dataset is empty at this point, we want the action chain to continue - empty datasets will be handled downstream.\\
  
 **Source table:** **Source table:**
Line 53: Line 53:
 This will make the action stop project execution because one of the values in column "Amount" is not a number.  If the entire dataset is empty, however, the project will continue.\\ This will make the action stop project execution because one of the values in column "Amount" is not a number.  If the entire dataset is empty, however, the project will continue.\\
  
 +\\ 
 +====Community examples====
 +  * [[https://community.easymorph.com/t//466/1|Sending an email notification when project fails]] ([[https://community.easymorph.com/uploads/short-url/8MVDPxoPY14RwNbwTFKOzYgrbCD.morph|Project]]; Module: //Submodule//; Group: //Tab 1//; Table: //Table 1//; Action position: //2//)
 +  * [[https://community.easymorph.com/t//1398/1|How to obtain a list of all files recursively]] ([[https://community.easymorph.com/uploads/short-url/p5eGkU5ftaJpBXTfGbLxLte2VPX.morph|Project]]; Module: //Main//; Group: //Tab 1//; Table: //Table 1//; Action position: //2//)
 +  * [[https://community.easymorph.com/t//1850/1|Process a group of files only when all of them are present]] ([[https://community.easymorph.com/uploads/short-url/zJqXVSbMintqzS3bYdfpLMj9c45.morph|Project]]; Module: //Main//; Group: //Tab 1//; Table: //Table 1//; Action position: //3//)
 +  * [[https://community.easymorph.com/t//2616/2|How to verify uniqueness for a combination of fields]] ([[https://community.easymorph.com/uploads/short-url/cLNzPfyWH0UyLiDDFC4JnIkbzJN.morph|Project]]; Module: //Main//; Group: //Group 1//; Table: //Check//; Action position: //4//)
  
 \\  \\ 
 =====See also===== =====See also=====
 +  * [[transformations:breakpoint|Breakpoint]]
   * [[transformations:haltontypemismatch|Halt on data type mismatch]]   * [[transformations:haltontypemismatch|Halt on data type mismatch]]
   * [[transformations:wait|Wait]]   * [[transformations:wait|Wait]]
  
transformations/halt.txt · Last modified: 2023/10/13 21:38 by craigt

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki