@Target(value={TYPE,FIELD,METHOD}) @Retention(value=RUNTIME) public @interface BusinessProcessScoped
PassivationCapable
.
If no ProcessInstance is currently managed, instances of BusinessProcessScoped
beans are temporarily stored in a local scope (I.e. the Conversation or the Request, depending on the context,
see javadoc on ConversationScoped
and RequestScoped
to find out when either context is active). If this scope is later associated with a business process instance, the bean
instances are flushed to the ProcessInstance.
Example:
@BusinessProcessScoped
public class Authorization implements Serializable {
...
}
Copyright © 2015 Alfresco. All rights reserved.