User Tools

Site Tools


Plugin installed incorrectly. Rename plugin directory 'swiftmail.backup' to 'swiftmail'.
en:software:tim:instance_context_use_instance_as_template

This is an old revision of the document!


FIXME This page is not fully translated, yet. Please help completing the translation.
(remove this paragraph once the translation is finished)

Instance as a template (copy)

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.


Ignore process variables

If certain process variables are not needed, these can be excluded

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.

en/software/tim/instance_context_use_instance_as_template.1402490781.txt.gz · Last modified: 2021/07/01 09:54 (external edit)