Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
pr_methods:createentityfromtemplate [2023/04/04 05:51] – removed - external edit (Unknown date) 127.0.0.1pr_methods:createentityfromtemplate [2023/05/08 06:49] (current) sean
Line 1: Line 1:
 +{{tag>Index Programmers_Reference Methods IExecutionEngine_Interface createEntityFromTemplate}}
 +====createEntityFromTemplate (IProcess, IEntityTemplate, ChangedReference [])====
 +<code java>public IEntitycreateEntityFromTemplate ( IProcessparent, IEntityTemplate template, ChangedReference [] changedRefs)
 +throws ServerTimeOutException, AccessDeniedException, ExecutionException;</code>
 +
 +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.