[jBPM] - jbpm5 TaskService beginner questions
by merlin69
merlin69 [http://community.jboss.org/people/merlin69] created the discussion
"jbpm5 TaskService beginner questions"
To view the discussion, visit: http://community.jboss.org/message/584122#584122
--------------------------------------------------------------
Hello,
I'm on the way to use worḱflows with my application. This application has User and Group that I want to use with jbpm.
Using the concept of OrganizationalUnit shown in jbpm human-task is not the problem, so my thought was to change that part.
Also not the problem until here.
As I'm using jboss as6 as appserver, I thought it would be a good idea to use the already installed hornetq as human task service.
I've tried and search long time, but have no idea how to implement it (already new to jms (and jbpm))
My current idea is to use an MBean filtering messages and hand it out to local ejb as a singleton. Has anyone implmented such part and is able to help me out with an idea or a few snippets ? The original TaskService and TaskServerHandler do not help, as they use sessions.
What about persistence ? When using ejb I have a persistence manager, but does my idea work for long time (persistence manager does not loose transaction ?)
The original TaskServer(HornetQ) uses ClientMessage. I've not found how to construct such method. Any hint ?
Any help or ideas would be nice, as I'm totaly confused for the moment.
Thanks in advance
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/584122#584122]
Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
13 years, 5 months
[jBPM] - constraint (MYSCHEMA.FK27A9A56CE1EF3A) violated
by Odelya Holiday
Odelya Holiday [http://community.jboss.org/people/odelyaholiday] created the discussion
"constraint (MYSCHEMA.FK27A9A56CE1EF3A) violated"
To view the discussion, visit: http://community.jboss.org/message/584114#584114
--------------------------------------------------------------
Hi!
After completing human task I get:
Hibernate: insert into Task (allowedToDelegate, taskInitiator_id, priority, activationTime, actualOwner_id, createdBy_id, createdOn, documentAccessType, documentContentId, documentType, expirationTime, faultAccessType, faultContentId, faultName, faultType, outputAccessType, outputContentId, outputType, parentId, previousStatus, processInstanceId, skipable, status, workItemId, id) values (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
Hibernate: insert into I18NText (language, text, id) values (?, ?, ?)
Hibernate: insert into I18NText (language, text, id) values (?, ?, ?)
Hibernate: insert into I18NText (language, text, id) values (?, ?, ?)
Hibernate: update Task set allowedToDelegate=?, taskInitiator_id=?, priority=?, activationTime=?, actualOwner_id=?, createdBy_id=?, createdOn=?, documentAccessType=?, documentContentId=?, documentType=?, expirationTime=?, faultAccessType=?, faultContentId=?, faultName=?, faultType=?, outputAccessType=?, outputContentId=?, outputType=?, parentId=?, previousStatus=?, processInstanceId=?, skipable=?, status=?, workItemId=? where id=?
2011-01-30 15:19:38,354 ERROR ( JDBCExceptionReporter.java:101) - ORA-02291: integrity constraint (MYSCHEMA.FK27A9A56CE1EF3A) violated - parent key not found
2011-01-30 15:19:38,355 ERROR ( JDBCExceptionReporter.java:101) - ORA-02291: integrity constraint (MYSCHEMA.FK27A9A56CE1EF3A) violated - parent key not found
at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:94)
at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:66)
at org.hibernate.jdbc.AbstractBatcher.executeBatch(AbstractBatcher.java:275)
at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:266)
at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:168)
at org.hibernate.event.def.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventListener.java:321)
at org.hibernate.event.def.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:50)
at org.hibernate.impl.SessionImpl.flush(SessionImpl.java:1027)
at org.hibernate.impl.SessionImpl.managedFlush(SessionImpl.java:365)
at org.hibernate.transaction.JDBCTransaction.commit(JDBCTransaction.java:137)
at org.hibernate.ejb.TransactionImpl.commit(TransactionImpl.java:54)
at org.jbpm.task.service.TaskServiceSession.doOperationInTransaction(TaskServiceSession.java:716)
at org.jbpm.task.service.TaskServiceSession.addTask(TaskServiceSession.java:134)
Why would it happen?
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/584114#584114]
Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
13 years, 5 months
[JBoss Tools] - JSF 2.0 and other issues in Visual Editor
by henk de boer
henk de boer [http://community.jboss.org/people/henk53] created the discussion
"JSF 2.0 and other issues in Visual Editor"
To view the discussion, visit: http://community.jboss.org/message/584074#584074
--------------------------------------------------------------
When using JSF 2.0 & Facelets, a few problem occur in the JBoss Tools Visual Editor. I'm using 3.2 CR1.
*EL methods with parameters*
When I call a method via EL with parameters (which thus results in a value) an error is flagged:
http://community.jboss.org/servlet/JiveServlet/showImage/2-584074-11266/e... http://community.jboss.org/servlet/JiveServlet/downloadImage/2-584074-112...
Because a method is involved, the editor seems to think it's a method expression, but this is clearly not the case. Even with the == operator no method expression is involved here. The == operator should even make it more clear the component to which this EL expression is bound will receive a value.
Needless to say, the code runs perfectly well on JBoss AS 6.
*Annotated managed beans*
When I annotate a JSF managed bean instead of declaring it in faces-config.xml, the editor does not seem to have any knowledge of the bean. Neither navigate into and auto-completion work. E.g. if I have the following bean:
import javax.annotation.PostConstruct;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.ViewScoped;
import javax.faces.event.ActionEvent;
@ManagedBean
@ViewScoped
public class MyBean {
public String getFoo() { return "foo"; }
public void setFoo(String foo) {}
}
And a simple Facelet using this bean:
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core">
<h:body>
<h:outputText value="#{myBean.foo}" />
</h:body>
</html>
Then I can't do anything in the editor with "myBean". Here too, the code runs fine on JBoss AS 6.
*Implicit EL Objects*
The editor does not seem to have full knowledge about the EL implicit objects. When trying to auto-complete an EL expression bound to a component, e.g. <h:outputText value="#{...}"/> certain EL implicit objects pop up, but others not.
Available are:
* applicationScope
* component
* cc
* cookie
* facesContext
* flash
* header
* headerValues
* initParam
* param
* paramValues
* requestScope
* resource
* sessionScope
* view
* viewScope
Missing are thus:
* application
* request
* session
Then for some of those implicit EL objects it makes sense to be able to navigate into them and have auto-completion. This is exactly what the default Eclipse 3.6.1 "HTML Editor" allows. E.g. navigating into +view+ would bring me to UIViewRoot and navigating into +component+ would bring me to UIComponent. For auto-completion this is even more convenient.
Finally, for some reason implicit objects are only available in the editor when I bind an expression to a component's attribute. If I directly start a #{} expression on a Facelet and try to auto complete, then no implicit objects show up at all.
*Duplicate tag suggestions*
When I try to auto complete tags, the editor shows me a lot of duplicate suggestions:
http://community.jboss.org/servlet/JiveServlet/showImage/2-584074-11267/d... http://community.jboss.org/servlet/JiveServlet/downloadImage/2-584074-112...
As can be seen, basically every suggestion appears twice. When I first restarted Eclipse after the initial installation of JBoss Tools Visual Editor (Richfaces), I even saw the same ones appearing 3 times. This is not the end of the world, but it does look a little awkward.
I hope this feedback will be valuable to you ;)
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/584074#584074]
Start a new discussion in JBoss Tools at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
13 years, 5 months