Enum SystemDataProducer
- java.lang.Object
-
- java.lang.Enum<SystemDataProducer>
-
- de.aristaflow.adept2.model.processmodel.systemdata.SystemDataProducer
-
- All Implemented Interfaces:
LocalisedString,Serializable,Comparable<SystemDataProducer>
public enum SystemDataProducer extends Enum<SystemDataProducer> implements LocalisedString
This enumeration represents all process model methods that can produce system data, that is data which can be used normally in the data flow of a process. This is used for instance for dependent staff assignment rules (a node is to be performed by the same agent as some other node before). Such data is modelled explicitly as system parameters of a node which write an existing data element. TheExecutionManagertakes care of retrieving the values from the process model methods and writing them to the corresponding data elements in theDataManager.
Data provided by templates and instances is written by the corresponding start node.Every element of this enumeration represents a
Parameterwhich is to be added at the corresponding node.- Author:
- Ulrich Kreher
-
-
Enum Constant Summary
Enum Constants Enum Constant Description INSTANCE_CREATION_DATERepresents the date/time an instance has been created for usage as a value of a data element.INSTANCE_INITIATOR_AGENT_IDRepresents the agent ID of the instance initiator for usage as a value of a data element.INSTANCE_INITIATOR_ORGPOSITION_IDRepresents the organisational position ID of the instance initiator for usage as a value of a data element.INSTANCE_SUPERVISOR_AGENT_IDRepresents the agent ID of the instance supervisor for usage as a value of a data element.INSTANCE_SUPERVISOR_ORGPOSITION_IDRepresents the organisational position ID of the instance supervisor for usage as a value of a data element.NODE_PERFORMING_AGENT_IDRepresents the agent ID of the agent performing the designated node for usage as a value of a data element.NODE_PERFORMING_ORGPOSITION_IDRepresents the organisational ID of the agent performing the designated node for usage as a value of a data element.NODE_STAFF_ASSIGNMENT_RULERepresents a staff assignment rule of a specific node for usage as a value of a data element.NODE_TERMINATION_DATERepresents the date/time a node has been terminated for usage as a value of a data element.TEMPLATE_SUPERVISOR_AGENT_IDRepresents the agent ID of the template supervisor for usage as a value of a data element.TEMPLATE_SUPERVISOR_ORGPOSITION_IDRepresents the organisational position ID of the template supervisor for usage as a value of a data element.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description SystemDataProducergetCompanion()Gets the system data producer that is a companion of this.ProcessModelParametergetParameterProperties()Gets a parameter object providing all properties for the corresponding implicit system parameterstatic SystemDataProducergetProducerForIdentifierID(UUID identifierID)Returns theSystemDataProducermatching the specified identifier ID ornullif there exists none.static SystemDataProducer[]nodeProduced()Gets all the values that are produced by arbitrary nodes.static SystemDataProducer[]startNodeProduced()Gets all the values that are produced by the start node, that is, the data stems from template or instance objects.ObjecttoLocalisedString(LocalisationFactory locFac, Locale loc)Gets the localised representation of the implementing object.static SystemDataProducervalueOf(String name)Returns the enum constant of this type with the specified name.static SystemDataProducer[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
TEMPLATE_SUPERVISOR_AGENT_ID
public static final SystemDataProducer TEMPLATE_SUPERVISOR_AGENT_ID
Represents the agent ID of the template supervisor for usage as a value of a data element.Template.getSupervisorAgent()QualifiedAgent.getAgentID()
-
TEMPLATE_SUPERVISOR_ORGPOSITION_ID
public static final SystemDataProducer TEMPLATE_SUPERVISOR_ORGPOSITION_ID
Represents the organisational position ID of the template supervisor for usage as a value of a data element.Template.getSupervisorAgent()QualifiedAgent.getOrgPositionID()
-
INSTANCE_SUPERVISOR_AGENT_ID
public static final SystemDataProducer INSTANCE_SUPERVISOR_AGENT_ID
Represents the agent ID of the instance supervisor for usage as a value of a data element.Instance.getSupervisorAgent()QualifiedAgent.getAgentID()
-
INSTANCE_SUPERVISOR_ORGPOSITION_ID
public static final SystemDataProducer INSTANCE_SUPERVISOR_ORGPOSITION_ID
Represents the organisational position ID of the instance supervisor for usage as a value of a data element.Instance.getSupervisorAgent()QualifiedAgent.getOrgPositionID()
-
INSTANCE_INITIATOR_AGENT_ID
public static final SystemDataProducer INSTANCE_INITIATOR_AGENT_ID
Represents the agent ID of the instance initiator for usage as a value of a data element.Instance.getInitiatorAgent()QualifiedAgent.getAgentID()
-
INSTANCE_INITIATOR_ORGPOSITION_ID
public static final SystemDataProducer INSTANCE_INITIATOR_ORGPOSITION_ID
Represents the organisational position ID of the instance initiator for usage as a value of a data element.Instance.getInitiatorAgent()QualifiedAgent.getOrgPositionID()
-
NODE_PERFORMING_AGENT_ID
public static final SystemDataProducer NODE_PERFORMING_AGENT_ID
Represents the agent ID of the agent performing the designated node for usage as a value of a data element.Instance.getPerformingAgent(int)QualifiedAgent.getAgentID()
-
NODE_PERFORMING_ORGPOSITION_ID
public static final SystemDataProducer NODE_PERFORMING_ORGPOSITION_ID
Represents the organisational ID of the agent performing the designated node for usage as a value of a data element.Instance.getPerformingAgent(int)QualifiedAgent.getOrgPositionID()
-
NODE_STAFF_ASSIGNMENT_RULE
public static final SystemDataProducer NODE_STAFF_ASSIGNMENT_RULE
Represents a staff assignment rule of a specific node for usage as a value of a data element. The staff assignment rule of the node is written as a resolved rule which allows to have the very same set of agents to whom the corresponding activity is offered. This is needed for autostarting a node.Node.getStaffAssignmentRule()
-
INSTANCE_CREATION_DATE
public static final SystemDataProducer INSTANCE_CREATION_DATE
Represents the date/time an instance has been created for usage as a value of a data element.Instance.getCreationTime()
-
NODE_TERMINATION_DATE
public static final SystemDataProducer NODE_TERMINATION_DATE
Represents the date/time a node has been terminated for usage as a value of a data element.
-
-
Method Detail
-
values
public static SystemDataProducer[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (SystemDataProducer c : SystemDataProducer.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static SystemDataProducer valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
getParameterProperties
public ProcessModelParameter getParameterProperties()
Gets a parameter object providing all properties for the corresponding implicit system parameter- Returns:
- A parameter object providing all information needed for creating a corresponding system parameter.
-
getCompanion
public SystemDataProducer getCompanion()
Gets the system data producer that is a companion of this. This is used for data producers that are coupled, for instance specifying a qualified agent needs an agent ID and organisational position ID. If this system data producer does not have such a "companion" system data producer,nullwill be returned.- Returns:
- The system data producer that is coupled to this system data
producer or
nullin case there is no companion for this system data producer.
-
toLocalisedString
public Object toLocalisedString(LocalisationFactory locFac, Locale loc)
Description copied from interface:LocalisedStringGets the localised representation of the implementing object. The localisation should be for the designated locale, model objects beingLocalisedshould use the designated localisation factory for automatic localisation.- Specified by:
toLocalisedStringin interfaceLocalisedString- Parameters:
locFac- The localisation factory to be used byLocalisedmodel objects. If this isnull, do not localise the usedLocalisedattributes.loc- The locale for which to get the localised string. If this isnull, treat it likeLocale.ROOThas been requested.- Returns:
- The localised (string) representation of the implementing object for the designated locale using the designated localisation factory if appropriate.
-
getProducerForIdentifierID
public static SystemDataProducer getProducerForIdentifierID(UUID identifierID)
Returns theSystemDataProducermatching the specified identifier ID ornullif there exists none.- Parameters:
identifierID- the identifier ID for which to return the associated system data producer- Returns:
- the
SystemDataProducermatching the specified identifier ID ornullif there exists none
-
startNodeProduced
public static SystemDataProducer[] startNodeProduced()
Gets all the values that are produced by the start node, that is, the data stems from template or instance objects.- Returns:
- All the values produced by the start node (data that stems from template or instance objects.
-
nodeProduced
public static SystemDataProducer[] nodeProduced()
Gets all the values that are produced by arbitrary nodes.- Returns:
- All the values produced by arbitrary nodes.
-
-