Issue Details (XML | Word | Printable)

Key: SHALE-263
Type: New Feature New Feature
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Rahul Akolkar
Reporter: Rahul Akolkar
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Shale

Explore use of Commons SCXML for dialogs

Created: 24/Aug/06 10:32 PM   Updated: 23/Jan/07 04:40 PM
Return to search
Component/s: Dialog
Affects Version/s: 1.0.4-SNAPSHOT
Fix Version/s: 1.0.4

File Attachments:
  Size
XML File Licensed for inclusion in ASF works dialogconfig2scxml.xml 2006-08-30 05:13 PM Rahul Akolkar 7 kB
File Licensed for inclusion in ASF works SHALE-263-01.diff 2006-08-30 05:21 PM Rahul Akolkar 25 kB


 Description  « Hide
Based on dev list discussions, it will be worthwhile to explore the possibility of using Commons SCXML for the internals of Shale dialogs. Additionally, supporting the use of SCXML documents to describe Shale dialogs also has numerous advantages. A starting point for this work is available here:

 http://jakarta.apache.org/commons/scxml/usecases/scxml-in-shale-dialogs.html

Now that we've had a Commons SCXML release and discussions about Shale dialogs have begun afresh, its a good time to add this request as a JIRA ticket.



 All   Comments   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Repository Revision Date User Message
ASF #439203 Fri Sep 01 06:21:09 UTC 2006 craigmcc Commit the proposed Commons SCXML based implementation of the sandbox
dialog2 APIs (see SHALE-263) as is, before doing any refactoring or
renaming.
Files Changed
ADD /shale/sandbox/shale-dialog2-scxml/src/main/java/org/apache/shale/dialog2/scxml/config/ConfigurationParser.java
MODIFY /shale/sandbox/shale-dialog2-scxml/src/main/java/org/apache/shale/dialog2/scxml/ScxmlContext.java
ADD /shale/sandbox/shale-dialog2-scxml/src/main/java/org/apache/shale/dialog2/scxml/Globals.java
ADD /shale/sandbox/shale-dialog2-scxml/src/main/java/org/apache/shale/dialog2/scxml/config
MODIFY /shale/sandbox/shale-dialog2-scxml/src/main/java/org/apache/shale/dialog2/scxml/ScxmlContexts.java
ADD /shale/sandbox/shale-dialog2-scxml/src/main/java/org/apache/shale/dialog2/scxml/ShaleDialogELEvaluator.java

Repository Revision Date User Message
ASF #442739 Tue Sep 12 22:29:12 UTC 2006 rahul Replace the legacy dialog-config.xml with the SCXML dialog-config.xml and individual dialog descriptors.

The files were created by a slightly modified version of the stylesheet attached to SHALE-263, and then hand-edited for better indentation and order (to match the order of states in the legacy dialog-config.xml for ease of comparison).
Files Changed
MODIFY /shale/sandbox/shale-test-dialog2-scxml/src/main/webapp/WEB-INF/dialog-config.xml
ADD /shale/sandbox/shale-test-dialog2-scxml/src/main/webapp/WEB-INF/popup.xml
ADD /shale/sandbox/shale-test-dialog2-scxml/src/main/webapp/WEB-INF/wizard.xml

Repository Revision Date User Message
ASF #468828 Sun Oct 29 03:17:35 UTC 2006 rahul New documentation sections: benefits, instruction by example for describing dialogs as SCXML documents, bootstrapping the SCXML dialog manager.
SHALE-263
Files Changed
ADD /shale/framework/trunk/shale-dialog-scxml/src/site/resources/images/log-on-dialog.jpg
ADD /shale/framework/trunk/shale-dialog-scxml/src/site/resources
MODIFY /shale/framework/trunk/shale-dialog-scxml/src/site/xdoc/index.xml
ADD /shale/framework/trunk/shale-dialog-scxml/src/site/resources/images

Repository Revision Date User Message
ASF #468829 Sun Oct 29 03:19:23 UTC 2006 rahul Remove TODOs that are complete.
SHALE-263
Files Changed
MODIFY /shale/framework/trunk/shale-dialog-scxml/src/main/java/org/apache/shale/dialog/scxml/config/ConfigurationParser.java

Repository Revision Date User Message
ASF #469332 Tue Oct 31 01:14:30 UTC 2006 rahul Introduce the notion of a DialogStateMapper which maps dialog state IDs to JSF view IDs.
 * The current FacesContext is available to this mapping, so it is possible to support multiple sets of views over user agents, modalities, locales, user roles etc. (ofcourse, the latter two on rare occassions) and share the same dialog "controller".
 * The default behavior is an identity transform, the state ID is used as-is as the view ID (a leading slash is added, if needed)
 * That behavior can be changed by replacing the application scope bean (which implements DialogStateMapper) at key "org$apache$shale$dialog$scxml$STATE_MAPPER"
Removed related TODOs from code, added new one as a reminder to document this bit.
SHALE-263
Files Changed
MODIFY /shale/framework/trunk/shale-dialog-scxml/src/main/java/org/apache/shale/dialog/scxml/Globals.java
ADD /shale/framework/trunk/shale-dialog-scxml/src/main/java/org/apache/shale/dialog/scxml/impl/package.html
ADD /shale/framework/trunk/shale-dialog-scxml/src/main/java/org/apache/shale/dialog/scxml/impl
MODIFY /shale/framework/trunk/shale-dialog-scxml/src/main/resources/META-INF/faces-config.xml
ADD /shale/framework/trunk/shale-dialog-scxml/src/main/java/org/apache/shale/dialog/scxml/DialogStateMapper.java
ADD /shale/framework/trunk/shale-dialog-scxml/src/main/java/org/apache/shale/dialog/scxml/impl/DefaultDialogStateMapper.java
MODIFY /shale/framework/trunk/shale-dialog-scxml/src/main/java/org/apache/shale/dialog/scxml/SCXMLDialogContext.java

Repository Revision Date User Message
ASF #469334 Tue Oct 31 01:37:17 UTC 2006 rahul Javadoc improvements.
SHALE-263
Files Changed
MODIFY /shale/framework/trunk/shale-dialog-scxml/src/main/java/org/apache/shale/dialog/scxml/config/ConfigurationParser.java
MODIFY /shale/framework/trunk/shale-dialog-scxml/src/main/java/org/apache/shale/dialog/scxml/impl/DefaultDialogStateMapper.java

Repository Revision Date User Message
ASF #469653 Tue Oct 31 21:15:12 UTC 2006 rahul Change root element of the dialog config (SCXML impl) to <dialogs>. Some attribute rearrangement in dialog-config.xml for test app.
SHALE-263
Files Changed
MODIFY /shale/framework/trunk/shale-dialog-scxml/src/main/java/org/apache/shale/dialog/scxml/config/ConfigurationParser.java
MODIFY /shale/framework/trunk/shale-apps/shale-test-dialog-scxml/src/main/webapp/WEB-INF/dialog-config.xml

Repository Revision Date User Message
ASF #491382 Sun Dec 31 04:30:36 UTC 2006 rahul Merge try/catch blocks for code from SHALE-263
Files Changed
MODIFY /shale/framework/trunk/shale-dialog-scxml/src/main/java/org/apache/shale/dialog/scxml/SCXMLDialogContext.java