[JBoss JIRA] Created: (JBIDE-5307) Generalize the model creation code
by Tom Fennelly (JIRA)
Generalize the model creation code
----------------------------------
Key: JBIDE-5307
URL: https://jira.jboss.org/jira/browse/JBIDE-5307
Project: Tools (JBoss Tools)
Issue Type: Task
Components: smooks
Reporter: Tom Fennelly
Fix For: 3.1.0.GA
At the moment, we are using the Smooks programmatic APIs to configure the input parser etc for creating the input model. This requires translation of the EMF config model into java code instructions for configuring the Smooks Reader - see JsonInputDataParser, CSVDataParser, EDIDataParser.
I think this can be simplified significantly by simply asking Smooks to process the Smooks config and then extracting the reader configuration from the Smooks instance and reuse that to configure an empty Smooks config... and then parse the input to extract the model.
The code would be something like this...
// Get the Reader config from the Smooks config file....
Smooks smooks1 = new Smooks(smooksConfigStream);
ExecutionContext execCtx = smooks1.createExecutionContext();
SmooksResourceConfiguration readerConfig = AbstractParser.getSAXParserConfiguration(execCtx.getDeliveryConfig());
// Create a second "empty" Smooks instance and add the reader config to it....
Smooks smooks2 = new Smooks();
smooks.addConfiguration(readerConfig);
// Filter the input message through this second Smooks instance and capture the model in the DOMResult...
DOMResult result = new DOMResult();
smooks2.filterSource(new StreamSource(inputMessageStream), result);
// And get the model DOM instance (org.w3c.dom.Document)...
Document inputModelDOM = (Document) result.getNode();
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
14 years, 9 months
[JBoss JIRA] Created: (JBIDE-5545) Change Smooks Run Configuration Output Labels to Match Task Descriptions in the Smooks Config Editor
by Brian Fitzpatrick (JIRA)
Change Smooks Run Configuration Output Labels to Match Task Descriptions in the Smooks Config Editor
----------------------------------------------------------------------------------------------------
Key: JBIDE-5545
URL: https://jira.jboss.org/jira/browse/JBIDE-5545
Project: Tools (JBoss Tools)
Issue Type: Bug
Components: smooks
Affects Versions: 3.1.0.CR2
Reporter: Brian Fitzpatrick
Assignee: Tom Fennelly
Fix For: 3.1.0.CR2
This is just a minor cleanup task. With the newly cleaned up and formatted output of the Smooks Run Configuration, you now see...
[StreamResult ...]
|--
|"Insane","George Finklebine","CA","123 Wacky St.","95021"
|...
|--
[JavaResult Objects...]
|--
|> People (beanId = "People")
| ...
|--
After some discussion, we think that the [StreamResult] and [JavaResult Objects...] labels should be changed to mirror what is seen in the Smooks Configuration Editor task list:
* [StreamResult] would become [Templating Results]
* [JavaResult Objects...] would become [Java Mapping Results]
This should make it easier to reconcile the output from the Smooks Run Configuration with what the user sees in the Smooks Configuration Editor.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
14 years, 9 months
[JBoss JIRA] Created: (JBIDE-2532) Defect in GUI. Task Node | Task | Controller Tab Mapped Name displays in the Required Check Box column.
by Steve Hall (JIRA)
Defect in GUI. Task Node | Task | Controller Tab Mapped Name displays in the Required Check Box column.
--------------------------------------------------------------------------------------------------------
Key: JBIDE-2532
URL: https://jira.jboss.org/jira/browse/JBIDE-2532
Project: Tools (JBoss Tools)
Issue Type: Bug
Components: Ganymede
Affects Versions: 3.0.0.GA
Environment: Eclipse plugin 3.1.3SP2. Installed in Eclipse 3.4.0. Running on Windows XP SP2
Reporter: Steve Hall
Priority: Minor
Created a Task Node. Added a task. Provided Name in General field. Set Assignment to Swinlane. Filled in the Swimlane Name. On the controller tab I added 6 variables. For each variable, I entered the name and mapped name filed.
When I display the data in the GRID, the Mapped Name data shows up under the Required column.
This is the associated processdefinition.xml file:
<?xml version="1.0" encoding="UTF-8"?>
<process-definition xmlns="urn:jbpm.org:jpdl-3.2" name="ProductMusicProducts">
<swimlane name="Talent Scout">
<assignment expression="group(Talent Scout)"></assignment>
</swimlane>
<swimlane name="Legal Advisor">
<assignment expression="group(Legal Advisor)"></assignment>
</swimlane>
<swimlane name="Band Member">
<assignment expression="group(Band Member)"></assignment>
</swimlane>
<swimlane name="Record Producer">
<assignment expression="group(Record Producer)"></assignment>
</swimlane>
<swimlane name="Artist Development">
<assignment expression="group(Artist Development)"></assignment>
</swimlane>
<swimlane name="Songwriter">
<assignment expression="group(Songwriter)"></assignment>
</swimlane>
<swimlane name="Musician">
<assignment expression="group(Musician)"></assignment>
</swimlane>
<swimlane name="Video Production">
<assignment expression="group(Video Production)"></assignment>
</swimlane>
<swimlane name="Artist">
<assignment expression="group(Artist)"></assignment>
</swimlane>
<start-state name="Hold Auditions">
<task name="Hold Auditions" swimlane="Talent Scout">
<description>
The hold auditions task
</description>
<controller>
<variable access="read,write,required" name="audDate" mapped-name="Audition Date"></variable>
<variable access="read,write,required" name="audLocation" mapped-name="Audition Location"></variable>
</controller>
</task>
<transition to="Select Band Members"></transition>
</start-state>
<task-node name="Select Band Members">
<task name="Select Band Members" swimlane="Talent Scout">
<description>
Assign Band Members
</description>
<controller>
<variable access="read,write,required" name="bm1" mapped-name="Band Member 1"></variable>
<variable access="read,write,required" name="bm2" mapped-name="Band Members 2"></variable>
<variable access="read,write,required" name="bm3" mapped-name="Band Member 3"></variable>
<variable access="read,write" name="bm4" mapped-name="Band Member 4"></variable>
<variable access="read,write" name="bm5" mapped-name="Band Member 5"></variable>
<variable access="read,write" name="bm6" mapped-name="Band Member 6"></variable>
</controller>
</task>
</task-node>
<task-node name="Contract Band Members">
<task name="Contract Band Members">
<controller>
<variable access="read,write,required" name="bm1ContractSent" mapped-name="Band Member 1 Contract Sent"></variable>
<variable access="read,write,required" name="bm2ContractSent" mapped-name="Band Member 2 Contract Sent"></variable>
<variable access="read,write,required" name="bm3ContractSent" mapped-name="Band Member 3 Contract Sent"></variable>
<variable access="read,write" name="bm4ContractSent" mapped-name="Band Member 4 Contract Sent"></variable>
<variable access="read,write" name="bm5ContractSent" mapped-name="Band Member 5 Contract Sent"></variable>
<variable access="read,write" name="bm6ContractSent" mapped-name="Band Member 6 Contract Sent"></variable>
</controller>
</task>
</task-node>
<task-node name="All Contracts Agreed">
<task name="All Contracts Agreed" swimlane="Legal Advisor">
<controller>
<variable access="read,write,required" name="bm1Agreed" mapped-name="Band Member 1 Agreed"></variable>
<variable access="read,write,required" name="bm2Agreed" mapped-name="Band Member 2 Agreed"></variable>
<variable access="read,write,required" name="bm3Agreed" mapped-name="Band Member 3 Agreed"></variable>
<variable access="read,write" name="bm4Agreed" mapped-name="Band Member 4 Agreed"></variable>
<variable access="read,write" name="bm5Agreed" mapped-name="Band Member 5 Agreed"></variable>
<variable access="read,write" name="bm6Agreed" mapped-name="Band Member 6 Agreed"></variable>
</controller>
</task>
</task-node>
<task-node name="Contract Response">
<task>
<controller>
<variable access="read,write,required" name="bm1Agreed" mapped-name="BandMember1Agreed"></variable>
<variable access="read,write,required" name="bm2Agreed" mapped-name="Band Member 2 Agreed"></variable>
<variable access="read,write,required" name="bm3Agreed" mapped-name="Band Member 3 Agreed"></variable>
<variable access="read,write" name="bm4Agreed" mapped-name="Band Member 4 Agreed"></variable>
<variable access="read,write" name="bm5Agreed" mapped-name="Band Member 5 Agreed"></variable>
<variable access="read,write" name="bm6Agreed" mapped-name="Band Member 6 Agreed"></variable>
</controller>
</task>
</task-node>
<end-state name="end-state1"></end-state>
</process-definition>
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
14 years, 9 months
[JBoss JIRA] Created: (JBIDE-5159) Choice to choose whether to use the wizard to generate hbm.xml in Hibernate Tools
by Simon Lo (JIRA)
Choice to choose whether to use the wizard to generate hbm.xml in Hibernate Tools
---------------------------------------------------------------------------------
Key: JBIDE-5159
URL: https://jira.jboss.org/jira/browse/JBIDE-5159
Project: Tools (JBoss Tools)
Issue Type: Feature Request
Components: Hibernate
Affects Versions: 3.1.0.M4
Environment: Windows 7 Home Premium, Eclipse 3.5 SR1
Reporter: Simon Lo
I hate to generate everything by wizard and being unable to control the output of hbm.xml. It is because our company always have the mismatch problems in column name in database and properties in Java object.
It made me so frustrated after using Eclipse Galileo which can only installed JBoss Tools 3.1.x and the behaviour of Hibernate Tools changed so much. I cannot find any option that I can stop the wizard generation and type in everything in hbm.xml by myself. I need to let the wizard to generate everything then delete it to start over.
I love the Hibernate Tools before which only generate necessary XML declaration for me and let me do the rest.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
14 years, 9 months