Created attachment 573086 [details] process definition Description of problem: Designer escapes XML source of process definition each time when you want to save it. Explanation on adHocSubProcess completionCondition: user enters: getActivityInstanceAttribute("numberOfActiveInstances") == 0 first save: getActivityInstanceAttribute("numberOfActiveInstances") == 0 second save: getActivityInstanceAttribute("numberOfActiveInstances") == 0 third save: getActivityInstanceAttribute("numberOfActiveInstances") == 0 etc... Steps to Reproduce: 1.Launch guvnor and import attached process definition. 2.Try to save it several times and watch the value of completionCondition attribute on adHocSubProcess node. Before each saving change something in process definition (to force saving).
Fix for adHocCompletionCondition attribute done in master and 2.1.x Designer branch. Now connected to the Expression editor.