best grammar app

Savvion BPM Portal Date Customization

Submitted by Abhishek on Sun, 2012-02-26 00:22
sxc.hu

Often one of the things you would need to do with your new Savvion Installations is setting the default date format for your BPM Portal. This article is aimed at helping you out in setting it up.

 

Savvion uses the SimpleDateFormat class of Java whose Date format can be easily set. You will need to set it up in one of the configuration files on your Portal. Depending on your Application Server look for the place where you have your sbm.war file. Typically for Pramati this will be in

Webapps deploy folder. For my SBM7.6 SP1 Installation this file is located in

 

C:\SBM76SP1\webapps\deploy\sbm\WEB-INF\classes\properties

 

Inside the WEB-INF/classes/properties folder look for a file called bpmportal.properties. In case you are using internationalization features this could be one of your custom files like bpmportal_ja.properties.

 

Once the file is open in a text editor, looks for a string called DateFormat. You can set the format of the same easily. The default format is

 

DateFormat=MMM dd, yyyy hh:mm a

 

which will give you a date like Dec 23, 2011 10.12 AM

 

You can change the same to your own required format. Some sample tokens (Case sensitive) you can put in are

 

  • “y” For year

  • “M” for Month, where MMM will give like Jan, Mar etc

  • “d” for day in month

  • “h” for hour in am/pm. This will give you 1-12

  • “H” for hour in day. This will give you 0-23

  • “m” minute in hour

  • “s” second in minute

  • “S” if you want the milliseconds as well

  • “a” for AM/PM

  • “E” for day in week

  • “z” for timezone

 

For Example a US Format for date could be “MM/dd/yyyy” which will give you a date like “12/23/2011”

 

After saving the file, you might need to restart your server for changes to get reflected.

 

Hope this is helpful.
 


Abhishek Mishra
Good experience in working with BPM technologies like Savvion, JBPM. Founder and Chief Editor of BPMGeek.com. Founder of Savvion Business Manager Mobility Framework Savmobify| View my BPMGeek Profile
|
best grammar app

About BPMGeek

BPMGeek is an initiative to collaborate and communicate with the growing Business process management community out there. The goal is to help developers connect with experts, ask questions, post their learning and get understanding of BPM Concepts. Often tool specific knowledge of niche areas end up developers perplexed and confused - especially when there are very less number of resources available. We will be coming up several several new features. Have a look at our Roadmap here

BPMGeek is an independent entity not associated with any Product. All BPM product professionals are invited to contribute. The Logos and Names used across the site belong to their respective owners. The viewpoints mentioned by Individual contributors are their own. BPMgeek cannot be held liable for any issues arising out of it.


BPMgeek is promoting the Nounshoun English Grammar App - developed by Constellation Software.