[jBPM] - Re: Issue in leavenode from a Task node on task-create event
by Maurice de Chateau
Maurice de Chateau [http://community.jboss.org/people/MohReece] created the discussion
"Re: Issue in leavenode from a Task node on task-create event"
To view the discussion, visit: http://community.jboss.org/message/586412#586412
--------------------------------------------------------------
Hi Yogita,
Sorry it took a while for me to get back to you...
1) If you need to be able to to show the history of your process executions, process logging (which is different from logging with e.g. Log4J) is something worth while looking at. See http://docs.jboss.com/jbpm/v3.2/userguide/html_single/#logging chapter 16 of the user guide on how that is done.
If that requirement is the only thing keeping you from using regular Nodes, I strongly recommend you try this and switch to Nodes. It'll make your life much easier!
2) Why the TaskInstance cannot be ended from where you try it isn't completely clear to me. Assignment isn't part of the TaskInstance's lifecycle, so book-keeping should be up-to-date once the creation step is completed - but I'm not completely sure about that in case of the task-created event, to be honest.
I know that it is possible to have an actor ask for the TaskInstances that are assigned to it (that's pretty much by design ;) ), and the ones that are returned can be ended without a problem. I understand that your TaskInstances need to be ended in a way that is more automatic than what originally is intended, but if you must: would polling be an option (i.e. if you find that your event driven doesn't give you the correct result)?
Good luck,
Maurice
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/586412#586412]
Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
13 years, 10 months
[JBoss Tools] - hibernate queryparameters gui
by nimo stephan
nimo stephan [http://community.jboss.org/people/nimo22] created the discussion
"hibernate queryparameters gui"
To view the discussion, visit: http://community.jboss.org/message/586208#586208
--------------------------------------------------------------
I am using the actual rf tools and found out, that there is no more the possibility to edit the "value" of a query parameter.
So for example:
I type this query:
"select u.id from Users u where u.id =:id"
When clicking the "Add query parameter" button, then id is shown. When I type the value for this id (for example, "1) and excecuting this query, I get no results as the gui does not recognize the value "1".
I need to click the "..." within the value-field, which pops up "Element"-Gui in which I should add/modify the value additionally - after that, the excecution of the query returns a result as the "1" is now recognized. This is uncomfortable, in earlier versions, I could type the value in the field directly without the need to pop up a the "Elements"-GUI. Why was that changed? Is that really okay?
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/586208#586208]
Start a new discussion in JBoss Tools at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
13 years, 10 months
[jBPM] - Jbpm workflow - PROCESSINSTANCEINFO table empty
by devora Mar....
devora Mar.... [http://community.jboss.org/people/devora] created the discussion
"Jbpm workflow - PROCESSINSTANCEINFO table empty"
To view the discussion, visit: http://community.jboss.org/message/586394#586394
--------------------------------------------------------------
My PROCESSINSTANCEINFO always stays empty and therefore alsoin task table the processInstanceId=-1.
Why is it empy?
My persistence.xml
<persistence-unit name="org.drools.task">
<provider>org.hibernate.ejb.HibernatePersistence</provider>
<class>org.jbpm.task.Attachment</class>
<class>org.jbpm.task.Content</class>
<class>org.jbpm.task.BooleanExpression</class>
<class>org.jbpm.task.Comment</class>
<class>org.jbpm.task.Deadline</class>
<class>org.jbpm.task.Delegation</class>
<class>org.jbpm.task.Escalation</class>
<class>org.jbpm.task.Group</class>
<class>org.jbpm.task.I18NText</class>
<class>org.jbpm.task.Notification</class>
<class>org.jbpm.task.EmailNotification</class>
<class>org.jbpm.task.EmailNotificationHeader</class>
<class>org.jbpm.task.PeopleAssignments</class>
<class>org.jbpm.task.Reassignment</class>
<class>org.jbpm.task.Status</class>
<class>org.jbpm.task.Task</class>
<class>org.jbpm.task.TaskData</class>
<class>org.jbpm.task.SubTasksStrategy</class>
<class>org.jbpm.task.OnParentAbortAllSubTasksEndStrategy</class>
<class>org.jbpm.task.OnAllSubTasksEndParentEndStrategy</class>
<class>org.jbpm.task.User</class>
<class>org.drools.persistence.session.SessionInfo</class>
<class>org.jbpm.persistence.processinstance.ProcessInstanceInfo</class>
<class>org.jbpm.persistence.processinstance.ProcessInstanceEventInfo</class>
<class>org.drools.persistence.processinstance.WorkItemInfo</class>
<exclude-unlisted-classes>true</exclude-unlisted-classes>
<properties>
Thanks!!
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/586394#586394]
Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
13 years, 10 months
[JNDI and Naming] - How to override providerAdapterJNDI in @MessageDriven bean? Naming alias?
by Phil Krasko
Phil Krasko [http://community.jboss.org/people/pkrasko] created the discussion
"How to override providerAdapterJNDI in @MessageDriven bean? Naming alias?"
To view the discussion, visit: http://community.jboss.org/message/586372#586372
--------------------------------------------------------------
JBoss 4.2.3GA
I have an application that needs to connect to a remote JMS topic (another JBoss box).
For the deployment of this application I have a *-ds.xml file to specify the remote JMS provider ("RemoteJmsProvider").
The MDB is using annotations and I have specified one @ActivationConfigProperty that sets the "providerAdapterJNDI" to java:/RemoteJmsProvider.
Everything works perfect as of now.
The question is how do I reconfigure this when I deploy the application on the same JBoss instance that is hosting the topic that I need to connect to? In this scenario a remote jms provider should no longer be required.
I've attempted to create a naming alias to map the java:/RemoteJmsProvider to the local DefaultJmsProvider. I'm not sure if this will work, but I've always ending up with a javax.naming.NameNotFoundException: RemoteJmsProvider not bound.
Here is the naming alias I created in a *-service.xml file within my deploy directory:
{code:xml}
<mbean code="org.jboss.naming.NamingAlias"
name="jboss.mq:service=NamingAlias,fromName=RemoteJmsProvider">
<attribute name="FromName">RemoteJmsProvider</attribute>
<attribute name="ToName">DefaultJMSProvider</attribute>
</mbean>
{code}
Is this a valid use of the naming alias?
Has anyone encountered similar issues?
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/586372#586372]
Start a new discussion in JNDI and Naming at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
13 years, 10 months
[jBPM] - jbpm5 demo - error when starting human task
by Odelya Holiday
Odelya Holiday [http://community.jboss.org/people/odelyaholiday] created the discussion
"jbpm5 demo - error when starting human task"
To view the discussion, visit: http://community.jboss.org/message/572985#572985
--------------------------------------------------------------
Hi!
when I run start.demo I get the following mistake:
start.human.task:
[javac] C:\jbpm-installer\build.xml:518: warning: 'includeantruntime' was no
t set, defaulting to build.sysclasspath=last; set to false for repeatable builds
[java] SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
[java] SLF4J: Defaulting to no-operation (NOP) logger implementation
[java] SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder http://www.slf4j.org/codes.html#StaticLoggerBinder for fu
rther details.
[java] Task service started correctly !
[java] Task service running ...
[java] Exception in thread "Thread-3" java.lang.RuntimeException: Server Ex
ception with class class org.jbpm.task.service.mina.MinaTaskServer using port 91
23
[java] at org.jbpm.task.service.mina.BaseMinaTaskServer.run(BaseMinaTas
kServer.java:53)
[java] at java.lang.Thread.run(Thread.java:662)
[java] Caused by: java.net.BindException: Address already in use: bind
[java] at sun.nio.ch.Net.bind(Native Method)
[java] at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelIm
pl.java:119)
[java] at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:
59)
[java] at org.apache.mina.transport.socket.nio.NioSocketAcceptor.open(N
ioSocketAcceptor.java:251)
[java] at org.apache.mina.transport.socket.nio.NioSocketAcceptor.open(N
ioSocketAcceptor.java:48)
[java] at org.apache.mina.core.polling.AbstractPollingIoAcceptor.regist
erHandles(AbstractPollingIoAcceptor.java:523)
[java] at org.apache.mina.core.polling.AbstractPollingIoAcceptor.access
$200(AbstractPollingIoAcceptor.java:65)
[java] at org.apache.mina.core.polling.AbstractPollingIoAcceptor$Accept
or.run(AbstractPollingIoAcceptor.java:407)
[java] at org.apache.mina.util.NamePreservingRunnable.run(NamePreservin
gRunnable.java:64)
[java] at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Thread
PoolExecutor.java:886)
[java] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPool
Executor.java:908)
[java] ... 1 more
start.human.task:
[javac] C:\jbpm-installer\build.xml:518: warning: 'includeantruntime' was no
t set, defaulting to build.sysclasspath=last; set to false for repeatable builds
[java] SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
[java] SLF4J: Defaulting to no-operation (NOP) logger implementation
[java] SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for fu
rther details.
[java] Task service started correctly !
[java] Task service running ...
[java] Exception in thread "Thread-3" java.lang.RuntimeException: Server Ex
ception with class class org.jbpm.task.service.mina.MinaTaskServer using port 91
23
[java] at org.jbpm.task.service.mina.BaseMinaTaskServer.run(BaseMinaTas
kServer.java:53)
[java] at java.lang.Thread.run(Thread.java:662)
[java] Caused by: java.net.BindException: Address already in use: bind
[java] at sun.nio.ch.Net.bind(Native Method)
[java] at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelIm
pl.java:119)
[java] at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:
59)
[java] at org.apache.mina.transport.socket.nio.NioSocketAcceptor.open(N
ioSocketAcceptor.java:251)
[java] at org.apache.mina.transport.socket.nio.NioSocketAcceptor.open(N
ioSocketAcceptor.java:48)
[java] at org.apache.mina.core.polling.AbstractPollingIoAcceptor.regist
erHandles(AbstractPollingIoAcceptor.java:523)
[java] at org.apache.mina.core.polling.AbstractPollingIoAcceptor.access
$200(AbstractPollingIoAcceptor.java:65)
[java] at org.apache.mina.core.polling.AbstractPollingIoAcceptor$Accept
or.run(AbstractPollingIoAcceptor.java:407)
[java] at org.apache.mina.util.NamePreservingRunnable.run(NamePreservin
gRunnable.java:64)
[java] at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Thread
PoolExecutor.java:886)
[java] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPool
Executor.java:908)
[java] ... 1 more
I searched:
netstat -an | findstr 0.0.9123
But nothing was found!
What could be the problem?
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/572985#572985]
Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
13 years, 10 months