package org.openlca.ilcd.models;

import java.util.ArrayList;
import java.util.List;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlElementWrapper;
import javax.xml.bind.annotation.XmlType;

import org.openlca.ilcd.commons.Ref;

@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(propOrder = { "process", "groupRefs", "parameters", "connections" })
public class ProcessInstance {

	@XmlAttribute(name = "dataSetInternalID")
	public int id;

	@XmlElement(name = "referenceToProcess")
	public Ref process;

	@XmlElementWrapper(name = "groups")
	@XmlElement(name = "memberOf")
	public List<GroupRef> groupRefs = new ArrayList<>();

	@XmlElementWrapper(name = "parameters")
	@XmlElement(name = "parameter")
	public List<Parameter> parameters = new ArrayList<>();

	@XmlElementWrapper(name = "connections")
	@XmlElement(name = "outputExchange")
	public List<Connection> connections = new ArrayList<>();

}

@@ -473,16 +473,33 @@
 rocess%22,
+ %22scalingFactor%22,
  %22groupR
@@ -691,16 +691,84 @@
 ocess;%0A%0A
+%09@XmlElement(name = %22scalingFactor%22)%0A%09public Double scalingFactor;%0A%0A
 %09@XmlEle

read scaling factors