This will enable selecting journey defined for the mobile channel.
Fetch a list of journey definitions:
Kotlin
private
val callback = object : OnJourneyDefinitionCallback {
override fun onError(code: Int, message: String) {
// Returns server error, check section: Web errors
}
override fun onSuccess(list: List<JourneyDefinition>) {
// Returns list of JourneyDefinitions
}
}
enterpriseService.getPossibleJourneyDefinitions(callback)
For selecting correct GUID we offer a couple of extra options in JourneyDefinition object to see all off them check mjcs-web-api-docs.zip in InfoPackage
- JourneyDefinition mjcs-web-api-docs/com.gbgroup.idscan.bento.enterprice.response.data/-journey-definition/
- Entry definitions (Actions set) mjcs-web-api-docs/com.gbgroup.idscan.bento.enterprice.response.data/-entry-definition
- or hardcode GUID depending on witch journey you select.
Set JourneyDefinitionId for the initial call of submitDocument for request.
Kotlin
val request = RequestDocumentSend()
request.setJourneyDefinition(list.first().journeyDefinitionId)
// or
request.setJourneyDefinition(list.first())
enterprise.submitDocument(requestDocumentSend, onDocumentSubmittedListener);
If JourneyDefinitionId will be incorrect IDscan Enterprise backend will select the first mobile channel journey from a list.