I have a SWF workflow decider to which I need to pass a set of values. I already have a class (POJO) which has all these as instance variables. So should I pass the POJO as input parameter or pass the individual fields.
@Workflow
@@WorkflowRegistrationOptions(....)
public interface WorkerClass {
@Execute(version = "1.0")
void generate(String a, int b, List<String> c, String d);
}
or
void generate(POJO pojo);
where POJO is
class POJO {
private String a;
private int b;
private List<String> c;
private String d;
//Getter and setters
}
Which is best?
P.S : I need to run this from SWF console