So, as I understand the first alternative is related to a form you can generate for the process. The variables in the second variant are not related to a special form but can be used anywhere in process.
Are you sure?
Does anybody else have an idea about the connection of Business Process Context and JBPM Process Variables? I mean using
@Out(scope=ScopeType.BUSINESS_PROCESS, required=false) String variable1;
is it the same like
<controller> <variable access="read,write" name="variable1"></variable> </controller>
in a process definition?
Please help me to get an idea.