BizTalk Server Orchestration - port subscriptions

This is Interesting: Free IT Magazines  
Home > Archive > BizTalk Server Orchestration > August 2005 > port subscriptions





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author port subscriptions
PeterW

2005-08-10, 7:49 am

I have a FILE receive port.
I have 2 send ports that have subscriptions that includes the
ReceivePortName for the ReceivePort. The Send shapes that use these Send
Ports are on different branches of a Decide shape. The decide shape branches
Expressions are action=="resupply" and action=="defertoqa" for the Resupply
and DeferToQA branches respectively.

action is an Orchestration variable.

For the purposes of testing functionality I set the value of this action
variable in an Expression to test if the correct branch would be used. The
value used was "resupply" which should cause just one branch to evaluate
correctly. There are no Send shapes on the else branch.

The result is curious. Both Send shapes deliver a message to their
respective ports, followed at a short interval by another message delivered
by the Resupply Send shape.

My questions are:
Why twice for the correct Send shape? One is obviously happening before the
decide shape evaluates the value of the "action" variable. Followed by one
based on the real value.
Why at all for the incorrect Send shape?

i.e. What causes the initial activation of both Send shapes despite the
Send shapes being contained in an area that should only activate on correct
evaluation?

Then why fire again when evaluated?

Some guidance would be very helpful.

cheers
--
PeterW
PeterW

2005-08-10, 7:49 am

This must be the model for getting answers. Find out yourself and reply to
your own query. :-(

The answer was that I had not set up the filters on the Send ports properly.
Once I had added an extra filter for ...action=="resupply" and
....action="defertoqa" on the respective ports the correct messages went to
the correct places.

Isn't Progress great! :-)

--
PeterW


"PeterW" wrote:

> I have a FILE receive port.
> I have 2 send ports that have subscriptions that includes the
> ReceivePortName for the ReceivePort. The Send shapes that use these Send
> Ports are on different branches of a Decide shape. The decide shape branches
> Expressions are action=="resupply" and action=="defertoqa" for the Resupply
> and DeferToQA branches respectively.
>
> action is an Orchestration variable.
>
> For the purposes of testing functionality I set the value of this action
> variable in an Expression to test if the correct branch would be used. The
> value used was "resupply" which should cause just one branch to evaluate
> correctly. There are no Send shapes on the else branch.
>
> The result is curious. Both Send shapes deliver a message to their
> respective ports, followed at a short interval by another message delivered
> by the Resupply Send shape.
>
> My questions are:
> Why twice for the correct Send shape? One is obviously happening before the
> decide shape evaluates the value of the "action" variable. Followed by one
> based on the real value.
> Why at all for the incorrect Send shape?
>
> i.e. What causes the initial activation of both Send shapes despite the
> Send shapes being contained in an area that should only activate on correct
> evaluation?
>
> Then why fire again when evaluated?
>
> Some guidance would be very helpful.
>
> cheers
> --
> PeterW

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com