Class NoOpWork

java.lang.Object
com.redhat.parodos.workflows.work.NoOpWork
All Implemented Interfaces:
Work

public class NoOpWork extends Object implements Work
No operation work.
Author:
Mahmoud Ben Hassine (mahmoud.benhassine@icloud.com)
  • Constructor Details

    • NoOpWork

      public NoOpWork()
  • Method Details

    • getName

      public String getName()
      Description copied from interface: Work
      The name of the unit of work. The name must be unique within a workflow definition.
      Specified by:
      getName in interface Work
      Returns:
      name of the unit of work.
    • execute

      public WorkReport execute(WorkContext workContext)
      Description copied from interface: Work
      Execute the unit of work and return its report. Implementations are required to catch any checked or unchecked exceptions and return a WorkReport instance with a status of WorkStatus.FAILED and a reference to the exception.
      Specified by:
      execute in interface Work
      Parameters:
      workContext - context in which this unit of work is being executed
      Returns:
      the execution report