Skip to content

Commit

Permalink
add new node type: servlet endpoints, rather than the ususal db table…
Browse files Browse the repository at this point in the history
… endpoints
  • Loading branch information
daveloyall committed Apr 2, 2013
1 parent e757b2e commit 9fd3e68
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions ne.gov/go.pl
Expand Up @@ -48,11 +48,15 @@

sub process_service {
my ($twig, $s) = @_;
return unless ($s->first_child('Action')->first_child('QueueId'));
my $name = $s->first_child('Name')->text;
my $action_name = $s->first_child('Action')->first_child('Name')->text;
my $action_queue_id = $s->first_child('Action')->first_child('QueueId')->text;
add_edge($name . " / " . $action_name, $action_queue_id);
if ($s->first_child('Action')->first_child('QueueId')) {
my $action_queue_id = $s->first_child('Action')->first_child('QueueId')->text;
add_edge($name . " / " . $action_name, $action_queue_id);
} else {
my $action_servlet = $s->first_child('Action')->first_child('Url')->text;
add_edge($name . " / " . $action_name, $action_servlet);
}
}


Expand Down

0 comments on commit 9fd3e68

Please sign in to comment.