public class AusloeseKriterium
extends de.ipcon.db.core.AusloeseKriteriumBase
BO that must have happened for an
BedingterAlarm to trigger (or not, in the case of a Wiedervorlage).
Implementation note: A different approach would have been to have seperate classes for the "simple ones" that check
for general BO change/creation/deletion and script but I think that's a little too much effort; the
aenderungsTypCode approach used here works fine as well.
FIXME!! TT 2024-01-15: Actually this approach does require quite some special handling and also is rather confusing
in a number of places so changing this would be really useful (especially concerning the variants using "Script").| Modifier and Type | Class and Description |
|---|---|
static class |
AusloeseKriterium.AusloeseKriteriumDefinitionException |
ATT_AenderungsTyp, ATT_Attribut, ATT_AttributBX, ATT_AutoBeschreibung, ATT_BedingterAlarm, ATT_BenoetigtScript, ATT_BenoetigtWert, ATT_Script, ATT_VerfuegbareAenderungsTypen, ATT_VerfuegbareAttribute, ATT_Wert, ATT_WertBX, ENT_AusloeseKriteriumATT_AlsAntwortAnBeiAuftraegen, ATT_AlsEmpfaengerBCCBeiAuftraegen, ATT_AlsEmpfaengerBeiAuftraegen, ATT_AlsEmpfaengerCCBeiAuftraegen, ATT_AlsKontextBOBeiAuftraegen, ATT_WirdAlsAntwortAnVerwendetBeiAlarmen, ATT_WirdBenachrichtigtBCCBeiAlarm, ATT_WirdBenachrichtigtBeiAlarm, ATT_WirdBenachrichtigtCCBeiAlarm, ENT_CoreBOBLOB_KEY, CANCEL_RECALC_CALLED, D_0, D_1, D_10, D_100, D_1000, D_10000, D_5, D_MINUS_1, D_MINUS_ONE, D_ONE, D_ZERO, doExWriteLRMFunction, EMPTY_ARRAY, F_0, F_1, L_0, L10N_KEY_BO_INSTANTIATION, L10N_KEY_BO_WITH_PROTECTED_CONSTRUCTOR, NULL_AGGREGATE, NULL_ITERATORATT_Badge, ATT_Badge2, ATT_Badge3, ATT_Badge4, ATT_BLOBCreatedBy, ATT_BLOBCreatedOn, ATT_BLOBDeletedBy, ATT_BLOBDeletedOn, ATT_BLOBLastModifiedBy, ATT_BLOBLastModifiedOn, ATT_Bot, ATT_Crea, ATT_CreatedBy, ATT_CreatedModifiedText, ATT_Id, ATT_InvolvedInProcs, ATT_LastModifiedBy, ATT_Ldel, ATT_Lmod, ATT_Procs, EMPTY_ARRAY, ENT_BO| Constructor and Description |
|---|
AusloeseKriterium()
This exception signifies some "persistent" error in the definition of an
AusloeseKriterium which will prevent
the AK being checked until the definition is corrected. |
| Modifier and Type | Method and Description |
|---|---|
void |
clearWertBX() |
boolean |
fits(BP bp,
SchemaI schema,
BedingterAlarmBOStatusHelper statusHelper)
Checks if this
AusloeseKriterium is "triggered" by the given BP. |
static AusloeseKriterium |
forBOAppearance(BedingterAlarm alarm) |
static AusloeseKriterium |
forBOChange(BedingterAlarm alarm) |
static AusloeseKriterium |
forBOCreation(BedingterAlarm alarm) |
static AusloeseKriterium |
forBODeletion(BedingterAlarm alarm) |
static AusloeseKriterium |
forBODisappearance(BedingterAlarm alarm) |
static AusloeseKriterium |
forScript(BedingterAlarm alarm,
java.lang.String script) |
BX |
getAttributBX() |
AttributeI |
getAttributeObj() |
CBOAttributeTypeI |
getAttributeType() |
java.lang.String |
getAutoBeschreibung() |
java.lang.Boolean |
getBenoetigtScript() |
java.lang.Boolean |
getBenoetigtWert() |
java.util.Map<java.lang.Long,AenderungsTyp> |
getVerfuegbareAenderungsTypen() |
java.util.Map<java.lang.Long,BX> |
getVerfuegbareAttribute() |
BX |
getWertBX() |
boolean |
isMandatory(AttributeI attr)
Tells if the passed
AttributeI is mandatory in the context of this BO
(for the UI and access via the schema). |
void |
setAttribut(java.lang.String _attributeName) |
void |
setAttributBX(BX _bxAttr) |
void |
setScript(java.lang.String script) |
void |
setWert(java.lang.String _wert) |
void |
syncWert() |
java.lang.String |
toString() |
void |
verifyOnClient(BasicClientContextI ctx) |
copyFrom, copyFrom, equalPayload, getAenderungsTyp, getAttribut, getAttributNE, getAttributNN, getAttributNN, getAutoBeschreibungNE, getAutoBeschreibungNN, getAutoBeschreibungNN, getBedingterAlarm, getBenoetigtScriptNN, getBenoetigtScriptNN, getBenoetigtWertNN, getBenoetigtWertNN, getScript, getScriptNE, getScriptNN, getScriptNN, getVerfuegbareAenderungsTypenIterator, getVerfuegbareAttributeIterator, getWert, getWertNE, getWertNN, getWertNN, istBenoetigtScript, istBenoetigtWert, needAenderungsTyp, needAttribut, needAttributBX, needAutoBeschreibung, needBedingterAlarm, needBenoetigtScript, needBenoetigtWert, needPopulatedVerfuegbareAenderungsTypen, needPopulatedVerfuegbareAttribute, needScript, needWert, needWertBX, readExternal, setAenderungsTyp, setBedingterAlarm, setBOLoader, slim, slim, writeExternaladdAlsAntwortAnBeiAuftrag, addAlsEmpfaengerBCCBeiAuftrag, addAlsEmpfaengerBeiAuftrag, addAlsEmpfaengerCCBeiAuftrag, addAlsKontextBOBeiAuftrag, addWirdAlsAntwortAnVerwendetBeiAlarm, addWirdBenachrichtigtBCCBeiAlarm, addWirdBenachrichtigtBeiAlarm, addWirdBenachrichtigtCCBeiAlarm, getAlsAntwortAnBeiAuftraegen, getAlsAntwortAnBeiAuftraegenIterator, getAlsEmpfaengerBCCBeiAuftraegen, getAlsEmpfaengerBCCBeiAuftraegenIterator, getAlsEmpfaengerBeiAuftraegen, getAlsEmpfaengerBeiAuftraegenIterator, getAlsEmpfaengerCCBeiAuftraegen, getAlsEmpfaengerCCBeiAuftraegenIterator, getAlsKontextBOBeiAuftraegen, getAlsKontextBOBeiAuftraegenIterator, getWirdAlsAntwortAnVerwendetBeiAlarmen, getWirdAlsAntwortAnVerwendetBeiAlarmenIterator, getWirdBenachrichtigtBCCBeiAlarm, getWirdBenachrichtigtBCCBeiAlarmIterator, getWirdBenachrichtigtBeiAlarm, getWirdBenachrichtigtBeiAlarmIterator, getWirdBenachrichtigtCCBeiAlarm, getWirdBenachrichtigtCCBeiAlarmIterator, needPopulatedAlsAntwortAnBeiAuftraegen, needPopulatedAlsEmpfaengerBCCBeiAuftraegen, needPopulatedAlsEmpfaengerBeiAuftraegen, needPopulatedAlsEmpfaengerCCBeiAuftraegen, needPopulatedAlsKontextBOBeiAuftraegen, needPopulatedWirdAlsAntwortAnVerwendetBeiAlarmen, needPopulatedWirdBenachrichtigtBCCBeiAlarm, needPopulatedWirdBenachrichtigtBeiAlarm, needPopulatedWirdBenachrichtigtCCBeiAlarm, pgetAlsAntwortAnBeiAuftraegenLazy, pgetAlsEmpfaengerBCCBeiAuftraegenLazy, pgetAlsEmpfaengerBeiAuftraegenLazy, pgetAlsEmpfaengerCCBeiAuftraegenLazy, pgetAlsKontextBOBeiAuftraegenLazy, pgetWirdAlsAntwortAnVerwendetBeiAlarmenLazy, pgetWirdBenachrichtigtBCCBeiAlarmLazy, pgetWirdBenachrichtigtBeiAlarmLazy, pgetWirdBenachrichtigtCCBeiAlarmLazy, removeAlsAntwortAnBeiAuftrag, removeAlsEmpfaengerBCCBeiAuftrag, removeAlsEmpfaengerBeiAuftrag, removeAlsEmpfaengerCCBeiAuftrag, removeAlsKontextBOBeiAuftrag, removeWirdAlsAntwortAnVerwendetBeiAlarm, removeWirdBenachrichtigtBCCBeiAlarm, removeWirdBenachrichtigtBeiAlarm, removeWirdBenachrichtigtCCBeiAlarm, setAlsAntwortAnBeiAuftraegen, setAlsEmpfaengerBCCBeiAuftraegen, setAlsEmpfaengerBeiAuftraegen, setAlsEmpfaengerCCBeiAuftraegen, setAlsKontextBOBeiAuftraegen, setWirdAlsAntwortAnVerwendetBeiAlarmen, setWirdBenachrichtigtBCCBeiAlarm, setWirdBenachrichtigtBeiAlarm, setWirdBenachrichtigtCCBeiAlarm_set, $, $, $, $$, $$bo, $$o, $$r, $$ri, $$ri, acquireTxWriteLock, add, afterSaveOnClient, afterSaveOnServer, afterVerifyOnClient, afterVerifyOnServer, aggregate, aggregate, aggregate, aggregate, badge, badge, beforeVerifyOnClient, beforeVerifyOnServer, bumpVersion, cacheLocally, cacheLocally, cacheLocallyAndThrowUnwrappedCause, cacheLocallyAndThrowUnwrappedCause, cacheLocallyAndThrowUnwrappedUncheckedCause, cacheLocallyAndThrowUnwrappedUncheckedCause, cancelCheckConstraints, cancelRecalc, cancelRecalcViaLoadingTransaction, clone, commitTransaction, computeTransientPropertyIfAbsent, conciseDesc, conciseDesc, conciseDesc, conciseDesc, conciseDesc, conciseDesc, conciseDesc, conciseDesc, consumeAndAssureTransientPropertyExists, copyBLOBFrom, createCopy, createCopy, deepClone, deepClone, delete, describe, describe, describe, describe, describe, describe, describe, describe, describe, describe, describeId, describeId, describeId, describeId, describeId, describeId, describeId, describeId, describeNE, describeNE, describeNE, describeNE, describeNE, destub, equalPayload, equalPayload, equalPayload, equalPayload, equals, equalsBO, equalsBO, equalsRegardingAttrs, exportBLOB, exReadString, exWriteString, forgetTransientBLOBHandle, frap, getAsBOInIssueReports, getAsBOInIssueReportsIterator, getAsString, getBackendBOLoaderWithPersistenceHandler, getBadge, getBadge, getBadge2, getBadge3, getBadge4, getBLOB, getBLOB, getBLOB, getBLOB, getBLOB, getBLOBAsDataInput, getBLOBAsEncodedString, getBLOBAsEncodedString, getBLOBAsInputStream, getBLOBAsUTF8EncodedString, getBLOBCreatedBy, getBLOBCreatedOn, getBLOBDeletedBy, getBLOBDeletedOn, getBLOBInfo, getBLOBLastModifiedBy, getBLOBLastModifiedOn, getBOLoader, getBot, getBOVersion, getBytes, getCache, getCache, getCache, getCache, getCache, getCacheNT, getCacheNT, getCacheNT, getCacheNT, getCacheNT, getCacheProvider, getCacheProvider, getClazz, getCreatedBy, getCreatedModifiedText, getDefaultScriptImportsList, getDefaultScriptImportsList, getDefaultScriptImportsList, getDescribingBOWrapper, getDescribingBOWrapper, getEventProvider, getEventProvider, getId, getInvolvedInProcs, getInvolvedInProcsIterator, getLastModifiedBy, getLazyData, getLoadingTransaction, getNullIterator, getOrCreate, getOrCreate, getOrCreate, getOrCreate, getOrCreate, getOrCreate, getOrCreate, getPermissionHandler, getProcs, getProcsIterator, getRootLoaderSchema, getSchema, getSizeFast, getTransaction, getTransientProperty, getTransientProperty, getWrappedTransientProperty, hasActiveTransaction, hasBLOB, hasBLOBOnServerSide, hasBOAssignedTempId, hashCode, hasRelationObjects, hasRelationObjects, hasSessionAssignedTempId, hasTempId, hasTempIdForNewBOs, hasTransientProperty, hasTransientPropertyUnfiltered, includeAllowed, includeInTransaction, invalidateBLOBCache, isBOAssignedTempId, isCompoundChangeInProgress, isCurrentTransactionUnderAdminControl, isIgnoreModificationConstraints, isNew, isReadOnly, isServerSideAndLoadedReadOnly, isSessionAssignedTempId, isStub, isTempId, isTempIdForNewInstance, isTemporary, isVisible, isWriteable, markCompoundChangeInProgress, markDelete, markUndelete, needLoadingTransaction, needsReload, needTransactionInclusion, newInstance, newInstance, newInstance, newInstance, newInstance, newInstance, nextTempId, notifyMessageBus, notifyMessageBus, notifyMessageBus, notifyMessageBus, notifyMessageBus, notifyMessageBus, notifyMessageBusOfAdd, notifyMessageBusOfRemove, nullSafeCompareTo, nullSafeCompareTo, nullSafeContainsBO, nullSafeContainsBO, nullSafeEquals, nullSafeEqualsBO, nullSafeEqualsBO, ofStub, propertyMissing, propertyMissing, releaseCompoundChangeInProgress, releaseTxWriteLock, remove, removeBLOB, requireNonEmptyRelation, requireNonNullAttribute, requireNonNullAttributes, requireNonNullAttributes, requireNonNullAttributes, requireNonNullAttributes, requireNonNullAttributes, requireNonNullAttributes, requireNonNullAttributes, setAsString, setBadge, setBadge, setBadge2, setBadge3, setBadge4, setBOLoaderNoCascade, setBOLoaderNoCascade, setBot, setId, setId, setIgnoreModificationConstraints, setLazyData, setTempId, setTransientProperty, setTransientProperty, setTransientProperty, setTransientProperty, setTransientProperty, setTransientProperty, slim, slim, storeBLOB, storeBLOB, storeBLOB, storeBLOB, storeBLOB, stub, toMap, toMap, toMap, toMap, toMap, toMap, toMap, toMap, toMap, toMap, toMap, toMap, toRelationMapRO, toRelationMapRO, toRelationMapRO, toRelationMapRO, toRelationMapRO, toRelationMapRO, toRelationMapRO, toRelationMapRO, undelete, verifyOnServer, wrapIfGroovygetCrea, getLdel, getLmod, isDeleted, isLdel, setCrea, setLdel, setLdel, setLmodgetInstanceSpecificLocale, getInstanceSpecificPaths, l10n, l10n, l10n, l10n, l10n, l10n, l10nbumpVersion, cancelCheckConstraints, consumeAndAssureTransientPropertyExists, contains, delete, equalsBO, equalsBO, filterDeleted, filterDeleted, filterDeleted, filterDeleted, filterDeletedAndReturnMap, filterDeletedAndReturnMap, getAttribute, getAttribute, getBLOB, getBLOB, getBOVersion, getClazz, getCrea, getEntity, getEntity, getRootLoaderSchema, getSchema, getTransientProperty, hasBLOB, hasTransientProperty, hasTransientPropertyUnfiltered, isDeleted, isNew, isReadOnly, isSubEntityOf, isSubEntityOf, isTemporary, isVisible, setTransientProperty, toRelationMapROcollectIds, collectIds, getCommaSeparatedIdList, getId, hasTempId, toMap, toMapcollectDescribe, collectDescribe, conciseDesc, conciseDesc, conciseDesc, conciseDesc, conciseDesc, conciseDesc, conciseDesc, conciseDesc, describe, describe, describe, describe, describeAndConciseDesc, describeAndConciseDesc, describeAndConciseDesc, describeAndConciseDesc, describeAndConciseDesc, describeNE, describeNE, join, join, join, notEmptyDescriptionpublic AusloeseKriterium()
AusloeseKriterium which will prevent
the AK being checked until the definition is corrected. It is not signalled for cases where just a specific
check failed, for example due to an error in the execution of an AK's Script.public static AusloeseKriterium forBOChange(BedingterAlarm alarm)
public static AusloeseKriterium forBOCreation(BedingterAlarm alarm)
public static AusloeseKriterium forBODeletion(BedingterAlarm alarm)
public static AusloeseKriterium forBOAppearance(BedingterAlarm alarm)
public static AusloeseKriterium forBODisappearance(BedingterAlarm alarm)
public static AusloeseKriterium forScript(BedingterAlarm alarm, java.lang.String script)
public void verifyOnClient(BasicClientContextI ctx)
verifyOnClient in interface SaveVetoIverifyOnClient in class BOpublic boolean isMandatory(AttributeI attr)
BOAttributeI is mandatory in the context of this BO
(for the UI and access via the schema).
Please note that the schema-defined, not BO-related mandatories are taken into account here as well,
i.e. the method will consistently return true if the attribute is marked in the schema as
unless overridden in a subclass. Subclasses may override this method to add their own rules. If no rule exists in the subclass, the decision should always be delegated to super instead of just returning false to avoid inadvertenly breaking the rules defined in super-classes or the schema. You must never change the signature of this method, as subclasses override this and a lot of code would break or need to be adjusted.
isMandatory in interface BOIisMandatory in class BOAttributeI is mandatory in the context of this BOpublic void setScript(java.lang.String script)
setScript in class de.ipcon.db.core.AusloeseKriteriumBasepublic boolean fits(BP bp, SchemaI schema, BedingterAlarmBOStatusHelper statusHelper) throws Alarm.AlarmDefinitionException, AusloeseKriterium.AusloeseKriteriumDefinitionException
AusloeseKriterium is "triggered" by the given BP.bp - the BP that should be checked if it fits or does not
fit this AusloeseKriteriumschema - the SchemaI to get AttributeIs from and
for use by possibly involved scripts_babsh - helper class instance used to check if the BO
associated with the BP fitted the BedingterAlarm of
this AK before and/or after the BT/TXBP "triggers" this AK, false if notAusloeseKriterium.AusloeseKriteriumDefinitionException - if some "persistent" error in the definition of this AK is
encountered during checkingAlarm.AlarmDefinitionExceptionpublic java.lang.Boolean getBenoetigtWert()
getBenoetigtWert in class de.ipcon.db.core.AusloeseKriteriumBasepublic java.lang.Boolean getBenoetigtScript()
getBenoetigtScript in class de.ipcon.db.core.AusloeseKriteriumBasepublic java.lang.String getAutoBeschreibung()
getAutoBeschreibung in class de.ipcon.db.core.AusloeseKriteriumBasepublic void setAttribut(java.lang.String _attributeName)
setAttribut in class de.ipcon.db.core.AusloeseKriteriumBasepublic BX getAttributBX()
getAttributBX in class de.ipcon.db.core.AusloeseKriteriumBasepublic void setAttributBX(BX _bxAttr)
setAttributBX in class de.ipcon.db.core.AusloeseKriteriumBasepublic java.util.Map<java.lang.Long,BX> getVerfuegbareAttribute()
getVerfuegbareAttribute in class de.ipcon.db.core.AusloeseKriteriumBasepublic java.util.Map<java.lang.Long,AenderungsTyp> getVerfuegbareAenderungsTypen()
getVerfuegbareAenderungsTypen in class de.ipcon.db.core.AusloeseKriteriumBasepublic void setWert(java.lang.String _wert)
setWert in class de.ipcon.db.core.AusloeseKriteriumBasepublic BX getWertBX()
getWertBX in class de.ipcon.db.core.AusloeseKriteriumBasepublic void clearWertBX()
public AttributeI getAttributeObj()
public CBOAttributeTypeI getAttributeType()
public void syncWert()
Copyright © 2000-2025 OAshi S.à r.l. All Rights Reserved.