1
0
-1

As right now it always generate the form based on the current version. If we want to create a form with a specified version (previous form version), is it possible by Groovy script? 


  1. Malcolm Edgar

    Hi Alex,

    Can you provide some more context about what you are trying to do and which API you are calling.

    regards Malcolm

  2. Alex Lam

    Hi Malcolm,

    I need to create a form based on the release version. That's, the inflight application (after a new release) will reply on old/specified version to create a form for customer input. And the following is part of job controller we create the form. In "Task Form Code" of property, we just can assign the form code (in string) to it. Then the form is just created by current version. We're unable to specific which version we can assign.

    {
              "name": "Additional Information",
              "type": "Job Task Assign",
              "preCondition": "$func.invoke('CD Bundle Helper','IsAddendaFormRequired',$func.startSubmission().formDataMap.BookingCountry)",
              "properties": [
                { "name": "Task Assign User",  "value": "$func.invoke('CD Bundle Helper',GetAssignee )" },
                { "name": "Task Assign Email",  "value": "$func.invoke('CD Bundle Helper',GetAssignee )" },
                { "name": "Task Assign Portal",  "value": "Corporate Account Opening Portal" },
                { "name": "Task Form Code",  "value": "$func.invoke('CD Bundle Helper',GetAddendaFormCode)" },
                { "name": "Task Message",  "value": "Please complete the Country Information Form." },
                { "name": "Task Subject",  "value": "Country Information - $func.invoke('CD Bundle Helper','GetTaskSubject',$func.startSubmission().formDataMap.clientLegalName,$func.startSubmission().formDataMap.GlobalLinkID)" },
                { "name": "Task Input XML Prefill",  "value": "$func.invoke('CD Bundle Helper',GetAddendaPrefillXml,customer)" },
                { "name": "Task Type",  "value": "Form" }
              ]
            },



CommentAdd your comment...

1 answer

  1.  
    2
    1
    0

    Hi Alex,

    With TM 5.1.0 release we added a Job Task Assign property "Task Form Version" which enables you to pin task to a form version.  This parameter expects the Form Version Number, e.g. "2.0".

    Transact Manager 5.1.0 Release Notes

    regards Malcolm

      CommentAdd your comment...