package com.c2kernel.lifecycle.instance.predefined.entitycreation; import java.util.ArrayList; import org.w3c.dom.Element; import org.w3c.dom.NodeList; import org.w3c.dom.Text; import com.c2kernel.collection.MembershipException; import com.c2kernel.common.CannotManageException; import com.c2kernel.common.ObjectAlreadyExistsException; import com.c2kernel.common.ObjectCannotBeUpdated; import com.c2kernel.common.ObjectNotFoundException; import com.c2kernel.entity.TraceableEntity; import com.c2kernel.events.Event; import com.c2kernel.events.History; import com.c2kernel.lifecycle.CompositeActivityDef; import com.c2kernel.lifecycle.instance.stateMachine.States; import com.c2kernel.lifecycle.instance.stateMachine.Transitions; import com.c2kernel.lookup.DomainPath; import com.c2kernel.lookup.EntityPath; import com.c2kernel.persistency.ClusterStorageException; import com.c2kernel.persistency.outcome.Viewpoint; import com.c2kernel.process.Gateway; import com.c2kernel.process.module.Module; import com.c2kernel.process.module.ModuleImport; import com.c2kernel.property.Property; import com.c2kernel.property.PropertyArrayList; import com.c2kernel.utils.LocalObjectLoader; import com.c2kernel.utils.Logger; import com.c2kernel.utils.Resource; /** * Complete Structure for new item * * @version $Revision: 1.8 $ $Date: 2006/03/03 13:52:21 $ */ public class NewItem extends ModuleImport { public String initialPath; public String workflow; public ArrayList properties = new ArrayList(); public ArrayList aggregationList = new ArrayList(); public ArrayList dependencyList = new ArrayList(); public ArrayList outcomes = new ArrayList(); public String ns; public NewItem() { super(null); } public NewItem(String name, String initialPath, String wf) { this(); this.name = name; this.initialPath = initialPath; this.workflow = wf; } public NewItem(String ns, Element elem) { super(elem); this.ns = ns; workflow = elem.getAttribute("workflow"); if (elem.hasAttribute("initialPath")) initialPath = elem.getAttribute("initialPath"); else initialPath = "/desc/"+ns; NodeList pnl = elem.getElementsByTagName("Property"); for (int j=0; j