Process engine variable scope

What about interfacing associations (rules starting with =) of variables from different scopes (including engine, environment, execution or more importantly to me, previous tasks). Or is the task variable association already available there at the definition or the process instance level.

since it “needs quite a bit of thinking”, I am stretching thin with my limited understanding here for you:-), my 2 cents -since Flowable next is to allow change state of a running process instance to a previous activity (is it allow looping?) or future activity or concurrency if applied to variables next. Perhaps a guard for variables or limiting such support to only transient variables may help?