Klasse StepListProcessDefinition.StepListEntry

java.lang.Object
org.obrel.core.RelatedObject
org.obrel.core.SerializableRelatedObject
de.esoco.process.ProcessElement
de.esoco.process.StepListProcessDefinition.StepListEntry
Alle implementierten Schnittstellen:
Serializable, org.obrel.core.Relatable
Umschließende Klasse:
StepListProcessDefinition

public static class StepListProcessDefinition.StepListEntry extends ProcessElement
Inner class that defines the structure of the step list elements.
Siehe auch:
  • Konstruktordetails

    • StepListEntry

      public StepListEntry(String stepName, Class<? extends ProcessFragment> stepClass)
      Creates a new StepListEntry for a named step with a specific follow-up step.
      Parameter:
      stepName - The name of the step
      stepClass - The class to create the step from
    • StepListEntry

      public StepListEntry(String stepName, Class<? extends ProcessFragment> stepClass, String... configEntries)
      Creates a new StepListEntry for a named step with a specific follow-up step and a configuration map for the step.
      Parameter:
      stepName - The name of the step
      stepClass - The class to create the step from
      configEntries - The configuration for the step
    • StepListEntry

      public StepListEntry(String stepName, Class<? extends ProcessFragment> stepClass, Map<?,?> config)
      Creates a new StepListEntry for a named step with a specific follow-up step and a configuration map for the step.

      If the step class has been defined by a class literal (i.e. as <StepName>.class) in the call to this constructor the class may not have been loaded yet and any parameter types defined in it haven't been created yet too. Therefore this constructor loads the step class before parsing the configuration so that any parameter relation types referenced there are available. There's still a chance that the parsing fails if the configuration references a parameter type that is defined in a step referenced only by a step list entry that is created later.

      Parameter:
      stepName - The name of the step
      stepClass - The class to create the step from
      config - The configuration for the step
  • Methodendetails

    • getNextStep

      public final String getNextStep()
      Returns the name of the next step that will be executed after this one.
      Gibt zurück:
      The name of the next step
    • getStepName

      public final String getStepName()
      Returns the name of the process step.
      Gibt zurück:
      The stepName value
    • thenEndProcess

      public StepListProcessDefinition.StepListEntry thenEndProcess()
      Convenience method to end the process after the current step has been executed.
      Gibt zurück:
      This entry to allow further method invocations
    • thenGoTo

      public final void thenGoTo(String nextStep)
      Sets the name of the next step to be executed after this one.
      Parameter:
      nextStep - The name of the next step
    • thenGoTo

      public final void thenGoTo(Class<? extends ProcessFragment> nextStep)
      Sets the class of the next step to be executed after this one.
      Parameter:
      nextStep - The class of the next step