BizTalk Server Administration - Move a document to the suspend Queue from within an AIC - BTS 2002

This is Interesting: Free IT Magazines  
Home > Archive > BizTalk Server Administration > July 2004 > Move a document to the suspend Queue from within an AIC - BTS 2002





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 Move a document to the suspend Queue from within an AIC - BTS 2002
Rich Dadisman

2004-06-09, 8:31 am

Hello All,



Can anyone tell me where I can find an example of how to programmatically
place a document into the suspended queue?



Here are my 2 scenarios.



Preprocessor

I have a preprocessor that picks up a PGP encrypted file, decrypts it and
submits the unencrypted contents to a channel. If the document cannot be
decrypted, I would like to move the entire doc to the suspended queue.



AIC

I have an AIC that processes the inbound document. Under certain error
scenarios, I would like to move this document to the Suspended Queue so that
it can be reviewed and corrected by an administrator.



Any help would be appreciated.



Thanks,

Rich


Jan Eliasen

2004-06-20, 11:08 pm

Hi

You can not yourself place documents in the Suspended Queue (unless
you do something nasty as writing it to the InterchangeSQ-database
yourself.)

If you really need the documents in Suspended Queue instead of just
writing an error in the EvengLog, then I'd do the following:

Preprocessor: Instead of having the preprocessor submit anything to
BizTalk, just let the preprocessor return the un-decrypted document.
BizTalk will not be able to parse it, and will place it in the
suspended queue.

AIC: Create a fake channel that has an inbound document definition
that you know you will never have a document that conforms to. Then in
the AIC, just submit the document to this specific channel. It will
fail and go into the suspended queue.

Jan Eliasen

On Tue, 8 Jun 2004 09:46:18 -0400, "Rich Dadisman" <aaa@aaa.com>
wrote:

>Hello All,
>
>
>
>Can anyone tell me where I can find an example of how to programmatically
>place a document into the suspended queue?
>
>
>
>Here are my 2 scenarios.
>
>
>
>Preprocessor
>
>I have a preprocessor that picks up a PGP encrypted file, decrypts it and
>submits the unencrypted contents to a channel. If the document cannot be
>decrypted, I would like to move the entire doc to the suspended queue.
>
>
>
>AIC
>
>I have an AIC that processes the inbound document. Under certain error
>scenarios, I would like to move this document to the Suspended Queue so that
>it can be reviewed and corrected by an administrator.
>
>
>
>Any help would be appreciated.
>
>
>
>Thanks,
>
>Rich
>


--
Jan Eliasen, representing himself and not the company he works for.
Rich Dadisman

2004-06-20, 11:08 pm

Thanks Jan,

I truely appericate the help.

Rich

"Jan Eliasen" <spam@eliasen.dk> wrote in message
news:vbarc0dt2ebaik823aq6mm26krqi3o3433@
4ax.com...
> Hi
>
> You can not yourself place documents in the Suspended Queue (unless
> you do something nasty as writing it to the InterchangeSQ-database
> yourself.)
>
> If you really need the documents in Suspended Queue instead of just
> writing an error in the EvengLog, then I'd do the following:
>
> Preprocessor: Instead of having the preprocessor submit anything to
> BizTalk, just let the preprocessor return the un-decrypted document.
> BizTalk will not be able to parse it, and will place it in the
> suspended queue.
>
> AIC: Create a fake channel that has an inbound document definition
> that you know you will never have a document that conforms to. Then in
> the AIC, just submit the document to this specific channel. It will
> fail and go into the suspended queue.
>
> Jan Eliasen
>
> On Tue, 8 Jun 2004 09:46:18 -0400, "Rich Dadisman" <aaa@aaa.com>
> wrote:
>
that[vbcol=seagreen]
>
> --
> Jan Eliasen, representing himself and not the company he works for.



Susheel

2004-07-30, 5:49 pm


Easy way to place the document is just throw an exception... something like this...

Throw New Exception("Empty file Transmitted. Cannot Process")

this will write to the event log and place the document in the suspended queue.

Thanks
susheel

"Rich Dadisman" wrote:

> Hello All,
>
>
>
> Can anyone tell me where I can find an example of how to programmatically
> place a document into the suspended queue?
>
>
>
> Here are my 2 scenarios.
>
>
>
> Preprocessor
>
> I have a preprocessor that picks up a PGP encrypted file, decrypts it and
> submits the unencrypted contents to a channel. If the document cannot be
> decrypted, I would like to move the entire doc to the suspended queue.
>
>
>
> AIC
>
> I have an AIC that processes the inbound document. Under certain error
> scenarios, I would like to move this document to the Suspended Queue so that
> it can be reviewed and corrected by an administrator.
>
>
>
> Any help would be appreciated.
>
>
>
> Thanks,
>
> Rich
>
>
>

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com