LAE

Welcome to the LAE community!  Please feel free to start a discussion in the discussion tab or join in a conversation.

Discussions

Members

Resources

Events

 View Only
  • 1.  Enable/disable Output Node

    Employee
    Posted 08-15-2012 19:41

    Note: This was originally posted by an inactive account. Content was preserved by moving under an admin account.

    Originally posted by: PThai

    Hi All

    Does anyone know how to enable or disable an output node (eg CSV Output) depending on whether there is input or not to the output node. Ie I don't want to produce an output file if there is zero records to output.

    Thanks


  • 2.  RE: Enable/disable Output Node

    Employee
    Posted 08-16-2012 05:39

    Note: This was originally posted by an inactive account. Content was preserved by moving under an admin account.

    Originally posted by: Tim Meagher

    Hi,

    If you just want to ensure that the CSV Output node doesn't run when there are no records input, then you should try using the MetaCheck node - found in the "Metadata and Structure" category in the node palette.

    For instance, you could provide the input to both the MetaCheck node and the CSV Output node and also create a link between the out-clock on the MetaCheck node and the in-clock on the CSV Output node.
    Then, within the MetaCheck node, simply set the TerminusAction to "NeitherOutputNorClock" and the SuccessAction to "BothOutputAndClock" and the MinimumRecordCount to 1.

    Hope this helps,
    Tim.


  • 3.  RE: Enable/disable Output Node

    Employee
    Posted 08-19-2012 17:49

    Note: This was originally posted by an inactive account. Content was preserved by moving under an admin account.

    Originally posted by: xathras

    Hi Tim,

    Does Meta check still exist in 4.5.x versions and in the same way?

    Regards
    Wayne


  • 4.  RE: Enable/disable Output Node

    Employee
    Posted 08-20-2012 03:26

    Note: This was originally posted by an inactive account. Content was preserved by moving under an admin account.

    Originally posted by: Tim Meagher

    Hey,

    The MetaCheck node exists in LAE 4.1.x and LAE 4.5.x, however, the node has changed slightly between 4.1.x and 4.5.x.
    From the LAE (4.5.0) release notes:

    			
    				The MetaCheck node has been changed to improve performance and add extra functionality. The node no longer has an output by default. If no output is present, and there are no checks involving number of records, then the node will complete much quicker than it currently does.


    The parameter "TerminusAction" replaces the parameter "TerminusType", with the same options and defaults. Existing nodes using the "TerminusType" will still function correctly, as this parameter has simply been hidden, and if this parameter is set, and TerminusAction is not set, then TerminusType is used.


    The parameter "SuccessAction" has been added. This has the same options as TerminusType/TerminusAction, but describes what to do in the case that all of the tests pass.
    Note that with the removal of the default output, existing MetaCheck nodes that used this output will need to be rewired. However, in most cases (depending on the current setting of TerminusType) it would be recommended to simply connect the inclock of these nodes to the outclock of MetaCheck, and connect their input to the same source as the input to the MetaCheck node.


  • 5.  RE: Enable/disable Output Node

    Employee
    Posted 08-20-2012 18:59

    Note: This was originally posted by an inactive account. Content was preserved by moving under an admin account.

    Originally posted by: PThai

    Hi Tim

    I used the Meta Check and it works ie CSV output does not run. However, because the CSV output node is part of a composite which is clocked to another composite, the unexecuted CSV output prevents the clocked composite from running. Is there a way to disable the CSV output instead just leaving it in an unexecuted state or is there another way around this?


  • 6.  RE: Enable/disable Output Node

    Employee
    Posted 08-20-2012 19:22

    Note: This was originally posted by an inactive account. Content was preserved by moving under an admin account.

    Originally posted by: mermacora

    Hi Pamela

    Try setting the TerminusAction in the MetaCheck node to "ClockWithPropagate".
    This should allow nodes clocked to your composite to run even when there are zero records.


  • 7.  RE: Enable/disable Output Node

    Employee
    Posted 12-05-2014 04:36

    Note: This was originally posted by an inactive account. Content was preserved by moving under an admin account.

    Originally posted by: Leaner

    Originally posted by: Tim Meagher
    					

    Hi,

    If you just want to ensure that the CSV Output node doesn't run when there are no records input, then you should try using the MetaCheck node - found in the "Metadata and Structure" category in the node palette.

    For instance, you could provide the input to both the MetaCheck node and the CSV Output node and also create a link between the out-clock on the MetaCheck node and the in-clock on the CSV Output node.
    Then, within the MetaCheck node, simply set the TerminusAction to "NeitherOutputNorClock" and the SuccessAction to "BothOutputAndClock" and the MinimumRecordCount to 1.

    Hope this helps,
    Tim.
    Super helpful, thanks!