[jBPM] - How to use task and state in jbpm 4.4
by Ayusman Dikshit
Ayusman Dikshit [http://community.jboss.org/people/ayusman_dikshit] created the discussion
"How to use task and state in jbpm 4.4"
To view the discussion, visit: http://community.jboss.org/message/604377#604377
--------------------------------------------------------------
Hi All,I am trying to use jbpm 4.4 for a workflow solution where, the UI is provided by a web application.Here I am trying to assign a certain task to a user and expect him/her to perform certain action on it...
like "Approve", "Reject" and "Approve with remarks"..
All of these actions need to have separate processing.
What I am not able to understand is,
should I use a task element :
OR
a state (wait state) element:
Idea is, I will let the user click on the "Approve", "Reject" and "Approve with remarks" buttons in an jsp page and I want to convey this to the process engine, through jbpm APIs. When I use a task element, how can I signal the execution to move forward and take a path like, "Approve" or "Reject"
Need some help/pointers on this.
TIA
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/604377#604377]
Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
13 years, 1 month
[JNDI and Naming] - QueueConnectionFactory problem in JBoss-5.1.0.GA
by hmusavi
hmusavi [http://community.jboss.org/people/hmusavi] created the discussion
"QueueConnectionFactory problem in JBoss-5.1.0.GA"
To view the discussion, visit: http://community.jboss.org/message/604601#604601
--------------------------------------------------------------
I am upgrading from JBoss-4.2.3.GA to JBoss-5.1.0.GA. I have the following piece of code that worked fine in JBoss 4 but is giving me QueueConnectionFactory not bound exception in JBoss 5.
@Resource(mappedName="QueueConnectionFactory")
private QueueConnectionFactory queueConnectionFactory;
I noticed that in JNDI tree for JBoss 5 there is no longer a "QueueConnectionFactory" service in the Global JNDI namesapce but there is still a "ConnectionFactory". I tried changing my code to use "ConnectionFactory" instead and that removed the exception but some functionality is not working any more.
I see this in the Java namespace though:
Other components with java:comp namespace
java:comp namespace of the component jboss.j2ee:ear=EO.ear,jar=tds.jar,name=ServerControllerBean,service=EJB3 :
+- env (class: org.jnp.interfaces.NamingContext)
| +- queueConnectionFactory[link -> QueueConnectionFactory] (class: javax.naming.LinkRef)
Any idea would be appreciated. I have tried many things and nothing has been fully working for me.
Thanks
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/604601#604601]
Start a new discussion in JNDI and Naming at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
13 years, 1 month
[JNDI and Naming] - Re: Password encryption
by sansate
sansate [http://community.jboss.org/people/sansate] created the discussion
"Re: Password encryption"
To view the discussion, visit: http://community.jboss.org/message/604554#604554
--------------------------------------------------------------
Hi, I am trying to encrypt the password in windows for my Jboss 4.2.3.GA using the folloing command and getting the error message saying that ClassNotFoundException.
Command:
java -cp "lib/jboss-jmx.jar;lib/jboss-common.jar;server/ default/lib/jboss-jca.jar;server/default/lib/jbosssx.jar" org.jboss.resource.security.SecureIdentityLoginModule password
Error:
Exception in thread "main" java.lang.NoClassDefFoundError: org/jboss/resource/se
curity/SecureIdentityLoginModule
Caused by: java.lang.ClassNotFoundException: org.jboss.resource.security.SecureI
dentityLoginModule
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
Could not find the main class: org.jboss.resource.security.SecureIdentityLoginMo
dule. Program will exit.
Can somebody pls help me out?
Thanks
San
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/604554#604554]
Start a new discussion in JNDI and Naming at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
13 years, 1 month
[jBPM] - jBPM 5.0.1 Configuring persistence
by Jim Hill
Jim Hill [http://community.jboss.org/people/jdh] created the discussion
"jBPM 5.0.1 Configuring persistence"
To view the discussion, visit: http://community.jboss.org/message/604549#604549
--------------------------------------------------------------
I am converting my jBPM 4.4 code over to use 5.0.1 and am trying to configure persistence. When I run my unit tests to see if everything is working as it did in 4.4 I am getting this error:
No Persistence provider for EntityManager named org.jbpm.persistence.jpa
See the end for the full stack trace. I have been following the user guide and configured a datasource.xml file and set up the EntityManagerFactory and used it in the creation of the KnowledgeSession. What am I still missing? Any help would be appreciated.
Jim
EntityManagerFactory emf =
Persistence.createEntityManagerFactory( "org.jbpm.persistence.jpa" );
Environment env = KnowledgeBaseFactory.newEnvironment();
env.set( EnvironmentName.ENTITY_MANAGER_FACTORY, emf );
Collection<StatefulKnowledgeSession> ksConfigs =
kbase.getStatefulKnowledgeSessions();
if (!ksConfigs.isEmpty()) {
KnowledgeSessionConfiguration[] sessionArray =
(KnowledgeSessionConfiguration[])ksConfigs.toArray();
if (ksConfigs.size() == 1) {
sessionConfig = sessionArray[0];
}
if (ksConfigs.size() > 1) {
throw new Exception("More than one KnowledgeSessionConfiguration" +
" object exists. We were only expecting one");
}
}
if (ksession == null) {
ksession = kbase.newStatefulKnowledgeSession(sessionConfig, env );
}
Stack Trace:
"Exception in constructor: testStartProcess (java.lang.ExceptionInInitializerError
at xxxxxxxxxxxxxxxxxxxxxxxxxx.SelectiveConsumerTest.<init>(Unknown Source)
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 junit.framework.TestSuite.createTest(TestSuite.java:61)
at junit.framework.TestSuite.addTestMethod(TestSuite.java:283)
at junit.framework.TestSuite.<init>(TestSuite.java:146)
at org.junit.internal.runners.JUnit38ClassRunner.<init>(JUnit38ClassRunner.java:67)
at org.junit.internal.builders.JUnit3Builder.runnerForClass(JUnit3Builder.java:14)
at org.junit.runners.model.RunnerBuilder.safeRunnerForClass(RunnerBuilder.java:57)
at org.junit.internal.builders.AllDefaultPossibilitiesBuilder.runnerForClass(AllDefaultPossibilitiesBuilder.java:29)
at org.junit.runners.model.RunnerBuilder.safeRunnerForClass(RunnerBuilder.java:57)
at org.junit.internal.requests.ClassRequest.getRunner(ClassRequest.java:24)
at junit.framework.JUnit4TestAdapter.<init>(JUnit4TestAdapter.java:31)
at junit.framework.JUnit4TestAdapter.<init>(JUnit4TestAdapter.java:24)
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.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRunner.java:386)
at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.launch(JUnitTestRunner.java:911)
at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java:768)
Caused by: javax.persistence.PersistenceException: No Persistence provider for EntityManager named org.jbpm.persistence.jpa
at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:54)
at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:32)
at xxxxxxxxxxxxxxxxxxxxxxxxxx.SelectiveConsumer<init>(Unknown Source)
at xxxxxxxxxxxxxxxxxxxxxxxxxx.SelectiveConsumer<clinit>(Unknown Source)
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/604549#604549]
Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
13 years, 1 month
[JBoss Web Services] - Problem using JAR files in Web Service
by ccmagrane
ccmagrane [http://community.jboss.org/people/ccmagrane] created the discussion
"Problem using JAR files in Web Service"
To view the discussion, visit: http://community.jboss.org/message/604476#604476
--------------------------------------------------------------
I'm using JBOSS 5.1 and I am developing a Web Service that uses the BOE SDK JAR files. After I add the specific jar files to my project I attempt to deploy the Web Service and it gives me this specific error:
Caused by: com.sun.xml.bind.v2.runtime.IllegalAnnotationsException: 3 counts of IllegalAnnotationExceptions
com.crystaldecisions.sdk.framework.IEnterpriseSession is an interface, and JAXB can't handle interfaces.
this problem is related to the following location:
at com.crystaldecisions.sdk.framework.IEnterpriseSession
at private com.crystaldecisions.sdk.framework.IEnterpriseSession login.jaxws.LogInResponse._return
at login.jaxws.LogInResponse
com.crystaldecisions.sdk.framework.IEnterpriseSession does not have a no-arg default constructor.
this problem is related to the following location:
at com.crystaldecisions.sdk.framework.IEnterpriseSession
at private com.crystaldecisions.sdk.framework.IEnterpriseSession login.jaxws.LogInResponse._return
at login.jaxws.LogInResponse
java.util.Locale does not have a no-arg default constructor.
this problem is related to the following location:
at java.util.Locale
at public abstract java.util.Locale com.crystaldecisions.sdk.framework.IEnterpriseSession.getLocale() throws com.crystaldecisions.sdk.exception.SDKException
at com.crystaldecisions.sdk.framework.IEnterpriseSession
at private com.crystaldecisions.sdk.framework.IEnterpriseSession login.jaxws.LogInResponse._return
at login.jaxws.LogInResponse
at com.sun.xml.bind.v2.runtime.IllegalAnnotationsException$Builder.check(IllegalAnnotationsException.java:102)
at com.sun.xml.bind.v2.runtime.JAXBContextImpl.getTypeInfoSet(JAXBContextImpl.java:472)
at com.sun.xml.bind.v2.runtime.JAXBContextImpl.<init>(JAXBContextImpl.java:302)
at com.sun.xml.bind.v2.runtime.JAXBContextImpl$JAXBContextBuilder.build(JAXBContextImpl.java:1136)
at com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:154)
at com.sun.xml.bind.api.JAXBRIContext.newInstance(JAXBRIContext.java:106)
at org.jboss.ws.core.jaxws.CustomizableJAXBContextFactory.createContext(CustomizableJAXBContextFactory.java:127)
... 34 more
These errors are kind of scary because it looks like I can't use the classes in these jar files, but something tells me there has to be some way to get around it. I'm guessing that I might not have annotated my code the specific way it needs to be.
here is my code:
@WebService(name = "reportengine.login")
@SOAPBinding(style = SOAPBinding.Style.DOCUMENT,
use = SOAPBinding.Use.LITERAL,
parameterStyle = SOAPBinding.ParameterStyle.WRAPPED)
public class Login {
public IEnterpriseSession session;
public IInfoStore iStore;
public Login(){}
@WebMethod(operationName = "Login")
public IEnterpriseSession LogIn(@WebParam(name = "UserName") String u,
@WebParam(name = "Password") String pwd,
@WebParam(name = "CMS") String c,
@WebParam(name = "Authorization") String auth){
.....
}
}
Any help would be greatly appreciated.
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/604476#604476]
Start a new discussion in JBoss Web Services at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
13 years, 1 month