|
Home > Archive > BizTalk Server Orchestration > August 2005 > Calling business rules questions
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 |
Calling business rules questions
|
|
| Jeremy Chapman 2005-08-22, 5:56 pm |
| I'm trying to call a business rule from my orchestration, I've created the
policy wich has one rule with a match condition. I aded a vocabulary which
is is based on an xml document element or attribute. This is used in my
match condition. The policy and vocabulary have been saved and published.
I then dragged the rule shape into my orchestration then picked the policy
in the configuration dialog. No parameters show up in the policy parameter
list, how do I pass my message to the rule?
| |
| Jon Flanders[MVP] 2005-08-22, 5:56 pm |
| You've just encountered the most often encountered issue with using the BRE
from BizTalk. When you add your schemas to the designer (via the facts
explorer or via a vocabulary) - you've got to specify the fully qualified
schema name - or you get exactly what has happened to you.
At this point - the easiest thing to do is to use the Business Rules Engine
Deployment Wizard to export the policy and the vocabulary to xml - then edit
the xml to add the namespace before the schema name - so if the schema name
in the xml is "Schema1" change it to "AssemblyName.Schema1". Change the
minor version and re-import.
--
Jon Flanders
http://www.masteringbiztalk.com/blogs/jon/
"Jeremy Chapman" <me@here.com> wrote in message
news:eyiz%23izpFHA.3064@TK2MSFTNGP15.phx.gbl...
> I'm trying to call a business rule from my orchestration, I've created the
> policy wich has one rule with a match condition. I aded a vocabulary
> which is is based on an xml document element or attribute. This is used
> in my match condition. The policy and vocabulary have been saved and
> published. I then dragged the rule shape into my orchestration then picked
> the policy in the configuration dialog. No parameters show up in the
> policy parameter list, how do I pass my message to the rule?
>
| |
| Jeremy Chapman 2005-08-22, 5:56 pm |
| I will try this, thanks. One further question though. In my orchestration
my message is a multipart message type encapsulating an hl7 message, so it
has a BodySegments (xmldocument) part, an MSHSegment (xmldocument) and a
ZSegments (string) part, and it's not based on a schema, so in the rules
engine, what do I pick for a schema when I'm creating the vocabulary?
"Jon Flanders[MVP]" <jon.flanders@gmail.com> wrote in message
news:OwtdZ9zpFHA.2520@tk2msftngp13.phx.gbl...
> You've just encountered the most often encountered issue with using the
> BRE from BizTalk. When you add your schemas to the designer (via the
> facts explorer or via a vocabulary) - you've got to specify the fully
> qualified schema name - or you get exactly what has happened to you.
>
> At this point - the easiest thing to do is to use the Business Rules
> Engine Deployment Wizard to export the policy and the vocabulary to xml -
> then edit the xml to add the namespace before the schema name - so if the
> schema name in the xml is "Schema1" change it to "AssemblyName.Schema1".
> Change the minor version and re-import.
>
> --
> Jon Flanders
> http://www.masteringbiztalk.com/blogs/jon/
>
> "Jeremy Chapman" <me@here.com> wrote in message
> news:eyiz%23izpFHA.3064@TK2MSFTNGP15.phx.gbl...
>
>
| |
| Jon Flanders[MVP] 2005-08-22, 5:56 pm |
| In the BRE if you don't have a schema - you'll need to create a .NET helper
class that can retrieve data from the XmlDocument.
--
Jon Flanders
http://www.masteringbiztalk.com/blogs/jon/
"Jeremy Chapman" <me@here.com> wrote in message
news:%23gdikG0pFHA.616@TK2MSFTNGP15.phx.gbl...
>I will try this, thanks. One further question though. In my orchestration
>my message is a multipart message type encapsulating an hl7 message, so it
>has a BodySegments (xmldocument) part, an MSHSegment (xmldocument) and a
>ZSegments (string) part, and it's not based on a schema, so in the rules
>engine, what do I pick for a schema when I'm creating the vocabulary?
>
> "Jon Flanders[MVP]" <jon.flanders@gmail.com> wrote in message
> news:OwtdZ9zpFHA.2520@tk2msftngp13.phx.gbl...
>
>
|
|
|
|
|