private boolean _journeyIdRuleNest( AcAccountModelCacheAccess cache, AcInclusionRule e, AcMessageActionIF action, AcMessageNestIF b, StringBuilder log) { if (log != null) log.append("AcMessageNestIF"); if (!b.hasAssignedAliasId()) { if (log != null) log.append(", no assigned alias"); return false; } AcAlias alias = cache.getAliasCache().getAlias(b.getAssignedAliasId()); if (alias == null) JwUtility.error("Alias (%d) not found for %s", b.getAssignedAliasId(), b.format()); AcJourneyIdTag t = AcJourneyIdTagUtility.getJourneyIdTag(alias.getTag()); if (t == null) { if (log != null) log.append(", tag is not a journey id"); debug(e, alias, false); return false; } boolean r = _journeyIdRuleNest(e, t); debug(e, alias, r); return r; }
private AcEdiUpuResdit11ReceptacleList _createReceptacleList() { if (_receptacleLists.size() >= MAX_RECEPTACLE_LISTS) JwUtility.error( "Attempted to create %s when already at capacity. Max capacity %s", JwUtility.formatShortClassName(AcEdiUpuResdit11ReceptacleList.class), MAX_RECEPTACLE_LISTS); AcEdiUpuResdit11ReceptacleList x = new AcEdiUpuResdit11ReceptacleList(); _receptacleLists.add(x); return x; }
public AcEdiMessage translate(AcInvoiceClaimModelAbstract x) { if (!x.isUspsD1InvoiceClaimV2R1Model()) JwUtility.error("Model not compatible with AcEdiUspsD1InvoiceClaimV2R1Translator."); AcUspsD1InvoiceClaimV2R1Claim c = (AcUspsD1InvoiceClaimV2R1Claim) x; AcEdiMessage message = new AcEdiMessage(); addHeader(message, c, 100); addBody(message, c); addFooter(message, c, 100); return message; }
private boolean _journeyIdRule( AcAccountModelCacheAccess cache, AcInclusionRule e, AcMessageActionIF action, AcMessageSubjectIF b, StringBuilder log) { if (b instanceof AcMessageItemIF) { if (log != null) log.append("AcMessageItemIF"); return false; } if (b instanceof AcMessageNestIF) return _journeyIdRuleNest(cache, e, action, (AcMessageNestIF) b, log); JwUtility.error( "Unsupported batch model type for \"%s\" Inclusion Rule %s", e.getTypeLabel(), b.format()); return false; }