Class UserInteractionTask

  • All Implemented Interfaces:
    jadex.bpmn.model.task.ITask

    public class UserInteractionTask
    extends java.lang.Object
    implements jadex.bpmn.model.task.ITask
    Opens a dialog for the task and lets the user enter result parameters.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected javax.swing.JDialog dialog
      The dialog.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      IFuture<java.lang.Void> cancel​(IInternalAccess instance)
      Compensate in case the task is canceled.
      IFuture<java.lang.Void> execute​(jadex.bpmn.model.task.ITaskContext context, IInternalAccess instance)
      Execute the task.
      protected java.util.List<java.lang.Object[]> extractParams​(jadex.bpmn.model.task.ITaskContext context, IInternalAccess instance, IndexMap<java.lang.String,​jadex.bpmn.model.MParameter> parameters)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • dialog

        protected javax.swing.JDialog dialog
        The dialog.
    • Constructor Detail

      • UserInteractionTask

        public UserInteractionTask()
    • Method Detail

      • execute

        public IFuture<java.lang.Void> execute​(jadex.bpmn.model.task.ITaskContext context,
                                               IInternalAccess instance)
        Execute the task.
        Specified by:
        execute in interface jadex.bpmn.model.task.ITask
        Parameters:
        context - The accessible values.
        instance - The process instance executing the task.
      • cancel

        public IFuture<java.lang.Void> cancel​(IInternalAccess instance)
        Compensate in case the task is canceled.
        Specified by:
        cancel in interface jadex.bpmn.model.task.ITask
        Returns:
        To be notified, when the compensation has completed.
      • extractParams

        protected java.util.List<java.lang.Object[]> extractParams​(jadex.bpmn.model.task.ITaskContext context,
                                                                   IInternalAccess instance,
                                                                   IndexMap<java.lang.String,​jadex.bpmn.model.MParameter> parameters)