-
1. Re: def task var in jpdl with jbpm4.4
dongliu Aug 21, 2010 11:32 PM (in response to dongliu)anybody help me?
-
2. Re: def task var in jpdl with jbpm4.4
rebody Aug 22, 2010 2:11 AM (in response to dongliu)Hi Dong,
Yes, you are right. jBPM-4.4 couldn't support task varaible declaration yet. But If you declared a variable in task activity, task could also access them.
-
3. Re: def task var in jpdl with jbpm4.4
dongliu Aug 22, 2010 10:06 PM (in response to rebody)Thanks for you reply.
It will be supported in the future?
-
4. Re: def task var in jpdl with jbpm4.4
rebody Aug 22, 2010 10:31 PM (in response to dongliu)Hi Dong,
Please tell me what is the different between task variable and process variable. Could you show me a scenario?
Thank you very much.
-
5. Re: def task var in jpdl with jbpm4.4
dongliu Aug 22, 2010 10:51 PM (in response to rebody)Hi,HuiSheng
I think task variable only be accessed for the task who declare it ,while process variable can accessed fro all.For different task they may be have variables that have same variable name,but the value is different.Of course,I could do some extra work to achieve this,But ,It would be very conveniencent if task could declare it's own variables in jpdl.
I also think elements,such as task,state,should have an id attribute in jpdl def ,name attribute should only for human reading in jpdl photograph.
-
6. Re: def task var in jpdl with jbpm4.4
mwohlf Aug 23, 2010 2:26 AM (in response to dongliu)Hi dong,
I think it is already possible to have task scoped variables in jBPM4 programatically:
final EnvironmentImpl environment = processEngine.openEnvironment();
try {
task.createVariable("variableName", "variable value", null , false);
Variable myVariable = task.getVariableObject("variableName");
myVariable.setExecution(null);} finally {
environment.close();
}but of course it is a bit hacky