Appian Community
Site
Search
Sign In/Register
Site
Search
User
DISCUSS
LEARN
SUCCESS
SUPPORT
Documentation
AppMarket
More
Cancel
I'm looking for ...
State
Verified Answer
+2
person also asked this
people also asked this
Replies
14 replies
Subscribers
6 subscribers
Views
10794 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
Plug-Ins
Unable to start 2 or more smartservice at the same time
marcoc918
A Score Level 1
over 7 years ago
Good afternoon,
we have the following requirement and we are unable to solve it:
we need to launch at the same moment two smartservice (a!startProcess and a!deleteFromDataStoreEntities) from an interface when the user clicks on one single button "Delete", but the following error mesage appears:
Interface Definition: Expression evaluation error: An error occurred while executing a save: Expression evaluation error : Attempted to run a second smart service, but only one smart service can be run per expression evaluation.
The interface is something like that
a!buttonwidgetSubmit(
value: true,
saveInto: {
a!save(ri!boolean, value),
a!startProcess(paraemter to start the process),
a!deleteFromDataStoreEntities(parameter to delete from datastore)
}
OriginalPostID-242872
Discussion posts and replies are publicly visible
0
omere
over 7 years ago
you can create one sub process that calls your other process and does any database writes, and call that from the SAIL. I don't think you can use more than one smart service in a saveInto. See this thread
forum.appian.com/.../e-220503
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
rodgraham
Certified Lead Developer
over 7 years ago
Are you able to do the delete from data store within the process that is started. If one smart service is a limit then could be a work around
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
omere
over 7 years ago
here's a link to the documentation. One smart service is a limit.
forum.appian.com/.../SAIL_Design.html
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
chandu
A Score Level 2
over 7 years ago
we can only call utmost one smart service in saveInto
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
ramakrishnak
over 7 years ago
Hi @marcoc918
You can’t run two smart service functions at the same time. It allows you to run only one at a time. AFAIK you can run by applying some conditions.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
ramakrishnak
over 7 years ago
By applying conditions also you can run one after another,but not both at the same time
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
aloks0189
Certified Lead Developer
over 7 years ago
@marcoc918 I too have faced the Same issue a Month Ago having same requirement, because if we call more than one smart Service Function At a time Through interface then the first Smart Service function gets Execute well but while executing second one the Page gets Break by raising an Error
So the solution which i did was, i created a process Model having Parameterised variables required for both the operation and i created the Process Model as per my need, later the same process model i referred using a Constant, and then i used a!startProcess(cons!MyConstant, list of Parameters) function on Each click, which Did my Job.
So rather than calling a!deleteFromDataStoreEntities and a!startProcess individually, i recommend you better configure Delete From DataStore Entities smart Service in Process Model.
i Hope this will be resolution of our Query
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
bhanuprakashm
over 7 years ago
Hi @marcoc918,
Can you elaborate more..
If you want to execute two smart services at same time it is not possible..
if you want to run two smart service on sam time please look over the below link
forum.appian.com/.../SAIL_Design.html
Hope it will help you
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
+2
Paul Mayeur
Appian Employee
over 7 years ago
The most recent hotfix pacakge for 16.3 and 16.2 fixed an issue around this. See:
forum.appian.com/.../Hotfixes.html
AN-76326 - Low
Executing multiple smart service expressions in quick succession from the same interface no longer throws an error.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Reject Answer
Cancel
0
codys
over 7 years ago
@ramakrishnak Could you please elaborate what it means "by applying conditions also you can rune one after another" ?
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
>