[jBPM] - How to get ProcessIntance in a Different Thread
by Manikanta PT
Manikanta PT [https://community.jboss.org/people/mani.pt21] created the discussion
"How to get ProcessIntance in a Different Thread"
To view the discussion, visit: https://community.jboss.org/message/721904#721904
--------------------------------------------------------------
Hi,
I am new to JBPM I have following issues please help me
Once we start a ProcessInstance by
ProcessInstance processInstance = ksession.startProcess("com.sample.test");
I want to get the same process instance in a different thread to do something like this
ksession.signalEvent("Yes", "YesValue",processInstanceId);
1) How can I achieve that ?
a) I tried ksession.startProcessInstance(processInstance.getId());
which is returning different "processInstance".
b) I tried Process process = ksession.getKnowledgeBase().getProcess("com.sample.test");
but this is not giving ProcessInstance
2) What is the relation between Process and ProcessInstance.
3) I tried to persist in in postgres with com.sample.ProcessMain .
loadStatefulKnowledgeSession needs a Transaction Manager which class needs to be set here ?
4) Also for Standalone run I need InitalContext to bind Datasource how can I achieve that ?
5) How to use inbox and how i put my workflow items in inbox
6) Is there any other API to get items which are in workflow
7) Also need location of JavaDocs for org.jbpm
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/721904#721904]
Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
14 years, 1 month
[IronJacamar] - Problems After Upgrade IronJacamar (1.0.3.Final to 1.0.8.Final) on Jboss AS 7.0.2
by Marcos Portela
Marcos Portela [https://community.jboss.org/people/marcosnasp] created the discussion
"Problems After Upgrade IronJacamar (1.0.3.Final to 1.0.8.Final) on Jboss AS 7.0.2"
To view the discussion, visit: https://community.jboss.org/message/721825#721825
--------------------------------------------------------------
*I´ve got a problem after upgrade of ironjacamar (1.0.3.Final to 1.0.8.Final) on Jboss AS 7.0.2.Final. After installation process and*
*start jboss AS 7.0.2.Final, I was get the exception below:*
10:48:05,890 WARN [org.jboss.modules] Failed to define class org.jboss.jca.common.CommonLogger_$logger in Module "org.jboss.ironjacamar.impl:main" from local module loader @12a3793 (roots: D:\desenvolvimento\jboss-as-web-7.0.2.Final\modules): java.lang.LinkageError: Failed to link org/jboss/jca/common/CommonLogger_$logger (Module "org.jboss.ironjacamar.impl:main" from local module loader @12a3793 (roots: D:\desenvolvimento\jboss-as-web-7.0.2.Final\modules))
at org.jboss.modules.ModuleClassLoader.defineClass(ModuleClassLoader.java:401) [jboss-modules.jar:1.0.2.GA]
at org.jboss.modules.ModuleClassLoader.loadClassLocal(ModuleClassLoader.java:261) [jboss-modules.jar:1.0.2.GA]
at org.jboss.modules.ModuleClassLoader$1.loadClassLocal(ModuleClassLoader.java:76) [jboss-modules.jar:1.0.2.GA]
at org.jboss.modules.Module.loadModuleClass(Module.java:590) [jboss-modules.jar:1.0.2.GA]
at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:183) [jboss-modules.jar:1.0.2.GA]
at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:361) [jboss-modules.jar:1.0.2.GA]
at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:333) [jboss-modules.jar:1.0.2.GA]
at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:310) [jboss-modules.jar:1.0.2.GA]
at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:103) [jboss-modules.jar:1.0.2.GA]
at java.lang.Class.forName0(Native Method) [:1.6.0_31]
at java.lang.Class.forName(Class.java:247) [:1.6.0_31]
at org.jboss.logging.Logger.getMessageLogger(Logger.java:2249) [jboss-logging-3.0.1.GA.jar:3.0.1.GA]
at org.jboss.logging.Logger.getMessageLogger(Logger.java:2215) [jboss-logging-3.0.1.GA.jar:3.0.1.GA]
at org.jboss.jca.common.metadata.AbstractParser.<clinit>(AbstractParser.java:67)
at org.jboss.as.connector.subsystems.datasources.DataSourcesExtension$NewDataSourceSubsystemParser.readElement(DataSourcesExtension.java:699)
at org.jboss.as.connector.subsystems.datasources.DataSourcesExtension$NewDataSourceSubsystemParser.readElement(DataSourcesExtension.java:277)
at org.jboss.staxmapper.XMLMapperImpl.processNested(XMLMapperImpl.java:100) [staxmapper-1.0.0.Final.jar:1.0.0.Final]
at org.jboss.staxmapper.XMLExtendedStreamReaderImpl.handleAny(XMLExtendedStreamReaderImpl.java:69) [staxmapper-1.0.0.Final.jar:1.0.0.Final]
at org.jboss.as.controller.parsing.StandaloneXml.parseServerProfile(StandaloneXml.java:311) [jboss-as-controller-7.0.2.Final.jar:7.0.2.Final]
at org.jboss.as.controller.parsing.StandaloneXml.readServerElement(StandaloneXml.java:163) [jboss-as-controller-7.0.2.Final.jar:7.0.2.Final]
at org.jboss.as.controller.parsing.StandaloneXml.readElement(StandaloneXml.java:91) [jboss-as-controller-7.0.2.Final.jar:7.0.2.Final]
at org.jboss.as.controller.parsing.StandaloneXml.readElement(StandaloneXml.java:79) [jboss-as-controller-7.0.2.Final.jar:7.0.2.Final]
at org.jboss.staxmapper.XMLMapperImpl.processNested(XMLMapperImpl.java:100) [staxmapper-1.0.0.Final.jar:1.0.0.Final]
at org.jboss.staxmapper.XMLMapperImpl.parseDocument(XMLMapperImpl.java:59) [staxmapper-1.0.0.Final.jar:1.0.0.Final]
at org.jboss.as.controller.persistence.XmlConfigurationPersister.load(XmlConfigurationPersister.java:107) [jboss-as-controller-7.0.2.Final.jar:7.0.2.Final]
at org.jboss.as.controller.AbstractControllerService.boot(AbstractControllerService.java:104) [jboss-as-controller-7.0.2.Final.jar:7.0.2.Final]
at org.jboss.as.server.ServerService.boot(ServerService.java:195) [jboss-as-server-7.0.2.Final.jar:7.0.2.Final]
at org.jboss.as.controller.AbstractControllerService$1.run(AbstractControllerService.java:83) [jboss-as-controller-7.0.2.Final.jar:7.0.2.Final]
at java.lang.Thread.run(Thread.java:662) [:1.6.0_31]
Caused by: java.lang.NoClassDefFoundError: org/jboss/logging/DelegatingBasicLogger
at java.lang.ClassLoader.defineClass1(Native Method) [:1.6.0_31]
at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631) [:1.6.0_31]
at java.lang.ClassLoader.defineClass(ClassLoader.java:615) [:1.6.0_31]
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141) [:1.6.0_31]
at org.jboss.modules.ModuleClassLoader.defineClass(ModuleClassLoader.java:397) [jboss-modules.jar:1.0.2.GA]
... 28 more
Caused by: java.lang.ClassNotFoundException: org.jboss.logging.DelegatingBasicLogger from [Module "org.jboss.ironjacamar.impl:main" from local module loader @12a3793 (roots: D:\desenvolvimento\jboss-as-web-7.0.2.Final\modules)]
at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:191) [jboss-modules.jar:1.0.2.GA]
at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:361) [jboss-modules.jar:1.0.2.GA]
at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:333) [jboss-modules.jar:1.0.2.GA]
at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:333) [jboss-modules.jar:1.0.2.GA]
at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:310) [jboss-modules.jar:1.0.2.GA]
at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:103) [jboss-modules.jar:1.0.2.GA]
... 33 more
*For test purpose, I was execute the upgrade on Jboss AS 7.1.0.Final. And was very well successful. (1.0.7.Final to 1.0.8.Final).*
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/721825#721825]
Start a new discussion in IronJacamar at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
14 years, 1 month
[JBoss Web Services] - How to secure WSDL file access
by Sudhir Kumar Jha
Sudhir Kumar Jha [https://community.jboss.org/people/sudhirjha] created the discussion
"How to secure WSDL file access"
To view the discussion, visit: https://community.jboss.org/message/721517#721517
--------------------------------------------------------------
Hello Everybody,
I don't know how to secure access of my published WSDL file from other than intended recipient.
I tried some thing like this in web.xml file:
<security-constraint>
<display-name>Sudhir Access</display-name>
<web-resource-collection>
<web-resource-name><Java file which had web method></web-resource-name>
<description>path of wsdl</description>
<url-pattern>/*</url-pattern> <!--- do i need to give physically complete path(through which we access the WSDL)-->
<http-method>POST</http-method>
<http-method>TRACE</http-method>
<http-method>DELETE</http-method>
</web-resource-collection>
<auth-constraint>
<description/>
<role-name>sudhir</role-name>
</auth-constraint>
<user-data-constraint>
<description/>
<transport-guarantee>CONFIDENTIAL</transport-guarantee>
</user-data-constraint>
</security-constraint>
<login-config>
<auth-method>BASIC</auth-method>
<realm-name>sudhi</realm-name>
</login-config>
<security-role>
<description>Admin</description>
<role-name>sudhir</role-name>
</security-role>
</web-app>
I had developed web service using Jboss developer studio and jboss server
Please share your ideas to do the same.
Thanks & Regards,
Sudhir Jha
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/721517#721517]
Start a new discussion in JBoss Web Services at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
14 years, 1 month
[JBoss Tools] - Non-default ports binding
by Stevo Slavic
Stevo Slavic [https://community.jboss.org/people/sslavic] created the discussion
"Non-default ports binding"
To view the discussion, visit: https://community.jboss.org/message/721778#721778
--------------------------------------------------------------
Hello JBoss Tools community,
In JBoss 6.1 bindings-jboss-beans.xml I have configured ServiceBindingManagementObject to use Ports01Bindings so that both JBoss 6.0 and JBoss 6.1 can run in parallel. But when deploying apps on JBoss 6.1, they start but JBoss Tools thinks that server didn't start because it's using default port to check.
Unchecking "Automatically detect" and configuring manually the ports value works, but isn't as elegant as if JBoss Tools was able to use same configuration JBoss AS was given.
Is there a more elegant way to configure JBoss Tools in Eclipse to use same settings as JBoss AS?
Did anyone manage to define flexible XPath expression for auto-detection?
Can something be done in JBoss Tools to improve this?
I'm using latest, M5 JBoss Tools and Eclipse Indigo SR2.
Kind regards,
Stevo.
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/721778#721778]
Start a new discussion in JBoss Tools at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
14 years, 1 month
[jBPM] - Error stack while completing a task
by roxy1987
roxy1987 [https://community.jboss.org/people/roxy1987] created the discussion
"Error stack while completing a task"
To view the discussion, visit: https://community.jboss.org/message/721711#721711
--------------------------------------------------------------
Hi,
I get this error sometimes. And then it disappears by itself. Can anyone help me with this please. Below is the trace.
org.jbpm.api.JbpmException: execution is not in a activity or in a transition
org.jbpm.pvm.internal.model.ExecutionImpl.signal(ExecutionImpl.java:436)
org.jbpm.pvm.internal.model.ExecutionImpl.signal(ExecutionImpl.java:416)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
java.lang.reflect.Method.invoke(Unknown Source)
org.hibernate.proxy.pojo.javassist.JavassistLazyInitializer.invoke(JavassistLazyInitializer.java:197)
org.jbpm.pvm.internal.model.ExecutionImpl_$$_javassist_5.signal(ExecutionImpl_$$_javassist_5.java)
org.jbpm.pvm.internal.task.TaskImpl.complete(TaskImpl.java:201)
org.jbpm.pvm.internal.task.TaskImpl.complete(TaskImpl.java:188)
org.jbpm.pvm.internal.cmd.CompleteTaskCmd.execute(CompleteTaskCmd.java:67)
org.jbpm.pvm.internal.cmd.CompleteTaskCmd.execute(CompleteTaskCmd.java:32)
org.jbpm.pvm.internal.svc.DefaultCommandService.execute(DefaultCommandService.java:42)
org.jbpm.pvm.internal.tx.StandardTransactionInterceptor.execute(StandardTransactionInterceptor.java:50)
org.jbpm.pvm.internal.svc.EnvironmentInterceptor.executeInNewEnvironment(EnvironmentInterceptor.java:53)
org.jbpm.pvm.internal.svc.EnvironmentInterceptor.execute(EnvironmentInterceptor.java:40)
org.jbpm.pvm.internal.svc.RetryInterceptor.execute(RetryInterceptor.java:56)
org.jbpm.pvm.internal.svc.SkipInterceptor.execute(SkipInterceptor.java:43)
org.jbpm.pvm.internal.svc.TaskServiceImpl.completeTask(TaskServiceImpl.java:88)
model.AllMethods.completeTask(AllMethods.java:106)
controller.MainServlet.doGet(MainServlet.java:148)
javax.servlet.http.HttpServlet.service(HttpServlet.java:627)
javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
Regards.
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/721711#721711]
Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
14 years, 1 month