Right now, I have a test model that looks like
Where <CRM:CustomerID> is hook back into a C# Adapter that does a lookup. This works, but seems a tad convoluted.
<Model> <Pattern>(CUSTOMER|CLIENT) @CUSTOMERID</Pattern> <Response> <Think> <Bot Set="CustomerName"> <CRM:CustomerID> <Match Index="2" /> </CRM:CustomerID> </Bot> </Think> <If Bot="CustomerName" Value="Unknown">I can't find that Customer</If> <Else>Customer set to <Bot Get="CustomerName" /><Think><Bot Set="CustomerID"><Match Index="2" /></Bot></Think></Else> </Response> </Model>
Is there a way to extend the Variable space (User, Bot, Custom, CRM, etc) to call back to C#?
Or, to put it more generically, is there a better way to attack this?