|
Home > Archive > BizTalk Server Orchestration > February 2006 > Supressing Outbound files
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 |
Supressing Outbound files
|
|
| Vishal Somaiya 2006-02-20, 5:52 pm |
| Hello,
Does anyone know if it is possible to supress a Biztalk 2004 outbound file
(i.e. the processed file) within an Orchestration or by any other methods?
Vishal
| |
|
|
| Vishal Somaiya 2006-02-21, 7:47 am |
| Hi Tomas,
Well, i'm trying to supress an empty message that still prodcues a file. I
don't want to supress it completely, only if the message is empty.
Any thoughts?
Vishal
"Tomas Restrepo (MVP)" <tomasr@mvps.org> wrote in message
news:uqeocFkNGHA.916@TK2MSFTNGP10.phx.gbl...
> Vishal,
>
file[vbcol=seagreen]
methods?[vbcol=seagreen]
>
> What exactly do you mean by this?
>
> If you mean just discarding sent messages (because, for example you're
just
> doing a dummy send to initialize a correlation set), then one way to do it
> would be to use my own null adapter [1] or Patrick Welling's NOPE adapter
> [2]
>
> [1]
>
http://www.winterdom.com/weblog/200...pterSample.aspx
> [2]
>
http://www.gotdotnet.com/Workspaces...bb-c0ae934802d5
>
>
> --
> Tomas Restrepo
> tomasr@mvps.org
> http://www.winterdom.com/
>
>
| |
| Tomas Restrepo \(MVP\) 2006-02-21, 7:47 am |
| Hi Vishal,
> Hi Tomas,
>
> Well, i'm trying to supress an empty message that still prodcues a file. I
> don't want to supress it completely, only if the message is empty.
Not quite sure I understand what you mean here, what do you mean exactly by
"an empty message" ?
--
Tomas Restrepo
tomasr@mvps.org
http://www.winterdom.com/
| |
| Greg Forsythe 2006-02-21, 7:47 am |
| You could use a decide shape and only send the outputmessage if the size gtr
zero
To determine the message size, you will need to implement the SMTP.Utilities
from the documentation
and add the following static function.
public static int GetPartSize(Microsoft.XLANGs.BaseTypes.XLANGPart part)
{
return
(int)part.GetPartProperty(typeof(Microsoft.XLANGs.BaseTypes.Size));
}
Within a decide shape you add a rule branch with:
SMTP.Utilities.Part.GetPartSize(ouputMessage) > 0
This rule branch would contain a Send shape, the Else branch would do
nothing
Greg
"Vishal Somaiya" <vsomaiya@bca-group.com> wrote in message
news:ua990csNGHA.720@TK2MSFTNGP14.phx.gbl...
> Hi Tomas,
>
> Well, i'm trying to supress an empty message that still prodcues a file. I
> don't want to supress it completely, only if the message is empty.
>
> Any thoughts?
>
> Vishal
>
>
> "Tomas Restrepo (MVP)" <tomasr@mvps.org> wrote in message
> news:uqeocFkNGHA.916@TK2MSFTNGP10.phx.gbl...
> file
> methods?
> just
> http://www.winterdom.com/weblog/200...pterSample.aspx
> http://www.gotdotnet.com/Workspaces...bb-c0ae934802d5
>
>
|
|
|
|
|