Package flexagon.fd.core
Class Properties
java.lang.Object
flexagon.ff.common.core.pojos.BasePOJO
flexagon.fd.core.Properties
- All Implemented Interfaces:
Serializable
Represents a collection of properties contained within the WorkflowExecutionContext. Properties
are defined within one of two scopes:
- Target scoped - stored using key of instance code.
- Project scoped - stored using key of the EMPTY_INSTANCE code.
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddBooleanProperty(String pKey, Boolean pValue) INTERNAL USE ONLYvoidaddDoubleProperty(String pKey, Double pValue) INTERNAL USE ONLYvoidaddInstanceProperty(String pInstanceCode, String pKey, PropertyValue pProperty) voidaddInstanceProperty(String pInstanceCode, String pKey, Object pValue, DataTypeEnum pDataType, boolean pIsEncrypted, boolean pIsExpression) INTERNAL USE ONLYvoidaddIntegerProperty(String pKey, Integer pValue) INTERNAL USE ONLYvoidaddProperty(String pKey, PropertyValue pProperty) INTERNAL USE ONLYvoidaddProperty(String pKey, Object pValue, DataTypeEnum pDataType, boolean pIsEncrypted, boolean pIsExpression) INTERNAL USE ONLYvoidaddStringProperty(String pKey, String pValue) INTERNAL USE ONLYvoidINTERNAL USE ONLYReturns a Map of Target scoped properties (for all instances).Returns a Map of project-scoped properties for the current executiongetPropertyValue(String pKey) Returns a property value for the project-scoped property identified by the given property key.getPropertyValue(String pInstanceCode, String pKey) Returns a property value for the Target scoped property identified by the given instance code and property key.getPropertyValueObject(String pInstanceCode, String pKey) Returns a PropertyValue object for the Target scoped property identified by the given instance code and property key.INTERNAL USE ONLYvoidsetInstanceProperties(Map<String, Map<String, PropertyValue>> pInstanceProperties) INTERNAL USE ONLYvoidsetProperties(Map<String, PropertyValue> pProperties) INTERNAL USE ONLYtoString()Returns custom String representation implemented by walking complete object structure.voidupdateProperty(String pKey, Object pValue) INTERNAL USE ONLYvoidupdateProperty(String pInstanceCode, String pKey, Object pValue) INTERNAL USE ONLYbooleanwasUpdated(String pInstanceCode, String pKey) INTERNAL USE ONLY
-
Field Details
-
EMPTY_INSTANCE
- See Also:
-
-
Constructor Details
-
Properties
public Properties()INTERNAL USE ONLY
-
-
Method Details
-
toString
Description copied from class:BasePOJOReturns custom String representation implemented by walking complete object structure. -
setInstanceProperties
INTERNAL USE ONLY -
setProperties
INTERNAL USE ONLY -
getPropertyValue
Returns a property value for the project-scoped property identified by the given property key. The value must be cast to the documented type.- Parameters:
pKey- the key of the project-scoped property- Returns:
- the property value for the given key
-
getPropertyValue
Returns a property value for the Target scoped property identified by the given instance code and property key. The value must be cast to the documented type.- Parameters:
pInstanceCode- the instance codepKey- the property key- Returns:
- the property value for the given instance code and property key
-
getPropertyValueObject
Returns a PropertyValue object for the Target scoped property identified by the given instance code and property key.- Parameters:
pInstanceCode- the instance codepKey- the property key- Returns:
- the property value object for the given instance code and property key
-
updateProperty
INTERNAL USE ONLY- Throws:
FlexCheckedException
-
updateProperty
public void updateProperty(String pInstanceCode, String pKey, Object pValue) throws FlexCheckedException INTERNAL USE ONLY- Throws:
FlexCheckedException
-
addProperty
public void addProperty(String pKey, Object pValue, DataTypeEnum pDataType, boolean pIsEncrypted, boolean pIsExpression) INTERNAL USE ONLY -
addProperty
INTERNAL USE ONLY -
addStringProperty
INTERNAL USE ONLY -
addDoubleProperty
INTERNAL USE ONLY -
addIntegerProperty
INTERNAL USE ONLY -
addBooleanProperty
INTERNAL USE ONLY -
addInstanceProperty
public void addInstanceProperty(String pInstanceCode, String pKey, Object pValue, DataTypeEnum pDataType, boolean pIsEncrypted, boolean pIsExpression) INTERNAL USE ONLY -
addInstanceProperty
-
clearUpdates
public void clearUpdates()INTERNAL USE ONLY -
getUpdatedPropertyMap
INTERNAL USE ONLY -
getInstancePropertyMap
Returns a Map of Target scoped properties (for all instances).- Returns:
- the environment scoped properties as a Map (keyed by instance)
-
getPropertyMap
Returns a Map of project-scoped properties for the current execution- Returns:
- the project-scoped properties as a Map
-
wasUpdated
INTERNAL USE ONLY
-