Difference between revisions of "Activity:CreateInstance (Activity)"
| Line 1: | Line 1: | ||
| + | The CreateInstance Activity creates a new [[Instance|instance]] of a specified [[MetaClass]]. | ||
| + | |||
| + | =Description= | ||
{{ActivityInfoBox | {{ActivityInfoBox | ||
| title = Create Instance | | title = Create Instance | ||
| Line 9: | Line 12: | ||
| version = 2.1+ | | version = 2.1+ | ||
}} | }} | ||
| − | |||
| − | ==Arguments== | + | ===Arguments=== |
{| class="wikitable sortable" | width = "50%" | {| class="wikitable sortable" | width = "50%" | ||
| Line 27: | Line 29: | ||
{{Attention|This activity does not automatically save changes. If you want to persist the newly created instance, you need i.e. a subsequent [[Activity:SaveObject_(Activity)|SaveObject activity]]!}} | {{Attention|This activity does not automatically save changes. If you want to persist the newly created instance, you need i.e. a subsequent [[Activity:SaveObject_(Activity)|SaveObject activity]]!}} | ||
| − | + | =Example= | |
Load the MetaClass named ''PUMP'', and create a new instance from it: | Load the MetaClass named ''PUMP'', and create a new instance from it: | ||
| Line 38: | Line 40: | ||
.AllInstances("PUMP")</source> | .AllInstances("PUMP")</source> | ||
|} | |} | ||
| + | |||
| + | <headertabs /> | ||
==See also== | ==See also== | ||
Revision as of 17:10, 23 February 2015
The CreateInstance Activity creates a new Instance of a specified MetaClass.
