Sitecore 7: Workflow with more than a Comment

We recently got a requirement where the client wanted to store more than just a comment when a workflow item is approved or denied. So we built a proof of concept.

Truthfully, if the client were to implement this, I would want to use item buckets to store the values (based on a template) and store the item’s GUID in place of the comments (GUID:{81FEEE94-5A2F-4629-A791-4F25E69C75B1}). This would need customization of the whole Work Box. We will reassess this when the client gives the go ahead.

As per the proof of concept, I ended up just storing the delimited string in the comments. It does not look that bad since it only has 3 fields but if we were to store multiple fields of different data types it would get messy.

A standard workflow item approval/rejection will prompt you with the box similar to what is shown below:

I modified it to the one shown below:

The fields you see in the dialog are for DEMO purposes only. The actual fields used in the proof of concept were from the client’s standard workflow process and had to meet their guidelines.

Step 1 – Override

To implement this we need to override the functionality in Workbox.xml. To do this, create the following folders under WebsitesitecoreshellOverride folder:

Related

This is a personal blog. Any views or opinions represented in this blog are my own and do not represent those of people, institutions or organizations that the I may or may not be associated with in professional or personal capacity including past, current and future employers, unless explicitly stated.