Skip to main content
deepaks0008
March 3, 2021
Solved

Call a process model using a button, is it possible?

  • March 3, 2021
  • 10 replies
  • 5 views

a!richTextDisplayField(
value: {
a!richTextItem(
text: "Create New Ticket",
link: a!startProcessLink(
label: "Create New Ticket",
processModel: cons!PM_TESTPTS, <-- Able to call process model
bannerMessage: "Updated details for "
),
style: "STRONG",
color: "POSITIVE"
)
}
)

I think its impossible in appian to call process model ? but still there can be way

    10 replies

    stefanhelzle0001
    Brainy
    March 3, 2021
    deepaks0008
    March 8, 2021

    Hi Stefan,

    I tried below syntax, could you please help with syntax to start process mmodel using button?

    a!startProcess(
    processModel:cons!PM_TESTPTS,
    processParameters:{},
    onSuccess :"Ok",
    onError :"Not Found"
    )

    And

    a!buttonWidget:{

    value:a!startProcess()

    }

    Thanks,

    Deepak

    stefanhelzle0001
    Brainy
    March 8, 2021

    Following https://docs.appian.com/suite/help/21.1/Start_Process_Smart_Service.html#a!startprocess()

    you will end with something like:

    a!buttonWidget(
      saveInto: a!startProcess(
        .
        .
      )
    )