createEntityFromTemplate (IProcess, IEntityTemplate, ChangedReference [])
public IEntitycreateEntityFromTemplate ( IProcessparent, IEntityTemplate template, ChangedReference [] changedRefs) throws ServerTimeOutException, AccessDeniedException, ExecutionException;
This method creates the new instance of the specified business object from the specified template, which can be pre-initialized with some values. If there are any rules associated with the business object they are executed.
Parameters
template | An instance of the ientitytemplateinterface interface. The blank instance of the template can be obtained calling the static method DomainFactory.createEntityTemplate(IEntityDefinition) where IEntityDefinition is the definition of the entity being created. This definition can be obtained from IDomainVersion , which in turn can be obtained from the execution context of the process (see API of the DomainFactory , IEntityDefinition and IDomainVersion interfaces provided in the JavaDoc). |
changedRefs | should be null |
Returns
The created instance of the business object. The attributes are initialized with the values supplied in the provided template and set by the initialization rules (if any). The initialization rules will overwrite any values set in the original template.