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
12 replies
Subscribers
9 subscribers
Views
4786 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
General
I have intermediate rule event path in my process that needs to be remained acti
foussenik
over 11 years ago
I have intermediate rule event path in my process that needs to be remained activated until the process reaches terminate end node, however the rule path gets executed only once .
I would like to know what the best approach to keep the rule active for the duration of my process....
OriginalPostID-81916
OriginalPostID-81916
Discussion posts and replies are publicly visible
0
foussenik
over 11 years ago
In summary I want to know best to reactivate a rule which ran and reached an end node in its path. You can manually start rule node, but how I can automate that.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Steven Miccile
Appian Employee
over 11 years ago
The rule event will be reactivated if a path of the process flow reaches the rule event again. After the rule event is executed, design a path to loop back to the rule event to restart it.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
foussenik
over 11 years ago
In my process rule event acts as start node too, so I can't loop back.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Rully
over 11 years ago
You can branch the flow after the rule event is executed by using the AND gateway. The first branch will loop back to the rule event, while the other branch follows the original path that you set before on the process model. Just make sure that you have a terminate event set instead of a normal end event to ensure that the instance is completed.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
foussenik
over 11 years ago
I have tried that scenario but I am getting error with message "two or more nodes are in loop and will not started".
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Rully
over 11 years ago
Did you set a script task after you triggered that rule event to set the rule conditions to false so that it doesn't end in endless loop?
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
foussenik
over 11 years ago
I can't run the process to begin with it even in my process I am resetting my pv. The rule event is a start node, so it looks you can not loop back to start node.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Rully
over 11 years ago
What I can suggest is to create a second rule event that has a simple condition like pv!repeat=true(). The second rule then is linked to an AND gateway that branches to two paths. (1) loop back to that second rule. (2) link to the next node after the first rule.
Set pv!repeat default as false initially and set it to true when you think it's ready to repeat the flow after the first rule event. Both rule events can start at the same time but only the first rule event trigger the flow which after that is no longer active and any repeated flows controlled now by the second rule event.
Hope this helps.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
foussenik
over 11 years ago
Thanks, I tried and that works
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Durgesh
A Score Level 2
over 10 years ago
I did same steps but still it says - Two or more nodes are in a loop and will not be started.
In my process model,
There is no start node, only Rule Event is added. It is linked to AND gateway. This AND gateway then branches to two paths. 1) Back to Rule Event 2) Next Script task (there are more script tasks next to it. there is final End Event)
Where am i doing wrong?
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
>