Appian Community and Appian Academy are being upgraded. As a part of the upgrade, Appian Community is currently in read-only mode, and user registration is disabled until August 3. We apologize for any inconvenience this may cause, but a more secure, stable, and performant Community experience is coming soon!
The new Appian Community launches August 3, followed by Appian Academy on August 7. During the migration, Appian Community Edition, Appian Academy, Documentation, Certifications, Instructor-led Customer Training, Partner Sales Training & Accreditation, and Forum (for Appian Partners and Customers only) will remain available.
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
Discussion posts and replies are publicly visible
You are aware of
https://docs.appian.com/suite/help/20.4/Start_Process_Smart_Service.html#a!startprocess()
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
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( . . ) )
If you're wanting the user to flow into a task in the process instance you're starting from this action, you must use a link and a!startProcessLink. A button can not do this. However if you're just trying to kick off a process that runs in the background, you can use a!startProcess (as pointed out already by Stefan) in either a button OR a (Dynamic) Link, basically interchangeably. You haven't really clarified what your use case and desired User Experiences are.
The above syntax i tried its not working, could you please test sample code and give me syntax?
Please paste what you tried and I will have a look. Also I need to know what the actual error was.
This is my syntax but not getting any error,
a!formLayout( buttons: a!buttonLayout( primaryButtons: { a!buttonWidget( label: "Create New Ticket", value:"", saveInto: a!startProcess( processModel:cons!PM_TESTPTS, processParameters:"", onSuccess :"Ok", onError :"Not Found" ) ) } ) )
OK. Please check the documentation for the type of each parameter.
processParameters must be a dictionary but not an empty string
onSuccess and onError must be null or a list of a!save() but not just a string.
Can a!startProcessLink be used in button widget's saveInto parameter? Or does it only work with link components?
Not in a button, only as a link.