This service is part of the T2-Project. It orchestrates the saga.
See the Documentation for more details on the saga.
Refer to the Documentation on how to build, run or deploy the T2-Project services.
/order
POST here to start a saga
With this, you place an order for the user "foo", with the given payment details and a total cost of 42.0 money. If the orchestrator service successfully started a saga instance to handle the order, it returns the id of the saga instance.
curl -i -X POST -H "Content-Type:application/json" -d '{"cardNumber":"num","cardOwner":"own","checksum":"sum", "sessionId":"foo", "total" : 42.0}' http://orchestrator/order
000001796223c175-ee79d7ce3aa50000
property | read from env var |
---|---|
spring.datasource.url | SPRING_DATASOURCE_URL |
spring.datasource.username | SPRING_DATASOURCE_USERNAME |
spring.datasource.password | SPRING_DATASOURCE_PASSWORD |
spring.datasource.driver-class-name | SPRING_DATASOURCE_DRIVER_CLASS_NAME |
eventuatelocal.kafka.bootstrap.servers | EVENTUATELOCAL_KAFKA_BOOTSTRAP_SERVERS |
eventuatelocal.zookeeper.connection.string | EVENTUATELOCAL_ZOOKEEPER_CONNECTION_STRING |
t2.gmt-logging.enabled | T2_GMT_LOGGING_ENABLED |
Documentation of the CDC properties: eventuate tram cdc
The property t2.gmt-logging.enabled
is used to enable/disable custom logging for energy measurements with the Green Metrics Tool.