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
6 replies
Subscribers
8 subscribers
Views
2403 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
AI and Rules
is there a way to figure out if there is a live incomplete sub-process of a proc
Andrew
Certified Associate Developer
over 8 years ago
is there a way to figure out if there is a live incomplete sub-process of a process with an expression or a rule?
or can there be a portal report so it is configured to show only the processes that has live sub-processes?
I am deleting unwanted processes but don't want to delete the ones that has sub-processes still alive.
OriginalPostID-219010
OriginalPostID-219010
Discussion posts and replies are publicly visible
0
TJ
A Score Level 2
over 8 years ago
I recon that you're talking about asynchronous sub-processes.
I don't think there is a way to identify if an async sub-process is running.
You may try to pass parent process instance id in the sub-processes and during your deletion process, skip those instances.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
sagarl511
A Score Level 2
over 8 years ago
As per my knowledge there is a plugin to get subprocesses for given process. Then you can use in conjunction with process analytics on all process report with filter of all subprocess ids and status to get active subprocesses.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Tim
Certified Lead Developer
over 8 years ago
Also consider using a portal report that includes sub_process_ids() data attribute to get your list of sub-processes and then checking to see if these are active.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
sikhivahans
over 8 years ago
To the best of my knowledge, the plugin as mentioned above gets the subprocesses(synchronous and synchronous) at any level whereas the sub_process_ids() gives the information about the immediate level sub-processes.
I believe we need to take a call depending on the requirement. We have come across a similar requirement and the plugin seemed best fit for us.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
sparshs
over 8 years ago
I think you can add some boolean value in main process which will tell you whether your subprocess is complete or not. I think that process variable you can map to your report as well. I hope this may help you in some way.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Andrew
Certified Associate Developer
over 8 years ago
Thank you all for your input. I used sup_process_ids() to determine if there's any subprocess. luckily all of the processes I was going to delete had no sub-process so I didn't need to see if they are actually active. thank you again.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel