User Tools

Site Tools


transformations:call

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:call [2021/06/09 08:45] craigttransformations:call [2021/06/14 12:10] craigt
Line 24: Line 24:
 <sup>*</sup> Setting can be specified using a [[:parameters|parameter]].\\ <sup>*</sup> Setting can be specified using a [[:parameters|parameter]].\\
  
 +
 +\\ 
 +=====Error recovery=====
 +When the //Call// action works in the //Capture errors and continue// mode it can be used for error recovery. In this mode, if an error occurs in the called module (or project), workflow execution won't stop. Instead, the "Call" action will capture the error and return a dataset with two columns "Error description" and "Error source", and workflow execution will continue. By checking if the resultant dataset (with error descriptions) is empty or not, it's possible to identify if the called module failed or not, and execute recovery actions if a failure occurred.
  
 \\  \\ 
Line 35: Line 39:
  
   * Module A calls Module B, passing along its dataset and parameters (to Module B's Input action). Module B can use the passed parameters to manipulate the passed dataset (as settings in actions or values in calculations). Module B could also return the modified dataset back to the //calling// module, as well as pass it along to a third module, along with the parameter(s) (creating a chain).   * Module A calls Module B, passing along its dataset and parameters (to Module B's Input action). Module B can use the passed parameters to manipulate the passed dataset (as settings in actions or values in calculations). Module B could also return the modified dataset back to the //calling// module, as well as pass it along to a third module, along with the parameter(s) (creating a chain).
 +
 +\\ 
 +When using the [[transformations:input|Input]] action in the called module, you can use the "Populate automatically" button to import the current dataset from the calling module to use as test data to build the rest of the module with.
  
 \\  \\ 
 =====Examples===== =====Examples=====
-Calling a module (or project) without passing along a dataset.  Parameters are optional.  A dataset may or may not be returned from the called module (or project). +Calling a module (or project) without passing along a dataset.  Parameters are optional.  A dataset is not being returned to the called module (or project). 
-{{  transformations:call_action_img1.png?640  }}+{{  transformations:call_action_img1.png?450  }} 
 +\\ \\ \\  
 +Calling a module (or project) without passing along a dataset.  Parameters are optional.  A dataset is returned to the called module (or project). 
 +{{  transformations:call_action_img2.png?550  }} 
 +\\ \\ \\  
 +Calling a module (or project) with passing along a dataset via the [[transformations:input|Input]] action.  Parameters are optional.  A dataset is not being returned to the called module (or project). 
 +{{  transformations:call_action_img3.png?450  }}
 \\ \\ \\  \\ \\ \\ 
-Calling a module (or project) with passing along a dataset via the [[transformations:input|Input]] action.  Parameters are optional.  A dataset may or may not be returned from the called module (or project). +Calling a module (or project) with passing along a dataset via the [[transformations:input|Input]] action.  Parameters are optional.  A dataset is returned to the called module (or project). 
-{{  transformations:call_action_img2.png?640  }}+{{  transformations:call_action_img4.png?550  }}
  
  
transformations/call.txt · Last modified: 2021/07/18 00:54 by craigt

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki