Is there a way to automate importing application zip file

Comments

7 comments

  • Avatar
    Vinutha C

    Hi Tim,

    You can make use of the Import App and Export App Activities under the AgilePointNX stencil, which supports

    an automated way to import and export applications in process model.

    Please refer below documentation for further details.

    https://documentation.agilepoint.com/00/appbuilder/cloudenvShapeImportApplicationAgilePoint.html

    https://documentation.agilepoint.com/00/appbuilder/cloudenvShapeAgilePointExportApplication.html

     

    Thanks

    2
    Comment actions Permalink
  • Avatar
    Tim Artz

    Thanks Vinutha.  That helped me to get started.  I have created the import application and I have tested it by creating a REST service call to CreateProcessInstance.  I can see that I am able to successfully start it but it does not seem to be receiving the variables I am passing to it.  Below is the JSON I am sending to the application.  When I run the application I see that the errormessage is saying that the "Requested file does not exist".  Also the eForm variables show that none of the variables are being received that I am passing below.   Are you able to provide guidance?

    {

        "ProcessID": "8464005056BD247711DD1CB70F40E138",
        "ProcessInstID": null,
        "blnStartImmediately": true,
        "Initiator": "mtest\\svc_test_AP_Service",
        "ProcInstName": "{{$guid}}",
        "SuperProcInstID": null,
        "WorkObjID": "{{$guid}}",
        "Attributes": {
            "processFields": {
                "Content": [
                    {
                        "Name": "ApplicationID",
                        "Value": "846A005056BD020811DD0D031929989B"
                    },
                    {
                        "Name": "ApplicationType",
                        "Value": "eForms"
                    },
                    {
                        "Name": "ApplicationInternalName",
                        "Value": "MMS_Test_Application.zip"
                    },
                    {
                        "Name": "ApplicationDisplayName",
                        "Value": "MMS Test Application"
                    },
                    {
                        "Name": "Status",
                        "Value": "RELEASED"
                    },
                    {
                        "Name": "CreatedBy",
                        "Value": "XXX\\XXXXXXXX"
                    },
                    {
                        "Name": "CreatedDate",
                        "Value": "2022-07-26T12:50:52.557"
                    }
                ]
            }
        }
    }
    0
    Comment actions Permalink
  • Avatar
    Vinutha C

    Hi Tim,

    Please provide screenshot of your app process schema, refer below image for details.

    Thanks

    0
    Comment actions Permalink
  • Avatar
    Tim Artz

    0
    Comment actions Permalink
  • Avatar
    Tim Artz


    0
    Comment actions Permalink
  • Avatar
    Tim Artz

    There doesn't appear to be a way to pass the file to import into the Import Application Activity for using File System

    0
    Comment actions Permalink
  • Avatar
    Vinutha C

    The provided json format of attributes looks wrong in your payload. Refer to the below json format.

    "Attributes": [
        {
            "Name": "/pd:AP/pd:formFields/pd:TextBox1",
            "Value": "Value"
        },
        {
            "Name": "/pd:AP/pd:formFields/pd:TextBox2",
            "Value": "Value"
        }
    ]
     
    Thanks
    0
    Comment actions Permalink

Please sign in to leave a comment.