[JBoss jBPM] - Re: what is par file? + has anyone used deploy.html in jbpm.
by vtysh
jbpm-starters-kit-3.1.3 has sources of the web application, and uploading servlet works fine with created by plugin archives. Here is a snip of a code:
| ZipInputStream zipInputStream = new ZipInputStream(fileItem.getInputStream());
| JbpmContext jbpmContext = JbpmContext.getCurrentJbpmContext();
| ProcessDefinition processDefinition = ProcessDefinition.parseParZipInputStream(zipInputStream);
| log.debug("Created a processdefinition : " + processDefinition.getName() );
| jbpmContext.deployProcessDefinition(processDefinition);
| zipInputStream.close();
| return "Deployed archive " + processDefinition.getName() + " successfully";
|
How you should see, par file is a simple zip archive with some special structure.
In the root folder should exist
gpd.xml
processdefinition.xml
processimage.jpg
in classes folder you can put necessary classes
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4048603#4048603
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4048603
18 years, 11 months
[EJB 3.0] - Merging an extended class from existing superclass
by reuben.helms
Hi all
I'm fairly new at the EJB3/JPA stuff, and I'm writing an app that has some legacy data that cant be moved around too much.
I have a table and class, Dog (for simplicity) that is populated via another application. This can exist as an instance in its own right.
I also have a class SpottedDog that is an extension of Dog. Because I cant play with the Dog table too much, I'm using an additional table for the SpottedDog properties and have tried using SecondaryTable and the table per subclass.
The aim is to try and create a SpottedDog from an existing Dog, and keep the unique identifier on the Dog record.
I create a new SpottedDog and assign values from the Dog to it in the constructor, and then call em.merge(spottedDog);.
However, the Hibernate debugging shows that it tries to search on SpottedDog with a inner join on Dog. Because a SpottedDog record does not exist yet, it assumes that the Dog entry doesnt either, and proceeds to try to insert a Dog entry. This ends up causing an identity insert error, because its trying to do that Dog insert that doesnt need to be done.
So, any tips for extending an object to a subclass, where it will recognise that the superclass already exists?
For this particular case, it would be nice if the original search was a left outer join on Dog, so that the Dog record would be recognised and only an insert on the SpottedDog would be required. I guess an additional search on Dog instead of the left outer join would do just as well.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4048590#4048590
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4048590
18 years, 11 months
[JBoss jBPM] - Task form cancel button not working
by naseem.k
Hi,
I am using jbpm 3.2 GA. I got an exeception when I clicked cancel button of a task form.
Task form save button and transition buttons are working perfectly fine only cancel button is not working.
Here is the stacktrace...
anonymous wrote : javax.el.ELException: /main/task/view.xhtml @204,71 disabled="#{! processBean.hasProcessImage}": java.lang.NullPointerException
| at com.sun.facelets.el.TagValueExpression.getValue(TagValueExpression.java:76)
| at org.jbpm.webapp.tag.jbpm.ui.Tab.isDisabled(Tab.java:31)
| at org.jbpm.webapp.tag.jbpm.ui.TabSet.encodeBegin(TabSet.java:120)
|
| ...............
|
| Caused by: java.lang.NullPointerException
| at org.jbpm.webapp.bean.ProcessBean.getHasProcessImage(ProcessBean.java:104)
| at sun.reflect.GeneratedMethodAccessor220.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
|
| ....
|
Taskform buttons are as below...
<!-- TASKFORM BUTTONS -->
| <tf:saveButton value="Save"/>
| <tf:cancelButton value="Cancel"/>
| <tf:transitionButton transition="Shipping" value="Shipping"/>
|
It seems like problem is with rendering of process image when cancel button is clicked.
I checked its tld as well, I did not get any tag handler class or tei class for this cancel tag.
Functionalities in the Cancel button and SaveButton final clases are same as both extend the same abstract class AbstractTaskFormButton.
Is anyone else faced this problem earlier.
Thanks
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4048583#4048583
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4048583
18 years, 11 months