AnsweredAssumed Answered

Process variables best practices

Question asked by hisaak on Sep 26, 2013
Latest reply on Oct 2, 2013 by frederikheremans1
Hi everybody,

I've been looking for the way to define list of variables used in a process and came across Explicit variables in process definitions topic and related ACT-620.

However, ACT-620 is closed without any reasoning or solution, so I'd like to formulate the question differently: Are there any best practices regarding process variables? Besides the need for "process interface", I need to handle process variables at three or four places within the project: process itself, published process API (e.g. web service for instance creation), JavaDelegate implementations and jUnit tests. Is there a way to define shared process related list of variables?

I thought about a simple Java class/enum (or Spring bean) holding all process instance names. It seems simple, but at least it could help with typo errors, (naming) conventions and prevent duplicate variables … However, I can't use expression in resultVariableName attribute within process definition and that makes my idea unfeasible.