Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
const definition = this.mapperTask()
.next(setPending)
.next(waitForNSeconds)
.next(setInProgress)
.next(this.deliverTransactionTask())
.next(
new Choice(this, 'Delivery success?)
.when(Condition.stringEquals(STATUS, COMPLETE), setComplete)
.when(Condition.stringEquals(STATUS, FAILED), setFailed)
.otherwise(setPending)
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment