Class ProcessConfigurator

java.lang.Object
org.chenile.orchestrator.process.config.reader.ProcessConfiguratorBase
org.chenile.orchestrator.process.config.reader.ProcessConfigurator
All Implemented Interfaces:
IProcessConfigurator
Direct Known Subclasses:
DatabaseProcessConfigurator

public class ProcessConfigurator extends ProcessConfiguratorBase
Reads additional configuration about a process based on its process type.
This information can be used by other classes to make some choices. For example, the Workflow service for Process uses this to default the leaf node attribute in the Process model.
This also provides additional information to start a worker.
  • Constructor Details

    • ProcessConfigurator

      public ProcessConfigurator()
  • Method Details

    • read

      public void read(String file)
    • read

      public void read(InputStream inputStream) throws IOException
      Throws:
      IOException
    • read

      public <T extends Processes> T read(InputStream inputStream, Class<T> documentType) throws IOException
      Read a typed extension of the standard process document, retaining normal lookup behavior.
      Throws:
      IOException
    • validate

      protected void validate(Processes document)
      Subclasses validate extended documents before replacing the active configuration.