org.eclipse.stardust.engine.core.spi.monitoring
Interface IWorklistMonitor


public interface IWorklistMonitor

An implementor of this interface can provide a worklist monitor which will be informed about changes to the worklist.

Be aware that the notifications are not TX save: You will be informed even if later in TX a rollback will happen and the change is not commited to DB.
To publish an implementor to the engine a file named by the interface's factory has to be created in the '/META-INF/services' folder of the jar.
In this case: org.eclipse.stardust.engine.core.spi.monitoring.IWorklistMonitor
This file needs to contain the qualified class name of the implementor of this interface.

This pattern follows the concept of the JDK6 ServiceLoader.

Author:
robert.sauer

Method Summary
 void addedToWorklist(org.eclipse.stardust.engine.api.model.IParticipant participant, org.eclipse.stardust.engine.core.runtime.beans.IActivityInstance activityInstance)
          Will be called at the end of transaction when the currentPerformer of activity instance has changed and is not null.
 void removedFromWorklist(org.eclipse.stardust.engine.api.model.IParticipant participant, org.eclipse.stardust.engine.core.runtime.beans.IActivityInstance activityInstance)
          Will be called at the end of transaction when previousPerformer of activity instance has changed and is not null.
 

Method Detail

addedToWorklist

void addedToWorklist(org.eclipse.stardust.engine.api.model.IParticipant participant,
                     org.eclipse.stardust.engine.core.runtime.beans.IActivityInstance activityInstance)
Will be called at the end of transaction when the currentPerformer of activity instance has changed and is not null.

Parameters:
participant - the participant to whose worklist the activity instance has been added.
activityInstance - the activity instance which is affected.

removedFromWorklist

void removedFromWorklist(org.eclipse.stardust.engine.api.model.IParticipant participant,
                         org.eclipse.stardust.engine.core.runtime.beans.IActivityInstance activityInstance)
Will be called at the end of transaction when previousPerformer of activity instance has changed and is not null.

Parameters:
participant - the participant from whose worklist the activity instance has been removed.
activityInstance - the activity instance which is affected.


Copyright © 2017 Eclipse Stardust. All Rights Reserved.