[
https://jira.jboss.org/browse/JBPM-2506?page=com.atlassian.jira.plugin.sy...
]
Maciej Swiderski commented on JBPM-2506:
----------------------------------------
Part of the work is done now:
- declare variable in jpdl
- mark declared variable as history enabled
- create variable via API that is history enabled
- retrieve variables from history via API
- support for both simple text and EL on declared variables in jpdl
If it comes to non string variables that is bit more complex. Mainly due to the structure
of the data base where value column is only of type string (varchar).
I did some tests with JavaBeans as variable and simple solution that I implemented is that
such variables will be still persisted as string based on implementation of toString()
method.
In my opinion that is quite good solution at the moment that enables us to simply query
for history process instances based on variable's values. Of course this is not a
final solution but at least something to let users hove some added value from variable
history. Difficult to say what was initial idea for history of variables ... any news are
more than welcome.
In addition, such approuch could be used as well to allow queries based on variables for
execution variables as well. I mean that if some once would be interested to query based
on variable value (s)he could implement toString with information that should be
searchable.
Soon will upload a first version of a patch for review.
What do you think based on the description so far?
add variable declarations
-------------------------
Key: JBPM-2506
URL:
https://jira.jboss.org/browse/JBPM-2506
Project: jBPM
Issue Type: Feature Request
Security Level: Public(Everyone can see)
Components: Runtime Engine
Affects Versions: jBPM 4.0
Reporter: Hauke Rabe
Assignee: Maciej Swiderski
Priority: Optional
Fix For: jBPM 4.4
Original Estimate: 4 hours
Remaining Estimate: 4 hours
When variable declarations, also the ability to trace the history can be exposed and
documented.
add following element to process the group activity
<variable name="" [type=""] [history=""] />
type should refer to the types defined in jbpm.variable.types.xml
history = {enabled, disabled} (disabled is the default)
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira