This is an old revision of the document!
This page is not fully translated, yet. Please help completing the translation.
(remove this paragraph once the translation is finished)
An already finished or archived instance can be used as a template for a new instance. To this, “Instance as a template” must be selected via the context menu.
The values of the template are copied and transfered to the new instance. The resulting instance starts normally from the beginning but the smartform has been pre-filled with all process variables and smartform values of the template.
In order not to transmit process variables, the following function can be used (custom.js):
gadget.functions["prepareEntityForCopyOfPROZESSDEFINITION NAME WITH SPACE"]=function(entity) { delete entity["date"]; delete entity.modified["date"] delete entity["fromname"]; delete entity.modified["fromname"]; return entity; }
In this case the value PROZESSDEFINITION NAME WITH SPACE will be replaced by the name of the relevant process definition and also the names of the process variables must be adjusted according to the customer requirements.