Package dev.dsf.bpe.start
Class ExampleStarter
java.lang.Object
dev.dsf.bpe.start.ExampleStarter
-
Method Summary
Modifier and TypeMethodDescriptiondev.dsf.fhir.client.FhirWebserviceClientcreateClient(String baseUrl) static ExampleStarterCreates an object to send start-process-messages to a given FHIR-Endpoint baseUrl based on the provided client-certificate path and client-certificate password.static ExampleStarterCreates an object to send start-process-messages to a given FHIR-Endpoint baseUrl based on the provided client-certificate path and client-certificate password.voidstartWith(org.hl7.fhir.r4.model.Bundle bundle) voidstartWith(org.hl7.fhir.r4.model.Task task)
-
Method Details
-
forServer
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 variableConstantsExampleStarters.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 variableConstantsExampleStarters.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-certificatebaseUrl- 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-certificatecertificatePassword- the password of the client-certificatebaseUrl- the baseUrl of the organization's FHIR-Endpoint- Returns:
- initialized ExampleStarter instance
-
startWith
- Throws:
Exception
-
startWith
- Throws:
Exception
-
createClient
- Throws:
Exception
-