My project uses a service task class implementing ActivityBehavior several times in multiple BPMN processes. It looks to me that Activiti treats the service class as a singleton and only creates one instance of it, so that separate processes end up sharing state.
Is there a configuration option to create a fresh service task instance every time the task is executed, or should I just not store any state in the service task class?