[jBPM] - Human Task Forms (on the fly)
by Tobias Wittur
Tobias Wittur [http://community.jboss.org/people/tob1as] created the discussion
"Human Task Forms (on the fly)"
To view the discussion, visit: http://community.jboss.org/message/617281#617281
--------------------------------------------------------------
Hi,
I had a look at the humantask example in the jbpm-5.1.0.Final-examples.zip and was able to create a simple workflow with ftl files. However, I would prefer the engine to create the forms on the fly, since a business user would not want to write html by hand.
I had a look at this video:
"Develop complex jBPM processes all in Guvnor? Yes, you can!" : http://vimeo.com/26126678 http://vimeo.com/26126678
and realized, there should be a button that creates the forms:
http://community.jboss.org/servlet/JiveServlet/showImage/2-617281-16786/g... http://community.jboss.org/servlet/JiveServlet/downloadImage/2-617281-167...
The video was submitted 09.07.2011, 2 days after the new designer was released:
I checked the latest version of the designer, which is
| designer-1.0.0.053 | 2011-07-07 |
I downloaded the war file and replaced
C:\jbpm\jboss-5.1.0.GA\server\default\deploy\designer.war with the latest version.
However, I still do not get this buttion. Do I have to do anything else in order to get the new designer running?
I downloaded the latest jbpm-full-install.zip, and this is still installing the 1.0.0.052 version of the designer.
I also had a look at the evaluation example under
C:\jbpm\sample\evaluation.
I realized that if I add the evaluation.bpmn from eclipse to guvnor, that there are no ftl files ?!
Also if I check "Other assets, documentation" in guvnor, I can not see any ftl files. So how exactly can the evaluation process work without templates?
When I try to recreate the evaluation process without template files, I always get an error:
org.jboss.resteasy.spi.UnhandledException: java.lang.RuntimeException: Failed to process form template
java.lang.RuntimeException: Failed to process form template
...
freemarker.core.InvalidReferenceException: employee is undefined.
...
Best regards and thanks for your help,
Tobias
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/617281#617281]
Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
12 years, 9 months
[jBPM] - jBPM in Websphere
by John Soundrakumar
John Soundrakumar [http://community.jboss.org/people/skjohn] created the discussion
"jBPM in Websphere"
To view the discussion, visit: http://community.jboss.org/message/615076#615076
--------------------------------------------------------------
Hi,
Does jBpm work in websphere.? Does it need Bitronix transaction manager only to work? I ve created a simple process definition with start, task1, task2, end. I am able to complete the task1 when I start the process. In my web applicaiton I am reloading the StatefulKnowledgeSession from the database and I register a workitem handlder
StatefulKnowledgeSession ksession = JPAKnowledgeService.+loadStatefulKnowledgeSession+(sessionid , kbase, **null);**
ksession.getWorkItemManager().registerWorkItemHandler("Human Task", th);
ksession.getWorkItemManager().completeWorkItem(wit.getId(), **null**);
the work item is not getting saved and wit.getId throwing null pointer exception. the same taskhandler persists in the first task1 without any problem.
Any clues? thanks for your help.
****TestWorkItemHandler th = *new* TestWorkItemHandler();
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/615076#615076]
Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
12 years, 9 months
[JBoss Messaging] - How to browse the DLQ?
by Aurélien Lansmanne
Aurélien Lansmanne [http://community.jboss.org/people/alansmanne] created the discussion
"How to browse the DLQ?"
To view the discussion, visit: http://community.jboss.org/message/585449#585449
--------------------------------------------------------------
Hello,
I've been trying to read the messages from the Jboss DLQ for some times... but without success.
First, i've tried to use a QueueBrowser. I thought it could display the messages in the DLQ as they are stuck there and never received by any client.
Queue DLQueue = ServiceLocator.getInstance().getQueue("queue/DLQ");
QueueConnectionFactory queueConnectionFactory = ServiceLocator.getInstance().getQueueConnectionFactory("ConnectionFactory"); //Service locator is a wrapper that does (QueueConnectionFactory) context.lookup("qConnFactoryName")
QueueConnection queueConnection = queueConnectionFactory.createQueueConnection();
QueueSession queueSession = queueConnection.createQueueSession(false, Session.AUTO_ACKNOWLEDGE);
QueueBrowser DLQBrowser = queueSession.createBrowser(DLQueue);
Enumeration<?> dlqEnum = DLQBrowser.getEnumeration();
while (dlqEnum.hasMoreElements()) {
Object object = dlqEnum.nextElement();
// Do something with object
}
queueConnection.close();
But the enumeration is empty...
I've also tried to use the JMX-console. When I click on name=DLQ,service=Queue, then listMessageCounter(), i can see that there are indeed 100 messages in the DLQ. But when I try to browse them :
* listScheduledMessages() : empty ...
* listMessages() : empty...
* listInProcessMessages() : empty...
Then, I tried to open the HSQL database myself with DBVisualizer to browse the JMS_MESSAGES table. But I was only able to see some messages IDS, but not the message itself.
My last option is to use a Message Listener on the DLQ and do all the business to store them somewhere I can easily access... if I can't use any of the previous options.
Any help is appreciated.
Aurélien Lansmanne.
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/585449#585449]
Start a new discussion in JBoss Messaging at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
12 years, 9 months
[JNDI and Naming] - InitialContext#lookup does not timeout
by Stian Thorgersen
Stian Thorgersen [http://community.jboss.org/people/stianst] created the discussion
"InitialContext#lookup does not timeout"
To view the discussion, visit: http://community.jboss.org/message/600583#600583
--------------------------------------------------------------
I've got an issue where InitialContext#lookup will hang forever doing a lookup if there is a problem with the network. I appreciate this is the default settings of the TCP sockets to wait forever, so I've tried to configure the timeout using 'jnp.timeout' and 'jnp.sotimeout', but it still waits forever.
Hashtable<String, String> env = new Hashtable<String, String>();
env.put("java.naming.factory.initial", "org.jnp.interfaces.NamingContextFactory");
env.put("java.naming.provider.url", "jnp://10.9.1.11:1099");
env.put("java.naming.factory.url.pkgs", "org.jboss.naming");
env.put("jnp.socketFactor", "org.jnp.interfaces.TimedSocketFactory");
env.put("jnp.timeout", "1000");
env.put("jnp.sotimeout", "1000");
InitialContext ctx = new InitialContext(env);
HelloWorld world = (HelloWorld) ctx.lookup("HelloWorldBean/remote");
world.sayHello("hello");
// disconnect network here
world = (HelloWorld) ctx.lookup("HelloWorldBean/remote");
world.sayHello("hello");
In the above example if the network is disconnected before the first lookup it times out as expected, but if the network is disconnected between the first and the second lookup it doesn't timeout at all (waited 10 min+).
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/600583#600583]
Start a new discussion in JNDI and Naming at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
12 years, 9 months
[jBPM] - problem with jbpm on weblogic
by arash norouz
arash norouz [http://community.jboss.org/people/arashbahal] created the discussion
"problem with jbpm on weblogic"
To view the discussion, visit: http://community.jboss.org/message/569094#569094
--------------------------------------------------------------
hi all
i am new to jbpm.
i am trying to implement some web services based on jbpm. i have implemented my services and test it in stand alone mode and it is ok!
but when i am trying to deploy my services on weblogic server it is thrown by some exceptions!
*org.hibernate.HibernateException: Errors in named queries: findTasks, findMessages, findTimers, findGroupsByUserAndGroupType, findProcessInstanceIds, findJo
at org.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:397)
at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1327)
at org.jbpm.pvm.internal.wire.descriptor.HibernateSessionFactoryDescriptor.construct(HibernateSessionFactoryDescriptor.java:62)
at org.jbpm.pvm.internal.wire.WireContext.construct(WireContext.java:487)
at org.jbpm.pvm.internal.wire.WireContext.create(WireContext.java:466)
Truncated. see log file for complete stacktrace*
after searching the internet i have found that adding
*<property name="hibernate.query.factory_class">org.hibernate.hql.classic.ClassicQueryTranslatorFactory</property>*
to hibernate config fix the problem. i have tried the solution and it was successful, but after deploying
when i want to run one of my services it throws another exception
my code snippet is:
*ProcessInstance processInstance = executionService
.startProcessInstanceByKey(processDefinitionId, parameters,
userId + "-" + sequence);*
and the exception is :
*Error invoking com.pardis.notification.core.Services (POJO): org.hibernate.QueryException<ComponentHandler.handleRequest:144>
<WSEE:21>org.hibernate.QueryException: Incorrect query syntax [select new map( idProperty.objectName as objectName, idProperty.deployment.dbid as deploymentDbid )*
*
*
*Caused by: java.lang.NullPointerException
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:169)
at org.hibernate.util.ReflectHelper.classForName(ReflectHelper.java:123)
at org.hibernate.hql.classic.SelectParser.token(SelectParser.java:96)
at org.hibernate.hql.classic.ClauseParser.token(ClauseParser.java:109)
at org.hibernate.hql.classic.ClauseParser.end(ClauseParser.java:136)
at org.hibernate.hql.classic.PreprocessingParser.end(PreprocessingParser.java:145)
at org.hibernate.hql.classic.ParserHelper.parse(ParserHelper.java:52)
at org.hibernate.hql.classic.QueryTranslatorImpl.compile(QueryTranslatorImpl.java:239)*
please help me about this situation
thanks in advance
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/569094#569094]
Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
12 years, 9 months
[JBoss Remoting] - How to use a HTTP(S) proxy without system properties?
by Robert Spielmann
Robert Spielmann [http://community.jboss.org/people/rspielmann] created the discussion
"How to use a HTTP(S) proxy without system properties?"
To view the discussion, visit: http://community.jboss.org/message/610667#610667
--------------------------------------------------------------
Hello world,
I'm facing the following situation: I have a webservice client generated by CXF which completely uses JAXWS APIs. A webservice call is supposed to be made through a HTTP/HTTPS proxy server. I rely on JBoss remoting for the call - there is no CXF or Axis implementation involved. Because the affected JBoss is used to run a bunch of applications which sometimes have individual proxy settings, I can NOT use the usual system properties for the proxy configuration.
Now my question is: is there any programmatic way to set proxy options? I read in the remoting guide that you can do things like passing a metadata map into the client call (Remoting Guide, 5.4.11, response = client.invoke(payload, metadata);) - but how would I be able to hook into that invocation?
Any hints would be greatly appreciated!
Regards,
Robert
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/610667#610667]
Start a new discussion in JBoss Remoting at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
12 years, 9 months
[jBPM] - jBPM-console - Oracle - start process
by bpmn2user
bpmn2user [http://community.jboss.org/people/bpmn2user] created the discussion
"jBPM-console - Oracle - start process"
To view the discussion, visit: http://community.jboss.org/message/582637#582637
--------------------------------------------------------------
I get the following error after starting a porcess using jBPM-console with Oracle database(SNAPSHOT code).
Any comments are appreciated
[2011:01:23 22:01:450:exception] Uncaught exception on client
org.apache.mina.filter.codec.ProtocolDecoderException: java.lang.IllegalStateExc
eption: unread block data (Hexdump: 00 00 01 7F AC ED 00 05 73 72 01 00 1D 6F 72
67 2E 6A 62 70 6D 2E 74 61 73 6B 2E 73 65 72 76 69 63 65 2E 43 6F 6D 6D 61 6E 6
.......
at org.apache.mina.filter.codec.ProtocolCodecFilter.messageReceived(Prot
ocolCodecFilter.java:180)
at org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextMessage
Received(DefaultIoFilterChain.java:414)
at org.apache.mina.core.filterchain.DefaultIoFilterChain.access$1200(Def
aultIoFilterChain.java:49)
at org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.mes
sageReceived(DefaultIoFilterChain.java:832)
at org.apache.mina.core.filterchain.DefaultIoFilterChain$HeadFilter.mess
ageReceived(DefaultIoFilterChain.java:616)
at org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextMessage
Received(DefaultIoFilterChain.java:414)
at org.apache.mina.core.filterchain.DefaultIoFilterChain.fireMessageRece
ived(DefaultIoFilterChain.java:408)
at org.apache.mina.core.polling.AbstractPollingIoProcessor.read(Abstract
PollingIoProcessor.java:578)
at org.apache.mina.core.polling.AbstractPollingIoProcessor.process(Abstr
actPollingIoProcessor.java:540)
at org.apache.mina.core.polling.AbstractPollingIoProcessor.process(Abstr
actPollingIoProcessor.java:532)
at org.apache.mina.core.polling.AbstractPollingIoProcessor.access$400(Ab
stractPollingIoProcessor.java:58)
at org.apache.mina.core.polling.AbstractPollingIoProcessor$Worker.run(Ab
stractPollingIoProcessor.java:857)
at org.apache.mina.util.NamePreservingRunnable.run(NamePreservingRunnabl
e.java:51)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExec
utor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor
.java:908)
at java.lang.Thread.run(Thread.java:662)
Caused by: java.lang.IllegalStateException: unread block data
at java.io.ObjectInputStream$BlockDataInputStream.setBlockDataMode(Objec
tInputStream.java:2376)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1360)
at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:19
46)
at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1870)
at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1
752)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1328)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:350)
at org.apache.mina.core.buffer.AbstractIoBuffer.getObject(AbstractIoBuff
er.java:1628)
at org.apache.mina.filter.codec.serialization.ObjectSerializationDecoder
.doDecode(ObjectSerializationDecoder.java:93)
at org.apache.mina.filter.codec.CumulativeProtocolDecoder.decode(Cumulat
iveProtocolDecoder.java:173)
at org.apache.mina.filter.codec.ProtocolCodecFilter.messageReceived(Prot
ocolCodecFilter.java:170)
... 15 more
2011-01-23 22:51:49,356 (LogLevel.java:90) INFO org.apache.mina.filter.logging.
LoggingFilter - IDLE: both idle
java.lang.RuntimeException: Timeout : unable to retrieve results
at org.jbpm.task.service.responsehandlers.BlockingTaskSummaryResponseHan
dler.getResults(BlockingTaskSummaryResponseHandler.java:41)
at org.jbpm.integration.console.TaskManagement.getAssignedTasks(TaskMana
gement.java:132)
at org.jboss.bpm.console.server.TaskListFacade.getTasksForIdRef(TaskList
Facade.java:99)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.jboss.resteasy.core.MethodInjectorImpl.invoke(MethodInjectorImpl.
java:117)
at org.jboss.resteasy.core.ResourceMethod.invokeOnTarget(ResourceMethod.
java:260)
at org.jboss.resteasy.core.ResourceMethod.invoke(ResourceMethod.java:232
)
at org.jboss.resteasy.core.ResourceMethod.invoke(ResourceMethod.java:166
)
at org.jboss.resteasy.core.DispatcherUtilities.getJaxrsResponse(Dispatch
erUtilities.java:142)
at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispa
tcher.java:356)
at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispa
tcher.java:173)
at org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.servi
ce(HttpServletDispatcher.java:93)
at org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.servi
ce(HttpServletDispatcher.java:68)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
icationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
ilterChain.java:206)
at org.jboss.bpm.console.server.util.GWTJsonFilter.doFilter(GWTJsonFilte
r.java:59)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
icationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
ilterChain.java:206)
2011-01-23 22:51:54,435 (LogLevel.java:90) INFO org.apache.mina.filter.logging.
LoggingFilter - IDLE: both idle
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV
alve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextV
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/582637#582637]
Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
12 years, 9 months