public class ProMTask extends java.lang.Object implements org.deckfour.uitopia.api.model.Task<ProMPOResource>, org.processmining.framework.plugin.events.ProgressEventListener, org.processmining.framework.plugin.events.Logger, org.processmining.framework.plugin.events.PluginLifeCycleEventListener
org.processmining.framework.plugin.events.ProgressEventListener.ListenerList
Constructor and Description |
---|
ProMTask(UIContext context,
ProMAction action,
java.util.List<java.util.Collection<ProMPOResource>> parameterValues,
UIPluginContext pluginContext,
org.deckfour.uitopia.api.event.TaskListener listener) |
Modifier and Type | Method and Description |
---|---|
void |
changeProgress(int progress) |
void |
changeProgressBounds(int lowBo,
int upBo) |
void |
changeProgressCaption(java.lang.String newCaption) |
void |
changeProgressIndeterminate(boolean indeterminate) |
void |
destroy() |
ProMAction |
getAction() |
java.util.List<java.util.Collection<ProMPOResource>> |
getParameterValues() |
double |
getProgress() |
java.util.List<org.processmining.framework.providedobjects.ProvidedObjectID> |
getProvidedObjectIds() |
void |
log(java.lang.String message,
org.processmining.framework.plugin.PluginContextID contextID,
org.processmining.framework.plugin.events.Logger.MessageLevel messageLevel) |
void |
log(java.lang.Throwable t,
org.processmining.framework.plugin.PluginContextID contextID) |
void |
pluginCancelled(org.processmining.framework.plugin.PluginContext context)
This method is invoked on a context, if it is cancelled
|
void |
pluginCompleted(org.processmining.framework.plugin.PluginContext pluginContext)
This method is invoked on a context, if it is completed
|
void |
pluginCreated(org.processmining.framework.plugin.PluginContext pluginContext)
This method is invoked on a parent context, if a child context of that
parent is created.
|
void |
pluginDeleted(org.processmining.framework.plugin.PluginContext pluginContext)
This method is invoked on a context, if it's deleted from its parent
|
void |
pluginFutureCreated(org.processmining.framework.plugin.PluginContext pluginContext)
This method is invoked on a context, if it's future was set.
|
void |
pluginResumed(org.processmining.framework.plugin.PluginContext pluginContext)
This method is invoked on a context, if it is resumed
|
void |
pluginStarted(org.processmining.framework.plugin.PluginContext pluginContext)
This method is invoked on a context, if it is started
|
void |
pluginSuspended(org.processmining.framework.plugin.PluginContext pluginContext)
This method is invoked on a context, if it is suspended
|
void |
pluginTerminatedWithError(org.processmining.framework.plugin.PluginContext pluginContext,
java.lang.Throwable t)
This method is invoked on a context, if it throws an exception
|
org.deckfour.uitopia.api.event.TaskListener.InteractionResult |
showConfiguration(java.lang.String title,
javax.swing.JComponent configuration) |
org.deckfour.uitopia.api.event.TaskListener.InteractionResult |
showWizard(java.lang.String title,
boolean first,
boolean last,
javax.swing.JComponent configuration) |
java.lang.String |
toString() |
public ProMTask(UIContext context, ProMAction action, java.util.List<java.util.Collection<ProMPOResource>> parameterValues, UIPluginContext pluginContext, org.deckfour.uitopia.api.event.TaskListener listener)
public void destroy()
destroy
in interface org.deckfour.uitopia.api.model.Task<ProMPOResource>
public ProMAction getAction()
getAction
in interface org.deckfour.uitopia.api.model.Task<ProMPOResource>
public double getProgress()
getProgress
in interface org.deckfour.uitopia.api.model.Task<ProMPOResource>
public org.deckfour.uitopia.api.event.TaskListener.InteractionResult showConfiguration(java.lang.String title, javax.swing.JComponent configuration)
public org.deckfour.uitopia.api.event.TaskListener.InteractionResult showWizard(java.lang.String title, boolean first, boolean last, javax.swing.JComponent configuration)
public java.util.List<java.util.Collection<ProMPOResource>> getParameterValues()
getParameterValues
in interface org.deckfour.uitopia.api.model.Task<ProMPOResource>
public void changeProgress(int progress)
changeProgress
in interface org.processmining.framework.plugin.events.ProgressEventListener
public void changeProgressBounds(int lowBo, int upBo)
changeProgressBounds
in interface org.processmining.framework.plugin.events.ProgressEventListener
public void changeProgressCaption(java.lang.String newCaption)
changeProgressCaption
in interface org.processmining.framework.plugin.events.ProgressEventListener
public void changeProgressIndeterminate(boolean indeterminate)
changeProgressIndeterminate
in interface org.processmining.framework.plugin.events.ProgressEventListener
public void log(java.lang.String message, org.processmining.framework.plugin.PluginContextID contextID, org.processmining.framework.plugin.events.Logger.MessageLevel messageLevel)
log
in interface org.processmining.framework.plugin.events.Logger
public void log(java.lang.Throwable t, org.processmining.framework.plugin.PluginContextID contextID)
log
in interface org.processmining.framework.plugin.events.Logger
public void pluginCancelled(org.processmining.framework.plugin.PluginContext context)
org.processmining.framework.plugin.events.PluginLifeCycleEventListener
pluginCancelled
in interface org.processmining.framework.plugin.events.PluginLifeCycleEventListener
context
- the contextpublic void pluginCompleted(org.processmining.framework.plugin.PluginContext pluginContext)
org.processmining.framework.plugin.events.PluginLifeCycleEventListener
pluginCompleted
in interface org.processmining.framework.plugin.events.PluginLifeCycleEventListener
pluginContext
- the contextpublic void pluginCreated(org.processmining.framework.plugin.PluginContext pluginContext)
org.processmining.framework.plugin.events.PluginLifeCycleEventListener
pluginCreated
in interface org.processmining.framework.plugin.events.PluginLifeCycleEventListener
pluginContext
- the new Child contextpublic void pluginDeleted(org.processmining.framework.plugin.PluginContext pluginContext)
org.processmining.framework.plugin.events.PluginLifeCycleEventListener
pluginDeleted
in interface org.processmining.framework.plugin.events.PluginLifeCycleEventListener
pluginContext
- the contextpublic void pluginFutureCreated(org.processmining.framework.plugin.PluginContext pluginContext)
org.processmining.framework.plugin.events.PluginLifeCycleEventListener
pluginFutureCreated
in interface org.processmining.framework.plugin.events.PluginLifeCycleEventListener
pluginContext
- the contextpublic void pluginResumed(org.processmining.framework.plugin.PluginContext pluginContext)
org.processmining.framework.plugin.events.PluginLifeCycleEventListener
pluginResumed
in interface org.processmining.framework.plugin.events.PluginLifeCycleEventListener
pluginContext
- the contextpublic void pluginStarted(org.processmining.framework.plugin.PluginContext pluginContext)
org.processmining.framework.plugin.events.PluginLifeCycleEventListener
pluginStarted
in interface org.processmining.framework.plugin.events.PluginLifeCycleEventListener
pluginContext
- the contextpublic void pluginSuspended(org.processmining.framework.plugin.PluginContext pluginContext)
org.processmining.framework.plugin.events.PluginLifeCycleEventListener
pluginSuspended
in interface org.processmining.framework.plugin.events.PluginLifeCycleEventListener
pluginContext
- the contextpublic void pluginTerminatedWithError(org.processmining.framework.plugin.PluginContext pluginContext, java.lang.Throwable t)
org.processmining.framework.plugin.events.PluginLifeCycleEventListener
pluginTerminatedWithError
in interface org.processmining.framework.plugin.events.PluginLifeCycleEventListener
pluginContext
- the contextpublic java.util.List<org.processmining.framework.providedobjects.ProvidedObjectID> getProvidedObjectIds()
public java.lang.String toString()
toString
in class java.lang.Object