Journey Manager (JM) The transaction engine for the platform. | System Manager / DevOps | All versions This feature is related to all versions.
Manager comes with a service implementing a delivery process that passes form's submission data and attachments to a platform backend or third-party system for processing.
To configure the Fluent delivery process:
import com.avoka.tm.util.*
import com.avoka.tm.vo.*
import groovy.transform.TypeChecked
@TypeChecked
class FluentDeliveryProcess {
// Injected at runtime
public Logger logger
/*
* Perform Transaction Delivery Process
*
* returns: null if completed or DeliveryResult objet
*/
DeliveryResult invoke(SvcDef svcDef, Txn txn) {
try {
// TODO: perform delivery work
return new DeliveryResultBuilder()
.setStatus(Txn.DELIVERY_COMPLETED)
.build()
} catch (Exception e) {
return new DeliveryResultBuilder()
.setMaxDeliveryAttempts(5)
.setMessage(e)
.setNextDeliveryMins(30)
.setStatus(Txn.DELIVERY_ERROR)
.build()
}
}
}
Next, learn how to configure a service with multiple endpoints to external services.