How to set drools.dateformat to business-central.war comes with BRMS/BPMS 6.0
Environment
- Red Hat JBoss BRMS
- Red Hat JBoss BPM Suite
- 6.0.2
Issue
- How to set
drools.dateformatto business-central.war comes with BRMS/BPMS 6.0
Resolution
1: Start JBoss B*MS
2: Clone system repository
git clone ssh://admin@localhost:8001/system
3: Modify system/settings.global, and remove entry for drools.dataformat
<entry>
<string>drools.dateformat</string>
<item>
<name>drools.dateformat</name>
<value class="string">dd-MMM-yyyy</value>
</item>
</entry>
4: After that, commit the fix
git add
git commit -m "remove drools.dateformat"
5: Push the fix
git push
6: stop JBoss B*MS
7: Start B*MS with sytem property, drools.dateformat
./standalone.sh -Ddrools.dateformat=yyyy-MMM-dd
You can find that drools.dateformat is correctly set by checking log
10:37:29,153 INFO [org.guvnor.common.services.backend.config.ApplicationPreferencesLoader] (MSC service thread 1-7) Setting preference 'drools.dateformat' to 'yyyy-MMM-dd'
Please backup .niogit before following above instructions.
It's ok not to remove the global setting for drools.dateformat at step 3. You can modify entry tag as follows:
<entry>
<string>drools.dateformat</string>
<item>
<name>drools.dateformat</name>
<value class="string">yyyy-MMM-dd</value>
</item>
</entry>
This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
