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
10 replies
Subscribers
7 subscribers
Views
7127 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
Process
Hey Guys, Any idea why AND gateway is getting stuck at second instance.
rickyc472
over 8 years ago
Hey Guys,
Any idea why AND gateway is getting stuck at second instance.
OriginalPostID-178806
OriginalPostID-178806
Discussion posts and replies are publicly visible
0
harshav
over 8 years ago
Please make sure that again to initiate, both the Paths should be reaching this gate, Else i will be waiting for the second one.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
harshav
over 8 years ago
(AND gate)it * will be waiting for the second path ...sorry for the typo
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
PhilB
Certified Lead Developer
over 8 years ago
It seems like you've got more than just the two flows running down the two webservce call paths. Try right clicking on the XORs before the webservice calls and having a look at how many instances of each there are; no doubt there'll be more than one instance of at least one of them.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
rawich
over 8 years ago
I feel like you are making things more complicated than necessary. Since you only need to either Create or Update the TRAMS AJAX POST, just one way or another. Why don't you use one XOR gateway instead of an AND + two XORs? Then at the end of the 2 paths, you won't need the dummy Script Task + AND join, just draw the arrows from both "Check Step Count" and "Check StepCountUpdate" directly into Check for Error.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
kumaraveln
over 8 years ago
@ricky: Don't make any decision gateways (OR / AND) to have two incoming flows .. even if it is supported as per documentation, it works for first time however will stop working on the second encounter (in a loop) .. we have faced this issue earlier .. Instead, put a dummy / pass through script activity to intake all the inputs (2 or more) and the output of script activity should be connected to the AND as input .. So, all decision gateway will have one incoming flow and 1 or more out going flow .. Hope I am clear ..
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
ganeshbabuj604
over 7 years ago
Instead of script task can we also have Complex gate to join all inputs and set 1 incoming Path and define 1 outgoing path to the following XOR gateway?
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
ganeshbabuj604
over 7 years ago
Has the behavior of XOR gateway been the same on latest Appian 17.1
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
aswinb608
A Score Level 2
over 6 years ago
insert a blank script task before the AND gateway and join the two flows coming from the two dummy script tasks into that. then the output from the blank script task can be feeded to the input of the and gateway.....all gateways except complex gateway can only have one input flow coming in....otherwise they will get stuck
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
aswinb608
A Score Level 2
over 6 years ago
insert a blank script task before the AND gateway and join the two flows coming from the two dummy script tasks into that. then the output from the blank script task can be feeded to the input of the and gateway.....all gateways except complex gateway can only have one input flow coming in....otherwise they will get stuck
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
amans
over 6 years ago
in reply to
rawich
Agree, those ANDs are not required, only one XOR can do the job.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel