SAP ABAP Class CL_SWF_RLS_RULE (Business Rule)
Hierarchy
SAP_BASIS (Software Component) SAP Basis Component
   BC-BMT-WFM (Application Component) SAP Business Workflow
     SWF_RLS (Package) Rules - Workflow Rules and Rule Systems
Meta Relationship - Using
# Relationship type Using Short Description Created on
1 Interface implementation (CLASS c. INTERFACES i_ref)  IF_BRR_RULE_METADATA Read and Set Metadata - BRR Internal 20030722
2 Interface implementation (CLASS c. INTERFACES i_ref)  IF_SWF_RLS_BOOLEAN Evaluate Boolean Expression 20030623
3 Interface implementation (CLASS c. INTERFACES i_ref)  IF_SWF_RLS_RULE Business Rule 20030623
Properties
Class CL_SWF_RLS_RULE  
Short Description Business Rule    
Super Class    
Instantiability of a Class 2  Public 
Final    
General Data
Message Class SWF_RLS_001    
Program status     
Category 0   
Package SWF_RLS   Rules - Workflow Rules and Rule Systems 
Created 20030623   SAP 
Last change 20110908   SAP 
Shared Memory-enabled    
Fixed point arithmetic    
Unicode checks active    
Forward declarations
# Type group / Object type Type Type Description
1 SWFBR Type group use (TYPE-POOLS tp)  Type group use (TYPE-POOLS tp)
2 SWFRL Type group use (TYPE-POOLS tp)  Type group use (TYPE-POOLS tp)
3 T Type group use (TYPE-POOLS tp)  Type group use (TYPE-POOLS tp)
Interfaces
# Interface Abstract Final Description Created on
1 IF_BRR_RULE_METADATA Read and Set Metadata - BRR Internal 20030722
2 IF_SWF_RLS_BOOLEAN Evaluate Boolean Expression 20030623
3 IF_SWF_RLS_RULE Business Rule 20030623
Friends
Class CL_SWF_RLS_RULE has no friend class.
Attributes
# Attribute Level Visibility Read only Typing Associated Type Initial Value Description Created on
1 MC_COND_SERIALIZER_CLASSNAME Constant Private Type reference (TYPE) STRING 'CL_SWF_RLS_COND_SERIALIZER' Name of Serialization Class for Conditions 20051109
2 MC_OWN_MSGID Constant Private Type reference (TYPE) SYMSGID 'SWF_RLS_001' Name of Message Class 20030627
3 MC_RULE_TAG_NAME Constant Private Type reference (TYPE) STRING 'RLS_CONDITION' For Serialization: TopLevel Tag 20030627
4 MC_SERIALIZER_CLASSNAME Constant Private Type reference (TYPE) STRING 'CL_SWF_RLS_RULE_SERIALIZER' Name of Serialization Class for Rules 20030723
5 M_ALLOW_BUFFER Instance attribute Private Type reference (TYPE) XFELD Last Evaluation Result May Be Reused 20030623
6 M_CONDITION Instance attribute Private Object reference (TYPE REF TO) CL_SWF_RLS_CONDITION Condition 20030623
7 M_CONDITION_CLASS Instance attribute Private Type reference (TYPE) STRING Name of class that implements condition 20030627
8 M_CONTAINER Instance attribute Private Type reference (TYPE) SWFRCNTREF Container Object (Definition + Values) 20030623
9 M_CUR_LANGU Instance attribute Private Type reference (TYPE) LANGU Currently Loaded Language 20030623
10 M_DB_HEADER Instance attribute Private Type reference (TYPE) BRR_HEADER Database header ONLY used by persistence classes 20030722
11 M_DESCRIPTION Instance attribute Private Type reference (TYPE) STRING Description of Condition (Language-Specific) 20030623
12 M_EXPR_FACTORY Instance attribute Private Object reference (TYPE REF TO) IF_SWF_IFS_EXPRESSION_FACTORY Instance Management for Workflow Expressions (Released) 20030623
13 M_LOG_CONTEXT Static Attribute Private Type reference (TYPE) SWF_LOGCTX Context 'Rule Evaluation' for Creating Exceptions 20030627
14 M_NAME Instance attribute Private Type reference (TYPE) CHAR32 Name of Condition (Not Language-Specific) 20030623
15 M_NAMESPACE_DEF Instance attribute Private Type reference (TYPE) SWFEXNMAPT Namespace Declarations (Only for XPath Expressions) 20030624
16 M_OWN_ID Instance attribute Private Type reference (TYPE) SWFRULEID Technical Shortcut (not Language-Specific) 20030623
17 M_REQ_LANGU Instance attribute Private Type reference (TYPE) LANGU Last Language Requested 20030623
18 M_RESULT_BUFFER Instance attribute Private Type reference (TYPE) T_RESULT_BUFFER Result of last evaluation 20030624
19 M_RESULT_MAP Instance attribute Private Type reference (TYPE) SWFRLSRMAP Assignment of result expressions to outcomes 20030624
20 M_RULE_PERS_CLASSNAME Instance attribute Private Type reference (TYPE) CHAR32 SWFBR_RTYPE_RULE Rule Type 20051108
21 M_RULE_PERS_TYPE Instance attribute Private Type reference (TYPE) BRR_RTYPE SWFBR_RTYPE_RULE Rule Type 20051108
22 M_RULE_TYPE Instance attribute Private Type reference (TYPE) BRR_RTYPE SWFBR_RTYPE_RULE Rule Type 20051108
23 M_SERIALIZER Instance attribute Private Object reference (TYPE REF TO) CL_SWF_EXP_XRFC_SERIALIZER Serializer for Conditions 20030623
24 M_T100 Instance attribute Private Type reference (TYPE) SWF_T100MS T100 Message (for Error Macros) 20030623
Methods
# Method Level Visibility Method type Description Created on
1 CHECK Instance method Public Method Checks the Syntax of the Condition 20030623
2 CLASS_CONSTRUCTOR Static method Public Constructor CLASS_CONSTRUCTOR 20030627
3 COMPILE Instance method Public Method Creates/Updates Runtime Representation 20030623
4 CONSTRUCTOR Instance method Public Constructor Constructor 20030623
5 DESERIALIZE Static method Public Method Restore Condition from Datastream 20030623
6 EDIT Instance method Public Method Edit Condition in Worflow Condition Editor 20030623
7 EVALUATE Instance method Public Method 20030722
8 FILTER_EXPRESSION Instance method Private Method Internal: Select Expression According to its Properties 20030624
9 FREE Instance method Public Method Reset Condition to Initial State 20030623
10 GET_BASE_ELEMENT_NAMES Instance method Public Method List with Names of All Container Elements Concerned 20030623
11 GET_CONDITION Instance method Public Method Get Condition Object 20030624
12 GET_CONDITION_CLASS Instance method Public Method Get Implementing Class for Logical Condition 20030627
13 GET_CONTAINER Instance method Public Method Return Container of Condition 20030722
14 GET_EXPRESSIONS Instance method Public Method List of all expression used in the rule 20030623
15 GET_EXPR_DEF_FOR_OUTCOME Instance method Private Method Fetch expression defintion for given outcome 20030627
16 GET_ID Instance method Public Method 20030723
17 GET_NAME Instance method Public Method Read unique name of condition 20030623
18 GET_NAMESPACE_DEF Instance method Public Method Get namespace mapping 20030624
19 GET_OUTCOME Instance method Public Method 20030627
20 GET_RESULT Instance method Public Method 20030627
21 GET_RESULT_EXPRESSION Instance method Public Method 20030627
22 GET_RESULT_MAP Instance method Public Method Get assignment outcome<->result expression 20030624
23 GET_RULE_TYPE Instance method Public Method 20030723
24 GET_TEXTS Instance method Public Method Read text(s) of condition 20030623
25 INITIALIZE_RESULT_MAP Instance method Private Method Get Standard Result Map 20030627
26 IS_INITIAL Instance method Public Method Rule Initial (empty condition and no result mapping)? 20030623
27 SERIALIZE Instance method Public Method Serialize Condition 20030623
28 SET_CONDITION Instance method Public Method Set Condition Object 20030624
29 SET_CONDITION_CLASS Instance method Public Method Set implementing class for logical condition 20030627
30 SET_CONTAINER Instance method Public Method Set Container 20030722
31 SET_NAMESPACE_DEF Instance method Public Method Set Namespace Mapping 20030624
32 SET_RESULT_MAP Instance method Public Method Set assignment outcome<->result expression 20030624
33 SET_TEXTS Instance method Public Method Set Text(s) of Condition 20030623
34 UPDATE_CHANGE_DATA Instance method Private Method Update Header Data (Created/Changed/...) 20030623
Events
Class CL_SWF_RLS_RULE has no event.
Types
Class CL_SWF_RLS_RULE has no local type.
Method Signatures

Method CHECK Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting EXCEPTION_LIST Call by reference Type reference (TYPE) SWF_CX_TAB Liste der aufgetretenen Fehler/Warnungen 20030624
2 Exporting SYNTAX_OK Value transfer Type reference (TYPE) XFELD 'X' - Syntaxprüfung ok. ' ' - Syntaxprüfung lieferte Fehler 20030623
3 Exporting WORST_ERROR Call by reference Type reference (TYPE) SY-MSGTY ' ' - keine Meldung, 'E', 'W', 'I' - Nachrichten-Typ 20030624

Method CHECK on class CL_SWF_RLS_RULE has no exception.

Method CLASS_CONSTRUCTOR Signature

Method CLASS_CONSTRUCTOR on class CL_SWF_RLS_RULE has no parameter.
Method CLASS_CONSTRUCTOR on class CL_SWF_RLS_RULE has no exception.

Method COMPILE Signature

Method COMPILE on class CL_SWF_RLS_RULE has no parameter.
# Exception Resumable Description Created on
1 CX_SWF_RLS_RULE Fehler beim Erzeugen des Bytecode 20030623

Method CONSTRUCTOR Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing CONDITION Call by reference Object reference (TYPE REF TO) CL_SWF_RLS_CONDITION Bedingung 20030624
2 Importing CONDITION_CLASS Call by reference Type reference (TYPE) STRING Implementiert Bedingung (IF_SWF_RLS_BOOLEAN) 20030627
3 Importing CONTAINER Call by reference Type reference (TYPE) SWFRCNTREF Containerobjekt 20030623
4 Importing EXPRESSION_FACTORY Call by reference Object reference (TYPE REF TO) CL_SWF_EXP_FACTORY Instanz, die die Ausdrucksauswertung koordiniert 20030624
5 Importing NAMESPACE_DEFINITION Call by reference Type reference (TYPE) SWFEXNMAPT Definition von Namespace-Abkürzungen 20030624
6 Importing RESULT_MAP Call by reference Type reference (TYPE) SWFRLSRMAP Zuordnung von Ausgang<->Ergebnisausdruck 20030624
7 Importing RULE_DESCRIPTION Call by reference Type reference (TYPE) STRING Beschreibung der Bedingung (sprachabhängig) 20030624
8 Importing RULE_ID Call by reference Type reference (TYPE) SWFRULEID Eindeutige ID der Bedingung 20030624
9 Importing RULE_NAME Call by reference Type reference (TYPE) SWFDNAME Name der Bedingung 20030624
10 Importing RULE_PERSISTENCE_TYPE Call by reference Type reference (TYPE) BRR_RTYPE Kennzeichen für den Persistenztyp einer Regel 20051108
11 Importing RULE_TYPE Call by reference Type reference (TYPE) BRR_RTYPE Kennzeichen für Regeltyp: 'C' - Bedingung, 'R' -Regel 20051108
12 Importing TEXT_LANGUAGE Call by reference Type reference (TYPE) SYLANGU SY-LANGU Textsprache 20030623

Method CONSTRUCTOR on class CL_SWF_RLS_RULE has no exception.

Method DESERIALIZE Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Returning RULE Value transfer Object reference (TYPE REF TO) CL_SWF_RLS_RULE Bedingungsobjekt 20030624
2 Importing SERIALIZED_RULE Value transfer Type reference (TYPE) XSTRING Serialisierte Bedingung (internes Format!) 20030723
# Exception Resumable Description Created on
1 CX_SWF_RLS_RULE Fehler beim Serialisieren der Bedingung 20030623

Method EDIT Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Returning CONDITION_CHANGED Value transfer Type reference (TYPE) XFELD 'X' Bedingung wurde geändert, ' ' - keine Änderung 20030623
2 Importing DEFAULT_TIME_PROFILE Call by reference Type reference (TYPE) CHAR32 Default-Terminprofil 20030623
3 Importing DISPLAY_MODE Call by reference Type reference (TYPE) XFELD 'X' 'X' - nur anzeigen, ' ' - editieren erlaubt 20030623
4 Importing EDITOR_TITLE Call by reference Type reference (TYPE) STRING Titelzeile für das Editierfenster 20030623
5 Importing ENABLE_TIMECALC Call by reference Type reference (TYPE) XFELD 'X' - Terminregeln anzeigen 20030623

Method EDIT on class CL_SWF_RLS_RULE has no exception.

Method EVALUATE Signature

Method EVALUATE on class CL_SWF_RLS_RULE has no parameter.
Method EVALUATE on class CL_SWF_RLS_RULE has no exception.

Method FILTER_EXPRESSION Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing CONST Call by reference Type reference (TYPE) XFLAG 'X' - Konstanten berücksichtigen 20030624
2 Importing CONT Call by reference Type reference (TYPE) XFLAG 'X' - Containerausdrücke berücksichtigen 20030624
3 Changing EXPRESSIONS Call by reference Type reference (TYPE) SWFEXPRTAB Zu ergänzende Liste mit Ausdrücken 20030624
4 Importing SOURCE Call by reference Type reference (TYPE) STRING Ausdrucks-Quelle 20030624
5 Importing SYST Call by reference Type reference (TYPE) XFLAG 'X' - Systemausdrücke berücksichtigen 20030624
# Exception Resumable Description Created on
1 CX_SWF_EXP_EXPRESSION Ausnahme im Ausdrucks-Service 20030624

Method FREE Signature

Method FREE on class CL_SWF_RLS_RULE has no parameter.
Method FREE on class CL_SWF_RLS_RULE has no exception.

Method GET_BASE_ELEMENT_NAMES Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Returning BASE_ELEMENT_NAMES Value transfer Type reference (TYPE) SWFSTRTAB Tabelle mit Elementnamen, sortiert, ohne Duplikate 20030623
2 Importing SKIP_ERRORS Call by reference Type reference (TYPE) XFLAG SPACE 'X' - Fehler überspringen, ' ' - Syntaxfehler= RAISE 20030623
# Exception Resumable Description Created on
1 CX_SWF_EXP_EXPRESSION Ausnahme im Ausdrucks-Service 20030623
2 CX_SWF_UTL_OBJ_CREATE_FAILED Ausdrucks-Factory konnte nicht erzeugt werden 20030623

Method GET_CONDITION Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Returning CONDITION Value transfer Object reference (TYPE REF TO) CL_SWF_RLS_CONDITION Logische Bedingung (Entscheidungsgrundlage der Regel) 20030624

Method GET_CONDITION on class CL_SWF_RLS_RULE has no exception.

Method GET_CONDITION_CLASS Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Returning CONDITION_CLASS Value transfer Type reference (TYPE) STRING Name der implementierenden ABAP-OO-Klasse 20030627

Method GET_CONDITION_CLASS on class CL_SWF_RLS_RULE has no exception.

Method GET_CONTAINER Signature

Method GET_CONTAINER on class CL_SWF_RLS_RULE has no parameter.
Method GET_CONTAINER on class CL_SWF_RLS_RULE has no exception.

Method GET_EXPRESSIONS Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Returning EXPRESSIONS Value transfer Type reference (TYPE) SWFEXPRTAB Tabelle mit Ausdrucksreferenzen 20030623
2 Importing SKIP_SYNTAX_ERRORS Call by reference Type reference (TYPE) XFLAG SPACE 'X' - Fehler überspringen, ' ' - Syntaxfehler= RAISE 20030623
3 Importing WANT_CONSTANT_EXPR Call by reference Type reference (TYPE) XFLAG SPACE 'X' - Konstante Ausdrücke liefern 20030623
4 Importing WANT_CONTAINER_EXPR Call by reference Type reference (TYPE) XFLAG 'X' 'X' - Containerbasierte Ausdrücke liefern 20030623
5 Importing WANT_SYSTEM_EXPR Call by reference Type reference (TYPE) XFLAG SPACE 'X' - Systemausdrücke (SY-UZEIT, statische Methodenaufrufe) 20030623
# Exception Resumable Description Created on
1 CX_SWF_EXP_EXPRESSION Ausnahme im Ausdrucks-Service 20030623
2 CX_SWF_EXP_SYNTAX_ERROR Syntaxfehler in einem Ausdruck der Bedingung 20030623
3 CX_SWF_UTL_OBJ_CREATE_FAILED Ausdrucks-Factory konnte nicht erzeugt werden. 20030623

Method GET_EXPR_DEF_FOR_OUTCOME Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing OUTCOME Call by reference Type reference (TYPE) SWBBOOLEAN Boolscher Wert (T/F/E) 20030627
2 Returning RESULT_EXPRESSION Value transfer Type reference (TYPE) STRING Ausdrucksdefinition für diesen Ausgang 20030627

Method GET_EXPR_DEF_FOR_OUTCOME on class CL_SWF_RLS_RULE has no exception.

Method GET_ID Signature

Method GET_ID on class CL_SWF_RLS_RULE has no parameter.
Method GET_ID on class CL_SWF_RLS_RULE has no exception.

Method GET_NAME Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Returning NAME Value transfer Type reference (TYPE) STRING Eindeutiger Name 20030623

Method GET_NAME on class CL_SWF_RLS_RULE has no exception.

Method GET_NAMESPACE_DEF Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Returning NAMESPACE_DEFINITION Value transfer Type reference (TYPE) SWFEXNMAPT Tabelle mit vorhandenen Namspace-Deklarationen 20030624

Method GET_NAMESPACE_DEF on class CL_SWF_RLS_RULE has no exception.

Method GET_OUTCOME Signature

Method GET_OUTCOME on class CL_SWF_RLS_RULE has no parameter.
Method GET_OUTCOME on class CL_SWF_RLS_RULE has no exception.

Method GET_RESULT Signature

Method GET_RESULT on class CL_SWF_RLS_RULE has no parameter.
Method GET_RESULT on class CL_SWF_RLS_RULE has no exception.

Method GET_RESULT_EXPRESSION Signature

Method GET_RESULT_EXPRESSION on class CL_SWF_RLS_RULE has no parameter.
Method GET_RESULT_EXPRESSION on class CL_SWF_RLS_RULE has no exception.

Method GET_RESULT_MAP Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Returning RESULT_MAP Value transfer Type reference (TYPE) SWFRLSRMAP Zuordnung Ausgang<->Ergebnis und Fehlermapping 20030624

Method GET_RESULT_MAP on class CL_SWF_RLS_RULE has no exception.

Method GET_RULE_TYPE Signature

Method GET_RULE_TYPE on class CL_SWF_RLS_RULE has no parameter.
Method GET_RULE_TYPE on class CL_SWF_RLS_RULE has no exception.

Method GET_TEXTS Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting CURRENT_LANGUAGE Call by reference Type reference (TYPE) SYLANGU Vorhandene Textsprache 20030623
2 Exporting DESCRIPTION Call by reference Type reference (TYPE) STRING Beschreibender Text der Bedingung (sprachabhängig) 20030623
3 Exporting NAME Call by reference Type reference (TYPE) SWFDNAME Eindeutiger Name 20030623
4 Importing REQUESTED_LANGUAGE Call by reference Type reference (TYPE) SYLANGU SY-LANGU Gewünschte Textsprache 20030623

Method GET_TEXTS on class CL_SWF_RLS_RULE has no exception.

Method INITIALIZE_RESULT_MAP Signature

Method INITIALIZE_RESULT_MAP on class CL_SWF_RLS_RULE has no parameter.
Method INITIALIZE_RESULT_MAP on class CL_SWF_RLS_RULE has no exception.

Method IS_INITIAL Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Returning IS_INITIAL Value transfer Type reference (TYPE) XFELD 'X' Bedingung leer, ' ' - nicht leer 20030623

Method IS_INITIAL on class CL_SWF_RLS_RULE has no exception.

Method SERIALIZE Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing RUNTIME_FORMAT Call by reference Type reference (TYPE) XFLAG SPACE 'X' - Container und Namespaces inline speichern 20030627
2 Returning SERIALIZED_RULE Value transfer Type reference (TYPE) XSTRING Serialisierte Bedingung (internes Format!) 20030624
# Exception Resumable Description Created on
1 CX_SWF_RLS_RULE Fehler beim Serialisieren der Bedingung 20030623

Method SET_CONDITION Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing CONDITION Call by reference Object reference (TYPE REF TO) CL_SWF_RLS_CONDITION Logische Bedingung (Entscheidungsgrundlage der Regel) 20030624

Method SET_CONDITION on class CL_SWF_RLS_RULE has no exception.

Method SET_CONDITION_CLASS Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing CONDITION_CLASS Call by reference Type reference (TYPE) STRING Name der implementierenden ABAP-OO-Klasse 20030627

Method SET_CONDITION_CLASS on class CL_SWF_RLS_RULE has no exception.

Method SET_CONTAINER Signature

Method SET_CONTAINER on class CL_SWF_RLS_RULE has no parameter.
Method SET_CONTAINER on class CL_SWF_RLS_RULE has no exception.

Method SET_NAMESPACE_DEF Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing NAMESPACE_DEFINITION Call by reference Type reference (TYPE) SWFEXNMAPT Tabelle mit Namspace-Deklarationen 20030624

Method SET_NAMESPACE_DEF on class CL_SWF_RLS_RULE has no exception.

Method SET_RESULT_MAP Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing RESULT_MAP Call by reference Type reference (TYPE) SWFRLSRMAP Zuordnung Ausgang<->Ergebnis und Fehlermapping 20030624

Method SET_RESULT_MAP on class CL_SWF_RLS_RULE has no exception.

Method SET_TEXTS Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing DESCRIPTION Call by reference Type reference (TYPE) STRING Beschreibender Text der Bedingung (sprachabhängig) 20030623
2 Importing LANGUAGE Call by reference Type reference (TYPE) SYLANGU SY-LANGU Textsprache 20030623
3 Importing NAME Call by reference Type reference (TYPE) STRING Eindeutiger Name 20030623

Method SET_TEXTS on class CL_SWF_RLS_RULE has no exception.

Method UPDATE_CHANGE_DATA Signature

Method UPDATE_CHANGE_DATA on class CL_SWF_RLS_RULE has no parameter.
Method UPDATE_CHANGE_DATA on class CL_SWF_RLS_RULE has no exception.
History
Last changed by/on SAP  20110908 
SAP Release Created in 640