Module: Stupidedi::Guides::FortyTen::SegmentReqs
- Defined in:
- lib/stupidedi/guides/004010/segment_reqs.rb
Overview
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 <condition>. If not required by <condition>, 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 <condition>. If not required by <condition>, do not send”. The segment described by the rule cannot occur except when the condition holds.
Schema::SegmentReq.new(false, false, "S")