cancel
Showing results for 
Search instead for 
Did you mean: 

How to design an Activiti workflow with List<object> type?

houstoniasian
Champ in-the-making
Champ in-the-making
Activiti supports:

string (org.activiti.engine.impl.form.StringFormType)
long (org.activiti.engine.impl.form.LongFormType)
enum (org.activiti.engine.impl.form.EnumFormType)
date (org.activiti.engine.impl.form.DateFormType)
boolean (org.activiti.engine.impl.form.BooleanFormType)

How do I design a workflow in Activiti that can handle  List<Employee> where Employee is an object with String firstName & lastName?

Thank you,

Tan
1 REPLY 1

jbarrez
Star Contributor
Star Contributor
You mean in the forms right? In that case, it depdens on your use case, and you'll need to write a custom form property (see http://www.jorambarrez.be/blog/2013/03/13/creating-a-new-form-property-in-activiti/).

If you pass a list as a process variable, it will be serialized to the database.