AnsweredAssumed Answered

Making public accessors for fields of org.activiti.engine.impl.cmd.Command impls

Question asked by pkonyves on Jan 16, 2015
Latest reply on Feb 10, 2015 by pkonyves
Hi there,

Would it be possible to make fields in Commands (e.g. SetExecutionVariablesCmd) package private? I think Activiti has a great design with the Command pattern with it's interceptors, it is suitable to change/enforce business logic rules in a low level with interceptors, but every case is unique and the biggest burden is to acquire information from the Command object. If fields were at least package private, it would be much more easier to implement custom business logic with interceptors.

I actually think it would also make sense to create setters/getters for the fields in the command. They are not part of the public API, and are always subject to change, but with getters at least they were be more usable from CommandInterceptors.

What do you think?
Pal

Outcomes