REQUEST A DEMO

Blog

More on Customizing the Clarify Attachment Form (form 1006)

December 4, 2012 Last year I had to do some customizing of the Clarify attachment form (form 1006) for a customer. This is one of those old-school forms that doesn’t always behave very well with ClearBasic. I shared some of my findings and solutions on customizing this form.   I had a new request come up this week. How do I enable a user to add an attachment on a case that they don’t own? Plan A   The first thought was simply to enable the buttons on the form.   Sub Form_Load() Me.DoDefault FILE_BTN.Enabled = TRUE ADD_BTN.Enabled = TRUE End Sub   The buttons were now enabled, but clicking the Add button raised an error, " '{CurrentOwnerLoginName} is now the owner, therefore the 'Save' operation cannot be completed."     Bummer. Plan B   There’s a bug that exists in most versions…

Mobile Agent–Adding Custom History Entries

November 7, 2012 One of the best things about Dovetail’s Mobile Agent is the ease of customization. Every customer has different business workflows, and that will lead to customization of their applications.   Cases are usually the primary activity in Mobile Agent, and there can be some custom activity that needs to be shown in the Case History. Getting those custom (or customized) activity entry records to show up in the history is a easy customization to do.   There are two things to do to get custom activity to be displayed. The first is to create the custom templates for the activity, and the second is to register the new template with Mobile Agent.   All of the activity templates derive from the ActEntryTemplatePolicyExpression class, so the new custom template needs to do the same. Here is an example of a custom…

Troubleshooting Bad Time Bombs

November 1, 2012 There are times when Rulemanager will report a bad time_bomb in the system. Although it’s easy to just ignore when this happens, it’s better to diagnose the issue to understand (and resolve) the root cause.   This post will walk through an approach to troubleshooting bad time bombs. Time Bombs   Recall that a time_bomb record is created when events happen in the system, such as a case being created or closed, workflow actions (dispatch, accept, assign, yank), etc.  Rulemanager is responsible for picking up these time bombs, and comparing them against the defined business rules in the system, to see if something should happen, such as a notification. Time Bombs Gone Bad   On occasion, Rulemanager will report a bad time_bomb. This will typically show up in the Rulemanager log file. It may also be reported via email, if your Rulemanager…

SchemaEditor and OneToOne relations : clearing up a bit of ambiguity

October 22, 2012 Using Dovetail SchemaEditor to add a new relation to your schema is super easy.   For example, here’s my schema script for adding a new one-to-one relation between the modem table and the user table:   What’s nice is that I only have to define the relation once in the schema file, as opposed to other tools (ddcomp, DD Editor, SchemaManager) where I would have to add the relation to the file in two places (as a relation under both the modem table and as a relation under the user table).   But, there is a bit of ambiguity here – which side is the primary side (OTOP) and which side is the foreign side (OTOF)? Answer   The foreign side will be on the table/name, and the primary side will be inverseTable/inverseRelationName.   So in the example above, the modem2user is the OTOF, and…

Getting a ASP.Net request URL into a log4net context

October 5, 2012 We make a lot of web applications and we use a lot of logging to diagnose problems on production systems. Often I find myself wishing I knew what URL was being rendered for a given log. In this post I’ll take you through a good solution for adding the current request URL to the log4net context. Better yet we will do this a configurable way so that you can turn this on and off when needed. One perfectly good way to do this would be to add a debug log to the start of each web request.  What I don’t like about this is that it can be tricky to scan logs with simultaneous requests and thus URLs being handled and keep track of which thread is being used to render what URL. Log4net has a context mechanism where you…

Dovetail Bootstrap – Now With Service

September 13, 2012 A customer recently asked me how to best create a Windows service using our Dovetail SDK. To me this sounds like a task for Dovetail Bootstrap. We have already provided a nice example of using Bootstrap of to build a web application. We did not, until now, have an example of using Bootstrap and Dovetail SDK to create a Windows service. Bootstrap makes it easy to pull data out of your Clarify database and Topshelf makes it easy to roll your own Windows services . Let’s put them both together and build an example Windows service that monitors case creation in your Clarify database.   If you'd like to skip right to the example you can find it in our Dovetail Bootstrap source repository.     Topshelf   At Dovetail we are big fans of Topshelf and its ability to easily create Windows services from plain .Net…

Custom Events in Clarify/Dovetail: Change Priority

I’ve talked in the past about how to create custom events in Clarify/Dovetail, and how to fire business rules based on these events.   In short, code needs to be written that creates a custom activity log and time bomb.   A recent webinar covered details on how to do this: http://www.slideshare.net/gsherman/advanced-business-rules-part2 (starting on slide #18)   For additional info, take a look at the "User-defined Business Rule Events.doc" available on the Rulemanager wiki: http://rulemanager.wikispaces.com/How-To   If you also want to create a custom act_entry record, you'll probably want a custom activity code. Here's an example: https://gist.github.com/1042796   Change Priority   One of our customers recently wanted to do something similar, but for Change Priority of a case. They wanted to be able to fire a business rule when the priority of a case changes. They needed this to work…

What’s New in Dovetail Admin 3.0: Part 3 : User-Defined List Editor

September 12, 2012 Dovetail Admin 3.0 was recently released, so I figured it was a good time to highlight a few of the things that are new in this release. Part 1: Employee templates Part 2: Reports Part 3: User-defined List Editor enhancements We’ve been working with a few customers who have some serious big-ass user-defined lists (over 60,000 elements!) . Performing certain operations on these lists was taking a while, such as cloning a list, or deleting a large level/tree. We’ve improved the performance of these functions by making Dovetail Admin be a hybrid Classic ASP / ASP.NET application. We can now take advantage of native .NET code, especially where we need higher performance than Classic ASP can provide. Pretty slick. We’ve also made a couple of small but useful enhancements to the user-defined list editor. You can now reorder a list level alphabetically…

What’s New in Dovetail Admin 3.0: Part 2 : Reports

September 11, 2012 Dovetail Admin 3.0 was recently released, so I figured it was a good time to highlight a few of the things that are new in this release. Part 1: Employee templates Part 2: Reports. We’ve added a couple of new reports to Dovetail Admin.  Lets take a closer look at them. Business Rule Usage Report This tells us what business rules are firing along with how often. Perhaps even more importantly, it allows you to see the rules that are not being fired. Perhaps those rules could be removed, or made inactive, therefore simplifying business rule administration. Or maybe they should be firing, and need further investigation. I ran it against our production system, and it was pretty enlightening. Here’s an example (run against my development database, so the rule firing numbers are pretty small): Dovetail Agent Login Report This…