Module: Stupidedi::TransactionSets::Common::Implementations::SegmentReqs

Defined in:
lib/stupidedi/transaction_sets/common/implementations/segment_reqs.rb

Overview

See Also:

  • 2.2 Implementation Usage

Constant Summary collapse

Required =

Declares that this segment must always be sent. Required segments within Situational loops only occur when the loop occurs.

Schema::SegmentReq.new(true,  false, "R")
Situational =

Use of this segment varies, depending on data content and business context as described in the defining rule. The defining rule is documented in a Situational Rule attached to the segment.

There are two forms of Situational Rules. The first is "Required when . If not required by , the segment may be provided at the discretion of the sender, but it cannot be required or requested by the receiver.'

The other form is "Required when . If not required by , do not send". The segment described by the rule cannot occur except when the condition holds.

Schema::SegmentReq.new(false, false, "S")