Appian Community
Site
Search
Sign In/Register
Site
Search
User
DISCUSS
LEARN
SUCCESS
SUPPORT
Documentation
AppMarket
More
Cancel
I'm looking for ...
State
Not Answered
Replies
8 replies
Subscribers
7 subscribers
Views
3575 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
General
Question about a!startProcess which was introduced in 16.2
tapans
over 7 years ago
I'm using a!startProcess function for the first time to be configured on button event to reassign the task.
While I am testing from the front end, on the button press, the required event is performed and task is getting reassigned successfully.
But while I am testing from the SAIL Rule, I am getting an error message (attached screenshot). May be this is something to do with "onSucess" or "onError" parameter?
My Code is :
------------
a!startProcess(
processModel : cons!TaskScreen_JobAssociation,
processParameters : {
ButtonText_txt : ri!ButtonText_txt,
taskID : ri!selectedTasks
},
onSuccess : a!save(local!Success,"Success"),
onError : a!save(local!Fail,"Fail")
)
Where local!Sucess and local!Fail are normal local variables.
------------
Let me know if anyone has faced similar issue and figured out any solu...
OriginalPostID-233253
Discussion posts and replies are publicly visible
0
tapans
over 7 years ago
...tion.
Thanks.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
bhanuprakashm
over 7 years ago
Hi tapans,
Iam also face the same issue..
Please check the parameter name without fail...means check the spelling name (ButtonText_txt and taskID) with proper camelcases.
It will work..
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
tapans
over 7 years ago
Thanks bhanuprakashm for your response.
The parameter name is exact same as I defined in Process Model. So seems this is something else.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Ramy Jaber
Appian Employee
over 7 years ago
This appears to be expected behavior based on the last note in the error message which states "This error will not be displayed to the user viewing this form".
What happens when you click the link saying "Click here to dismiss the error message and see the resulting interface" ?
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
phanibabuk
over 7 years ago
Could you please check the logs for the exact cause of error if possible? In particular, look at the text "Caused By:" which might give more information of the error.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
phanibabuk
over 7 years ago
The Start Process smart service is available as an expression function that can be executed inside a saveInto on a SAIL component or as part of a Web API.
forum.appian.com/.../Start_Process_Smart_Service.html
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Jonathan Katora
Appian Employee
over 7 years ago
Tapan, does the error go away if you use fv!processInfo instead of "Success" & "Fail"?
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
tapans
over 7 years ago
Hello All,
Thank you for your responses.
@ramy.jaber, that's correct as this doesn't affect the actual result and as user would not be able to see this error from front end, we can bypass this. Clicking on the link again opens the same SAIL rule.
@phanibabuk, thanks. I have checked from logs but couldn't be able to find out anything useful.
@jonathan, when I use fv!processInfo, I am getting "Could not find variable fv!processInfo"
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel