|
Home > Archive > BizTalk Server General > March 2005 > Business Rules Composer - modifying strings
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 Rules Composer - modifying strings
|
|
| Ian Castledine 2005-03-24, 7:51 am |
| I'm trying to use BT2004 to manage user account creation on Active Directory.
I need to manipulate two different string values (from XML) to form the
username. This will take the first letter from one string (the person's
first-name), and then concatenated to the second string (their surname) .
This is in addition to other rules which I've got in the Rules Composer.
Is it possible to manipulate strings in the Rules Composer like this? My
alternative is to use a mapping in the orchestration, however I want to use
best practice if possible - ideally maintaining all the business rules in the
BRC.
Thanks for your help
Ian Castledine
| |
| Matt Milner 2005-03-25, 2:47 am |
| Yes, it is possible to modify strings, but you might need some helper
functions to get done what you need. You can create generic functions that
do the trimming etc. for you. If you do try to use the built in string
functions, remember that even for static methods you'll need to assert a
string object into the rule engine for those methods to be called.
Matt
"Ian Castledine" <IanCastledine@discussions.microsoft.com> wrote in message
news:C2C8566F-EE81-4AB4-A008-A417A96B1E87@microsoft.com...
> I'm trying to use BT2004 to manage user account creation on Active
> Directory.
> I need to manipulate two different string values (from XML) to form the
> username. This will take the first letter from one string (the person's
> first-name), and then concatenated to the second string (their surname) .
> This is in addition to other rules which I've got in the Rules Composer.
>
> Is it possible to manipulate strings in the Rules Composer like this? My
> alternative is to use a mapping in the orchestration, however I want to
> use
> best practice if possible - ideally maintaining all the business rules in
> the
> BRC.
>
> Thanks for your help
>
> Ian Castledine
>
| |
| dalegaspi 2005-03-28, 7:55 am |
| hello Ian
you can probably define a new vocabulary which an xpath concat(/field1,
/field2, ...). you need to define a vocabulary so you can edit the
xpath...i'm about 90% sure it should work...i have defined new
vocabulary but i haven't tried using the xsl functions in the xpath's
(like concat())...
thanks.
Dexter Legaspi
|
|
|
|
|