|
Home > Archive > BizTalk Server General > March 2004 > Business Rule Composer
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 |
Business Rule Composer
|
|
| Julien C. 2004-03-25, 11:44 am |
| Hi All,
I'm currently using the Business Rule Composer to implement business logic,
but I have some difficulties. Event though the Business Rule Composer has a
nice UI, I must say it's not so trivial.
Here is what I want to do :
I have an XML file like this :
<Article>
<Category></Category> <!-- Value can be : Business | Science |
Technology -->
<Email></Email> <!-- This element should be defined by the business
rule according to the category -->
</Article>
So, in my Vocabulary, I defined an "Article Category" definition and an
"Email Category" definition, which respectively match the Category element
(in GET mode) and the Email element (in SET mode). I also defined a List
Values called "Category Values" which lists the different possible values
(Business, Science Technology).
Now in my Policy Explorer, I created a new Rule in which I want to define :
if (category == "Business")
Email = "business@contoso.com";
else if (category == "Science")
Email = "science@contoso.com";
else if (category == "Technology"
Email = "tech@contoso.com";
How do you perform an ELSE ?
Thanks in advance !
Julien C.
| |
| Julien C. 2004-03-25, 12:51 pm |
| Ok I think I found how to do what I wanted. It seems that to perform an
"ELSE" condition, you need to create another rule of your policy. At the
beginning, I thought I could do many ELSE IF in the same Rule, but you have
to create multiple rules to implement an ELSE operator.
"Julien C." <cheyss_j@hotmail.com> wrote in message
news:ORwwTFoEEHA.580@TK2MSFTNGP11.phx.gbl...
> Hi All,
>
> I'm currently using the Business Rule Composer to implement business
logic,
> but I have some difficulties. Event though the Business Rule Composer has
a
> nice UI, I must say it's not so trivial.
>
> Here is what I want to do :
>
> I have an XML file like this :
>
> <Article>
> <Category></Category> <!-- Value can be : Business | Science |
> Technology -->
> <Email></Email> <!-- This element should be defined by the
business
> rule according to the category -->
> </Article>
>
> So, in my Vocabulary, I defined an "Article Category" definition and an
> "Email Category" definition, which respectively match the Category element
> (in GET mode) and the Email element (in SET mode). I also defined a List
> Values called "Category Values" which lists the different possible values
> (Business, Science Technology).
>
> Now in my Policy Explorer, I created a new Rule in which I want to define
:
> if (category == "Business")
> Email = "business@contoso.com";
> else if (category == "Science")
> Email = "science@contoso.com";
> else if (category == "Technology"
> Email = "tech@contoso.com";
>
> How do you perform an ELSE ?
>
> Thanks in advance !
>
> Julien C.
>
>
|
|
|
|
|