I'm trying to create a transaction as part of a collaboration process, then immediately mark is as 'completed', and trigger the delivery service.
All seems to be working, except for the following code in my job action:
def statusService = new SubmissionStatusService()statusService.updateFormStatusManually(submission, "Completed")statusService.updateDeliveryStatusManually(submission, "Ready")
The delivery status is updated correctly, but the form status remains as 'Saved'.
What am I doing wrong?
Chris I've done it like this:
submission.formStatus = Submission.STATUS_Submittedsubmission.attachmentsStatus = Submission.STATUS_CompletedServiceFactory.submissionStatusService.updateStatus(submission)
Yep, this worked. Thanks Dave
Using the Fluent SDK you can achieve the same result more simply with: