[jboss-user] [jBPM] New message: "how could i create a varaible only exist in one task?"

qi qi do-not-reply at jboss.com
Thu Mar 18 05:40:34 EDT 2010


User development,

A new message was posted in the thread "how could i create a varaible only exist in one task?":

http://community.jboss.org/message/532744#532744

Author  : qi qi
Profile : http://community.jboss.org/people/qiqi1982mm

Message:
--------------------------------------------------------------
   In jbpm3.X ,we could define private variable and general variable ,but in jbpm4.x, i coudn't find this function.
   i found there are two methods to create variable in jbpm4.x

one method:
   executionService.setVariable(executionId, name, value) 
  
  two method:
   taskService.setVariables(taskId, variables) 
 
  so i made a experiment,i define a workflow with two task nodes ,in task1 node, i create one  variables like that:
  taskService.setVariables(task1.getId(), "var1");
 
  in task2 node,i think i shouldn't get the var1 which created in task1
  
  but  i was suprised  when i user this code
 taskService.getVariable(task2.getId(), "var1")
 
the result is i could get variable var1 in task2
 
so ,how could i create a variable only exist in one task ?
 
my spoken english is little poor,thansk all..
 
 
 
 
 
 
  

--------------------------------------------------------------

To reply to this message visit the message page: http://community.jboss.org/message/532744#532744




More information about the jboss-user mailing list