CX_CONDITIONED_ALLOCATION
Class hierarchy
- CX_CLASS
- CX_SIMPLE
- CX_TERMED
- CX_EXPANDABLE
- CX_ALLOCATION
- CX_CONDITIONED_ALLOCATION
- CX_ALLOCATION
- CX_EXPANDABLE
- CX_TERMED
- CX_SIMPLE
Description: (Business Pattern)
This class is used to describe conditional allocations. Normally, individual allocations are placed in the conditional table to represent the following scenarios, for example:
Example:
If "Requirement=engl.language skills (project planning)
then
"Person C with a time of 2 hours (to reserve)"
otherwise
"The person D with a time of 3 hours (reserve)".
Code example:
Var(setAllocation, condAllocation, condition, singleAllocation)
// Allokationstabelle generieren
CreatePersObject(CX_SET_ALLOCATION) -> setAllocation
// Bedingte Allokation generieren
CreatePersObject(CX_CONDITIONED_ALLOCATION) -> condAllocation
// Bedingte Allokation in Allokationstabelle setzen
condAllocation setAllocation Insert(allocations, allocators)
// Neuen Eintrag in die bedingte Tabelle schreiben
CreatePersObject(CX_FCONDITION) -> condition
condition condAllocation GetManager(OBJECT) Call(Instantiate)
// Einzel-Allokation an die Bedingung setzen
CreatePersObject(CX_SINGLE_ALLOCATION) -> singleAllocation
singleAllocation condition SetReference(_object)
condition condAllocation Insert(allocation, allocators)
Function | MA* | Parameters | Return | Brief description |
---|---|---|---|---|
SanityCheck | INTEGER | Check for consistency of the object | ||
AllocatorByCondition | STRING | OBJECT | ||
AllocatorByConditionMA | * | STRING | ||
AllocatorsByCondition | STRING | COLLECTION | ||
AllocatorsByConditionMA | * | STRING | ||
AssignSlot | * | STRING | Set/read slots that refer to another data field | |
ClassFilter | STRING, INTEGER | OBJECT | This object, if it corresponds to a certain class | |
ConditionedFilter | STRING | OBJECT | ||
ConditionedFilter2 | OBJECT | OBJECT | ||
Deleted | INTEGER | Object marked as deleted? | ||
Description | STRING | Name of this object | ||
GetDomain | INTEGER | Domain of this object | ||
GetSiblings | COLLECTION | All siblings of this object | ||
GetSiblings2 | COLLECTION | All siblings of this object | ||
GetSlotEntries | VECTOR<object></ob | Return of internal information about slots | ||
Inspect | ||||
LastUpdate | OBJECT | Date of the last write access | ||
LastUser | INTEGER | User who last had write access to the object | ||
link | OBJECT | Add this object to the list of objects with validity | ||
NextValidObject | OBJECT | Subsequent validity object in time | ||
Occurrences | OBJECT, INTEGER | COLLECTION | ||
PreviousValidObject | OBJECT | Previous validity object in time | ||
Resolve | OBJECT, OBJECT, STRING, INTEGER | |||
ResolveNew | OBJECT, OBJECT, STRING, INTEGER | |||
RestrictedValidity | * | Area of validity restricted? | ||
SetDomain | INTEGER,INTEGER | Set domain | ||
SetInspectionMessage | INTEGER | |||
SetPreMessage | INTEGER | |||
ShortName | STRING | Short name of this object | ||
Siblings | * | Objects with validity | ||
SpanDateValidity | * | Period of validity | ||
string | INTEGER | CX_STRING | Returns the string representation of the object | |
UniqueID | STRING | Content of the fixed data field "uniqueID | ||
Unlink | Remove this object from the list of objects with validity | |||
Unlink2 | Remove this object from the list of objects with validity | |||
Valid | OBJECT | INTEGER | Check validity | |
ValidSince | OBJECT | Start of validity period | ||
ValidToday | INTEGER | Valid today? | ||
ValidUntil | OBJECT | End of validity period | ||
VerifySiblings | INTEGER | Check ring of exchange objects |
* MA = Member Access function,
grey background = inherited function
Data field | Type | Reference class | I* | Brief description |
---|---|---|---|---|
allocation | CX_CONDITIONED_BAG | Conditional table of allocations | ||
conditionedAllocationEnum | ENUMCHAR | 0: no control 1: if quantity = zero, neglect allocation 2: Allow multiple hits | ||
allocators | REL_MN | CX_EXPANDABLE | which objects are described by this allocation object. (REL_MN for CX_BUSINES_OBJECT) | |
amount | POINTER | CX_AMOUNT | Quantity of the allocation, valid per reference quantity of the main allocation.Quantities are multiplied in the hierarchy (CX_PRODUCT_AMOUNT) The quantity can be assigned to a slot variable via assigned slot. If the set is a specific variable, then this variable is specified in a formula. | |
attributeSet | POINTER | CX_ATTRIBUTE_SET | Attributes for the description of the allocation | |
baseAmount | POINTER | CX_AMOUNT | Base quantity, always applies per allocation, regardless of the quantity of allocations higher up in the hierarchy | |
uniqueID | STRING | * | Unique key | |
validity | POINTER | CX_VALIDITY | Validity period of the object |
* I = Indexable data field,
grey background = inherited data field
Module | Brief description | |
---|---|---|
alloccon.mod | billcond.htm | jobscond.htm | salecond.htm | Conditional allocation base module |
billcond.mod | billcond.htm | salecond.htm | Conditional parts list position Editing module |
jobscond.mod | jobscond.htm | salecond.htm | Conditional work plan sequence Editing module |