[jBPM] - Re: [Jbpm5]how to get the image showing the current status of a workflow
by Amit Joshi
Amit Joshi [https://community.jboss.org/people/mailamitjoshi] created the discussion
"Re: [Jbpm5]how to get the image showing the current status of a workflow"
To view the discussion, visit: https://community.jboss.org/message/749800#749800
--------------------------------------------------------------
Hi,
Many thanks for your reply. I am trying the solution mentioned by you but I end up with the following exception:
org.jbpm.api.JbpmException: resource jbpm.cfg.xml does not exist
at org.jbpm.pvm.internal.stream.ResourceStreamInput.openStream(ResourceStreamInput.java:60)
at org.jbpm.pvm.internal.xml.Parse.getInputSource(Parse.java:146)
at org.jbpm.pvm.internal.xml.Parser.buildDocument(Parser.java:453)
at org.jbpm.pvm.internal.xml.Parser.execute(Parser.java:425)
at org.jbpm.pvm.internal.xml.Parse.execute(Parse.java:158)
at org.jbpm.pvm.internal.cfg.ConfigurationImpl.parse(ConfigurationImpl.java:137)
at org.jbpm.pvm.internal.cfg.ConfigurationImpl.setResource(ConfigurationImpl.java:116)
at org.jbpm.pvm.internal.cfg.ConfigurationImpl.setResource(ConfigurationImpl.java:50)
at org.jbpm.api.Configuration.setResource(Configuration.java:79)
at org.jbpm.api.Configuration.getProcessEngine(Configuration.java:126)
Is the missing file required in jbpm 5? Any workaround?
Thanks and regards,
Amit
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/749800#749800]
Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
13 years, 5 months
[jBPM] - Deploying web application archive drools-guvnor.war fail
by sariner marry
sariner marry [https://community.jboss.org/people/mimi_2012] created the discussion
"Deploying web application archive drools-guvnor.war fail"
To view the discussion, visit: https://community.jboss.org/message/772499#772499
--------------------------------------------------------------
*https://community.jboss.org/message/756597#756597 when I open "http://localhost:8080/drools-guvnor/", "HTTP Status 404 - /drools-guvnor/" occurred,what should I do?*
I hava saw this talking : https://community.jboss.org/message/756454#756454#756454 https://community.jboss.org/message/756454#756454 and https://community.jboss.org/thread/172056?start=15&tstart=0 https://community.jboss.org/thread/172056?start=15&tstart=0
but both of them can't solve my question
here era the following Errors:
十月 26, 2012 1:53:55 下午 org.apache.catalina.startup.HostConfig deployWAR
INFO: Deploying web application archive drools-guvnor.war
十月 26, 2012 1:53:59 下午 org.apache.catalina.core.StandardContext listenerStart
SEVERE: Exception sending context initialized event to listener instance of class org.jboss.seam.servlet.SeamListener
java.lang.IllegalAccessError: tried to access class javassist.bytecode.StackMapTable$Writer from class org.jboss.seam.util.ProxyFactory
at org.jboss.seam.util.ProxyFactory.makeConstructor(ProxyFactory.java:805)
at org.jboss.seam.util.ProxyFactory.makeConstructors(ProxyFactory.java:687)
at org.jboss.seam.util.ProxyFactory.make(ProxyFactory.java:567)
at org.jboss.seam.util.ProxyFactory.createClass3(ProxyFactory.java:348)
at org.jboss.seam.util.ProxyFactory.createClass2(ProxyFactory.java:327)
at org.jboss.seam.util.ProxyFactory.createClass(ProxyFactory.java:286)
at org.jboss.seam.Component.createProxyFactory(Component.java:2452)
at org.jboss.seam.Component.getProxyFactory(Component.java:1516)
at org.jboss.seam.Component.wrap(Component.java:1507)
at org.jboss.seam.Component.instantiateJavaBean(Component.java:1445)
at org.jboss.seam.Component.instantiate(Component.java:1362)
at org.jboss.seam.Component.newInstance(Component.java:2148)
at org.jboss.seam.contexts.Contexts.startup(Contexts.java:304)
at org.jboss.seam.contexts.Contexts.startup(Contexts.java:278)
at org.jboss.seam.contexts.ServletLifecycle.endInitialization(ServletLifecycle.java:143)
at org.jboss.seam.init.Initialization.init(Initialization.java:744)
at org.jboss.seam.servlet.SeamListener.contextInitialized(SeamListener.java:36)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4206)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4705)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:799)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:779)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:601)
at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:943)
at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:778)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:504)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1317)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:324)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:142)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1065)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:840)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463)
at org.apache.catalina.core.StandardService.start(StandardService.java:525)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:754)
at org.apache.catalina.startup.Catalina.start(Catalina.java:595)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
十月 26, 2012 1:53:59 下午 org.apache.catalina.core.StandardContext start
SEVERE: Error listenerStart
十月 26, 2012 1:53:59 下午 org.apache.catalina.core.StandardContext start
SEVERE: Context [/drools-guvnor] startup failed due to previous errors
十月 26, 2012 1:53:59 下午 org.drools.guvnor.server.util.LoggingHelper info
INFO: Removing listeners....
十月 26, 2012 1:53:59 下午 org.drools.guvnor.server.util.LoggingHelper info
INFO: Shutting down repository....
十月 26, 2012 1:53:59 下午 org.drools.repository.RulesRepositoryConfigurator getInstance
INFO: Creating an instance of the RulesRepositoryConfigurator.
十月 26, 2012 1:53:59 下午 org.drools.guvnor.server.util.LoggingHelper error
SEVERE: Shutting down repository failed.
javax.jcr.RepositoryException: Cannot load properties from /drools_repository.properties
at org.drools.repository.RulesRepositoryConfigurator.getInstance(RulesRepositoryConfigurator.java:66)
at org.drools.guvnor.server.repository.RepositoryShutdownService.contextDestroyed(RepositoryShutdownService.java:46)
at org.apache.catalina.core.StandardContext.listenerStop(StandardContext.java:4245)
at org.apache.catalina.core.StandardContext.stop(StandardContext.java:4886)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4750)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:799)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:779)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:601)
at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:943)
at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:778)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:504)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1317)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:324)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:142)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1065)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:840)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463)
at org.apache.catalina.core.StandardService.start(StandardService.java:525)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:754)
at org.apache.catalina.startup.Catalina.start(Catalina.java:595)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
Removing all listeners...
Listeners removed...
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/772499#772499]
Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
13 years, 5 months
[Beginner's Corner] - JBOSS running into IO exception
by Lakshmi Narayana Garoju
Lakshmi Narayana Garoju [https://community.jboss.org/people/lakshminarayana.garoju] created the discussion
"JBOSS running into IO exception"
To view the discussion, visit: https://community.jboss.org/message/772450#772450
--------------------------------------------------------------
Hi, could somebody help me with this problem? JBOSS that I am running sometimes crashes.
It seems it is losing connection to MySQL. When I observed the thread dump I found below exception.
INFO | jvm 2 | 2012/10/24 10:49:51 | 10:49:51,383 WARN [JBossManagedConnectionPool] Unable to fill pool
INFO | jvm 2 | 2012/10/24 10:49:51 | org.jboss.resource.JBossResourceException: Could not create connection; - nested throwable: (com.mysql.jdbc.CommunicationsException: Communications link failure due to underlying exception:
INFO | jvm 2 | 2012/10/24 10:49:51 |
INFO | jvm 2 | 2012/10/24 10:49:51 | ** BEGIN NESTED EXCEPTION **
INFO | jvm 2 | 2012/10/24 10:49:51 |
INFO | jvm 2 | 2012/10/24 10:49:51 | com.mysql.jdbc.CommunicationsException
INFO | jvm 2 | 2012/10/24 10:49:51 | MESSAGE: Communications link failure due to underlying exception:
INFO | jvm 2 | 2012/10/24 10:49:51 |
INFO | jvm 2 | 2012/10/24 10:49:51 | ** BEGIN NESTED EXCEPTION **
INFO | jvm 2 | 2012/10/24 10:49:51 |
INFO | jvm 2 | 2012/10/24 10:49:51 | java.io.EOFException
INFO | jvm 2 | 2012/10/24 10:49:51 | MESSAGE: Can not read response from server. Expected to read 4 bytes, read 0 bytes before connection was unexpectedly lost.
INFO | jvm 2 | 2012/10/24 10:49:51 |
INFO | jvm 2 | 2012/10/24 10:49:51 | STACKTRACE:
INFO | jvm 2 | 2012/10/24 10:49:51 |
INFO | jvm 2 | 2012/10/24 10:49:51 | java.io.EOFException: Can not read response from server. Expected to read 4 bytes, read 0 bytes before connection was unexpectedly lost.
INFO | jvm 2 | 2012/10/24 10:49:51 | at com.mysql.jdbc.MysqlIO.readFully(MysqlIO.java:1997)
INFO | jvm 2 | 2012/10/24 10:49:51 | at com.mysql.jdbc.MysqlIO.reuseAndReadPacket(MysqlIO.java:2411)
INFO | jvm 2 | 2012/10/24 10:49:51 | at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:2916)
INFO | jvm 2 | 2012/10/24 10:49:51 | at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:885)
INFO | jvm 2 | 2012/10/24 10:49:51 | at com.mysql.jdbc.MysqlIO.secureAuth411(MysqlIO.java:3421)
INFO | jvm 2 | 2012/10/24 10:49:51 | at com.mysql.jdbc.MysqlIO.doHandshake(MysqlIO.java:1247)
INFO | jvm 2 | 2012/10/24 10:49:51 | at com.mysql.jdbc.Connection.createNewIO(Connection.java:2748)
INFO | jvm 2 | 2012/10/24 10:49:51 | at com.mysql.jdbc.Connection.<init>(Connection.java:1553)
INFO | jvm 2 | 2012/10/24 10:49:51 | at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:285)
INFO | jvm 2 | 2012/10/24 10:49:51 | at org.jboss.resource.adapter.jdbc.local.LocalManagedConnectionFactory.createManagedConnection(LocalManagedConnectionFactory.java:172)
INFO | jvm 2 | 2012/10/24 10:49:51 | at org.jboss.resource.connectionmanager.InternalManagedConnectionPool.createConnectionEventListener(InternalManagedConnectionPool.java:584)
INFO | jvm 2 | 2012/10/24 10:49:51 | at org.jboss.resource.connectionmanager.InternalManagedConnectionPool.fillToMin(InternalManagedConnectionPool.java:531)
INFO | jvm 2 | 2012/10/24 10:49:51 | at org.jboss.resource.connectionmanager.PoolFiller.run(PoolFiller.java:74)
INFO | jvm 2 | 2012/10/24 10:49:51 | at java.lang.Thread.run(Thread.java:619)
INFO | jvm 2 | 2012/10/24 10:49:51 |
INFO | jvm 2 | 2012/10/24 10:49:51 |
INFO | jvm 2 | 2012/10/24 10:49:51 | ** END NESTED EXCEPTION **
Thanks
Lakshmi Narayana
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/772450#772450]
Start a new discussion in Beginner's Corner at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
13 years, 5 months
[JBoss Remoting] - Failed to initialize java.io.EOFException
by Ravi Samavedula
Ravi Samavedula [https://community.jboss.org/people/samavedulark] created the discussion
"Failed to initialize java.io.EOFException"
To view the discussion, visit: https://community.jboss.org/message/772440#772440
--------------------------------------------------------------
Hi,
I am using Jboss 5.1 AS. Remoting is 2.5.2SP2. I am getting below error consistantly.
2012-10-16 10:26:48,156 ERROR [org.jboss.remoting.transport.socket.ServerThread] (WorkerThread#2[10.15.17.16:57038]) WorkerThread#2[10.15.17.16:57038] exception occurred during first invocation
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
at org.jboss.remoting.transport.socket.ServerThread.createServerSocketWrapper(ServerThread.java:937)
at org.jboss.remoting.transport.socket.ServerThread.dorun(ServerThread.java:515)
at org.jboss.remoting.transport.socket.ServerThread.run(ServerThread.java:234)
Caused by: java.net.SocketException: Connection reset
at java.net.SocketInputStream.read(SocketInputStream.java:168)
at java.io.BufferedInputStream.fill(BufferedInputStream.java:218)
at java.io.BufferedInputStream.read1(BufferedInputStream.java:258)
at java.io.BufferedInputStream.read(BufferedInputStream.java:317)
at java.io.ObjectInputStream$PeekInputStream.read(ObjectInputStream.java:2266)
at java.io.ObjectInputStream$PeekInputStream.readFully(ObjectInputStream.java:2279)
at java.io.ObjectInputStream$BlockDataInputStream.readShort(ObjectInputStream.java:2750)
at java.io.ObjectInputStream.readStreamHeader(ObjectInputStream.java:780)
at java.io.ObjectInputStream.<init>(ObjectInputStream.java:280)
at org.jboss.remoting.loading.ObjectInputStreamWithClassLoader.<init>(ObjectInputStreamWithClassLoader.java:100)
at org.jboss.remoting.serialization.impl.java.JavaSerializationManager.createInput(JavaSerializationManager.java:54)
at org.jboss.remoting.marshal.serializable.SerializableUnMarshaller.getMarshallingStream(SerializableUnMarshaller.java:75)
at org.jboss.remoting.marshal.serializable.SerializableUnMarshaller.getMarshallingStream(SerializableUnMarshaller.java:58)
at org.jboss.remoting.transport.socket.ClientSocketWrapper.createInputStream(ClientSocketWrapper.java:199)
at org.jboss.remoting.transport.socket.ClientSocketWrapper.createStreams(ClientSocketWrapper.java:182)
at org.jboss.remoting.transport.socket.ClientSocketWrapper.<init>(ClientSocketWrapper.java:67)
at org.jboss.remoting.transport.socket.ServerSocketWrapper.<init>(ServerSocketWrapper.java:46)
... 7 more
2012-10-16 10:27:14,875 ERROR [org.jboss.invocation.pooled.server.ServerThread] (PooledInvokerThread-10.15.17.16-2) Failed to initialize
java.io.EOFException
at java.io.ObjectInputStream$PeekInputStream.readFully(ObjectInputStream.java:2281)
at java.io.ObjectInputStream$BlockDataInputStream.readShort(ObjectInputStream.java:2750)
at java.io.ObjectInputStream.readStreamHeader(ObjectInputStream.java:780)
at java.io.ObjectInputStream.<init>(ObjectInputStream.java:280)
at org.jboss.invocation.pooled.interfaces.OptimizedObjectInputStream.<init>(OptimizedObjectInputStream.java:147)
at org.jboss.invocation.pooled.server.ServerThread.dorun(ServerThread.java:265)
at org.jboss.invocation.pooled.server.ServerThread.run(ServerThread.java:156)
2012-10-16 10:27:18,609 ERROR [org.jboss.invocation.pooled.server.ServerThread] (PooledInvokerThread-3.151.17.162-4) Failed to initialize
java.io.EOFException
Any help is appreciable.
Thanks
RavZ
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/772440#772440]
Start a new discussion in JBoss Remoting at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
13 years, 5 months
[jBPM] - Using TaskService directly
by tlucz
tlucz [https://community.jboss.org/people/tlucz] created the discussion
"Using TaskService directly"
To view the discussion, visit: https://community.jboss.org/message/772297#772297
--------------------------------------------------------------
Hi,
I've started using jBPM 5.3.0.Final. I want to use HumanTasks embedded in my application. So basing on thread:
https://community.jboss.org/thread/162963?start=15&tstart=1 https://community.jboss.org/thread/162963?start=15&tstart=1
I created my own LocalHumanTaskHandler where in constructor TaskServiceSession is created:
TaskService taskService = new TaskService(emf, SystemEventListenerFactory.getSystemEventListener());
taskSession = taskService.createSession();
this.session=session;
ExecuteWorkItem method is taken from GenericCommandBasedWSHumanTaskHandler. The only change is to invoke:
taskSession.addTask(task, content);
instead of:
client.addTask(task, content, new TaskAddedHandler(workItem.getId()));
I can work with HT in a way e.g.:
List<TaskSummary> taskList = wrapper.taskServiceSession.getTasksAssignedAsPotentialOwner("john", "en-UK");
wrapper.taskServiceSession.taskOperation(Operation.Complete, lastTask.getId(), "john", null, null, null);
It almost works correctly, task data is stored in DB but process instance is not updated after complete task. The problem is how can I register TaskEventHandlers. In GenericCommandBasedWSHumanTaskHandler there is a method:
private void registerTaskEventHandlers() {
TaskEventKey key = new TaskEventKey(TaskCompletedEvent.class, -1);
TaskCompletedHandler eventResponseHandler = new TaskCompletedHandler();
client.registerForEvent(key, false, eventResponseHandler);
key = new TaskEventKey(TaskFailedEvent.class, -1);
client.registerForEvent(key, false, eventResponseHandler);
key = new TaskEventKey(TaskSkippedEvent.class, -1);
client.registerForEvent(key, false, eventResponseHandler);
}
but I have no client so I have no possibility to register these events. Also TaskServiceSession object has no method to register ResponseHandlers. How can I resolve it?
I also read thread
https://community.jboss.org/thread/204619?tstart=270 https://community.jboss.org/thread/204619?tstart=270
but in this case I have no idea how to create TaskService which I need to pass to LocalHTWorkItemHandler.
Thanks in advance for any help.
kr,
Tadeusz
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/772297#772297]
Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
13 years, 5 months
[jBPM] - BPMN2-Modeler Script task doesn't show java/mvel dropdowns
by rikmorgan
rikmorgan [https://community.jboss.org/people/rikmorgan] created the discussion
"BPMN2-Modeler Script task doesn't show java/mvel dropdowns"
To view the discussion, visit: https://community.jboss.org/message/772412#772412
--------------------------------------------------------------
Updated both an Eclipse Indigo and Eclipse Juno install using the BPMN site http://download.eclipse.org/bpmn2-modeler/site/ http://download.eclipse.org/bpmn2-modeler/site/ and all appeared to work correctly.
However, when I insert a Script task into a bpmn process diagram, then open the properties dialog, the script format dropdown doesn't exist, instead I see a label that says "Script Format" followed by "text/xml". My coworker gets a dropdown menu there that offers Java and MVEL. So how come I don't get those choices?
Also, the place where there should be a drop down isn't even outlined to make it appear like a data entry text box, it just looks like the words are part of the label, but I can click there and change the value. Same goes for the script box beneath it. I just see a label that says "Script" and I have to know that if I click to the right of it somewhere, I can start typing. There's no visual clue.
Anyone else run into this and know what's causing it? I assume there's an incompatibility with other Indigo/Juno components like EMF or GEF, but no amount of updating those things fixes the problem.
thanks.
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/772412#772412]
Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
13 years, 5 months
[jBPM] - How to get variable from WorkItemHandler class ??
by rickylkl
rickylkl [https://community.jboss.org/people/rickylkl] created the discussion
"How to get variable from WorkItemHandler class ??"
To view the discussion, visit: https://community.jboss.org/message/772279#772279
--------------------------------------------------------------
Hi forum,
Anyone who can help or point me how can i *GET THE VARIABLE THAT I INSERT IN SESSION* or *STARTPROCESS(processId, VARIABLE) ?*
*
*
I got c controller with this method :
private void testDrlJbpm(Channel channel){
Map<String,Object> map = new HashMap<String,Object>();
map.put("channel", channel);
map.put("x",channel.getName());
ksession.insert(channel); // if there is a rule flow in workflow, need to insert obj to run rule
ksession.getWorkItemManager().registerWorkItemHandler("ShowRegPage", new RegistrationHandler());
ksession.getWorkItemManager().registerWorkItemHandler("ShowSubPage", new SubscribeHandler());
ksession.getWorkItemManager().registerWorkItemHandler("ShowPrintPage", new PrintPageHandler());
ProcessInstance processInstance = (ProcessInstance) ksession.startProcess("testflow-web", map); // passing map inside the process, and use kcontext.getvariable() to get obj on if else case
System.out.println(processInstance.getEventTypes());
System.out.println(processInstance.getId());
System.out.println(processInstance.getProcessId());
ksession.fireAllRules(); // fire all rules if there is a rule flow
}
AND i did this method in workItemHandler
@Override
public void executeWorkItem(WorkItem workItem, WorkItemManager manager) {
System.out.println(workItem.getProcessInstanceId());
System.out.println(workItem.getState());
System.out.println(workItem.getId());
System.out.println(workItem.getName());
System.out.println("========= Executing registration =============" + workItem);
setRegistration();
Map<String,Object> resultMap = new HashMap<String,Object>();
resultMap.put("reg", registration);
manager.completeWorkItem(workItem.getId(), resultMap);
}
At last,
i have attache the jpg of flow.
I always get nothing ...
I would like to get the varaible and do variable passing between the workItemHandler and from rules, is there any way i can follow ?? Please Thanks
Thanks a lot to all.
Please Help :( !!
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/772279#772279]
Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
13 years, 5 months