Human Activity Types

You can use the types listed below to read or write human activities attributes.

This page discusses:

Assign Human Activities

You can use the HumanActivityAssignment type to read or write the attributes of a human activity that you want to assign to an entity.

Inheritance Path

ObjectType
 Feature
  HumanActivityAssignment

Attributes

Name Type Required Comment
ToObject ObjectType Database object to which the human activity is to be assigned.

Tip: You can paste the database object, the session object, or the physical ID of the database object.

HAName String Name of the human activity to search (not case-sensitive).
LifeCyclePhases List List corresponding to the values of the HumanActivityLifeCyclePhases type.
Note: You can enter five values maximum.
CharacteristicValues List Characteristic values to use when assigning the human activity.
HAVersion String
  • only for ecoinvent versions.
Version of the human activity.

For example: "ecoinvent/3.9.1"

If an error occurs during the assignment of the human activity, the type returns the following information:
Name Type Comment
AssignmentStatus Integer Assignment status of the human activity.

The following values can appear:

  • 0: the assignment succeeded.
  • 1: the assignment failed.
  • -1: the assignment did not occur yet.

ErrorMsg String Error message if the assignment of the human activity failed.

Methods

The following methods are associated with the types:

Example

let sErrorMessage(string)
let iAssignmentStatus(integer)
sErrorMessage = CastCarbonSteelHSHBeta_2.ErrorMsg
iAssignmentStatus = CastCarbonSteelHSHBeta_2.AssignmentStatus

Define the Characteristic Values of Human Activities

You can use the HumanActivityCharacteristicValue type to read the list of characteristic values of a human activity.

Inheritance Path

ObjectType
 Feature
  HumanActivityCharacteristicValue

Methods

The following method is associated with this type: SetCharacteristicValues

Enumerated Values

The table lists the available characteristic values, and their corresponding unit.
Characteristic Unit
AbioticStockResourceEPS ELU
AD-DSL Article (Current) Violation
AD-DSL Process (Current) Violation
CalculatedWeight kg
ClimateChange kg CO2
ClimateChangeBiogenic kg CO2
ClimateChangeE kg CO2
ClimateChangeFossil kg CO2
ClimateChangeH kg CO2
ClimateChangeILCD kg CO2
ClimateChangeLandUse kg CO2
ClimateChangeReCiPe kg CO2
ClimateChangeTRACI kg CO2
ClimateChangeTRACIv21 kg CO2
CoG m
cogexternalx m
cogexternaly m
cogexternalz m
Completion %
Compliance %
ConcreteVolume m3
ConcreteVolumeCUI m3
ConcreteVolumeCUI m3
ConstructedAreaCUI m2
CriticalSubstances Substances
DeckArea m2
Deliverables Integer
diameterofinsulation m
diameteroftube m
DissipatedWater m3 world deprived
distance km
EcoSystem Species.yr
EcotoxicityTRACI kg 2,4-D-
EEEComplianceIndicator Real
ELV (Current) Violation
EmissionAirEPS ELU
EmissionAirEPS2020 EUR 2018
EmissionSoilEPS ELU
EmissionSoilEPS2020 EUR 2018
EmissionWaterEPS ELU
EmissionWaterEPS2020 EUR 2018
EnergyNonRenewableEPS2020 EUR 2018
EnvironmentalImpact Points
EnvironmentalImpactReCiPe Points
estimatedcost USD
estimatedtime s
EU REACH Candidate List (Current) Violation
EU REACH XVII (Current) Violation
EU RoHS (Current) Violation
EutrophicationTRACI kg N
EutrophicationTRACIv21 kg N
ExcavationVolume m3
FillingVolume m3
FossilDepletion MJ
FreshwaterEcotoxicity CTUe
FreshwaterEcotoxicityTRACIv21 CTUe
FreshwaterEutrophication kg PO4
FreshwaterEutrophication kg PO4
GADSL Declarable (Current) Violation
GADSL Prohibited (Current) Violation
GlobalScoring Points
hourlyrate USD/h
HumanHealth DALY
HumanResources Integer
HumanToxicity CTUh
HumanToxicityCancerTRACIv21 CTUh
HumanToxicityNonCancer CTUh
HumanToxicityNonCancerTRACI kg toluene
HumanToxicityNonCancerTRACIv21 CTUh
HumanToxicityTRACI kg benzene
IEC 62474 (Current) Violation
IMDSCalculatedWeight kg
IMDSIdInfo %
inertiaboundingboxvolume m3
InertiaMatrix kgxm2
IonisingRadiation kg U235
LandOccupationEPS ELU
LandOccupationEPS2020 EUR 2018
LandUse Points
MarineEcotoxicity kg N
mass kg
MaterialMetalsEPS2020 EUR 2018
measuredtime s
mechanicalvolume m3
MetalDepletion kg Sb
NonRenewableEnergyTRACI MJ
OzoneLayerDepletion kg CFC-11
OzoneLayerDepletionTRACI kg CFC-11
OzoneLayerDepletionTRACIv21 kg CFC-11
ParticulateMatterFormation Disease incidence
ParticulateMatterFormationTRACI kg PM2.5
ParticulateMatterFormationTRACIv21 kg PM2.5
PhotochemicalOxidantFormation kg NMVOC
PhotochemicalOxidantFormationTRACI kg NOx
PhotochemicalOxidantFormationTRACIv21 kg O3
powerconsumption W
Resources $ increase
surfacearea m2
TerrestrialAcidification mol H+
TerrestrialAcidificationTRACI moles
TerrestrialAcidificationTRACIv21 kg SO2
TerrestrialEcotoxicity mol N
Volume m3
WaterFootprint m3
Weight kg

Example

let haCharacteristicValue(HumanActivityCharacteristicValue)
haCharacteristicValue = new ("HumanActivityCharacteristicValue", "", NULL )

Define the Geolocation of Human Activities

You can use the HumanActivityGeolocation type to read the list of available geolocations for a human activity.

Inheritance Path

ObjectType
 Literal
  Enumere
   HumanActivityGeolocation

Enumerated Values

The table lists the available geolocation values, and their corresponding meaning.
Notes:
  • You can overload the geolocation value and use the direct or indirect parent of the geolocation value instead.
  • The geolocation is mandatory for ecoinvent human activities.
Value Geolocation
GLO Worldwide
NAM North America
AP Asia and Pacific Region
EMAE Europe, Middle East, and Africa
LATAM Latin America
APSOUTH South Asia and Pacific Region
APNORTH North Asia and Pacific Region
EU Europe
MIDDLEEAST Middle East
AFRICA Africa
AF Afghanistan
AX Aland Islands
AL Albania
DZ Algeria
AS American Samoa
AD Andorra
AO Angola
AI Anguilla
AQ Antarctica
AG Antigua and Barbuda
AR Argentina
AM Armenia
AW Aruba
AU Australia
AT Austria
AZ Azerbaijan
BS Bahamas
BH Bahrain
BD Bangladesh
BB Barbados
BY Belarus
BE Belgium
BZ Belize
BJ Benin
BM Bermuda
BT Bhutan
BO Bolivia (Plurinational State of)
BQ Bonaire, Sint Eustatius, and Saba
BA Bosnia and Herzegovina
BW Botswana
BV Bouvet Island
BR Brazil
IO British Indian Ocean Territory
BN Brunei Darussalam
BG Bulgaria
BF Burkina Faso
BI Burundi
CV Cabo Verde
KH Cambodia
CM Cameroon
CA Canada
KY Cayman Islands
CF Central African Republic
TD Chad
CL Chile
CN China
CX Christmas Island
CC Cocos (Keeling) Islands
CO Colombia
KM Comoros
CG Congo
CD Congo (Democratic Republic of)
CK Cook Islands
CR Costa Rica
CI Cote d'Ivoire
HR Croatia
CU Cuba
CW Curacao
CY Cyprus
CZ Czechia
DK Denmark
DJ Djibouti
DM Dominica
DO Dominican Republic
EC Ecuador
EG Egypt
SV El Salvador
GQ Equatorial Guinea
ER Eritrea
EE Estonia
SZ Eswatini
ET Ethiopia
FK Falkland Islands (Malvinas)
FO Faroe Islands
FJ Fiji
FI Finland
FR France
GF French Guiana
PF French Polynesia
TF French Southern Territories
GA Gabon
GM Gambia
GE Georgia
DE Germany
GH Ghana
GI Gibraltar
GR Greece
GL Greenland
GD Grenada
GP Guadeloupe
GU Guam
GT Guatemala
GG Guernsey
GN Guinea
GW Guinea-Bissau
GY Guyana
HT Haiti
HM Heard Island and McDonald Islands
VA Holy See
HN Honduras
HK Hong Kong
HU Hungary
IS Iceland
IN India
ID Indonesia
IR Iran (Islamic Republic of)
IQ Iraq
IE Ireland
IM Isle of Man
IL Israel
IT Italy
JM Jamaica
JP Japan
JE Jersey
JO Jordan
KZ Kazakhstan
KE Kenya
KI Kiribati
KP Korea (Democratic People's Republic of)
KR Korea (Republic of)
KW Kuwait
KG Kyrgyzstan
LA Lao (People's Democratic Republic)
LV Latvia
LB Lebanon
LS Lesotho
LR Liberia
LY Libya
LI Liechtenstein
LT Lithuania
LU Luxembourg
MO Macao
MG Madagascar
MW Malawi
MY Malaysia
MV Maldives
ML Mali
MT Malta
MH Marshall Islands
MQ Martinique
MR Mauritania
MU Mauritius
YT Mayotte
MX Mexico
FM Micronesia (Federated States of)
MD Moldova (Republic of)
MC Monaco
MN Mongolia
ME Montenegro
MS Montserrat
MA Morocco
MZ Mozambique
MM Myanmar
NA Namibia
NR Nauru
NP Nepal
NL Netherlands
NC New Caledonia
NZ New Zealand
NI Nicaragua
NE Niger
NG Nigeria
NU Niue
NF Norfolk Island
MK North Macedonia
MP Northern Mariana Islands
NO Norway
OM Oman
PK Pakistan
PW Palau
PS Palestine (State of)
PA Panama
PG Papua New Guinea
PY Paraguay
PE Peru
PH Philippines
PN Pitcairn
PL Poland
PT Portugal
PR Puerto Rico
QA Qatar
RE Reunion
RO Romania
RU Russian Federation
RW Rwanda
BL Saint Barthelemy
SH Saint Helena, Ascension, and Tristan da Cunha
KN Saint Kitts and Nevis
LC Saint Lucia
MF Saint Martin (French part)
PM Saint Pierre and Miquelon
VC Saint Vincent and the Grenadines
WS Samoa
SM San Marino
ST Sao Tome and Principe
SA Saudi Arabia
SN Senegal
RS Serbia
SC Seychelles
SL Sierra Leone
SG Singapore
SX Sint Maarten (Dutch part)
SK Slovakia
SI Slovenia
SB Solomon Islands
SO Somalia
ZA South Africa
GS South Georgia and the South Sandwich Islands
SS South Sudan
ES Spain
LK Sri Lanka
SD Sudan
SR Suriname
SJ Svalbard and Jan Mayen
SE Sweden
CH Switzerland
SY Syrian Arab Republic
TW Taiwan, Province of China
TJ Tajikistan
TZ Tanzania (United Republic of)
TH Thailand
TL Timor-Leste
TG Togo
TK Tokelau
TO Tonga
TT Trinidad and Tobago
TN Tunisia
TR Turkey
TM Turkmenistan
TC Turks and Caicos Islands
TV Tuvalu
UG Uganda
UA Ukraine
AE United Arab Emirates
GB United Kingdom of Great Britain and Northern Ireland
US United States of America
UM United States Minor Outlying Islands
UY Uruguay
UZ Uzbekistan
VU Vanuatu
VE Venezuela (Bolivarian Republic of)
VN Viet Nam
VG Virgin Islands (British)
VI Virgin Islands (U.S.)
WF Wallis and Futuna
EH Western Sahara
YE Yemen
ZM Zambia
ZW Zimbabwe
XK Kosovo

Define the Lifecycle Phases of Human Activities

You can use the HumanActivityLifeCyclePhases type to read the list of available lifecycle phases of a human activity.

Inheritance Path

ObjectType
 Literal
  Enumere
   HumanActivityLifeCyclePhases

Enumerated Values

The table lists the available lifecycle phases, and their corresponding meaning.
Value Lifecycle Phase
RawMaterials Raw Materials
Manufacturing Manufacturing
PackagingAndTransport Packaging and Transport
ProductAsAService Product as a Service
EndOfLife End of Life

Define the Characteristic Values of Human Activity Metrics

You can use the MetricHumanActivityCharacteristicValue type to read or write the characteristic values of the human activity metrics.

You can either use a roll-up or overloaded value.

Inheritance Path

ObjectType
 Feature
  MetricHumanActivityCharacteristicValue

Attributes

Name Type Required Comment
Name String Name of the Weight or Distance characteristic.
Overload Boolean
  • True: the value is overloaded.
  • False: the value is not overloaded. The roll-up value is considered.
OverloadedValue String Overloaded value with units.

For example: 10%, or 25kg.

Note: The units are case insensitive and space insensitive, for example: 10%, 10 %, 25 KG, 25KG.

Example

let haMetricCharacteristicValue(MetricHumanActivityCharacteristicValue)
haMetricCharacteristicValue = new ("MetricHumanActivityCharacteristicValue ", "", NULL )
haMetricCharacteristicValue.Name="Weight"
haMetricCharacteristicValue.Overload = TRUE
haMetricCharacteristicValue. OverloadedValue = “25kg”

Manage Human Activities

You can use the HumanActivityManager type to retrieve all the human activity assignment objects generated by users, and send them to a server.

You can also use it to manage assignment errors.

Inheritance Path

ObjectType
 Feature
  HumanActivityManager

Methods

The following methods are associated with these types:

Example

let HAManager(HumanActivityManager)
HAManager = CreateHumanActivityManager()

Display Human Activity Information

You can use the HumanActivity type to retrieve the information of a human activity with default values.

This type does not retrieve the information of overloaded human activities, that is human activities with customized values.

Inheritance Path

ObjectType
 Feature
  HumanActivity

Attributes

Name Type Comment
Geolocation HumanActivityGeolocation Geolocation associated with the human activity
LifeCyclePhases List Objects listed in the HumanActivityLifeCyclePhases type. For more information, see Define the Lifecycle Phases of Human Activities.
Note: The attribute can include five values maximum.
Name String Name of the human activity with default values. The string is not case-sensitive.
Origin String Displays the origin of the human activity: custom or ecoinvent/3.9.1

Methods

The following methods are associated with this type:

Example

With HA corresponding to a human activity:

Trace(2,"Name  ",HA.Name)
let lifeCycleList(List)
lifeCycleList = HA.LifeCyclePhases
let HALifeCycle(HumanActivityLifeCyclePhases)
for HALifeCycle inside lifeCycleList
{
         Trace(2,"lifeCycle ",HALifeCycle)
}
Trace(2,"Geolocation  ",HA.Geolocation)
Trace(2," Origin : ",HA.Origin)

Display the Characteristics of Human Activities

You can use the HumanActivityCharacteristic type to display information about the characteristic values of human activity.

Inheritance Path

ObjectType
 Feature
  HumanActivityCharacteristic

Attributes

Name Type Comment
Name String Name of the characteristic of the human activity
Overload Boolean
  • True: the characteristic value is overloaded
  • False: the characteristic value is not overloaded. The roll-up value is considered
OverloadedValue Real Overloaded value (without the unit)
Unit String Unit of the characteristic value

Display Attached Human Activity Information

You can use the HumanActivityInst type to display information about the attached human activities.

This type is linked to the HumanActivity type. For more information, see Display Human Activity Information.

Inheritance Path

ObjectType
 Feature
  HumanActivity
   HumanActivityInst

Attributes

Name Type Comment
OverloadedCharacteristics List List of the overloaded characteristics (HumanActivityCharacteristic type)
OverloadedGeolocation HumanActivityGeolocation Overloaded geolocation
OverloadedLifeCyclePhases List List of the overloaded lifecycle phases of the object to which the human activity is attached (HumanActivityLifeCyclePhases type).
Note: The attribute can include five values maximum.

Example

With HA corresponding to a human activity:
let characteristicList(List)
characteristicList = HAInst.OverloadedCharacteristics
let characteristic(HumanActivityCharacteristic)
for characteristic inside characteristicList
{
	Trace(2,"Characteristic Name : ",characteristic.Name)
	Trace(2,"Characteristic Overload : ",characteristic.Overload )
	Trace(2,"Characteristic OverloadedValue : ",characteristic.OverloadedValue)
	Trace(2,"Characteristic Unit : ",characteristic.Unit)
}

let overloadedLifeCycleList(List)
overloadedLifeCycleList = HAInst.OverloadedLifeCyclePhases
let overloadedLifeCycle(HumanActivityLifeCyclePhases)
for overloadedLifeCycle inside overloadedLifeCycleList
{
	Trace(2,"             lifeCycle ",overloadedLifeCycle)
}

Trace(2,"           Overloaded Geolocation : ",HAInst.OverloadedGeolocation)
With the derivation:
Trace(2,"Name  ",HAInst.Name)
let lifeCycleList(List)
lifeCycleList = HAInst.LifeCyclePhases
let HALifeCycle(HumanActivityLifeCyclePhases)
for HALifeCycle inside lifeCycleList
{
         Trace(2,"lifeCycle ",HALifeCycle)
}
Trace(2,"Geolocation  ",HAInst.Geolocation)
Trace(2," Origin : ",HAInst.Origin)lifeCycleList = HAInst.LifeCyclePhases
let HAInstLifeCycle(HumanActivityLifeCyclePhases)
for HALifeCycle inside lifeCycleList
{
         Trace(2,"lifeCycle ",HALifeCycle)
}
Trace(2,"Geolocation  ",HA.Geolocation)
Trace(2," Origin : ",HA.Origin)

Display the Status Report of Human Activity-Related Actions

You can use the HAReport type to generate a report that provides the status of the human activity-related actions (attached from objects or IDs or detached).

Inheritance Path

ObjectType
 Feature
  HAReport

Attributes

Name Type Comment
ErroCode String Error or warning code following every action (attaching or detaching human activities):
  • EKL_warning_1: Action done but nothing to do
  • EKL_warning_2: Action done but some actions are not done
  • EKL_error_1: Wrong format in arguments
Message String Message about the status
Status Integer Status of the human activity action (attach or detach):
  • 0: OK
  • 1: KO (no performed actions)
  • 2: Partial (errors or warnings detected during the action)

Methods

The following methods are associated with this type:

Example

With the MyGetReport type being HAReport:

Trace(2,"Global Status : ",MyGetReport.Status)
Trace(2,"Global Messsage: ",MyGetReport.Message)
let MyListStatus(List)
MyListStatus = MyGetReport.GetListOfStatus()
let Mystatus(HAStatus)
for Mystatus inside MyListStatus
{
    Trace(2,"Status : ",Mystatus.Status)
    Trace(2,"Messsage: ",Mystatus.Message)
    Trace(2,"ObjectID: ",Mystatus.ObjectID)
    Trace(2,"ObjectName:,Mystatus.ObjectName)
}
With the Mystatus type being HAStatus:

for Mystatus inside MyListStatus
{
Trace(2,"Status : ",Mystatus.Status)
Trace(2,"Messsage: ",Mystatus.Message)
Trace(2,"ObjectID: ",Mystatus.ObjectID)
Trace(2,"ObjectName: ",Mystatus.ObjectName)	
}

Display the Status of Human Activity-Related Actions

You can use the HAStatus type to display the status of each human activity-related action (attached from objects or IDs or detached).

Inheritance Path

ObjectType
 Feature
  HAStatus

Attributes

Name Type Comment
ErroCode String Error code if the status of the human activity is invalid
Message String Message about the status of the human activity

For example, if the parameters are invalid: Some mandatory parameters are missing. Entity, Overloaded Phases & Human Activity name are mandatory parameters.

ObjectID String ID of the human activity or object
ObjectName String Name of the object or human activity
Status Integer Status of the human activity:
  • 0: OK
  • 1: KO
  • 2: Warning