'Process Instance Variable' and 'Task Local Variable'
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-14-2011 02:55 AM
Does anyone how the differences between "Process Instance Variable" and "Task Local Variable"?
Labels:
- Labels:
-
Archive
8 REPLIES 8
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-14-2011 03:40 AM
Task variables are only available within the task itself. Once the task is complete, they are gone (although present in history if configured to historyLevel FULL).
Setting process variables from API:
Setting task variables from API:
Setting process variables from API:
runtimeService.setVariable(processInstance.getId(), "varName", "value");
Setting task variables from API:
taskService.setVariableLocal(task.getId(), "varName", "value");
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-14-2011 04:31 AM
Got it! Thanks a lot!
I suggest write these concept into documentation. 🙂 Maybe I could help.
I suggest write these concept into documentation. 🙂 Maybe I could help.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-16-2011 01:08 PM
Hi. Are Local variables accessible in Forms (e.g. as temporary variable which will be created on create task, or processed on exit task )? I miss this feature.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-17-2011 04:00 AM
You should take a look at 'form properties', that's exactly what you probably need http://activiti.org/userguide/index.html#formProperties
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-28-2013 06:17 PM
How would we specify task local variables in the bpmn? I read somewhere else on this forum that io specs are not supported, is that true?
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-04-2013 05:15 AM
If you want task-local variables, use a taskListener (create) to get access to the DelegateTask, which supports setVariableLocal()…
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-25-2016 07:50 AM
How do I get ProcessInstance Variable in expression
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-14-2016 01:19 AM
${myVar}
