| java.lang.Object org.obe.engine.repository.AbstractRepository org.obe.event.BasicWorkflowEventBroker
BasicWorkflowEventBroker | final public class BasicWorkflowEventBroker extends AbstractRepository implements WorkflowEventBroker(Code) | | Provides access to OBE run-time events.
The event object passed to a listener provides access to the entity that was
the source of the event. The listener may call methods on that entity (thus
potentially affecting the entity's state and causing further notifications).
When running in a transactional environment (such as the J2EE server),
listeners are also able to veto the transaction, by calling
setRollbackOnly() on the UserTransaction object.
At present, exceptions thrown by listener methods are logged and ignored;
this behaviour may well change.
author: Adrian Price |
Method Summary | |
public void | addActivityInstanceListener(ActivityInstanceListener listener, int mask) Subscribes to activity instance events. | public void | addActivityInstanceListener(ApplicationEventListener listener, int mask) Subscribes to activity instance events. | public void | addAttributeInstanceListener(AttributeInstanceListener listener, int mask) Subscribes to attribute instance events. | public void | addAttributeInstanceListener(ApplicationEventListener listener, int mask) Subscribes to attribute instance events. | public void | addPackageListener(PackageListener listener, int mask) Subscribes to package events. | public void | addPackageListener(ApplicationEventListener listener, int mask) Subscribes to package events. | public void | addProcessDefinitionListener(ProcessDefinitionListener listener, int mask) Subscribes to process definition events. | public void | addProcessDefinitionListener(ApplicationEventListener listener, int mask) Subscribes to process definition events. | public void | addProcessInstanceListener(ProcessInstanceListener listener, int mask) Subscribes to process instance events. | public void | addProcessInstanceListener(ApplicationEventListener listener, int mask) Subscribes to process instance events. | public void | addTransitionListener(TransitionListener listener, int mask) Subscribes to transition events. | public void | addTransitionListener(ApplicationEventListener listener, int mask) Subscribes to transition events. | public void | addWorkItemListener(WorkItemListener listener, int mask) Subscribes to work item events. | public void | addWorkItemListener(ApplicationEventListener listener, int mask) Subscribes to work item events. | protected synchronized void | clear() | public void | fireActivityInstanceAborted(ActivityInstance src, Activity defn, int previousState) Internal use only - do not call. | public void | fireActivityInstanceCompleted(ActivityInstance src, Activity defn, int previousState) Internal use only - do not call. | public void | fireActivityInstanceCreated(ActivityInstance src, Activity defn) Internal use only - do not call. | public void | fireActivityInstanceEvent(ActivityInstance src, int id, Activity defn, int previousState) Internal use only - do not call. | public void | fireActivityInstanceResumed(ActivityInstance src, Activity defn, int previousState) Internal use only - do not call. | public void | fireActivityInstanceStarted(ActivityInstance src, Activity defn, int previousState) Internal use only - do not call. | public void | fireActivityInstanceStopped(ActivityInstance src, Activity defn, int previousState) Internal use only - do not call. | public void | fireActivityInstanceSuspended(ActivityInstance src, Activity defn, int previousState) Internal use only - do not call. | public void | fireActivityInstanceTerminated(ActivityInstance src, Activity defn, int previousState) Internal use only - do not call. | public void | fireAttributeInstanceCreated(AttributeInstance src, DataField defn) Internal use only - do not call. | public void | fireAttributeInstanceDeleted(AttributeInstance src, DataField defn) Internal use only - do not call. | public void | fireAttributeInstanceUpdated(AttributeInstance src, DataField defn, Object previousValue) Internal use only - do not call. | public void | firePackageCreated(XPDLPackage src) Internal use only - do not call. | public void | firePackageDeleted(XPDLPackage src) Internal use only - do not call. | public void | firePackageUpdated(XPDLPackage src) Internal use only - do not call. | public void | fireProcessDefinitionCreated(WorkflowProcess src) Internal use only - do not call. | public void | fireProcessDefinitionDeleted(WorkflowProcess src) Internal use only - do not call. | public void | fireProcessDefinitionDisabled(WorkflowProcess src) Internal use only - do not call. | public void | fireProcessDefinitionEnabled(WorkflowProcess src) Internal use only - do not call. | public void | fireProcessDefinitionUpdated(WorkflowProcess src) Internal use only - do not call. | public void | fireProcessInstanceAborted(ProcessInstance src, WorkflowProcess defn, int previousState) Internal use only - do not call. | public void | fireProcessInstanceCompleted(ProcessInstance src, WorkflowProcess defn, int previousState) Internal use only - do not call. | public void | fireProcessInstanceCreated(ProcessInstance src, WorkflowProcess defn) Internal use only - do not call. | public void | fireProcessInstanceDeleted(ProcessInstance src, WorkflowProcess defn, int previousState) Internal use only - do not call. | public void | fireProcessInstanceEvent(ProcessInstance src, int id, WorkflowProcess defn, int previousState) Internal use only - do not call. | public void | fireProcessInstanceResumed(ProcessInstance src, WorkflowProcess defn, int previousState) Internal use only - do not call. | public void | fireProcessInstanceStarted(ProcessInstance src, WorkflowProcess defn, int previousState) Internal use only - do not call. | public void | fireProcessInstanceSuspended(ProcessInstance src, WorkflowProcess defn, int previousState) Internal use only - do not call. | public void | fireProcessInstanceTerminated(ProcessInstance src, WorkflowProcess defn, int previousState) Internal use only - do not call. | public void | fireTransitionEvent(ActivityInstance activityInstance, int id, Transition defn) Internal use only - do not call. | public void | fireTransitionFired(ActivityInstance activityInstance, Transition defn) Internal use only - do not call. | public void | fireWorkItemAborted(WorkItem src, Activity defn, int previousState) Internal use only - do not call. | public void | fireWorkItemAssigned(WorkItem src, Activity defn) Internal use only - do not call. | public void | fireWorkItemCompleted(WorkItem src, Activity defn, int previousState) Internal use only - do not call. | public void | fireWorkItemCreated(WorkItem src, Activity defn) Internal use only - do not call. | public void | fireWorkItemEvent(WorkItem src, int id, Activity defn, int previousState) Internal use only - do not call. | public void | fireWorkItemResumed(WorkItem src, Activity defn, int previousState) Internal use only - do not call. | public void | fireWorkItemStarted(WorkItem src, Activity defn, int previousState) Internal use only - do not call. | public void | fireWorkItemStopped(WorkItem src, Activity defn, int previousState) Internal use only - do not call. | public void | fireWorkItemSuspended(WorkItem src, Activity defn, int previousState) Internal use only - do not call. | public void | fireWorkItemTerminated(WorkItem src, Activity defn, int previousState) Internal use only - do not call. | protected Log | getLogger() | public String | getServiceName() | public synchronized void | init() | public void | removeActivityInstanceListener(ActivityInstanceListener listener) Unsubscribes from activity instance events. | public void | removeActivityInstanceListener(ApplicationEventListener listener) Unsubscribes from activity instance events. | public void | removeAttributeInstanceListener(AttributeInstanceListener listener) Unsubscribes from attribute instance events. | public void | removeAttributeInstanceListener(ApplicationEventListener listener) Unsubscribes from attribute instance events. | public void | removePackageListener(PackageListener listener) Unsubscribes from package events. | public void | removePackageListener(ApplicationEventListener listener) Unsubscribes from package events. | public void | removeProcessDefinitionListener(ProcessDefinitionListener listener) Unsubscribes from process definition events. | public void | removeProcessDefinitionListener(ApplicationEventListener listener) Unsubscribes from process definition events. | public void | removeProcessInstanceListener(ProcessInstanceListener listener) Unsubscribes from process instance events. | public void | removeProcessInstanceListener(ApplicationEventListener listener) Unsubscribes from process instance events. | public void | removeTransitionListener(WorkItemListener listener) Unsubscribes from transition events. | public void | removeTransitionListener(ApplicationEventListener listener) Unsubscribes from transition events. | public void | removeWorkItemListener(WorkItemListener listener) Unsubscribes from work item events. | public void | removeWorkItemListener(ApplicationEventListener listener) Unsubscribes from work item events. |
addActivityInstanceListener | public void addActivityInstanceListener(ActivityInstanceListener listener, int mask)(Code) | | Subscribes to activity instance events.
Parameters: listener - The activity instance event listener to add. Parameters: mask - Bitmask to specify which events to notify. |
addActivityInstanceListener | public void addActivityInstanceListener(ApplicationEventListener listener, int mask)(Code) | | Subscribes to activity instance events.
Parameters: listener - The activity instance event listener to add. Parameters: mask - Bitmask to specify which events to notify. |
addAttributeInstanceListener | public void addAttributeInstanceListener(AttributeInstanceListener listener, int mask)(Code) | | Subscribes to attribute instance events.
Parameters: listener - The attribute instance event listener to add. Parameters: mask - Bitmask to specify which events to notify. |
addAttributeInstanceListener | public void addAttributeInstanceListener(ApplicationEventListener listener, int mask)(Code) | | Subscribes to attribute instance events.
Parameters: listener - The attribute instance event listener to add. Parameters: mask - Bitmask to specify which events to notify. |
addPackageListener | public void addPackageListener(PackageListener listener, int mask)(Code) | | Subscribes to package events.
Parameters: listener - The package event listener to add. Parameters: mask - Bitmask to specify which events to notify. |
addPackageListener | public void addPackageListener(ApplicationEventListener listener, int mask)(Code) | | Subscribes to package events.
Parameters: listener - The package event listener to add. Parameters: mask - Bitmask to specify which events to notify. |
addProcessDefinitionListener | public void addProcessDefinitionListener(ProcessDefinitionListener listener, int mask)(Code) | | Subscribes to process definition events.
Parameters: listener - The process definition event listener to add. Parameters: mask - Bitmask to specify which events to notify. |
addProcessDefinitionListener | public void addProcessDefinitionListener(ApplicationEventListener listener, int mask)(Code) | | Subscribes to process definition events.
Parameters: listener - The process definition event listener to add. Parameters: mask - Bitmask to specify which events to notify. |
addProcessInstanceListener | public void addProcessInstanceListener(ProcessInstanceListener listener, int mask)(Code) | | Subscribes to process instance events.
Parameters: listener - The process instance event listener to add. Parameters: mask - Bitmask to specify which events to notify. |
addProcessInstanceListener | public void addProcessInstanceListener(ApplicationEventListener listener, int mask)(Code) | | Subscribes to process instance events.
Parameters: listener - The process instance event listener to add. Parameters: mask - Bitmask to specify which events to notify. |
addTransitionListener | public void addTransitionListener(TransitionListener listener, int mask)(Code) | | Subscribes to transition events.
Parameters: listener - The transition event listener to add. Parameters: mask - Bitmask to specify which events to notify. |
addTransitionListener | public void addTransitionListener(ApplicationEventListener listener, int mask)(Code) | | Subscribes to transition events.
Parameters: listener - The transition event listener to add. Parameters: mask - Bitmask to specify which events to notify. |
addWorkItemListener | public void addWorkItemListener(WorkItemListener listener, int mask)(Code) | | Subscribes to work item events.
Parameters: listener - The work item event listener to add. Parameters: mask - Bitmask to specify which events to notify. |
addWorkItemListener | public void addWorkItemListener(ApplicationEventListener listener, int mask)(Code) | | Subscribes to work item events.
Parameters: listener - The work item event listener to add. Parameters: mask - Bitmask to specify which events to notify. |
clear | protected synchronized void clear()(Code) | | |
fireActivityInstanceAborted | public void fireActivityInstanceAborted(ActivityInstance src, Activity defn, int previousState)(Code) | | Internal use only - do not call.
|
fireActivityInstanceCompleted | public void fireActivityInstanceCompleted(ActivityInstance src, Activity defn, int previousState)(Code) | | Internal use only - do not call.
|
fireActivityInstanceEvent | public void fireActivityInstanceEvent(ActivityInstance src, int id, Activity defn, int previousState)(Code) | | Internal use only - do not call.
|
fireActivityInstanceResumed | public void fireActivityInstanceResumed(ActivityInstance src, Activity defn, int previousState)(Code) | | Internal use only - do not call.
|
fireActivityInstanceStarted | public void fireActivityInstanceStarted(ActivityInstance src, Activity defn, int previousState)(Code) | | Internal use only - do not call.
|
fireActivityInstanceStopped | public void fireActivityInstanceStopped(ActivityInstance src, Activity defn, int previousState)(Code) | | Internal use only - do not call.
|
fireActivityInstanceSuspended | public void fireActivityInstanceSuspended(ActivityInstance src, Activity defn, int previousState)(Code) | | Internal use only - do not call.
|
fireActivityInstanceTerminated | public void fireActivityInstanceTerminated(ActivityInstance src, Activity defn, int previousState)(Code) | | Internal use only - do not call.
|
firePackageCreated | public void firePackageCreated(XPDLPackage src)(Code) | | Internal use only - do not call.
|
firePackageDeleted | public void firePackageDeleted(XPDLPackage src)(Code) | | Internal use only - do not call.
|
firePackageUpdated | public void firePackageUpdated(XPDLPackage src)(Code) | | Internal use only - do not call.
|
fireProcessDefinitionCreated | public void fireProcessDefinitionCreated(WorkflowProcess src)(Code) | | Internal use only - do not call.
|
fireProcessDefinitionDeleted | public void fireProcessDefinitionDeleted(WorkflowProcess src)(Code) | | Internal use only - do not call.
|
fireProcessDefinitionDisabled | public void fireProcessDefinitionDisabled(WorkflowProcess src)(Code) | | Internal use only - do not call.
|
fireProcessDefinitionEnabled | public void fireProcessDefinitionEnabled(WorkflowProcess src)(Code) | | Internal use only - do not call.
|
fireProcessDefinitionUpdated | public void fireProcessDefinitionUpdated(WorkflowProcess src)(Code) | | Internal use only - do not call.
|
fireWorkItemAborted | public void fireWorkItemAborted(WorkItem src, Activity defn, int previousState)(Code) | | Internal use only - do not call.
|
fireWorkItemAssigned | public void fireWorkItemAssigned(WorkItem src, Activity defn)(Code) | | Internal use only - do not call.
|
fireWorkItemCompleted | public void fireWorkItemCompleted(WorkItem src, Activity defn, int previousState)(Code) | | Internal use only - do not call.
|
fireWorkItemCreated | public void fireWorkItemCreated(WorkItem src, Activity defn)(Code) | | Internal use only - do not call.
|
fireWorkItemEvent | public void fireWorkItemEvent(WorkItem src, int id, Activity defn, int previousState)(Code) | | Internal use only - do not call.
|
fireWorkItemResumed | public void fireWorkItemResumed(WorkItem src, Activity defn, int previousState)(Code) | | Internal use only - do not call.
|
fireWorkItemStarted | public void fireWorkItemStarted(WorkItem src, Activity defn, int previousState)(Code) | | Internal use only - do not call.
|
fireWorkItemStopped | public void fireWorkItemStopped(WorkItem src, Activity defn, int previousState)(Code) | | Internal use only - do not call.
|
fireWorkItemSuspended | public void fireWorkItemSuspended(WorkItem src, Activity defn, int previousState)(Code) | | Internal use only - do not call.
|
fireWorkItemTerminated | public void fireWorkItemTerminated(WorkItem src, Activity defn, int previousState)(Code) | | Internal use only - do not call.
|
getLogger | protected Log getLogger()(Code) | | |
removeActivityInstanceListener | public void removeActivityInstanceListener(ActivityInstanceListener listener)(Code) | | Unsubscribes from activity instance events.
Parameters: listener - The activity instance event listener to remove. |
removeActivityInstanceListener | public void removeActivityInstanceListener(ApplicationEventListener listener)(Code) | | Unsubscribes from activity instance events.
Parameters: listener - The activity instance event listener to remove. |
removeAttributeInstanceListener | public void removeAttributeInstanceListener(AttributeInstanceListener listener)(Code) | | Unsubscribes from attribute instance events.
Parameters: listener - The attribute instance event listener to remove. |
removeAttributeInstanceListener | public void removeAttributeInstanceListener(ApplicationEventListener listener)(Code) | | Unsubscribes from attribute instance events.
Parameters: listener - The attribute instance event listener to remove. |
removePackageListener | public void removePackageListener(PackageListener listener)(Code) | | Unsubscribes from package events.
Parameters: listener - The package event listener to remove. |
removePackageListener | public void removePackageListener(ApplicationEventListener listener)(Code) | | Unsubscribes from package events.
Parameters: listener - The package event listener to remove. |
removeProcessDefinitionListener | public void removeProcessDefinitionListener(ProcessDefinitionListener listener)(Code) | | Unsubscribes from process definition events.
Parameters: listener - The process definition event listener to remove. |
removeProcessDefinitionListener | public void removeProcessDefinitionListener(ApplicationEventListener listener)(Code) | | Unsubscribes from process definition events.
Parameters: listener - The process definition event listener to remove. |
removeProcessInstanceListener | public void removeProcessInstanceListener(ProcessInstanceListener listener)(Code) | | Unsubscribes from process instance events.
Parameters: listener - The process instance event listener to remove. |
removeProcessInstanceListener | public void removeProcessInstanceListener(ApplicationEventListener listener)(Code) | | Unsubscribes from process instance events.
Parameters: listener - The process instance event listener to remove. |
removeTransitionListener | public void removeTransitionListener(WorkItemListener listener)(Code) | | Unsubscribes from transition events.
Parameters: listener - The transition event listener to remove. |
removeTransitionListener | public void removeTransitionListener(ApplicationEventListener listener)(Code) | | Unsubscribes from transition events.
Parameters: listener - The transition event listener to remove. |
removeWorkItemListener | public void removeWorkItemListener(WorkItemListener listener)(Code) | | Unsubscribes from work item events.
Parameters: listener - The work item event listener to remove. |
removeWorkItemListener | public void removeWorkItemListener(ApplicationEventListener listener)(Code) | | Unsubscribes from work item events.
Parameters: listener - The work item event listener to remove. |
Methods inherited from org.obe.engine.repository.AbstractRepository | protected synchronized void clear()(Code)(Java Doc) protected void createEntry(AbstractMetaData metaData) throws RepositoryException(Code)(Java Doc) protected synchronized Entry createEntry(String key, AbstractMetaData metaData, Object instance) throws RepositoryException(Code)(Java Doc) protected synchronized void deleteEntry(String key) throws RepositoryException(Code)(Java Doc) public synchronized void exit()(Code)(Java Doc) protected Entry[] findEntries()(Code)(Java Doc) protected Entry findEntry(String key, boolean throwException) throws RepositoryException(Code)(Java Doc) protected Object findInstance(String key, boolean throwException) throws RepositoryException(Code)(Java Doc) protected synchronized AbstractMetaData[] findMetaData()(Code)(Java Doc) protected AbstractMetaData findMetaData(String key, boolean throwException) throws RepositoryException(Code)(Java Doc) protected AbstractMetaData findObjectType(String className) throws RepositoryException(Code)(Java Doc) protected AbstractMetaData[] findObjectTypes()(Code)(Java Doc) protected String getConfigurationFileName()(Code)(Java Doc) protected static Log getLog(Class clazz)(Code)(Java Doc) abstract protected Log getLogger()(Code)(Java Doc) final public ServiceManager getServiceManager()(Code)(Java Doc) public synchronized void init() throws IOException, RepositoryException(Code)(Java Doc) public synchronized boolean isInitialized()(Code)(Java Doc) protected synchronized void load() throws RepositoryException, IOException(Code)(Java Doc) protected void registerObjectType(AbstractMetaData objectType) throws ObjectAlreadyExistsException(Code)(Java Doc) public synchronized void store()(Code)(Java Doc) protected Entry updateEntry(String key, AbstractMetaData metaData) throws RepositoryException(Code)(Java Doc) protected synchronized Entry updateEntry(String key, AbstractMetaData metaData, Object implementation) throws RepositoryException(Code)(Java Doc)
|
|
|