cancel
Showing results for 
Search instead for 
Did you mean: 

create POJO's

sarra1
Champ in-the-making
Champ in-the-making
I create service-task that return the filled in values ..but I need to create POJO's passed on that and add it to a list that is stored as process-variable.. please tell me how to do this in steps .
thank's a lot
6 REPLIES 6

frederikherema1
Star Contributor
Star Contributor
You can add a service-task, using a JavaDelegate that creates the pojo's. From this moment on, all steps can now use the variables in expressions. Another alternative is an ExecutionListener at the start of your process (see userguide). The main difference between a listener and a service-task is the fact that you explicitly declare a service-task as a step of a process, as a listener is more an "implementation detail".

sarra1
Champ in-the-making
Champ in-the-making
here my class and xml file, I d like to have all product if the user set autre=true (other produt to add in a list order),when i deploy on activiti explorer i have got just the last value, how can I do to return all values ?

sarra1
Champ in-the-making
Champ in-the-making
class 2

sarra1
Champ in-the-making
Champ in-the-making
xml file

sarra1
Champ in-the-making
Champ in-the-making
Any Idea Please

jbarrez
Star Contributor
Star Contributor
I'm not really understanding what you are trying to do here ….

In Activiti, if you change the value, the variable value will of course always have the latest value. Or do you mean something else?