Explicit variables in process definitions

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-09-2011 03:26 AM
All examples I have seen so far make use of implicit variables, i.e. variables that are not explicitly defined in the process definition. An example is the "Advanced example using Spring beans and JPA" in the tutorial. Here the loanRequest variable is just returned from the newLoanRequest operation.
Does Activiti support the use of explicit variables in the process definitions?
If yes, how can I explicilty define a POJO or XML message as a process variable?
Thank you.
Does Activiti support the use of explicit variables in the process definitions?
If yes, how can I explicilty define a POJO or XML message as a process variable?
Thank you.
Labels:
- Labels:
-
Archive
7 REPLIES 7

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-10-2011 03:11 AM
Declaration of variables is something we plan to add soon. A lot of the pieces are already implemented. But finishing it off might take some more time.
Can you explain a bit about your use case so that we can take that into account as we work out this feature?
I created http://jira.codehaus.org/browse/ACT-620
Can you explain a bit about your use case so that we can take that into account as we work out this feature?
I created http://jira.codehaus.org/browse/ACT-620

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-14-2011 04:18 AM
I think this is especially important when it comes to BPMN execution.
The process model is kind like source code.
Therefore it is important to explicitly define all variables in the model.
Otherwise there would be some hidden magic that is not visible to the process developer.
It is the same as in BPEL. All variables have to be defined before they can be used in the process.
That is good cause the model contains all relevant information (process flow and data).
Does this make sense?
The process model is kind like source code.
Therefore it is important to explicitly define all variables in the model.
Otherwise there would be some hidden magic that is not visible to the process developer.
It is the same as in BPEL. All variables have to be defined before they can be used in the process.
That is good cause the model contains all relevant information (process flow and data).
Does this make sense?
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-14-2011 04:51 AM
This certainly makes sense.But it was not our first focus: that was to make it as easy as possible for developers to use process data.
However, as we are implementing more and more BPMN 2.0 constructs, the data definitions of BPMN 2.0 will be supported at some point in time.
However, as we are implementing more and more BPMN 2.0 constructs, the data definitions of BPMN 2.0 will be supported at some point in time.

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-14-2011 07:19 AM
I think it is a matter of style and preference.
If you quickly want to build a prototype, implicit and automatic creation of variables can be fast and easy.
If you want to apply more rigorous procedures, then declaring all variables can be a better option. There are obvious advantages of declaring variables. But a downside is that if you want to change / refactor a variable, then you need to update a lot more in case of explicit declarations.
If you quickly want to build a prototype, implicit and automatic creation of variables can be fast and easy.
If you want to apply more rigorous procedures, then declaring all variables can be a better option. There are obvious advantages of declaring variables. But a downside is that if you want to change / refactor a variable, then you need to update a lot more in case of explicit declarations.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-15-2011 11:45 AM
Hi,
Are there any news on this topic? I see there is no activity on issue ACT-620.
We plan to build a repository of reusable sub-procsesses. To manage this, it would be great if we could use excplicit variables to describe the processes 'interface' (something like a method signature).
Does anybody have other aproaches to extract the 'interfaces' from the process definitions?
Regards
Are there any news on this topic? I see there is no activity on issue ACT-620.
We plan to build a repository of reusable sub-procsesses. To manage this, it would be great if we could use excplicit variables to describe the processes 'interface' (something like a method signature).
Does anybody have other aproaches to extract the 'interfaces' from the process definitions?
Regards

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-16-2011 04:23 AM
Hi,
I also had a requirement to embed more informations inside process definition (and from the designer), and use java to "discover" them at runtime.
I tryed to use Form properties (only applies to UserTask node)
See http://forums.activiti.org/en/viewtopic.php?f=6&t=2188
It works if you only need to retrieve variable name or type, but can't make it access default values.
Not sure if you can use for a sub-process, but at least they are defined.
Many users would like to use activiti in production, not only for doing prototypes. At this step process dev & java dev may work using this interface contract, at different time.
I agree with Kaech, with the need of "auto documented by source" constraints, and an acute definition in process for what gonna happend at execution.
I also had a requirement to embed more informations inside process definition (and from the designer), and use java to "discover" them at runtime.
I tryed to use Form properties (only applies to UserTask node)
See http://forums.activiti.org/en/viewtopic.php?f=6&t=2188
It works if you only need to retrieve variable name or type, but can't make it access default values.
Not sure if you can use for a sub-process, but at least they are defined.
Many users would like to use activiti in production, not only for doing prototypes. At this step process dev & java dev may work using this interface contract, at different time.
I agree with Kaech, with the need of "auto documented by source" constraints, and an acute definition in process for what gonna happend at execution.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-08-2013 02:38 PM
I have cloned ACT-620 with a request to support Data Objects:
http://jira.codehaus.org/browse/ACT-1847
http://jira.codehaus.org/browse/ACT-1847
