02-21-06 12:47 PM
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...le.aspx
> http://www.gotdotnet.com/Workspaces... />
ae934802d5
>
>
[ Post a follow-up to this message ]
|