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
4 replies
Subscribers
5 subscribers
Views
1799 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
Plug-Ins
Does startprocesswrite work with activity chaining? I'm using the start
robbier
over 10 years ago
Does startprocesswrite work with activity chaining?
I'm using the startprocesswrite plug-in from within a record dashboard form. (I'm using it from within a datagrid link).
I click the link in the datagrid and the workflow gets kicked off as I would expect with all the data passed in but instead of opening the first task in the activity chain it sends the task to my inbox as if there were no activity chain. When I run the process from an action the activity chaining runs just fine.
I didn't see anything in the discussion about this so far/
OriginalPostID-146391
OriginalPostID-146391
Discussion posts and replies are publicly visible
0
sikhivahans
over 10 years ago
@robbier fn!startprocesswrite belongs to fire and forget category. So chaining can't be expected here. What you could only do is, you could only kick off a process with this function which runs asynchronously.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
sikhivahans
over 10 years ago
The task can't be chained immediately from the SAIL interface i.e. the chain breaks when human intervention comes into picture. But at the same time if you just proceed with system activities, you could run them synchronously (provided if the functionality is within chaining limits).
A work around you can think of is:
1. Include a functionality to write process id in your process model which is triggered from fn!startprocesswrite
2. In your SAIL code, query the process id written recently and get the active task using queryprocessanalytics or getportalreportdatasubset
3. Provide the link to task on the SAIL interface using the task id retrieved from Step - 2.
A similar approach to the above has been successfully implemented and tested (long back) for exporting the data to document and providing a link to document immediately on the SAIL interface.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
robbier
over 10 years ago
Ah! Good to know. Thanks for the clarification.
I do hope that at some point in the platform there is a way to either a) pass more data into a Related Task---including local variables and/or b) launch processes (synchronously) from links in a SAIL form (at least from a record dashboard).
Again, thanks for the clarification!
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
sikhivahans
over 10 years ago
:) Hope so!!
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel