2
1
0

We have been building our Groovy layer to interface UI and the Service layer using TM 4.3 referencing Submission object extensively

Here are some of the methods we access on Submission

  • submission.getDeliveryProcessAttempts()
  • submission.getMaxDeliveryAttempts()
  • submission.setSubmissionPropertyValue(name, value)
  • submission.getSubmissionPropertyValue(name)
  • submission.setFormStatus(Submission.STATUS_Saved)
  • submission.setUserSavedFlag(true)
  • submission.setSaveChallengeAnswer()
  • submission.contactEmailAddress submission.getPortal()

We are now upgrading the Groovy layer to TM 5 and facing some issues to reference "Submission" object.

There is a way to set some properties to the Submission object within Txn object through TxnUpdater. But is there a way to explicitly access the Submission object?

 

    CommentAdd your comment...

    1 answer

    1.  
      3
      2
      1

      The Submission object is no longer available in the Fluent SDK. The Txn object replaces the Submission object and the TxnUpdater facilitates changes to transactions as you correctly noted, E.g.

       

      new TxnUpdater(txn)
              .setProperty(name, value)
              .setFormStatus(Txn.FORM_SAVED)
              .update()

      Some other functions you've listed are available as follows:

      • submission.getSubmissionPropertyValue(name)
      txn.propertyMap.get(name)
      • submission.contactEmailAddress
      txn.emailAddress
      • submission.getPortal()
      new SpaceQuery().setId(txn.spaceId).firstValue()

      (see SpaceQuery)

      Some of the attributes/functions found on the Submission object were not migrated to the Txn object in the first pass as they were felt to be of lower value. Of the functions you've listed I suspect that the following items do not yet have an equivalent in the Fluent SDK:

      • submission.getDeliveryProcessAttempts()
      • submission.getMaxDeliveryAttempts()
      • submission.setUserSavedFlag(true)
      • submission.setSaveChallengeAnswer()

       

      I suggest you review your requirement for these functions and if you find they are important for your use case then go ahead and post your thoughts in the Avoka Community Ideas forum. These ideas are curated and often influence product roadmap.

      1. Ben Warner

        Hi Sathiyachalam, did this response answer your question?

      2. Sathiyachalam Baskar

        Yes Ben, this has given me a lead.

      CommentAdd your comment...