Class ExampleStarter

java.lang.Object
dev.dsf.bpe.start.ExampleStarter

public class ExampleStarter extends Object
  • Method Details

    • forServer

      public static ExampleStarter forServer(String[] args, String baseUrl)
      Creates an object to send start-process-messages to a given FHIR-Endpoint baseUrl based on the provided client-certificate path and client-certificate password. The client-certificate path is first read from the environment variable ConstantsExampleStarters.ENV_DSF_CLIENT_CERTIFICATE_PATH. If args[0] is set, the environment variable is overwritten by args[0]. The client-certificate password is first read from the environment variable ConstantsExampleStarters.ENV_DSF_CLIENT_CERTIFICATE_PASSWORD. If args[1] is set, the environment variable is overwritten by args[1].
      Parameters:
      args - client-certificate arguments: args[0] can be the path of the client-certificate args[1] can be the password of the client-certificate
      baseUrl - the baseUrl of the organization's FHIR-Endpoint
      Returns:
      initialized ExampleStarter instance
    • forServer

      public static ExampleStarter forServer(String certificatePath, String certificatePassword, String baseUrl)
      Creates an object to send start-process-messages to a given FHIR-Endpoint baseUrl based on the provided client-certificate path and client-certificate password.
      Parameters:
      certificatePath - the path of the client-certificate
      certificatePassword - the password of the client-certificate
      baseUrl - the baseUrl of the organization's FHIR-Endpoint
      Returns:
      initialized ExampleStarter instance
    • startWith

      public void startWith(org.hl7.fhir.r4.model.Task task) throws Exception
      Throws:
      Exception
    • startWith

      public void startWith(org.hl7.fhir.r4.model.Bundle bundle) throws Exception
      Throws:
      Exception
    • createClient

      public dev.dsf.fhir.client.FhirWebserviceClient createClient(String baseUrl) throws Exception
      Throws:
      Exception