Class SystemDataConstants
java.lang.Object
de.aristaflow.adept2.model.globals.SystemDataConstants
Defines constants related to data elements (especially names of pre-defined UDTs) and system
data (especially
SystemDataProducer).-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final UUIDIdentifier ID for the error code of a failed activity.static final UUIDIdentifier ID for the error message of a failed activity.static final UUIDIdentifier ID for the error message of a failed activity.static final UUIDIdentifier ID for the error state of a failed activity.static final UUIDIdentifier ID for a data context.static final UUIDIdentifier for the EBP type.static final UUIDIdentifier ID forAbstractActivity.getExecutableComponentName().static final UUIDidentifier ID of theSystemDataProducer.INSTANCE_CREATION_DATEsystem data producerstatic final UUIDIdentifier ID for an instance ID.static final UUIDidentifier ID of theSystemDataProducer.INSTANCE_INITIATOR_AGENT_IDsystem data producerstatic final UUIDidentifier ID of theSystemDataProducer.INSTANCE_INITIATOR_ORGPOSITION_IDsystem data producerstatic final UUIDIdentifier ID for an instance log ID.static final UUIDIdentifier ID for an instance name.static final UUIDidentifier ID of theSystemDataProducer.INSTANCE_SUPERVISOR_AGENT_IDsystem data producerstatic final UUIDidentifier ID of theSystemDataProducer.INSTANCE_SUPERVISOR_ORGPOSITION_IDsystem data producerstatic final UUIDIdentifier ID forEBPType.isActivity().static final UUIDIdentifier for a node id.static final UUIDIdentifier ID for a node iteration.static final UUIDIdentifier ID for a node name.static final UUIDidentifier ID of theSystemDataProducer.NODE_PERFORMING_AGENT_IDsystem data producerstatic final UUIDidentifier ID of theSystemDataProducer.NODE_PERFORMING_ORGPOSITION_IDsystem data producerstatic final UUIDidentifier ID of theSystemDataProducer.NODE_STAFF_ASSIGNMENT_RULEsystem data producerstatic final UUIDIdentifier ID for the node termination date.static final UUIDIdentifier ID for a template ID.static final UUIDIdentifier ID for a template name.static final UUIDidentifier ID of theSystemDataProducer.TEMPLATE_SUPERVISOR_AGENT_IDsystem data producerstatic final UUIDidentifier ID of theSystemDataProducer.TEMPLATE_SUPERVISOR_ORGPOSITION_IDsystem data producerstatic final StringThe UDT name for a container, use "container" as UDT name for the corresponding data elements and parameters.static final StringThe UDT name for a data container, use "Data Context" as UDT name for the corresponding data elements and parameters.static final StringThe UDT name for a file, use "File" as UDT name for the corresponding data elements and parameters.static final StringDeprecated.static final Stringstatic final StringThe UDT name for localisation data allowing to localise system data consumer, use "LocalisationData" as UDT name for the corresponding data elements and parameters.static final Stringstatic final Stringstatic final Stringstatic final StringThe UDT name for a subtable, use "subtable" as UDT name for the corresponding data elements and parameters. -
Method Summary
Modifier and TypeMethodDescriptionstatic Pair<ProcessConstants.AdeptDataType,String> getInnerMostType(String udtName) Gets the innermost type asProcessConstants.AdeptDataTypeand in case ofProcessConstants.AdeptDataType.USERDEFINEDof the corresponding UDT name.static Pair<ProcessConstants.AdeptDataType,String> getInnerType(String udtName) Parses the designated UDT name and returns the inner data type as well as the UDT name if appropriate.getInnerType(String udtName, boolean strict) Parses the designated UDT name and returns whether the type refers to a list and the corresponding inner type of the list.
The returned triple contains the following information: Whether the designated UDT name refers to a list (isListUdt(String, boolean)orisSerialisedList(String, boolean)). If the UDT name does not refer to a list, the second element will be theProcessConstants.AdeptDataTypeif one can be parsed,nullotherwise.static final StringGets the UDT name for a serialisedjava.util.List.static final StringgetUdtNameListOfUdt(String innerType) Gets the UDT name for serialisedjava.util.Listhaving elements of user-defined inner data type with the designated name.static final StringGets the UDT name for a list.static final StringgetUdtNameListUdtOfUdt(String innerType) Gets the UDT name for aListUdthaving elements of user-defined inner data type with the designated name.static booleanGets whether the designated UDT name refers to a list UDT (with or without inner type).static booleanGets whether the designated UDT name refers to a typed list UDT (recursively in case of strict).static booleanisSerialisedList(String udtName) Gets whether the designated UDT name refers to a serialised list (with or without inner type).static booleanisSerialisedList(String udtName, boolean strict) Gets whether the designated UDT name refers to a serialised list (recursively in case of strict).
-
Field Details
-
IDENTIFIER_ID_TEMPLATE_SUPERVISOR_AGENT
identifier ID of theSystemDataProducer.TEMPLATE_SUPERVISOR_AGENT_IDsystem data producer -
IDENTIFIER_ID_TEMPLATE_SUPERVISOR_ORGPOSITION
identifier ID of theSystemDataProducer.TEMPLATE_SUPERVISOR_ORGPOSITION_IDsystem data producer -
IDENTIFIER_ID_INSTANCE_SUPERVISOR_AGENT
identifier ID of theSystemDataProducer.INSTANCE_SUPERVISOR_AGENT_IDsystem data producer -
IDENTIFIER_ID_INSTANCE_SUPERVISOR_ORGPOSITION
identifier ID of theSystemDataProducer.INSTANCE_SUPERVISOR_ORGPOSITION_IDsystem data producer -
IDENTIFIER_ID_INSTANCE_INITIATOR_AGENT
identifier ID of theSystemDataProducer.INSTANCE_INITIATOR_AGENT_IDsystem data producer -
IDENTIFIER_ID_INSTANCE_INITIATOR_ORGPOSITION
identifier ID of theSystemDataProducer.INSTANCE_INITIATOR_ORGPOSITION_IDsystem data producer -
IDENTIFIER_ID_INSTANCE_CREATION_DATE
identifier ID of theSystemDataProducer.INSTANCE_CREATION_DATEsystem data producer -
IDENTIFIER_ID_NODE_PERFORMING_AGENT
identifier ID of theSystemDataProducer.NODE_PERFORMING_AGENT_IDsystem data producer -
IDENTIFIER_ID_NODE_PERFORMING_ORGPOSITION
identifier ID of theSystemDataProducer.NODE_PERFORMING_ORGPOSITION_IDsystem data producer -
IDENTIFIER_ID_NODE_STAFF_ASSIGNMENT_RULE
identifier ID of theSystemDataProducer.NODE_STAFF_ASSIGNMENT_RULEsystem data producer -
IDENTIFIER_ID_NODE_TERMINATION
Identifier ID for the node termination date. -
IDENTIFIER_ID_NODE_ID
Identifier for a node id. -
IDENTIFIER_ID_NODE_ITERATION
Identifier ID for a node iteration. -
IDENTIFIER_ID_IS_ACTIVITY
Identifier ID forEBPType.isActivity(). -
IDENTIFIER_ID_EC_NAME
Identifier ID forAbstractActivity.getExecutableComponentName(). -
IDENTIFIER_ID_EBP_TYPE
Identifier for the EBP type. -
IDENTIFIER_ID_NODE_NAME
Identifier ID for a node name. -
IDENTIFIER_ID_TEMPLATE_ID
Identifier ID for a template ID. -
IDENTIFIER_ID_TEMPLATE_NAME
Identifier ID for a template name. -
IDENTIFIER_ID_INSTANCE_ID
Identifier ID for an instance ID. -
IDENTIFIER_ID_INSTANCE_LOG_ID
Identifier ID for an instance log ID. -
IDENTIFIER_ID_INSTANCE_NAME
Identifier ID for an instance name. -
IDENTIFIER_ID_DATA_CONTEXT
Identifier ID for a data context. -
IDENTIFIER_ID_ACTIVITY_ERROR_CODE
Identifier ID for the error code of a failed activity. -
IDENTIFIER_ID_ACTIVITY_ERROR_STATE
Identifier ID for the error state of a failed activity. -
IDENTIFIER_ID_ACTIVITY_ERROR_MESSAGE
Identifier ID for the error message of a failed activity. -
IDENTIFIER_ID_ACTIVITY_ERROR_COUNT
Identifier ID for the error message of a failed activity. -
UDT_NAME_DATA_CONTEXT
The UDT name for a data container, use "Data Context" as UDT name for the corresponding data elements and parameters.
The implementation is an XML document (the top-level element being named "dataContainer") containing an XML representation of a data container or instance data container. It conforms to the appropriate XSD de/aristaflow/adept2/model/datamanagement/defaultimplementation/xml/types.xsd. It is used in error handling processes providing the data container of a failed activity. -
UDT_NAME_LOCALISATION_DATA
The UDT name for localisation data allowing to localise system data consumer, use "LocalisationData" as UDT name for the corresponding data elements and parameters.
The implementation is an XML document (the top-level element being named "LocalisationData") containing a map like structure withLocaleas key and the corresponding value as string being the corresponding localisation. Additionally, each localisation UDT value has an inner type being anProcessConstants.AdeptDataType. Therefore each localisation UDT value represents the localisation of one value to various target locales. It conforms to the appropriate XSD de/aristaflow/adept2/extensions/datatypes/localisationData.xsd. It is used to localise values of parameters forSystemDataConsumers.- See Also:
-
UDT_NAME_CONTAINER
The UDT name for a container, use "container" as UDT name for the corresponding data elements and parameters.
The implementation is an XML document (the top-level element being named "Container") which is a simplified (map-like) data structure similar to a data container. It conforms to the appropriate XSD de/aristaflow/adept2/extensions/datatypes/webformcontainer.xsd. It is used in the web form for combining several data values.- See Also:
-
WebFormContainerContainer- Constant Field Values
-
UDT_NAME_SUBTABLE
The UDT name for a subtable, use "subtable" as UDT name for the corresponding data elements and parameters.
The implementation is an XML document (the top-level element being named "Subtable") containing rows and elements with names, types and values. It conforms to the appropriate XSD de/aristaflow/adept2/extensions/datatypes/webformsubtable.xsd. It is used in the web form for displaying table structures.- See Also:
-
WebFormSubtableSubtableSubtableview- Constant Field Values
-
UDT_NAME_FILE
The UDT name for a file, use "File" as UDT name for the corresponding data elements and parameters.
This is a simple XML document (the top-level element being named "fileUDT") containing the data as well as some metadata like file name and file type.Note that an UDT of this name is an XML structure and not a serialised instance of
FileUDT!- See Also:
-
UDT_NAME_FILE_UDT
Deprecated.UseUDT_NAME_FILEinstead.This is a deprecated alias forUDT_NAME_FILE.- See Also:
-
UDT_NAME_LIST_UDT
Deprecated.The first part of a UDT name for a typed list in a list UDT.- See Also:
-
UDT_NAME_PATTERN_LIST_UDT
Deprecated.The UDT name pattern for a typed list in a list UDT.- See Also:
-
UDT_NAME_SER_LIST
Deprecated.The first part of a UDT name for a serialised typed list.- See Also:
-
UDT_NAME_PATTERN_SER_LIST
Deprecated.The UDT name pattern for a serialised typed list.- See Also:
-
-
Method Details
-
isListUdt
Gets whether the designated UDT name refers to a list UDT (with or without inner type).- Parameters:
udtName- The UDT name of which to determine the type whether it refers to a list UDT (with or without inner type).- Returns:
- Whether the designated UDT name refers to a list UDT (with or without inner type).
- See Also:
-
isListUdt
Gets whether the designated UDT name refers to a typed list UDT (recursively in case of strict).- Parameters:
udtName- The UDT name of which to determine whether it refers to a list UDT (strict or lenient).strict- Whether the designated UDT name needs to have proper inner types (recursively) (or just needs to refer to a list UDT without inner types).- Returns:
- Whether the designated UDT name refers to a typed list UDT (strict or lenient).
- See Also:
-
getUdtNameListUdtOfSimpleType
Gets the UDT name for a list. The list is a simple XML document (the top-level element being named "List") containing several elements of a list of a specific type (the inner type of the list) which can also be a UDT with a specific (inner) UDT name. The XML document conforms to the appropriate XSD de/aristaflow/adept2/extensions/datatypes/list.xsd.When reading or writing elements from the list, use the closest Java type corresponding to the designated inner type, e. g.
String,DateorUDTValueforUSERDEFINED.- Parameters:
innerType- The inner data type of aListUdt.- Returns:
- The UDT name of a
ListUdthaving elements of the designated inner type. - See Also:
-
getUdtNameListUdtOfUdt
Gets the UDT name for aListUdthaving elements of user-defined inner data type with the designated name. When reading or writing from the list, useUDTValueand handle its content according to the designated type. For instance, the inner type may be a fully-qualified java class name, then you can serialise from/deserialise to the input stream of theUDTValue.- Parameters:
innerType- The inner user-defined data type of aListUdt.- Returns:
- The UDT name of a
ListUdthaving elements of user-defined inner data type with the designated name. - See Also:
-
isSerialisedList
Gets whether the designated UDT name refers to a serialised list (with or without inner type).- Parameters:
udtName- The UDT name of which to determine whether it refers to a serialised list (with or without inner type).- Returns:
- Whether the designated UDT name refers to a serialised list (with or without inner type).
- See Also:
-
isSerialisedList
Gets whether the designated UDT name refers to a serialised list (recursively in case of strict).- Parameters:
udtName- The UDT name of which to determine whether it refers to a serialised list (strict or lenient).strict- Whether the designated UDT name needs to have proper inner types (recursively) (or just needs to refer to a list UDT without inner types).- Returns:
- Whether the designated UDT name refers to a typed serialised list (strict or lenient).
- See Also:
-
getUdtNameListOfSimpleType
Gets the UDT name for a serialisedjava.util.List. When reading just deserialise one from theUDTValue.getInputStream(), when writing serialise ajava.util.Listtobyte[]and create an appropriateUDTValueof it. For the elements use the closest Java type corresponding to the designated inner type, e. g.String,DateorUDTValueforUSERDEFINED.- Parameters:
innerType- The inner data type of a serialisedjava.util.List.- Returns:
- The UDT name of a serialised
java.util.Listhaving elements of the designated inner type. - See Also:
-
getUdtNameListOfUdt
Gets the UDT name for serialisedjava.util.Listhaving elements of user-defined inner data type with the designated name. When reading or writing from the list, useUDTValueand handle its content according to the designated type. For instance, the inner type may be a fully-qualified java class name, then you can serialise from/deserialise to the input stream of theUDTValue.- Parameters:
innerType- The inner user-defined data type of a serialisedjava.util.List.- Returns:
- The UDT name of a serialised
java.util.Listhaving elements of user-defined inner data type with the designated name. - See Also:
-
getInnerType
Parses the designated UDT name and returns the inner data type as well as the UDT name if appropriate. The designated UDT name has to be for aListUdtor a serialisedjava.util.List.- Parameters:
udtName- The UDT name for aListUdtor a serialisedjava.util.List. to retrieve the inner data type.- Returns:
- A pair with the data type of the inner elements of the designated UDT name for a list.
This will be
nullif the designated UDT name does not refer to a list. The second element of the pair will be the UDT name for the inner user-defined type ornullif the inner type is not a user-defined type. If no inner type can be determined, both elements of the pair will benull. - Throws:
IllegalArgumentException- If the inner data type is noProcessConstants.AdeptDataTypeanIllegalArgumentExceptionwill be thrown.
-
getInnerType
public static Triple<Boolean,ProcessConstants.AdeptDataType, getInnerTypeString> (String udtName, boolean strict) Parses the designated UDT name and returns whether the type refers to a list and the corresponding inner type of the list.
The returned triple contains the following information:- Whether the designated UDT name refers to a list (
isListUdt(String, boolean)orisSerialisedList(String, boolean)). - If the UDT name does not refer to a list, the second element will be the
ProcessConstants.AdeptDataTypeif one can be parsed,nullotherwise. If the UDT name refers to a list, this will be theProcessConstants.AdeptDataTypeof the list elements. - If the UDT name does not refer to a list, the third element will be
null. If the UDT name refers to aProcessConstants.AdeptDataTypeinstead, otherwise it will be the designatedudtName. If the UDT name refers to a list, this will benullfor a simpleProcessConstants.AdeptDataTypeof the list elements and the UDT name of the elements for aProcessConstants.AdeptDataType.USERDEFINED. Forstrictparsing the UDT name, the inner data type will be checked recursively in case it is a list again. The third element will benullif the inner list cannot be parsed properly to the innermost type. In this case the type is not correct, which is indicated by the third element beingnull.
- Parameters:
udtName- An arbitrary UDT name. If this is for aListUdtor a serialisedjava.util.List, the inner type will be parsed.strict- Whether a list needs to have a valid inner type (this will be checked recursively). This parameter will have no effect if the designatedudtNamedoes not refer to a list.- Returns:
- A triple with the information of the inner elements of the designated UDT name, i. e.
whether it refers to a list, if so the corresponding inner type, if not, the type
corresponding to the designated
udtName. The third element indicates the result of the recursion in case ofstrict: If the designatedudtNameis not a completely valid type (with all inner types being correct), the third element will benull. - Throws:
IllegalArgumentException- If the designated UDT name is a list but its inner type is not anProcessConstants.AdeptDataType, anIllegalArgumentExceptionwill be thrown.
- Whether the designated UDT name refers to a list (
-
getInnerMostType
Gets the innermost type asProcessConstants.AdeptDataTypeand in case ofProcessConstants.AdeptDataType.USERDEFINEDof the corresponding UDT name. The returned UDT name may benull.
For list types this method will strip the list type part from the designated UDT name and determine the type recursively from the remaining UDT name. Recursion ends if the designated type isnull(indicating aProcessConstants.AdeptDataType.USERDEFINEDtype without name) or if the designated type is no list (indicating aProcessConstants.AdeptDataType.USERDEFINEDtype with the designated name).- Parameters:
udtName- An arbitrary UDT name possibly referring to a list. This may benull.- Returns:
- The innermost
ProcessConstants.AdeptDataTypefound in the designated UDT name when unwrapping lists and in case ofProcessConstants.AdeptDataType.USERDEFINEDthe UDT name of the innermost type. - See Also:
-
UDT_NAME_FILEinstead.