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
4 subscribers
Views
1709 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
Process
i have a sub process which is called by the main process form different activiti
vineeta6579
over 10 years ago
i have a sub process which is called by the main process form different activities. i want to run this sub process only 1 time in a single end to end execution of main process irrespective of how many times that sub process would be called from main process.
what could be the best design for this....
OriginalPostID-97251
OriginalPostID-97251
Discussion posts and replies are publicly visible
0
Patty Isecke
Appian Employee
over 10 years ago
When configuring your sub-process, check " Do not create if active instances exist. " in the Other tab under "When this node is re-executed:"
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Sathya Srinivasan
Appian Employee
over 10 years ago
Under the 'other'tab of the subprocess, there is a checkbox that says do not create instance if an instance already exist. This is one option but this wont guarentee duplicate as it will start another instance if the previous one completes.
I'm not sure what the use case here is.. but you can use a check before you initiate the subprocess and skip if an instance has started. Use a simple pv! to set that it has started.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
vineeta6579
over 10 years ago
configured but its still creating instances of sub process
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
angad.chopra
Appian Employee
over 10 years ago
As Sathya suggested, an XOR gateway before the sub-process that checks for a pv! being true(), then sets the pv! to false and executes the sub-process node should suffice. Alternatively, you could also setup and Exception event on the sub-process.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel