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
15 replies
Subscribers
4 subscribers
Views
6624 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
Process
StartProcess instance crashes if chaining is enabled
naveena113
over 7 years ago
Hi,
We have noticed that when we initiate a PM using a!startprocess through the sail form & if the process model has activities with chaining enabled to which are taking some time to complete, the startprocess crashes. Our requirement is that we need merge a few documents using this model which takes a few seconds extra & present the link to that document on the sail form so chaining right till the end was needed. We tried to put a work around to this by forking a parallel dummy flow & disable chaining on that, but it didn't help. I saw a similar issue where they were talking about this being a bug. Please let us know if anyone have noticed this issue.
forum.appian.com/.../Error when parsing process details or variables
2017-02-16 12:43:43,945 GMT INFO [stdout] (Appian Work Item - 15662 - ProcessExec01 : UnattendedJavaActivityRequest) Inside docx...
2017-02-...
OriginalPostID-264641
Discussion posts and replies are publicly visible
0
naveena113
over 7 years ago
...16 12:43:44,179 GMT INFO [stdout] (Appian Work Item - 15662 - ProcessExec01 : UnattendedJavaActivityRequest) Completed...
2017-02-16 12:43:44,471 GMT INFO [stdout] (http-/171.128.158.177:21008-5) 2017-02-16 12:43:44,469 [http-/171.128.158.177:21008-5] ERROR com.appiancorp.core.expr.reaction.smartservicebridge.SmartServiceBridgeReaction - Exception occurred during activation of ReactionFunction {key='sys.smartService.start-process-2', class='com.appiancorp.core.expr.reaction.smartservicebridge.PluginSmartServiceBridgeReaction'}
2017-02-16 12:43:44,471 GMT INFO [stdout] (http-/171.128.158.177:21008-5) com.appiancorp.suiteapi.process.exceptions.SmartServiceException: userMsg[error.processDetails.userMsg=Error when parsing process details or variables] alertMsg[error.processDetails.alertMsg=Error when parsing process details or variables]
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Josh
Certified Lead Developer
over 7 years ago
I don't have a solution to your issue with the startprocess call crashing. But a!startprocess should be invoked asynchronously (
docs.appian.com/.../Start_Process_Smart_Service.html
meaning you should find another way to fufill your requirement.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
sikhivahans
over 7 years ago
Afaik, there shouldn't be any chaining after the start event in any path. Yes, it's weird and if you see my earlier post, you can notice a reference number given by @dcooke.
Not quite sure why you would need a chaining for async call as a!startProcess() smart service/function doesn't return any outputs. May be worth thinking about querying the analytics as the a!startProcess() is ATLEAST returning process id.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
aloks0189
Certified Lead Developer
over 7 years ago
@naveen as per my understanding, activity chaining should not exceed 50 nodes or should not take more than 5 seconds between attended activities. So in your case, it might be taking more than 5 seconds hence it's getting break.
Please refer this link for details:
docs.appian.com/.../Configuring_Activity-Chaining.html
Hope I answered your question
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
aloks0189
Certified Lead Developer
over 7 years ago
However the point mention by Sikhi is also true, why do want to have activity chaining when you want to go for asynchronous
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Josh
Certified Lead Developer
over 7 years ago
I believe @naveena113 wants to start a process from SAIL to generate a document and return a document id. Since a!startprocess starts asynchronously this requirement will need to be fulfilled another way.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
naveena113
over 7 years ago
Basically i have to return the filenet docid generated as a PDF from the merging process as a hyperlink to be downloaded on the SAIL form, hence i need it to enable the chaining.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
sikhivahans
over 7 years ago
Node limit on activity chaining can be increased and the time limit on chaining as mentioned in the docs is 10 minutes. (It's worth noting that 50 nodes or 5 seconds are discouraged but it isn't mentioned that going beyond those limits is impossible.)
It's neither about the activity chaining nor its limits. a!startProcess is to trigger the process asynchronously(similar to a sub-process with the asynchronous option checked) and so it just returns the basic info such as Process(or Model) Info, Process Variables (I believe it's parameterised variables) and then for the rest you need an analytics call.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Sumeet Khare
over 7 years ago
@naveena113: if possible can you upload full logs?
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
naveena113
over 7 years ago
here is the error message.
stack.txt
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
>