Sunday, June 16, 2013

IPA Time Saving Hacks Part 1

Clocks
Clocks by renbostelaar
Wanna save some time when developing a Process with Interaction Process Automation? Me too, so I'll just jump right into five quick little hacks for IPA that I've come up with over time.

"Disable" Steps in a Task or State

Have something you're working on but want to continue testing your process? Just put it after the End Task step in your Task or after an End Process in a State. IPA will put a nice gray shade over the step(s) with the word "Unreachable" on them. If Disable is something you think should be an option or attribute for steps, feel free to up-vote and comment on idea D1064 IPA deactivate/activate Step(s) in PAD.

Get Your Database Complex Types to Auto-Gen Ahead of Use

The Database Tools because available as of 4.0 SU2 and they rock! What took a minimum of 5 steps in a Handler, and many more if you're doing anything of use, to select a row now only takes 1 step in IPA. Yep, it's that simple. One of the many useful features of the IPA database tools is they will inspect your table and auto-magically create a complex collection type for database results. Usually you'll get to this point when you need to use your first Select Row(s) step for the table.

But what if you already have the database designed before your process and need the var before your first query? Just like we talked about in the previous hack, Drop a Select Row(s) step after an End Task step and assign the results to a local collection instance. Even though the step is Unreachable, the auto-gen executes.

When or why might I do this? Sometimes the Tables I'm going to use in a process are pre-existing. When this happens, most likely I'm doing stuff at the Work Item level, implementing a Page and need a "display instance" of the variable before I'm using Select Row(s) to fetch data from the database. You don't get the Complex Type defined for Database Results until you do a Select Row(s), so just drop one in at an innocuous spot and voila.

You can go back to the Task where you stashed the Select Row step later and delete it once you've reached the point in your process when you've done your first real Select Row(s).

Set a "Poor Man's Breakpoint"

Yeah we all know debug in IPA isn't, so first please take a minute to go up-vote idea D858 Debug in PAD, and then read on. To set a "poor man's breakpoint," simply perform an operation on a variable that is NOT_SET and you'll stop your process RightDamnNow. Guaranteed. Have a process level string var called Breakpoint and make the initial value NOT_SET. Anywhere in your process where you want it to stop, do an Update Variables with something like If(Breakpoint == "boom", "boom", "huh, guess it's gonna continue 'cos it's set."). Since Breakpoint is NOT_SET, this one's gonna go boom with an error performing an operation on a variable that is NOT_SET. Of course the Waiting Process is a gentler approach if you want to be able to continue instead of a hard stop.

"Bookmark" Your Process to Easily Pick Up Where You Left Off

When you reach a stopping point, drop in an Update Variables step. Use the Notes tab to remind yourself what's next on the to do list. Don't make any assignments in the Update Variables, which will result in a Yellow "Caution" flag for this step. This is harmless because the Process will still run in Test mode and can still be published. Nice thing is, next time you're back in ICSM you can follow the process tree down to the caution step to the exact spot where you left off. The bigger your process, the easier this will make finding where to continue. Oh, and of course don't forget to delete that step or cut out your Notes and start using the Update Variables to do some work.


Please feel free to share any timesavers you've discovered while working with IPA!

And Happy Processing!

Wednesday, June 5, 2013

Debugging Made Easier with a Waiting Process

UPDATED June 16, 2013 12:15 PM EST:

The "Waiting Process" trick was taking advantage of unintended functionality. Processes will no longer be able to launch with "Wait to Complete" in a Work Item as of SU5, but of course "Wait to Complete" will still be available as an option at the Task level.


Hey There Process-meisters! This is no earth-shattering discovery, and hopefully some of you already figured it out. As I had my debug-on this evening (yes, it's all pretty much DIY debug with IPA today) I needed a way to look at some variables mid-process while in a Work Item.

Ye Olde Elder Box Bug
Image Credit: Orkin.com
Unfortunately we don't have a Breakpoint tool (yet, fingers crossed) in Interaction Process Automation and the Wait tool doesn't exist at the Work Item level, but guess what? Run Process does, so....

1. Make a New Process.
2. Initial State - call a Task, which I naturally called WAITING.
3. Within that Task, set a Wait for 1 minute.

I wouldn't recommend going higher than a minute on the Wait, just in case you forget to remove one before putting your process into production.

Call this process from your main process for debugging purposes with the Wait To Complete radio button selected. Don't forget to take them out. I tend to set the Notes of my steps with something like ZZZ or DEBUG that's easy to find using the IPA search capabilities.

Since I wanted to look at some Work Item variables, from Process Automation Monitor, I made new Process-level variables that start with TEMP. I do this so I remember to delete them before production to use less resources with the process.

The nice thing is, after you've had a chance to inspect your process-level variables in PAM, you can Cancel the Waiting process and your other process will continue on it's merry way.

It ain't rocket science, and you might argue it's barely computer science, but hey, it works for me, at least until SU5.

Got any debugging or troubleshooting tips and tricks? Please share in the comments. PLEASE! Pretty please...?

As always,

Happy Processing!

Sunday, April 28, 2013

IPA Tech Discussion Added Interactions 2013 Agenda

Hi Gang! Quick note to let everyone know we've added an IPA session to Interactions 2013 that won't make the printed agenda. Much thanks and props to the rockstars on the Conference Team!

Thursday May 16th: IPA Technical Roundtable
Hosts: Geoff Calhoun and Rick McGlinchey
Room: 200
9:00 until 10:15-ish (to give folks time to get to the must see"Where we are going" session with the Don.

Target Audience: Ideally those who have worked with Interaction Processor Automation in some way, shape or fashion. We had a little internal session back in December and everyone involved found the it beneficial to get together to share some ideas and lessons learned.

The numbers in the IPA community are relatively small but growing, and we're all still very much in the learning phase as we get experience and develop design principles and best practices around improving the experience with the product.

All the better if you have had your hands in Process Automation Designer, or have at least taken one of the IPA courses, but those certainly aren't required. We'll try to grab some of the ININ folks who work with IPA as well.

Goal is to let folks as questions and have everyone share lessons learned about IPA. Very informal and you're sure to learn something!

I'll also be co-presenting at these two sessions. There's lots more to learn with IPA, to be found in the agenda for Interactions 2013.

Wednesday May 15th: Looking to automate business processes? Start here!
Geoff Calhoun and Rick McGlinchey
1:45 to 2:30 in White River Ballroom I‐J

Automating business processes is a daunting task and can lead to many questions. Which process should we automate first? How to map out a new process? Is there anyone who can help us? Get the answer to these questions and more as we explore process automation best practices to help your business gain productivity and cut costs.

Wednesday May 15th: Interaction Process Automation (IPA) Technical Best Practices
Rick McGlinchey & Jason Loucks, Senior Business Process Template Developer, Interactive Intelligence
4:45 to 5:30 in Grand Ballroom 7

IPA is an amazingly flexible tool for process automation. Come learn design best practices from seasoned IPA process developers. They will walk though how to use IPA’s features and explain concepts such as using database driven design to help you get the most from your IPA processes. This will be an interactive session; we want to hear from other process developers. What tricks have you used and what obstacles are you trying to overcome?

Jason and I did this session at Interactions 2012, which was standing room only. Jason has been working with the product as partner, customer and now ININ since the 90's and has mad technical skillz. Make sure to get there early to get a seat!

Some conference suggestions:

  1. Download the conference app - it's pretty slick and easy to pick the sessions you want to create your own schedule. If you would like to get in touch, it has a message application built in for conference attendees.
  2. Bring an extra layer of clothing, like a sweater or lightweight jacket. Temps vary in the hotel and sessions.
  3. Be prepared to learn lots and HAVE FUN!!!

See you soon at Interactions 2013! Until then...

Happy Processing!

Wednesday, April 17, 2013

IPA MarketPlace Download to Deployment Part 2

Hello again folks! It's been a while. I've been busy working on some more IPA projects plus an internal deployment of Interaction Analyzer at ININ that does a hand-off to IPA, but more on that later.

Today we're going to check out Ross Blaettner's article continuation of his previous piece, IPA MarketPlace Download to Deployment.

This topic is targeted at IPA Template and other developers who wish to sell their ININ wares on the ININ MarketPlace. We're assuming you're already on board, but if not, get signed up for the ININ MarketPlace with Dionne Flickinger and tell her RickM sent you.

Also, don't forget to get yourself registered for ININ's Interactions 2013 if you haven't already. The theme this year is "Deliver the Experience" and I'll be co-presenting on a couple of sessions on IPA with rockstars like Geoff Calhoun and, of course, Jason Loucks (as we did at Interactions last year). More on that before the conference. 

For now, take it away Ross and thanks again for your contributions!

MarketPlace Download to Deployment, Part Two:

Everything, and the kitchen sink!
by Ross Blaettner


There’s something special about the allure and mystique of a secret recipe. Surely, the ingredients exist—we might recognize them in their individual parts. However, it’s their varying combinations, preparations, and inspired creativity that make great cuisine.

The chef’s challenge is to concoct a palatable solution with wide-ranging appeal and consistent reproduction.

(Hopefully, you are making the connection with a pleasant installation experience, using varied operating environments, while achieving repeatable, quality deployments. If not, well, you are now.)

Here is a starting list of ingredients in my metaphorical kitchen. Feel free to add, or substitute with, your own. By the way, these components are freely available and graciously linked for the so inclined.
Start with Auto-It. The macro language, with its basic-like syntax is refreshing, surprisingly powerful, and abstracts mundane OS details. It also interacts nicely with the Windows UI and GUI-based applications. At their primal core, the scripting commands originate from the IT profession, for purposes of automated software deployments, configuration, and the like. Use Auto-It for fine-grained control of operations, settings, and integration. You could quite practically build a basic installer with Auto-It alone, but more appropriate and overall effective tools follow.

Remember, pack what you will need. Regardless of whether or not you would want to, you cannot feasibly oversee every deployment of your solution. In that case, you need to package your intelligence and necessary resources into an automated installer. Advanced Installer provides a free offering that will copy, pack, unpack and install files, and generally get the table set for the next course.

If you need to tweak the install tables, you certainly can—with InstaEdit for MSI-based packages. The generated install packages contain, among other resources, tables of relational instructions that can dramatically alter the experience and “flavor.” Sometimes, some extra spice is good, and sometimes it’s not. Consult the guide. You’ll just have to test and decide.

If neither here nor there, check with delta, i.e., WinMerge. You can certainly test the generated installer by comparing conditions before it starts and after it finishes. Examine the difference to see what happens. Are you getting what you ordered?

Interactive Update. With all due compliments to Interactive Intelligence, this is the toaster oven of speedy rollouts. If your solution requires delivery to multiple destinations within an organization, then Interactive Update is one simple and intuitive option. Network administrators can associate MSI’s or MSP’s, a la Advanced Installer, with Interactive Update, for automated, scheduled deployment. Presto.

Come back again soon, to the Interaction Center MarketPlace. Socialize with the community. Exchange ideas. Monitor ratings and reviews. How is your solution performing? What general guidance can you provide to your install base to invigorate their interest? Is it time to update your recipe, to keep things new and fresh?

When you’re ready to improve or innovate, create an MSP revision from Advanced Installer. Zip and send it to MarketPlace@inin.com. Make sure that it’s ready to serve for the next appetite.

What are your favorite installer tools and utilities?



Saturday, February 23, 2013

Interview with ININ Product Manager Geoff Calhoun

I had a chance to sit down recently for a little Q&A with ININ's Geoff Calhoun. Geoff is the Product Manager for IPA and Interaction Content Manager (ICM) at Interactive Intelligence.

Now keep in mind I'm no journalist and I'm biased as hell when it comes to ININ and IPA in particular. Some of the questions are blatant setups and I won't apologize for that. Enjoy.

Q: So Geoff, How did you first come to know about ININ?  
Calhoun: About six years ago at the previous company where I worked we were looking to replace our PBX system. We brought in CIC just for dialer at first and then when we got a demo. After that we decided to deploy CIC 2.4 to the whole enterprise. J

Q: What drew you to the company and the product manager position?  
Calhoun: I love the innovative atmosphere and all of the nice people at Interactive. I have thought about working for Interactive for years now. Having been in application development and support for a long time, I wanted to get out in front of the development processes, to get to guide where a product went in the Market.

Q: Anything about your background you'd like to share?  
Calhoun: I have been in IT for almost 15 years. I actually started at my last job as data entry clerk and after 14 years was the director of development and reporting. Went through all areas of IT from desktop and server support, to infrastructure installation and maintenance, and then on to database and application development.

Q: What's your vision for Interaction Process Automation longer term: go viral within the existing customer base, expand into IPA-only customers to compete with the variety of solutions, or something else?  
Calhoun: All of the above and more. My overall vision is to create a BPA product that everyone wants in their companies. IPA needs to continue to evolve its ability to bridge the gap between the ability to have complex integrations and being simple enough for a Business Analyst to develop process flows.  As to the specifics, well I am still working on that part.

Q: It's great to have someone helping drive the product who has used it as a customer. Is it a fair statement that every ININ customer could benefit from IPA in some way?
Calhoun: Absolutely. EVERY company has processes that can be automated.  From simple time sheet processes all the way up to something like a complex order management process.

Q: Where should customers start with IPA for their best chances at success? 
Calhoun: Start with a small process. Not because IPA is a complex product or hard to use, but because process optimization is very complicated and most companies don’t have subject matter experts in that area.  Don’t be afraid to bring a consultant if needed.  Be sure to do an as-is process map along with your to-be process map.  You will learn an enormous amount of useful information and probably be very surprised with what you find.

Q: Any new IPA features you can share that are particularly exciting to you?  
Calhoun: We are working on a web client for IPA that will be fantastic for users who don’t need our full features .Net client.  Also, we are working diligently on getting IPA into our cloud environment so that those customers can take advantage of all that IPA has to offer.

Q: Any plans to engage customers/developers of IPA outside of the Interactions Conferences?  
Calhoun: Absolutely.  I will be reaching out to many of our customers to understand how they are using IPA and how it can be improved.  Also, I will be hosting events for developers to help them share their best practices and learnings related to IPA.

Thanks to Geoff Calhoun of ININ for being a good sport and spilling the beans on IPA! He and I will be co-presenting an IPA Best Practices session called "Looking to automate business processes? Start here!" at ININ's upcoming Interactions 2013 in May in good old Indianapolis, IN, USA!

Until then...

Happy Processing!

Monday, January 28, 2013

IPA MarketPlace Download to Deployment Part 1

Hi there fellow IPA-lovers and Happy New Year! Well I guess that holiday greeting is a little belated, considering we have almost reached the end of January, but that's life in the Big City (of Indianapolis)...

Here's an article written by ININ's own Ross Blaettner, a guest blogger here at ProcessMyBiz.com with his second contribution (of a two parter, no less). You may recall an earlier post from Ross on gamification.

Ross works at ININ as an IPA Template Developer the Strategic Initiatives team, a fine group I've had the pleasure of working with on a couple of customer engagements for IPA. He and the gang are gearing up for launching the MarketPlace at ININ, which is very exciting stuff for IPA!

This time around Ross is helping us get ready to share IPA Templates and other stuff on the ININ MarketPlace.

Thanks again for your contributions Ross. Everyone else, enjoy!

MarketPlace Download to Deployment, Part One:

The Case for Next, Next, and FINISH!
by Ross Blaettner

When you buy and try new tech gear, do you ‘plug and play,’ or ‘plug and pray?’

Apparently, one letter—essentially, one factor—can re-express your entire deployment experience.
Perhaps this vital character forms the difference between seconds and hours, satisfaction or frustration.

(And there’s more to this question than comparing optimists versus pessimists.)

Enter the determinists. Fortunately, there are factors within development control. “Yes, you can get a fortune cookie and write the message, too.”

The implied corollary: “Yes, you can write software and control the deployment experience, too.” So, let’s now focus on the gift of giving a good, consistent deployment, sending a consistent, predetermined and favorable message.

When deploying your solution, think about the host environment and conditions. What’s the best case scenario? What’s the worst case scenario? Importantly, what factors exist between those two outcomes?

Sometimes better documentation and step-by-step verification can isolate certain problems before they become ‘lost’ as elusive and confounding effects. Unfortunately, however, in practice, the quantity of documentation can be inversely proportional to likelihood of its adherence.

Then, documentation introduces levels of interference, due to differences in language, interpretation, format, or human error. Honestly, technical writing is a specialty of its own; the reality: there’s more involved than “technical” and “writing.” Of course, even if the documentation is perfect, the reader may be distracted, thereby skipping steps 5 and 13. If you provide support, how do you know that all steps completed successfully? When troubleshooting, it would be nice to give people the benefit of a doubt, but real-world experiences suggest otherwise.

Well, fortunately, in many cases, you can communicate directly, quite frankly, in binary, with the host machine. Here’s the key proposition: let’s wrap all of the prerequisites, preconditions, and setup activities into a solution-centric installer for a fast, efficient, and consistent experience, complete with logging and unbiased step-by-step assurances. Instead of requiring a captive IT professional to follow steps, give him or her freedom to take a short break while your installer works its magic. (Chances are, you will both fare better as a result of this latter approach.)

If you rely on a certain subsystem, check for its running state or even perform an interoperability check during the install. Can files’ existence, versions, or registry keys validate expected conditions? What are your system requirements? How can you query the operating system for its proof of compliance? How can installation routines prove that they have appropriate levels of system permissions?

As the installer continues, check every step for success. Communicate exceptional conditions through the UI, with an emphasis on strategies for resolution. Remember, the presence or versioning of just one file could make the difference between play or pray!

In a follow-up article, I will present a few free, easy and amazing tools for crafting your very own installers. Now, get your MarketPlace solutions’ step-by-step instructions and pseudocode ready for “Next, Next, and FINISH” convenience and automation!

In the words of Rick McGlinchey, “Happy processing!”

Thursday, December 20, 2012

IPA Best Practices from a Recent Internal Session at ININ

I had the good fortune recently to present a topic during an internal session at ININ on Interaction Process Automation. These aren't the best formatted notes you'll ever see, but if you've built a process in IPA, or at least seen the Process Automation Designer, I figured I'd just get'em out there as food for thought.

Suffice to say this little event was the largest gathering to date of folks who have IPA implementation experience. There's already a few who have more than a year or two experience, which ain't bad considering the product's initial release was in 2009. Some great ideas and best practices were shared.

My topic was the Work Items Sprint, and in an upcoming post, I'll expand on that concept into the design and implementation phase, tying everything together using complex data types that are auto-generated by IPA if you use the database tools (40SU2 and later). I've done this with the latest process I'm developing and find it extremely effective and efficient.

Configuration and Implementation

Consider storing IC-server specific information in an external configuration location, such as an IC Server Parameter, and use variables in your IPA process to reference the data. A perfect example is a workgroup name. If you hardcode your workgroup name into your process and import that process into another IC server, if that workgroup hasn't already been created in IA on that server, your process will go into error immediately, plus you'll have to change every occurrence of the workgroup name. Structured Parameters in IA can be exported and imported, making this process easy and efficient, plus you can later change the workgroup name in IA and not have to touch your process. This is especially important for people considering building Templates for the MarketPlace.

Work Items Sprint

After As-Is, To-Be and the Work Items mock ups have been signed off, go build the work items immediately and then demo them for the customer. Sprint is an agile concept and is described in more detail in the Benefits of a Work Items Sprint with IPA post. No logic is needed and just use process-level variables (preface them with something like TEMP so you can clean up and push them down into work items later). Sprint is an agile concept and is described in more detail in the Benefits of a Work Items Sprint with IPA post.

Troubleshooting

Consider adding an "i" icon button for information to each page of your work items. Keep track of a process-level string that is constantly updating what has happened in the process. Think of this as Process History, the IPA version of Call Details when you right-click on a call in the Interaction Client. This way you don't have to jump into PAM to look at stuff or start with logs. If you're keeping good track of Process History, you can simply click on the information button in your process and see how you got there. Use a var to keep track of where you came from when you press the "i" button and Destination conditions for each page and the "i" page so you can reuse the page on each work item.

Error handling for Web Services and to a lesser extent for Handlers

Instead of simply letting the process crap out and have to jump to PAM to start troubleshooting, handle them in the process flow. By default for the Call Web Services Operation and Run Handler tools, the Errors and Timeouts tab will have Stop the process (refer to Process Monitor) selected. Change these to Handle the timeout/error in the process flow. This presupposes you will also have return values in your handlers and web services that indicate whether or not the operation succeeded, because you'll have to add process logic to evaluate those return codes. If you get an error, do a Parallel Split - keep the work item with the user encountering the error and launch a separate error handling process. Once you've determined if you can restart the process or retry the process, then the user can continue.

Many thanks to Geoff Calhoun, the new product manager for IPA and content management at ININ. We'll see about getting a few words from him at some point in the future as well.

In the meantime...

Happy Holidays and Happy Processing!