Abhiram Diddigi home

Draft Service Catalog- Part 1

Incident, Problem and Change all three of these have ‘Draft’ as a state.But why don’t we have draft for Service Catalog? When I started I thought I should be modifying a lot of OOB Macros.But I am happy that I completed this with modifying minimal amount of OOB components(keeping in mind the Upgrades).

Technically I would first explain what we would be doing, and in the coming posts I would present more code and explanation.

A button called Draft would be created next to “OrderNow” which when clicked will add the current form in as-is state as an  item to a module called “My Drafts”.

The Draft Module is a replica of  cart page ( the 2nd page in a two step checkout) with a litte difference. A snap shot of the Draft page is as follows

Once in the Draft’s Stage, the requester can either delete the item, or edit it( to fill the rest of variables on the form) and click on either the “Order Now” or “Draft”( Note: Notice there is no Update Cart, Update Cart appears when you click “edit” on the cart page.). Order Now will directly Submit the form, and Draft will again redirect him to the drafts page(the above page).

The Submit buttons pops up if all the mandatory fields are filled on the form, and the “draft” button is clicked, so that he could directly submit the form from this page.

I will also, in this post explain about the customizations on a high level :

  1. Create a new Cart and link it to the Item you want to enable Draft functionality

2.Create a  new UI Page(replica of servicecatalog_cart_template, with minor tweaks) which will act as our new WishList page

  1. Modify the Script Include ServiceCatalog Processor

  2. Create a new Script Include to handle the Draft part!

There are some more minor things to be done, which i will be explaining in the future posts.Please let me know if you have any suggestions/changes to improve process..