It is possible to delete a context variable only from the Context tab of the process page. If there is a publishedprocess version, which uses this variable, ELMA will not delete the variable from the database, but will hide it in the list of process variables. When you try to create a new variable with the same name, ELMA will offer you to restore the one that was previously deleted. If you do not want to restore the deleted variable, change the Property Name of the new variable.
There are two ways to delete a variable on the Context tab of the process page (Fig. 1):
click Delete in the toolbar,
select Delete in the context menu.
Fig. 1. Deleting a context variable with a control button and context menu option.
When a variable is deleted from the context of a process, it automatically disappears from all the task forms and activity settings of the process where it was used. For example, it will no longer be available for comparison of context variables with external sub-process and custom activity variables, nor for the Generate Document Version activity. You cannot cancel deleting. There is no list of deleted variables in ELMA Designer. If you want to restore a variable, take the following steps:
Fill in the context variable page (If the variable existed in a published process version, you can skip this step. In this case, ELMA will offer you to restore the previously deleted variable. The variable's type, description and properties will also be restored);
Add the variable to all the task forms and activity settings where you want to use it.
To delete a variable from a task form, delete it from the Displayed Properties list on the task's Form(Context) tab.
Fig. 2. Deleting a variable from the context of a Task activity.