[jboss-user] [JBoss jBPM] - jbpm and EJB 3

2007-10-17 Thread galvino
hi everybody, 
i have a question :
Is i tpossible to use jbpm with EJB 3 ?

if it is yes, have you got a tutorial that can explain me ?

thanks !

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4095913#4095913

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4095913
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Re: jbpm and EJB 3

2007-10-17 Thread galvino
ahhh ok !!

but, i look ej3 and isn't there a conflict beetween Jbpmcontext(JBPM) and 
JPA(EJB3) for the data persistence ?

so, i want to do an EJB application with jbpm API, but i don't know how can i 
do the gathering of data from the database or the persistence !!

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4095971#4095971

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4095971
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Re: problem to enter into jbpm-console application

2007-10-15 Thread galvino
ok, i should give more information, sorry, 
so i am using :
jbpm-jpdl3.2.2
oracle9i

i configure oracle :

i changed : login-config
 standardjaws

in login-config.xml, i added this code :

  | application-policy name = OracleDbRealm?
  |authentication
  |   login-module code = 
org.jboss.resource.security.ConfiguredIdentityLoginModule? flag = required
  |  module-option name = principaluser/module-option
  |  module-option name = userNameuser/module-option
  |  module-option name =passworduser/module-option
  |  module-option name = 
managedConnectionFactoryNamejboss.jca:service=LocalTxCM,name=DefaultDS/module-option
  |   /login-module
  |/authentication
  | /application-policy
  | 
  | 

into  standardjaws.xml i added 

  | type-mappingOracle9i/type-mapping
  | 

this is my data source:

  |  local-tx-datasource
  |   jndi-nameDefaultDS/jndi-name
  |   
connection-urljdbc:oracle:thin:@myserver:1521:myDBinstance/connection-url
  |   driver-classoracle.jdbc.driver.OracleDriver/driver-class
  |   user-nameuser/user-name
  |   passworduser/password
  |   min-pool-size1/min-pool-size
  |   max-pool-size5/max-pool-size
  |   idle-timeout-minutes0/idle-timeout-minutes
  |   track-statements/
  |   !-- 
  |   security-domainOracleDbRealm/security-domain
  |   --
  |   prepared-statement-cache-size32/prepared-statement-cache-size
  |   metadatatype-mappingOracle9i/type-mapping/metadata
  |  
exception-sorter-class-nameorg.jboss.resource.adapter.jdbc.vendor.OracleExceptionSorter/exception-sorter-class-name
  |/local-tx-datasource
  | 

in addition, 
i changed hibernate-cfg.xml:

  | !-- JDBC connection properties (begin) --
  | property 
name=hibernate.connection.driver_classoracle.jdbc.driver.OracleDriver/property
  | property 
name=hibernate.connection.urljdbc:oracle:thin:@myserver:1521:myDBinstance/property
  | property name=hibernate.connection.usernameuser/property
  | property name=hibernate.connection.passworduser/property
  | !-- JDBC connection properties (end) --
  | 
  | property 
name=hibernate.cache.provider_classorg.hibernate.cache.HashtableCacheProvider/property
  | 
  | 

and in jbpm-console.war\WEB-INF\classes, i created two file roles.properties 
and users.properties 

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4095121#4095121

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4095121
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Re: how the jbpm engine is embeded into jboss

2007-10-15 Thread galvino
ha  ok , 
 thank you, 

i don't understand workflow engine is only jbpm API, 


View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4095129#4095129

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4095129
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Re: problem to enter into jbpm-console application

2007-10-12 Thread galvino
i don't understand , 
when i start jboss server, i have no error, 
but i don't connect to jbpm-console.war 

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4094609#4094609

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4094609
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Re: how the jbpm engine is embeded into jboss

2007-10-12 Thread galvino
so, when we say jbpm engine, we talk about jbpm API ?!

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4094605#4094605

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4094605
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - how the jbpm engine is embeded into jboss

2007-10-12 Thread galvino
hi, 
i am trying to study jbpm and i don't understand very well, how the jbpm engine 
is included into jboss server ?
is it jbpm-console.war ?jbpm-jpdl.jar ?

what's the engine ? and where is it ?



View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4094452#4094452

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4094452
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - problem to enter into jbpm-console application

2007-10-11 Thread galvino
i use jbpm-jpdl 3.2.2 with oracle
when i tried to connect with jbpm-console application, i have this error:


  | Login failed. Invalid user name or password.
  | 

what that mean ??

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4094012#4094012

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4094012
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Re: problem to enter into jbpm-console application

2007-10-11 Thread galvino
error is:


  | 15:02:32,871 ERROR [UsersRolesLoginModule] Failed to load 
users/passwords/role f
  | iles
  | java.io.IOException: No properties file: users.properties or defaults: 
defaultUs
  | ers.properties found
  | at org.jboss.security.auth.spi.Util.loadProperties(Util.java:313)
  | at 
org.jboss.security.auth.spi.UsersRolesLoginModule.loadUsers(UsersRole
  | sLoginModule.java:186)
  | at 
org.jboss.security.auth.spi.UsersRolesLoginModule.createUsers(UsersRo
  | lesLoginModule.java:200)
  | at 
org.jboss.security.auth.spi.UsersRolesLoginModule.initialize(UsersRol
  | esLoginModule.java:127)
  | 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 
javax.security.auth.login.LoginContext.invoke(LoginContext.java:756)
  | at 
javax.security.auth.login.LoginContext.access$000(LoginContext.java:1
  | 86)
  | at 
javax.security.auth.login.LoginContext$4.run(LoginContext.java:683)
  | at java.security.AccessController.doPrivileged(Native Method)
  | at 
javax.security.auth.login.LoginContext.invokePriv(LoginContext.java:6
  | 80)
  | at 
javax.security.auth.login.LoginContext.login(LoginContext.java:579)
  | at 
org.jboss.security.plugins.JaasSecurityManager.defaultLogin(JaasSecur
  | ityManager.java:601)
  | at 
org.jboss.security.plugins.JaasSecurityManager.authenticate(JaasSecur
  | ityManager.java:535)
  | at 
org.jboss.security.plugins.JaasSecurityManager.isValid(JaasSecurityMa
  | nager.java:344)
  | at 
org.jboss.resource.connectionmanager.BaseConnectionManager2.getSubjec
  | t(BaseConnectionManager2.java:571)
  | at 
org.jboss.resource.connectionmanager.BaseConnectionManager2.allocateC
  | onnection(BaseConnectionManager2.java:378)
  | at 
org.jboss.resource.connectionmanager.BaseConnectionManager2$Connectio
  | nManagerProxy.allocateConnection(BaseConnectionManager2.java:812)
  | at 
org.jboss.resource.adapter.jdbc.WrapperDataSource.getConnection(Wrapp
  | erDataSource.java:88)
  | at 
org.jboss.security.auth.spi.DatabaseServerLoginModule.getUsersPasswor
  | d(DatabaseServerLoginModule.java:141)
  | at 
org.jboss.security.auth.spi.UsernamePasswordLoginModule.login(Usernam
  | ePasswordLoginModule.java:206)
  | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  | at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
  | java:39)
  | 

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4094061#4094061

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4094061
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Re: problem to enter into jbpm-console application

2007-10-11 Thread galvino
i have fix the problem, there aren't errors, 
but i can't enter into my application 
help, i don't know where is the issue 

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4094193#4094193

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4094193
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - change variables into a process

2007-10-09 Thread galvino
hi everybody,
i have never use jbpm 3.2 administration console.

i don't know how can i change process variables ?
there isn't box for these !

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4093012#4093012

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4093012
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - error jsf with jbpm-console 3.2

2007-10-09 Thread galvino
hi , 
can you explain me that mean this error please:

anonymous wrote : 
  | 
  | 15:25:19,741 ERROR [STDERR] 9 oct. 2007 15:25:19 
com.sun.faces.lifecycle.ELResol
  | verInitPhaseListener populateFacesELResolverForJsp
  | INFO: JSF1027: [null] The ELResolvers for JSF were not registered with the 
JSP c
  | ontainer.
  | 15:25:20,116 ERROR [STDERR] 9 oct. 2007 15:25:20 
com.sun.facelets.compiler.TagLi
  | braryConfig loadImplicit
  | INFO: Added Library from: 
jar:file:/C:/Documents%20and%20Settings/Clause-galvain
  | 
.Mbaky/Mes%20documents/projets/tÚlÚchargements/jbpm-jpdl-3.2.2/server/server/jbp
  | 
m/tmp/deploy/tmp15164jbpm-console-exp.war/WEB-INF/lib/jbpm4jsf-14.jar!/META-INF/
  | tfl-compat.taglib.xml
  | 15:25:20,132 ERROR [STDERR] 9 oct. 2007 15:25:20 
com.sun.facelets.compiler.TagLi
  | braryConfig loadImplicit
  | INFO: Added Library from: 
jar:file:/C:/Documents%20and%20Settings/Clause-galvain
  | 
.Mbaky/Mes%20documents/projets/tÚlÚchargements/jbpm-jpdl-3.2.2/server/server/jbp
  | 
m/tmp/deploy/tmp15164jbpm-console-exp.war/WEB-INF/lib/gravel-14.jar!/META-INF/gr
  | avel-simple.taglib.xml
  | 15:25:20,179 ERROR [STDERR] 9 oct. 2007 15:25:20 
com.sun.facelets.compiler.TagLi
  | braryConfig loadImplicit
  | INFO: Added Library from: 
jar:file:/C:/Documents%20and%20Settings/Clause-galvain
  | 
.Mbaky/Mes%20documents/projets/tÚlÚchargements/jbpm-jpdl-3.2.2/server/server/jbp
  | 
m/tmp/deploy/tmp15164jbpm-console-exp.war/WEB-INF/lib/jsf-facelets.jar!/META-INF
  | /jsf-html.taglib.xml
  | 15:25:20,210 ERROR [STDERR] 9 oct. 2007 15:25:20 
com.sun.facelets.compiler.TagLi
  | braryConfig loadImplicit
  | INFO: Added Library from: 
jar:file:/C:/Documents%20and%20Settings/Clause-galvain
  | 
.Mbaky/Mes%20documents/projets/tÚlÚchargements/jbpm-jpdl-3.2.2/server/server/jbp
  | 
m/tmp/deploy/tmp15164jbpm-console-exp.war/WEB-INF/lib/jbpm4jsf-14.jar!/META-INF/
  | identity.taglib.xml
  | 15:25:20,273 ERROR [STDERR] 9 oct. 2007 15:25:20 
com.sun.facelets.compiler.TagLi
  | braryConfig loadImplicit
  | INFO: Added Library from: 
jar:file:/C:/Documents%20and%20Settings/Clause-galvain
  | 
.Mbaky/Mes%20documents/projets/tÚlÚchargements/jbpm-jpdl-3.2.2/server/server/jbp
  | 
m/tmp/deploy/tmp15164jbpm-console-exp.war/WEB-INF/lib/jsf-facelets.jar!/META-INF
  | /jsf-core.taglib.xml
  | 15:25:20,304 ERROR [STDERR] 9 oct. 2007 15:25:20 
com.sun.facelets.compiler.TagLi
  | braryConfig loadImplicit
  | INFO: Added Library from: 
jar:file:/C:/Documents%20and%20Settings/Clause-galvain
  | 
.Mbaky/Mes%20documents/projets/tÚlÚchargements/jbpm-jpdl-3.2.2/server/server/jbp
  | 
m/tmp/deploy/tmp15164jbpm-console-exp.war/WEB-INF/lib/gravel-14.jar!/META-INF/gr
  | avel-action.taglib.xml
  | 15:25:20,320 ERROR [STDERR] 9 oct. 2007 15:25:20 
com.sun.facelets.compiler.TagLi
  | braryConfig loadImplicit
  | INFO: Added Library from: 
jar:file:/C:/Documents%20and%20Settings/Clause-galvain
  | 
.Mbaky/Mes%20documents/projets/tÚlÚchargements/jbpm-jpdl-3.2.2/server/server/jbp
  | 
m/tmp/deploy/tmp15164jbpm-console-exp.war/WEB-INF/lib/gravel-14.jar!/META-INF/gr
  | avel-nav.taglib.xml
  | 15:25:20,414 ERROR [STDERR] 9 oct. 2007 15:25:20 
com.sun.facelets.compiler.TagLi
  | braryConfig loadImplicit
  | INFO: Added Library from: 
jar:file:/C:/Documents%20and%20Settings/Clause-galvain
  | 
.Mbaky/Mes%20documents/projets/tÚlÚchargements/jbpm-jpdl-3.2.2/server/server/jbp
  | 
m/tmp/deploy/tmp15164jbpm-console-exp.war/WEB-INF/lib/gravel-14.jar!/META-INF/gr
  | avel-data.taglib.xml
  | 15:25:20,461 ERROR [STDERR] 9 oct. 2007 15:25:20 
com.sun.facelets.compiler.TagLi
  | braryConfig loadImplicit
  | INFO: Added Library from: 
jar:file:/C:/Documents%20and%20Settings/Clause-galvain
  | 
.Mbaky/Mes%20documents/projets/tÚlÚchargements/jbpm-jpdl-3.2.2/server/server/jbp
  | 
m/tmp/deploy/tmp15164jbpm-console-exp.war/WEB-INF/lib/jsf-facelets.jar!/META-INF
  | /jsf-ui.taglib.xml
  | 15:25:20,492 ERROR [STDERR] 9 oct. 2007 15:25:20 
com.sun.facelets.compiler.TagLi
  | braryConfig loadImplicit
  | INFO: Added Library from: 
jar:file:/C:/Documents%20and%20Settings/Clause-galvain
  | 
.Mbaky/Mes%20documents/projets/tÚlÚchargements/jbpm-jpdl-3.2.2/server/server/jbp
  | 
m/tmp/deploy/tmp15164jbpm-console-exp.war/WEB-INF/lib/jsf-facelets.jar!/META-INF
  | /jstl-core.taglib.xml
  | 15:25:20,555 ERROR [STDERR] 9 oct. 2007 15:25:20 
com.sun.facelets.compiler.TagLi
  | braryConfig loadImplicit
  | INFO: Added Library from: 
jar:file:/C:/Documents%20and%20Settings/Clause-galvain
  | 
.Mbaky/Mes%20documents/projets/tÚlÚchargements/jbpm-jpdl-3.2.2/server/server/jbp
  | 
m/tmp/deploy/tmp15164jbpm-console-exp.war/WEB-INF/lib/jbpm4jsf-14.jar!/META-INF/
  | core.taglib.xml
  | 15:25:20,570 ERROR [STDERR] 9 oct. 2007 15:25:20 
com.sun.facelets.compiler.TagLi
  | braryConfig loadImplicit
  | INFO: Added Library from: 
jar:file:/C:/Documents%20and%20Settings/Clause-galvain
  | 
.Mbaky/Mes%20documents/projets/tÚlÚchargements/jbpm-jpdl-3.2.2/server/server/jbp
  | 

[jboss-user] [JBoss jBPM] - get processinstance with task id

2007-09-20 Thread galvino
hi every body, 
i want to get a processinstance by using a task id, 
i am using:

  | public ProcessInstance getProcessInstance(String taskId){
  | jbpmContext=jbpmConfiguration.createJbpmContext();
  | try{
  |  taskInstance=this.getTaskinstanceByID(taskId);
  |  
processInstance=taskInstance.getTaskMgmtInstance().getProcessInstance();   
  |  System.out.println(\n  id processinstance:   
+processInstance.getId());
  | //   
processInstance=graphSession.getProcessInstance(processInst.getId());
  | }catch(Exception exception){exception.printStackTrace();}
  | finally{
  | jbpmContext.close();
  | }
  | return processInstance;
  | }
  | 

where :


  | public TaskInstance getTaskinstanceByID(String taskInstanceId){
  | try{
  | jbpmContext=jbpmConfiguration.createJbpmContext();
  | taskInstance = 
jbpmContext.getTaskInstance(Long.parseLong(taskInstanceId));
  | }finally{
  | jbpmContext.close();
  | }
  | return taskInstance;
  | }
  | 

there is an error when it execute:

  | processInstance=taskInstance.getTaskMgmtInstance().getProcessInstance();
  | 

error is:


  | GRAVE: could not initialize proxy - the owning Session was closed
  | org.hibernate.LazyInitializationException: could not initialize proxy - the 
owning Session was closed
  | at 
org.hibernate.proxy.AbstractLazyInitializer.initialize(AbstractLazyInitializer.java:60)
  | at 
org.hibernate.proxy.AbstractLazyInitializer.getImplementation(AbstractLazyInitializer.java:111)
  | at 
org.hibernate.proxy.pojo.cglib.CGLIBLazyInitializer.invoke(CGLIBLazyInitializer.java:150)
  | at 
org.jbpm.taskmgmt.exe.TaskMgmtInstance$$EnhancerByCGLIB$$6d252382.getProcessInstance(generated)
  | at 
com.savoi.business.TaskBusiness.getProcessInstance(TaskBusiness.java:80)
  | at 
com.savoi.actions.ValidateAction.performAction(ValidateAction.java:48)
  | at com.savoi.actions.BaseAction.execute(BaseAction.java:17)
  | at 
org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)
  | at 
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
  | at 
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
  | at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
  | at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
  | at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
  | at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
  | at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
  | at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:210)
  | at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174)
  | at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
  | at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
  | at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
  | at 
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151)
  | at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:870)
  | at 
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
  | at 
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
  | at 
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
  | at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:685)
  | at java.lang.Thread.run(Unknown Source)
  | 
  | 



View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4086481#4086481

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4086481
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Re: do an action by using a button

2007-09-11 Thread galvino
hi everybody,
i want to do an action with a html:button,

i did this:

  | html:button value=Annuler onclick=annuler('bean:write name=taskbean 
property=taskinstanceId/');/html:button
  | 
  |   | 
  |   | but i have error on 'annuler' function .
  |   | can you help me 

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4083035#4083035

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4083035
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - do an action by using a button

2007-09-10 Thread galvino
hi everybody, 
I use struts and i want to do an action with 


  | html:button property=Annuler.doAnnuler/html:button
  | 

but it's not true, it does nothing!!

do you the real way to do this ?

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4082626#4082626

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4082626
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Re: is it possible to change identity file

2007-09-06 Thread galvino
you should find it here :


  | 
\jbpm-jpdl-3.2.1\examples\rulesAssignmentHandler\src\identity\identity.db.xml
  | 

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4081586#4081586

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4081586
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - is it possible to change identity file

2007-09-04 Thread galvino
Hi everybody, 
i want to change Identity component like this:


  | identity
  |   user name=sally email=[EMAIL PROTECTED] password=sally address=21 
jump street/
  |   user name=mary email=[EMAIL PROTECTED] password=mary address=21 
jump street/
  |   user name=tom email=[EMAIL PROTECTED] password=tom address=21 
jump street/
  |   user name=bill email=[EMAIL PROTECTED] password=bill address=21 
jump street/
  |   group name=reviewers type=hierarchy /
  |   group name=supervisors type=hierarchy /
  |   group name=clerks type=hierarchy /
  |   membership name=seniorsallyreviewers role=senior user=sally 
group=reviewers /
  |   membership name=juniortomreviewers role=junior user=tom 
group=reviewers /
  |   membership name=marysupervisors role=senior user=mary 
group=supervisors /
  |   membership name=billclerks role=senior user=bill group=clerks /
  | /identity
  | 

is it possible to add new attribute on user for example ??

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4080742#4080742

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4080742
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Re: process variables

2007-08-27 Thread galvino
I read this part of documentation but I would like to define them in xml 
document , 

i tried this:

  | variable name=a access=read mapped-name=x /
  | variable name=b access=read,write,required mapped-name=y /
  | variable name=c access=read,write /
  | 

but, nothing it's bad.

is it the only way on java application with Context ?

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4078314#4078314

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4078314
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Re: process variables

2007-08-27 Thread galvino
yeah, but it's only for task variables not for process variables

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4078390#4078390

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4078390
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - process variables

2007-08-23 Thread galvino
hi, want to define process variables, into my processdefinition.
have you got an tutorial or an example ?

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4077230#4077230

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4077230
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Re: how can i do research ?

2007-08-07 Thread galvino
i successfully did my research.
but aren't there any function on Jbpm API that can do this , without using sql.
like find.()  ???

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4071550#4071550

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4071550
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Re: how can i do research ?

2007-08-07 Thread galvino
sorry, but i have another problem.

i can't using swimlane to create taskinstance by using swimlane of an actor.
 have you got an idea ?

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4071652#4071652

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4071652
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - can't delete a taskinstance from my database

2007-08-07 Thread galvino
hi, i want to delete a task instance from my database (mysql).

this is my source code:

  | Connection connection=jbpmContext.getConnection();
  | Statement statement=connection.createStatement();
  | 
  | //  écriture de la requête de recherche
  | request=DELETE 
  | + FROM jbpm_taskinstance  
  | + WHERE id_='
  | + taskInstanceId + ';
  | 
  | //  execution de la requête
  | statement.execute(request);
  | 
  | //  fermeture de la connection à la base de données
  | statement.close();
  | connection.close(); 
  | 
  | 

but i doesn't work because, i think it doesn't execute query :

  | statement.execute(request);
  | 
i tried statement.executeUpDate(request); 
but i have the same error:


  | 
  | com.mysql.jdbc.exceptions.MySQLIntegrityConstraintViolationException: 
Cannot delete or update a parent row: a foreign key constraint fails 
(`paolo/jbpm_log`, CONSTRAINT `FK_LOG_TASKINST` FOREIGN KEY (`TASKINSTANCE_`) 
REFERENCES `jbpm_taskinstance` (`ID_`))
  | at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:931)
  | at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:2934)
  | at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1616)
  | at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:1708)
  | at com.mysql.jdbc.Connection.execSQL(Connection.java:3249)
  | at com.mysql.jdbc.Connection.execSQL(Connection.java:3178)
  | at com.mysql.jdbc.Statement.execute(Statement.java:711)
  | at BesoinJBpm.deleteTaskInstance(BesoinJBpm.java:361)
  | at BesoinJBpm.Test(BesoinJBpm.java:55)
  | 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 junit.framework.TestCase.runTest(TestCase.java:154)
  | at junit.framework.TestCase.runBare(TestCase.java:127)
  | at junit.framework.TestResult$1.protect(TestResult.java:106)
  | at junit.framework.TestResult.runProtected(TestResult.java:124)
  | at junit.framework.TestResult.run(TestResult.java:109)
  | at junit.framework.TestCase.run(TestCase.java:118)
  | at 
org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReference.run(JUnit3TestReference.java:128)
  | at 
org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
  | at 
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:460)
  | at 
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673)
  | at 
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386)
  | at 
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)
  | 
  | 

how can i delete this ?

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4071667#4071667

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4071667

___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - how can i do research ?

2007-08-06 Thread galvino
 i want to do some research into my database like :

  | find all taskinstances assigned to an user without include swimlane concept
  | find all taskinstances assigned to a swimlane
  | find all processinstances initialized by an user
  | 
  | 
  | i find  some functions as taskmgmtsession but i don't retrieve that can do 
that.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4071174#4071174

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4071174
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Re: how can i do research ?

2007-08-06 Thread galvino
i think so .

but, sometimes there aren't enougth information to get that i want.

for example, find all processinstances initialized by an user 
into the table jbpm_processinstance there isn't an column for actor .

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4071198#4071198

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4071198
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Re: how can i do research ?

2007-08-06 Thread galvino
ok, thanks i 'll try that

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4071223#4071223

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4071223
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - how can i delete a taskinstance from my database

2007-08-03 Thread galvino
 Hi, i want to delete a taskinstance by using its Id.

i used thi:

  | graphSession=jbpmContext.getGraphSession();
  | TaskInstance 
taskInstance=jbpmContext.getTaskInstance(taskInstanceId);
  | TaskMgmtInstance 
taskMgmtInstance=graphSession.getProcessInstance(processInstanceId).getTaskMgmtInstance();
  | taskMgmtInstance.removeTaskInstance(taskInstance);
  | 

but it doesn't delete this instance from my database

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4070539#4070539

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4070539
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - how can i use Identity

2007-07-31 Thread galvino
hi, everybody, 
I download my identities on my database.
Now i want to work with this, for example do a connection page that verify 
parameters .

Have you an tutorial or an example ?

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4069025#4069025

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4069025
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Re: how can i use Identity

2007-07-31 Thread galvino
i created my database and I load my identity with this metho:


  | public void loadIdentities() {
  | JbpmConfiguration jbpmConfiguration = 
JbpmConfiguration.getInstance();
  | 
  | JbpmContext jbpmContext = jbpmConfiguration.createJbpmContext();
  | try {
  | Entity[] entities = IdentityXmlParser
  | 
.parseEntitiesResource(identity.db.xml);
  | IdentitySession identitySession = new 
IdentitySession(jbpmContext
  | .getSession());
  | 
  | assertNotNull(identitySession);
  | 
  | for (int i = 0; i  entities.length; i++) {
  | identitySession.saveEntity(entities);
  | }
  | } finally {
  | jbpmContext.close();
  | }
  | }
  | 

now, on an web application i want to create a login page that verify, login and 
password by using identities loaded

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4069055#4069055

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4069055
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Re: can't finished my task

2007-07-30 Thread galvino
i am working for find this issue.
i think problem is on the connection with the database or the deployment.

this is my process:


  | 
  | ?xml version=1.0 encoding=UTF-8?
  | 
  | process-definition xmlns=urn:jbpm.org:jpdl-3.1  name=holiday-request
  | 
  | 
  | swimlane name=participant
  | assignment expression=user(ernie)/assignment
  | /swimlane
  | 
  | swimlane name=rh
  | assignment expression=user(martin)/assignment
  | /swimlane
  | 
  | 
  | start-state name=enter request
  | task name=request entry
  | assignment class=ErnieAssignment/assignment
  | controller
  | variable access=read,write 
name=start_date/variable
  | variable access=read,write 
name=duree/variable
  | /controller
  | /task
  | transition to=evaluate request/transition
  | /start-state
  | 
  | 
  | task-node name=evaluate request
  | task name=request evaluation duedate=
  | assignment class=MartinAssignment/assignment
  | controller
  | variable access=read name=start 
date/variable
  | variable access=read name=duree/variable
  | variable access=read name=info/variable
  | variable access=read,write 
name=decision/variable
  | /controller
  | /task
  | transition to=give additionnal info name=more info 
needed/transition
  | transition to=end name=approve/disapprove/transition
  | /task-node
  | 
  | task-node name=give additionnal info
  | task name=additional info entry
  | assignment class=ErnieAssignment/assignment
  | controller
  | variable access=read name=start 
date/variable
  | variable access=read name=duree/variable
  | variable access=read,write 
name=info/variable
  | /controller
  | /task
  | transition to=evaluate request/transition
  | /task-node
  | 
  | 
  | end-state name=end/end-state
  | 
  | 
  | /process-definition
  | 

And i have same error when i want use processInstance.signal()

like this:

  | ProcessDefinition processDefinition=graphSession.getProcessDefinition(2);
  | 
  | //creation d'une nouvelle instance de processus 
dans la base
  | ProcessInstance processInstance=new 
ProcessInstance(processDefinition);
  | Token token=processInstance.getRootToken();
  | token.signal();
  | 
  | //creation d'une nouvelle instance de tache 
pour l'étape initiale
  | TaskInstance  
taskInstance=processInstance.getTaskMgmtInstance().createStartTaskInstance();
  | 
taskBean.setTaskInstanceId(taskInstance.getId());
  | 
  | 

i dont know why .

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4068712#4068712

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4068712

___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - can't finished my task

2007-07-27 Thread galvino
hi everybody.
i don't know why i don't successfully finish my task.

this is error:

  | 17:17:13,295 WARN  [ProxyWarnLog] Narrowing proxy to class 
org.jbpm.graph.node.T
  | askNode - this operation breaks ==
  | 17:17:13,374 WARN  [RequestProcessor] Unhandled Exception thrown: class 
org.jbpm
  | .JbpmException
  | 17:17:13,389 ERROR [[action]] Servlet.service() for servlet action threw 
excepti
  | on
  | org.jbpm.JbpmException: closed JbpmContext in different order then they 
were cre
  | ated... check your try-finally's around JbpmContexts blocks
  | at 
org.jbpm.JbpmConfiguration.popJbpmContext(JbpmConfiguration.java:555)
  | 
  | at 
org.jbpm.JbpmConfiguration.jbpmContextClosed(JbpmConfiguration.java:5
  | 67)
  | at org.jbpm.JbpmContext.close(JbpmContext.java:144)
  | at 
com.WebApplicationWithJbpm.actions.SaveClose.performAction(SaveClose.
  | java:89)
  | at 
com.WebApplicationWithJbpm.actions.BaseAction.execute(BaseAction.java
  | :17)
  | at 
org.apache.struts.action.RequestProcessor.processActionPerform(Reques
  | tProcessor.java:431)
  | at 
org.apache.struts.action.RequestProcessor.process(RequestProcessor.ja
  | va:236)
  | at 
org.apache.struts.action.ActionServlet.process(ActionServlet.java:119
  | 6)
  | at 
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
  | 
  | at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
  | at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
  | at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
  | icationFilterChain.java:252)
  | at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
  | ilterChain.java:173)
  | at 
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFi
  | lter.java:96)
  | at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
  | icationFilterChain.java:202)
  | at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
  | ilterChain.java:173)
  | at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV
  | alve.java:213)
  | at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextV
  | alve.java:178)
  | at 
org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(Securit
  | yAssociationValve.java:175)
  | at 
org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValv
  | e.java:74)
  | at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j
  | ava:126)
  | at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j
  | ava:105)
  | at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal
  | ve.java:107)
  | at 
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.jav
  | a:148)
  | at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java
  | :869)
  | at 
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.p
  | rocessConnection(Http11BaseProtocol.java:664)
  | at 
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpo
  | int.java:527)
  | at 
org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWor
  | kerThread.java:112)
  | at java.lang.Thread.run(Thread.java:595)
  | 
  | 

And i execute this code:


  | 
  | TaskInstance 
taskInstance=jbpmContext.getTaskMgmtSession().loadTaskInstance(taskBean.getTaskInstanceId());
System.out.println(task name   
+taskInstance.getName());
System.out.println(start_date   
+taskBean.getStart_date());
System.out.println(duree   
+taskBean.getDuree());


taskInstance.getContextInstance().setVariable(start_date, 
taskBean.getStart_date());

taskInstance.getContextInstance().setVariable(duree, taskBean.getDuree());
taskInstance.end();


View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4068260#4068260

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4068260
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - how can i get task state ?

2007-07-26 Thread galvino
Hi, i want to get task state on my process execution.
if it is suspended, finished, unfinishedis there a function that can do 
this ?

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4067697#4067697

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4067697
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Re: can't get task list of an actor

2007-07-23 Thread galvino
i have just cleared this option.
i didn't use it .

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4066539#4066539

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4066539
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Re: can't get task list of an actor

2007-07-23 Thread galvino
hi, i have another problem.

into the last task, when  i added taskInstance.end(); 
in this code:


  | GraphSession graphSession=jbpmContext.getGraphSession();
  | TaskMgmtSession 
taskMgmtSession=jbpmContext.getTaskMgmtSession();
  | 
  | jbpmContext.setActorId(martin);
  | 
  | ProcessInstance 
processInstance=graphSession.getProcessInstance(34);
  | 
  | TaskInstance taskInstance=(TaskInstance) 
taskMgmtSession.findTaskInstances(jbpmContext.getActorId()).iterator().next();
  | System.out.println(taskinstance_actor:   
+taskInstance.getActorId());
  | System.out.println(taskinstance:   
+taskInstance.getName());
  | taskInstance.setVariable(decision,yes);
  | System.out.println(taskinstance_priority:   
+taskInstance.getPriority());
  | System.out.println(taskinstance_Id:   
+taskInstance.getId());
  | taskInstance.end();
  | 
  | jbpmContext.save(processInstance);
  | processInstance.signal();
  | 

i have this error:
anonymous wrote : 
  | 2007-07-23 09:20:12,388 ERROR [STDERR] 
org.jbpm.graph.def.DelegationException: couldn't resolve assignment expression 
'user(ernie)'
  | 2007-07-23 09:20:12,388 ERROR [STDERR]  at 
org.jbpm.taskmgmt.exe.TaskMgmtInstance.performAssignment(TaskMgmtInstance.java:214)
  | 2007-07-23 09:20:12,388 ERROR [STDERR]  at 
org.jbpm.taskmgmt.exe.TaskMgmtInstance.getInitializedSwimlaneInstance(TaskMgmtInstance.java:182)
  | 2007-07-23 09:20:12,388 ERROR [STDERR]  at 
org.jbpm.taskmgmt.exe.TaskMgmtInstance$$FastClassByCGLIB$$e1d53490.invoke()
  | 2007-07-23 09:20:12,388 ERROR [STDERR]  at 
net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
  | 2007-07-23 09:20:12,388 ERROR [STDERR]  at 
org.hibernate.proxy.pojo.cglib.CGLIBLazyInitializer.intercept(CGLIBLazyInitializer.java:163)
  | 2007-07-23 09:20:12,388 ERROR [STDERR]  at 
org.jbpm.taskmgmt.exe.TaskMgmtInstance$$EnhancerByCGLIB$$7662fcc2.getInitializedSwimlaneInstance()
  | 2007-07-23 09:20:12,388 ERROR [STDERR]  at 
org.jbpm.taskmgmt.exe.TaskInstance.assign(TaskInstance.java:192)
  | 2007-07-23 09:20:12,388 ERROR [STDERR]  at 
org.jbpm.taskmgmt.exe.TaskMgmtInstance.createTaskInstance(TaskMgmtInstance.java:154)
  | 2007-07-23 09:20:12,388 ERROR [STDERR]  at 
org.jbpm.taskmgmt.exe.TaskMgmtInstance$$FastClassByCGLIB$$e1d53490.invoke()
  | 2007-07-23 09:20:12,388 ERROR [STDERR]  at 
net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
  | 2007-07-23 09:20:12,388 ERROR [STDERR]  at 
org.hibernate.proxy.pojo.cglib.CGLIBLazyInitializer.intercept(CGLIBLazyInitializer.java:163)
  | 2007-07-23 09:20:12,388 ERROR [STDERR]  at 
org.jbpm.taskmgmt.exe.TaskMgmtInstance$$EnhancerByCGLIB$$7662fcc2.createTaskInstance()
  | 2007-07-23 09:20:12,388 ERROR [STDERR]  at 
org.jbpm.graph.node.TaskNode.execute(TaskNode.java:168)
  | 2007-07-23 09:20:12,388 ERROR [STDERR]  at 
org.jbpm.graph.def.Node.enter(Node.java:318)
  | 2007-07-23 09:20:12,388 ERROR [STDERR]  at 
org.jbpm.graph.def.Node$$FastClassByCGLIB$$d187eeda.invoke()
  | 2007-07-23 09:20:12,388 ERROR [STDERR]  at 
net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
  | 2007-07-23 09:20:12,388 ERROR [STDERR]  at 
org.hibernate.proxy.pojo.cglib.CGLIBLazyInitializer.intercept(CGLIBLazyInitializer.java:163)
  | 2007-07-23 09:20:12,388 ERROR [STDERR]  at 
org.jbpm.graph.def.Node$$EnhancerByCGLIB$$abec2600.enter()
  | 2007-07-23 09:20:12,388 ERROR [STDERR]  at 
org.jbpm.graph.def.Transition.take(Transition.java:151)
  | 2007-07-23 09:20:12,388 ERROR [STDERR]  at 
org.jbpm.graph.def.Node.leave(Node.java:393)
  | 2007-07-23 09:20:12,388 ERROR [STDERR]  at 
org.jbpm.graph.node.TaskNode.leave(TaskNode.java:209)
  | 2007-07-23 09:20:12,388 ERROR [STDERR]  at 
org.jbpm.graph.def.Node$$FastClassByCGLIB$$d187eeda.invoke()
  | 2007-07-23 09:20:12,388 ERROR [STDERR]  at 
net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
  | 2007-07-23 09:20:12,388 ERROR [STDERR]  at 
org.hibernate.proxy.pojo.cglib.CGLIBLazyInitializer.intercept(CGLIBLazyInitializer.java:163)
  | 2007-07-23 09:20:12,388 ERROR [STDERR]  at 
org.jbpm.graph.def.Node$$EnhancerByCGLIB$$abec2600.leave()
  | 2007-07-23 09:20:12,388 ERROR [STDERR]  at 
org.jbpm.graph.exe.Token.signal(Token.java:194)
  | 2007-07-23 09:20:12,388 ERROR [STDERR]  at 
org.jbpm.graph.exe.Token.signal(Token.java:139)
  | 2007-07-23 09:20:12,388 ERROR [STDERR]  at 
org.jbpm.graph.exe.Token$$FastClassByCGLIB$$74df1c6e.invoke()
  | 2007-07-23 09:20:12,388 ERROR [STDERR]  at 

[jboss-user] [JBoss jBPM] - can't get task list of an actor

2007-07-20 Thread galvino
Hi everybody.

i am using jbpm-jpdl 3.1 and i have done my process successfully.
deployment was a success.
But when i tried to get task list like that:


  | List task_list=jbpmContext.getTaskList(jbpmContext.getActorId());
  | System.out.println(number of task:+task_list.size());
  | 

result:number of task:0

i don't understand this.
should you explain me please.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4066086#4066086

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4066086
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Re: can't get task list of an actor

2007-07-20 Thread galvino
thank for your response.

i tried by using processinstance and taskinstance like this:

  | ProcessInstance processInstance=new ProcessInstance(processDefinition);
  | System.out.println(processinstance.id:
+processInstance.getId());
  | System.out.println(processinstance.version:
+processInstance.getVersion());
  | 
  | TaskInstance 
taskInstance=processInstance.getTaskMgmtInstance().createStartTaskInstance();
  | 
taskInstance.setActorId(jbpmContext.getActorId());
  | 

but i have this error:
anonymous wrote : 
  | javax.servlet.ServletException: improper format of duration ''
  | 
org.apache.struts.action.RequestProcessor.processException(RequestProcessor.java:535)
  | 
org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:433)
  | 
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
  | org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
  | org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
  | javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
  | javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
  | 
org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1085)
  | 
org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:398)
  | 
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:241)
  | org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
  | org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
  | javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
  | javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
  | 
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
  | 
  | root cause
  | 
  | java.lang.IllegalArgumentException: improper format of duration ''
  | org.jbpm.calendar.Duration.(Duration.java:151)
  | org.jbpm.taskmgmt.exe.TaskInstance.setTask(TaskInstance.java:117)
  | 
org.jbpm.taskmgmt.exe.TaskMgmtInstance.createTaskInstance(TaskMgmtInstance.java:113)
  | 
org.jbpm.taskmgmt.exe.TaskMgmtInstance.createStartTaskInstance(TaskMgmtInstance.java:283)
  | 
com.WebApplicationWithJbpm.actions.FirstTask.performAction(FirstTask.java:44)
  | 
com.WebApplicationWithJbpm.actions.BaseAction.execute(BaseAction.java:17)
  | 
org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)
  | 
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
  | org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
  | org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
  | javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
  | javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
  | 
org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1085)
  | 
org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:398)
  | 
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:241)
  | org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
  | org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
  | javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
  | javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
  | 
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
  | 
  | 

what that means ?

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4066110#4066110

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4066110
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Re: can't get task list of an actor

2007-07-20 Thread galvino
this is my processdefinition:


  | ?xml version=1.0 encoding=UTF-8?
  | 
  | process-definition xmlns=urn:jbpm.org:jpdl-3.1  name=holiday-request
  | 
  | 
  | swimlane name=participant
  | assignment expression=user(ernie)/assignment
  | /swimlane
  | 
  | swimlane name=rh
  | assignment expression=user(martin)/assignment
  | /swimlane
  | 
  | 
  | start-state name=enter request
  | task name=request entry duedate=
  | assignment class=ErnieAssignment/assignment
  | controller
  | variable access=read,write name=start 
date/variable
  | variable access=read,write 
name=duree/variable
  | /controller
  | /task
  | transition to=evaluate request/transition
  | /start-state
  | 
  | 
  | task-node name=evaluate request
  | task name=request evaluation duedate= swimlane=rh
  | controller
  | variable access=read name=start 
date/variable
  | variable access=read name=duree/variable
  | variable access=read name=info/variable
  | variable access=read,write 
name=decision/variable
  | /controller
  | /task
  | transition to=give additionnal info name=more info 
needed/transition
  | transition to=end name=approve/disapprove/transition
  | /task-node
  | 
  | task-node name=give additionnal info
  | task name=additional info entry swimlane=participant
  | controller
  | variable access=read name=start 
date/variable
  | variable access=read name=duree/variable
  | variable access=read,write 
name=info/variable
  | /controller
  | /task
  | transition to=evaluate request/transition
  | /task-node
  | 
  | 
  | end-state name=end/end-state
  | 
  | 
  | /process-definition
  | 

duedate is it an optional entry ?

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4066147#4066147

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4066147
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Re: can't get task list of an actor

2007-07-20 Thread galvino
resolved

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4066243#4066243

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4066243
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - what version of mysql can we use with script on jbpm-3.2.1

2007-07-19 Thread galvino
Hi everybody.
i am using jboss jbpm 3.2.1 and mysql 5.0.41.

when i used script into \jbpm-jpdl-3.2.1\db\jbpm.jpdl.mysql.sql i had error 
script.

what the real version of mysql can i use ?

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4065678#4065678

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4065678
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - the request was rejected because no multipart boundary was f

2007-07-19 Thread galvino
hi, i have some problem to connect to my database.
when i deploy my process into the database i have this error:

anonymous wrote : 
  | 11:04:17,821 ERROR [STDERR] 
org.apache.commons.fileupload.FileUploadException: t
  | he request was rejected because no multipart boundary was found
  | 11:04:17,821 ERROR [STDERR] at 
org.apache.commons.fileupload.FileUploadBase.
  | parseRequest(FileUploadBase.java:324)
  | 11:04:17,821 ERROR [STDERR] at 
org.apache.commons.fileupload.FileUploadBase.
  | parseRequest(FileUploadBase.java:268)
  | 11:04:17,821 ERROR [STDERR] at 
org.jbpm.web.ProcessUploadServlet.handleReque
  | st(ProcessUploadServlet.java:72)
  | 11:04:17,821 ERROR [STDERR] at 
org.jbpm.web.ProcessUploadServlet.service(Pro
  | cessUploadServlet.java:56)
  | 11:04:17,821 ERROR [STDERR] at 
javax.servlet.http.HttpServlet.service(HttpSe
  | rvlet.java:810)
  | 11:04:17,821 ERROR [STDERR] at 
org.apache.catalina.core.ApplicationFilterCha
  | in.internalDoFilter(ApplicationFilterChain.java:252)
  | 11:04:17,821 ERROR [STDERR] at 
org.apache.catalina.core.ApplicationFilterCha
  | in.doFilter(ApplicationFilterChain.java:173)
  | 11:04:17,821 ERROR [STDERR] at 
org.jboss.web.tomcat.filters.ReplyHeaderFilte
  | r.doFilter(ReplyHeaderFilter.java:96)
  | 11:04:17,821 ERROR [STDERR] at 
org.apache.catalina.core.ApplicationFilterCha
  | in.internalDoFilter(ApplicationFilterChain.java:202)
  | 11:04:17,821 ERROR [STDERR] at 
org.apache.catalina.core.ApplicationFilterCha
  | in.doFilter(ApplicationFilterChain.java:173)
  | 11:04:17,821 ERROR [STDERR] at 
org.apache.catalina.core.StandardWrapperValve
  | .invoke(StandardWrapperValve.java:213)
  | 11:04:17,821 ERROR [STDERR] at 
org.apache.catalina.core.StandardContextValve
  | .invoke(StandardContextValve.java:178)
  | 11:04:17,821 ERROR [STDERR] at 
org.jboss.web.tomcat.security.SecurityAssocia
  | tionValve.invoke(SecurityAssociationValve.java:175)
  | 11:04:17,821 ERROR [STDERR] at 
org.apache.catalina.authenticator.Authenticat
  | orBase.invoke(AuthenticatorBase.java:432)
  | 11:04:17,821 ERROR [STDERR] at 
org.jboss.web.tomcat.security.JaccContextValv
  | e.invoke(JaccContextValve.java:74)
  | 11:04:17,821 ERROR [STDERR] at 
org.apache.catalina.core.StandardHostValve.in
  | voke(StandardHostValve.java:126)
  | 11:04:17,821 ERROR [STDERR] at 
org.apache.catalina.valves.ErrorReportValve.i
  | nvoke(ErrorReportValve.java:105)
  | 11:04:17,821 ERROR [STDERR] at 
org.apache.catalina.core.StandardEngineValve.
  | invoke(StandardEngineValve.java:107)
  | 11:04:17,821 ERROR [STDERR] at 
org.apache.catalina.connector.CoyoteAdapter.s
  | ervice(CoyoteAdapter.java:148)
  | 11:04:17,821 ERROR [STDERR] at 
org.apache.coyote.http11.Http11Processor.proc
  | ess(Http11Processor.java:869)
  | 11:04:17,821 ERROR [STDERR] at 
org.apache.coyote.http11.Http11BaseProtocol$H
  | ttp11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
  | 11:04:17,821 ERROR [STDERR] at 
org.apache.tomcat.util.net.PoolTcpEndpoint.pr
  | ocessSocket(PoolTcpEndpoint.java:527)
  | 11:04:17,821 ERROR [STDERR] at 
org.apache.tomcat.util.net.MasterSlaveWorkerT
  | hread.run(MasterSlaveWorkerThread.java:112)
  | 11:04:17,821 ERROR [STDERR] at java.lang.Thread.run(Thread.java:595)
  | 11:04:20,384 ERROR [STDERR] 
org.apache.commons.fileupload.FileUploadException: t
  | he request was rejected because no multipart boundary was found
  | 11:04:20,384 ERROR [STDERR] at 
org.apache.commons.fileupload.FileUploadBase.
  | parseRequest(FileUploadBase.java:324)
  | 11:04:20,384 ERROR [STDERR] at 
org.apache.commons.fileupload.FileUploadBase.
  | parseRequest(FileUploadBase.java:268)
  | 11:04:20,384 ERROR [STDERR] at 
org.jbpm.web.ProcessUploadServlet.handleReque
  | st(ProcessUploadServlet.java:72)
  | 11:04:20,384 ERROR [STDERR] at 
org.jbpm.web.ProcessUploadServlet.service(Pro
  | cessUploadServlet.java:56)
  | 11:04:20,384 ERROR [STDERR] at 
javax.servlet.http.HttpServlet.service(HttpSe
  | rvlet.java:810)
  | 11:04:20,384 ERROR [STDERR] at 
org.apache.catalina.core.ApplicationFilterCha
  | in.internalDoFilter(ApplicationFilterChain.java:252)
  | 11:04:20,384 ERROR [STDERR] at 
org.apache.catalina.core.ApplicationFilterCha
  | in.doFilter(ApplicationFilterChain.java:173)
  | 11:04:20,384 ERROR [STDERR] at 
org.jboss.web.tomcat.filters.ReplyHeaderFilte
  | r.doFilter(ReplyHeaderFilter.java:96)
  | 11:04:20,384 ERROR [STDERR] at 
org.apache.catalina.core.ApplicationFilterCha
  | in.internalDoFilter(ApplicationFilterChain.java:202)
  | 11:04:20,384 ERROR [STDERR] at 
org.apache.catalina.core.ApplicationFilterCha
  | in.doFilter(ApplicationFilterChain.java:173)
  | 11:04:20,384 ERROR [STDERR] at 
org.apache.catalina.core.StandardWrapperValve
  | .invoke(StandardWrapperValve.java:213)
  | 11:04:20,384 ERROR [STDERR] at 
org.apache.catalina.core.StandardContextValve
 

[jboss-user] [JBoss jBPM] - Re: what version of mysql can we use with script on jbpm-3.2

2007-07-19 Thread galvino
resolved.
i had at the end ;

thanks

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4065687#4065687

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4065687
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Re: the request was rejected because no multipart boundary w

2007-07-19 Thread galvino
resolved

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4065763#4065763

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4065763
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - error Resource: org/jbpm/msg/Message.hbm.xml not found

2007-07-17 Thread galvino
Hello everybody.
i have a strange problem.

i can't use graphsession with my application and i have this error :
anonymous wrote : 
  | javax.servlet.ServletException: Resource: org/jbpm/msg/Message.hbm.xml not 
found
  | 
org.apache.struts.action.RequestProcessor.processException(RequestProcessor.java:535)
  | 
org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:433)
  | 
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
  | org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
  | org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
  | javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
  | javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
  | 
org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1085)
  | 
org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:398)
  | 
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:241)
  | org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
  | org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
  | javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
  | javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
  | 
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
  | 
  | root cause
  | 
  | org.hibernate.MappingException: Resource: org/jbpm/msg/Message.hbm.xml not 
found
  | org.hibernate.cfg.Configuration.addResource(Configuration.java:512)
  | 
org.hibernate.cfg.Configuration.parseMappingElement(Configuration.java:1506)
  | 
org.hibernate.cfg.Configuration.parseSessionFactory(Configuration.java:1474)
  | org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1453)
  | org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1427)
  | org.hibernate.cfg.Configuration.configure(Configuration.java:1347)
  | 
org.jbpm.db.hibernate.HibernateHelper.createConfiguration(HibernateHelper.java:91)
  | 
org.jbpm.persistence.db.DbPersistenceServiceFactory.getConfiguration(DbPersistenceServiceFactory.java:69)
  | 
org.jbpm.persistence.db.DbPersistenceServiceFactory.getSessionFactory(DbPersistenceServiceFactory.java:91)
  | 
org.jbpm.persistence.db.DbPersistenceService.getSessionFactory(DbPersistenceService.java:94)
  | 
org.jbpm.persistence.db.DbPersistenceService.getSession(DbPersistenceService.java:98)
  | 
org.jbpm.persistence.db.DbPersistenceService.getGraphSession(DbPersistenceService.java:336)
  | org.jbpm.JbpmContext.getGraphSession(JbpmContext.java:571)
  | 
com.TestApplicationServer.actions.FirstTask.performAction(FirstTask.java:32)
  | com.TestApplicationServer.actions.BaseAction.execute(BaseAction.java:17)
  | 
org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)
  | 
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
  | org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
  | org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
  | javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
  | javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
  | 
org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1085)
  | 
org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:398)
  | 
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:241)
  | org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
  | org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
  | javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
  | javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
  | 
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
  | 
  | 

what that means please ? 

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4064889#4064889

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4064889
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Re: error Resource: org/jbpm/msg/Message.hbm.xml not found

2007-07-17 Thread galvino
i copied the real hybernate configuration file.
now it doesn't load the identity component even if i copy the identiy jar.

i have this error:
anonymous wrote : 
  | 2007-07-17 11:49:58,476 ERROR 
[org.jboss.security.auth.spi.UsersRolesLoginModule] Failed to load 
users/passwords/role files
  | java.io.IOException: No properties file: users.properties or defaults: 
defaultUsers.properties found
  | at org.jboss.security.auth.spi.Util.loadProperties(Util.java:313)
  | at 
org.jboss.security.auth.spi.UsersRolesLoginModule.loadUsers(UsersRolesLoginModule.java:186)
  | at 
org.jboss.security.auth.spi.UsersRolesLoginModule.createUsers(UsersRolesLoginModule.java:200)
  | at 
org.jboss.security.auth.spi.UsersRolesLoginModule.initialize(UsersRolesLoginModule.java:127)
  | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  | at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  | at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | at java.lang.reflect.Method.invoke(Method.java:585)
  | at javax.security.auth.login.LoginContext.invoke(LoginContext.java:756)
  | at 
javax.security.auth.login.LoginContext.access$000(LoginContext.java:186)
  | at javax.security.auth.login.LoginContext$4.run(LoginContext.java:683)
  | at java.security.AccessController.doPrivileged(Native Method)
  | at 
javax.security.auth.login.LoginContext.invokePriv(LoginContext.java:680)
  | at javax.security.auth.login.LoginContext.login(LoginContext.java:579)
  | at 
org.jboss.security.plugins.JaasSecurityManager.defaultLogin(JaasSecurityManager.java:601)
  | at 
org.jboss.security.plugins.JaasSecurityManager.authenticate(JaasSecurityManager.java:535)
  | at 
org.jboss.security.plugins.JaasSecurityManager.isValid(JaasSecurityManager.java:344)
  | at 
org.jboss.resource.connectionmanager.BaseConnectionManager2.getSubject(BaseConnectionManager2.java:571)
  | at 
org.jboss.resource.connectionmanager.BaseConnectionManager2.allocateConnection(BaseConnectionManager2.java:378)
  | at 
org.jboss.resource.connectionmanager.BaseConnectionManager2$ConnectionManagerProxy.allocateConnection(BaseConnectionManager2.java:812)
  | at 
org.jboss.resource.adapter.jdbc.WrapperDataSource.getConnection(WrapperDataSource.java:88)
  | at org.jboss.ejb.plugins.cmp.jdbc.SQLUtil.tableExists(SQLUtil.java:995)
  | at 
org.jboss.ejb.txtimer.GeneralPurposeDatabasePersistencePlugin.createTableIfNotExists(GeneralPurposeDatabasePersistencePlugin.java:112)
  | at 
org.jboss.ejb.txtimer.DatabasePersistencePolicy.startService(DatabasePersistencePolicy.java:106)
  | at 
org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
  | at 
org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:196)
  | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  | at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  | at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | at java.lang.reflect.Method.invoke(Method.java:585)
  | at 
org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
  | at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
  | at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
  | at 
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
  | at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
  | at 
org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:995)
  | at $Proxy0.start(Unknown Source)
  | at org.jboss.system.ServiceController.start(ServiceController.java:417)
  | at org.jboss.system.ServiceController.start(ServiceController.java:435)
  | at org.jboss.system.ServiceController.start(ServiceController.java:435)
  | at org.jboss.system.ServiceController.start(ServiceController.java:435)
  | at org.jboss.system.ServiceController.start(ServiceController.java:435)
  | at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
  | at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | at java.lang.reflect.Method.invoke(Method.java:585)
  | at 
org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
  | at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
  | at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
  | at 
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
  | at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
  | at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
  | at $Proxy4.start(Unknown Source)
  | at org.jboss.deployment.SARDeployer.start(SARDeployer.java:302)
  | at 

[jboss-user] [JBoss jBPM] - Re: error Resource: org/jbpm/msg/Message.hbm.xml not found

2007-07-17 Thread galvino
i had created two files in server/jbpm/conf : users.properties ans 
roles.properties

into the file users.properties:   ernie=ernie
  roles.properties:ernie=manager,administrator,participant

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4064973#4064973

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4064973
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Re: error Resource: org/jbpm/msg/Message.hbm.xml not found

2007-07-17 Thread galvino
but i have the same error.


View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4064974#4064974

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4064974
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Re: problem to start a taskinstance

2007-07-12 Thread galvino
i gave you error in the first post

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4063371#4063371

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4063371
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Re: problem to start a taskinstance

2007-07-11 Thread galvino
hi, thanks to response to my first post.

iam using  

  | jbpm-3.1.4 
  | jboss-4.0.4.GA (download with jems-installer-1.2.0.GA.jar)
  | mysql server 5.0
  | 
  |  
  | i want to do an struts application by using jbpm API.
  | so i set some configurations and i want to get a task list for one user i 
have this error.
  | 
  | this my workflow :
  | 
  | anonymous wrote : 
  |   | process-definition
  |   |   xmlns=  name=holiday-request
  |   |
  |   |
  |   |start-state name=enter request
  |   |   
  |   |  
  |   | 
  |   | 
  |   |  
  |   |   
  |   |   
  |   |/start-state
  |   |task-node name=evaluate request
  |   |   
  |   |  
  |   | 
  |   | 
  |   | 
  |   | 
  |   |  
  |   |   
  |   |   
  |   |   
  |   |/task-node
  |   |task-node name=give additional info
  |   |   
  |   |  
  |   | 
  |   | 
  |   | 
  |   |  
  |   |   
  |   |   
  |   |/task-node
  |   |end-state name=end/end-state
  |   | /process-definition
  |   | 
  | 
  | this is that i do:
  | 
  | anonymous wrote : 
  |   | protected ActionForward performAction(ActionMapping mapping, ActionForm 
form, HttpServletRequest request, HttpServletResponse response) throws 
Exception {
  |   | 
  |   | 
System.out.println(\nStartProcessInstance.\n);
  |   | JbpmContext jbpmContext=null;
  |   | GraphSession graphSession=null;
  |   | TaskMgmtSession taskMgmtSession=null;
  |   | ArrayList tasks;
  |   | 
  |   | 
jbpmContext=this.getJbpmContext(request).getJbpmConfiguration().getCurrentJbpmContext();
  |   | graphSession=jbpmContext.getGraphSession();
  |   | taskMgmtSession=jbpmContext.getTaskMgmtSession();
  |   | 
  |   | try{
  |   | 
  |   | ProcessDefinition processDefinition = 
graphSession.loadProcessDefinition(2);
  |   | 
  |   | // create a new process instance to run
  |   | ProcessInstance processInstance = new 
ProcessInstance(processDefinition);
  |   | 
  |   | // create a new taskinstance for the start 
task
  |   | TaskInstance taskInstance = 
processInstance.getTaskMgmtInstance().createStartTaskInstance();
  |   | 
taskInstance.setActorId(jbpmContext.getActorId());
  |   | 
  |   | // Save the process instance along with the 
task instance
  |   | jbpmContext.save(processInstance);
  |   | 
  |   | 
  |   | this.setJbpmContext(request, 
jbpmContext);
  |   | 
  |   | }catch(JbpmException e){
  |   | e.printStackTrace();
  |   | }finally{
  |   | if(this.getJbpmContext(request) != 
null) {
  |   | try {
  |   | 
this.getJbpmContext(request).close();
  |   | } catch (JbpmException e) {
  |   | e.printStackTrace();
  |   | }
  |   | }
  |   | }
  |   | return  mapping.findForward(success);
  |   | }
  |   | 
  |   | 

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4062986#4062986

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4062986
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - problem to start a taskinstance

2007-07-10 Thread galvino
i am try to get tasklist of a user but i have the same error:

anonymous wrote : 
  | 15:39:53,808 WARN  [JDBCExceptionReporter] SQL Error: 1054, SQLState: 42S22
  | 15:39:53,808 ERROR [JDBCExceptionReporter] Unknown column 
'taskinstan0_.ISSIGNA
  | LING_' in 'field list'
  | 15:39:53,808 DEBUG [JbpmContext] closing JbpmContext
  | 15:39:53,808 DEBUG [Services] closing service 'persistence': 
org.jbpm.persisten
  | [EMAIL PROTECTED]
  | 15:39:53,808 DEBUG [DbPersistenceService] committing hibernate transaction
  | 15:39:53,855 DEBUG [DbPersistenceService] closing hibernate session
  | 15:39:53,855 DEBUG [Services] closing service 'authentication': 
org.jbpm.securi
  | [EMAIL PROTECTED]
  | 15:39:53,855 WARN  [RequestProcessor] Unhandled Exception thrown: class 
org.hib
  | rnate.exception.SQLGrammarException
  | 15:39:53,855 ERROR [[action]] Servlet.service() for servlet action threw 
except
  | on
  | org.hibernate.exception.SQLGrammarException: could not initialize a 
collection:
  | [org.jbpm.taskmgmt.exe.TaskMgmtInstance.taskInstances#9]
  | at 
org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.
  | ava:67)
  | at 
org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHel
  | er.java:43)
  | at org.hibernate.loader.Loader.loadCollection(Loader.java:1926)
  | at 
org.hibernate.loader.collection.CollectionLoader.initialize(Collecti
  | nLoader.java:36)
  | at 
org.hibernate.persister.collection.AbstractCollectionPersister.initi
  | lize(AbstractCollectionPersister.java:541)
  | at 
org.hibernate.event.def.DefaultInitializeCollectionEventListener.onI
  | itializeCollection(DefaultInitializeCollectionEventListener.java:60)
  | at 
org.hibernate.impl.SessionImpl.initializeCollection(SessionImpl.java
  | 1705)
  | at 
org.hibernate.collection.AbstractPersistentCollection.initialize(Abs
  | ractPersistentCollection.java:344)
  | at 
org.hibernate.collection.AbstractPersistentCollection.read(AbstractP
  | rsistentCollection.java:86)
  | at 
org.hibernate.collection.AbstractPersistentCollection.readSize(Abstr
  | ctPersistentCollection.java:109)
  | at 
org.hibernate.collection.PersistentSet.isEmpty(PersistentSet.java:12
  | )
  | at 
com.actions.StartProcessInstance.performAction(StartProcessInstance.
  | ava:52)
  | at com.actions.BaseAction.execute(BaseAction.java:19)
  | at 
org.apache.struts.action.RequestProcessor.processActionPerform(Reque
  | tProcessor.java:431)
  | at 
org.apache.struts.action.RequestProcessor.process(RequestProcessor.j
  | va:236)
  | at 
org.apache.struts.action.ActionServlet.process(ActionServlet.java:11
  | 6)
  | at 
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432
  | 
  | at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
  | at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
  | at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(App
  | icationFilterChain.java:252)
  | at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(Application
  | ilterChain.java:173)
  | at 
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDis
  | atcher.java:672)
  | at 
org.apache.catalina.core.ApplicationDispatcher.processRequest(Applic
  | tionDispatcher.java:463)
  | at 
org.apache.catalina.core.ApplicationDispatcher.doForward(Application
  | ispatcher.java:398)
  | at 
org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDi
  | patcher.java:301)
  | at 
org.apache.struts.action.RequestProcessor.doForward(RequestProcessor
  | java:1085)
  | at 
org.apache.struts.action.RequestProcessor.processForwardConfig(Reque
  | tProcessor.java:398)
  | at 
org.apache.struts.action.RequestProcessor.process(RequestProcessor.j
  | va:241)
  | at 
org.apache.struts.action.ActionServlet.process(ActionServlet.java:11
  | 6)
  | at 
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432
  | 
  | at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
  | at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
  | at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(App
  | icationFilterChain.java:252)
  | at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(Application
  | ilterChain.java:173)
  | at 
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderF
  | lter.java:96)
  | at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(App
  | icationFilterChain.java:202)
  | at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(Application
  | ilterChain.java:173)
  | at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapper
  | alve.java:213)
  | at 

[jboss-user] [JBoss jBPM] - Re: get the token in another task-node on a struts applicati

2007-07-06 Thread galvino
thank you for your response.

i want to do a simple workflow by using struts where each form correspond to 
the next task .

For example, 
anonymous wrote : 
  | start  -start state
  | task-node 1
  | task-node 2
  | end
  | 

on my first form i do this: 

anonymous wrote : 
  | jbpmContext=this.getJbpmContext(request);
  | 
  | graphSession=jbpmContext.getGraphSession();
  | System.out.println(\n 
StartProcessInstance.jbpmContext:+jbpmContext+\n);
  | 
  | ProcessDefinition 
processDefinition=ProcessDefinition.parseXmlResource(SimpleApp/processdefinition.xml);
  | graphSession.deployProcessDefinition(processDefinition);
  | 
  | System.out.println( ...Id:   
+processDefinition.getId());
  | System.out.println( ...Name:   
+processDefinition.getName());
  | System.out.println( ...Version:   
+processDefinition.getVersion()+\n);
  | 
  | 
  | //create a new process instance to run
  | ProcessInstance processInstance = new 
ProcessInstance(processDefinition);
  | 
  | Token token=processInstance.getRootToken();
  | token.signal(); 
  | processDefinition.getNode(task-node1);
  | jbpmContext.save(processInstance);
  | 

After that, the token go to task-node 1, there is no problem.
then, on my second form, i want to get where is my token and continue the 
process execution.

this is my problem. 

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4061140#4061140

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4061140
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Re: get the token in another task-node on a struts applicati

2007-07-06 Thread galvino
so i do this code program on th esecond form :

anonymous wrote : 
  | 
jbpmContext=this.getJbpmContext(request).getJbpmConfiguration().getCurrentJbpmContext();
  | graphSession=jbpmContext.getGraphSession();
  | /*System.out.println(\n 
StartProcessInstance.jbpmContext:+jbpmContext+\n);
  | System.out.println(\n Actor:
+jbpmContext.getActorId()+\n);
  | 
  | ProcessDefinition 
processDefinition=graphSession.getProcessDefinition(1);*/
  | 
  | /*ProcessInstance 
instance=jbpmContext.getProcessInstance(1);
  | System.out.println(..id:  
+instance.getId());
  | System.out.println(..Version:  
+instance.getVersion()+\n);*/
  | 
  | TaskMgmtSession taskMgmtSession = 
jbpmContext.getTaskMgmtSession();
  | 
  | TaskInstance taskInstance = 
taskMgmtSession.loadTaskInstance(1);
  | taskInstance.setActorId(jbpmContext.getActorId());
  | taskInstance.start();
  | 
  | System.out.println(..+taskInstance.getName());
  | 
  | Token token = taskInstance.getToken();
  | Transition transition=null;
  | String transitionName=null;
  | 
  | if 
(token.getNode().getLeavingTransitions().isEmpty() == false) {
  | Iterator availableTransitionsIterator = 
token.getNode().getLeavingTransitions().iterator();
  | while 
(availableTransitionsIterator.hasNext()) {
  | transition = (Transition) 
availableTransitionsIterator.next();
  | }
  | 
transitionName=transition.getName();
  | }
  | 
  | //token.signal(transitionName); 
  | ProcessInstance processInstance = 
token.getProcessInstance();
  | 
  | MapString, String taskVariables = new 
HashMapString, String();
  | taskVariables.put(nom, maldini);
  | taskVariables.put(prenom, paolo);
  | taskVariables.put(decision, no);  
  | taskInstance.addVariables(taskVariables);
  | 
  | taskInstance.end();
  | 
  | jbpmContext.save(processInstance);
  | 

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4061150#4061150

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4061150
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - get the token in another task-node on a struts application

2007-07-05 Thread galvino
Hi everybody .
I have a  problem to go to next task-node with jbpm in a web application by 
using struts.

i did a small process like this:
anonymous wrote : start
  | task1
  | task2
  | end

On my first bean in strut, i deploy process and i go to the first task.
But when i write this in order to go to the next task:

anonymous wrote : 
  | TaskMgmtSession taskMgmtSession = jbpmContext.getTaskMgmtSession();
  | 
  | TaskInstance taskInstance = 
taskMgmtSession.loadTaskInstance(1);
  | taskInstance.setActorId(jbpmContext.getActorId());
  | taskInstance.start();
  | 
  | Token token = graphSession.loadToken(1);
  | Transition transition=null;
  | String transitionName=null;
  | 
  | if 
(token.getNode().getLeavingTransitions().isEmpty() == false) {
  | Iterator availableTransitionsIterator = 
token.getNode().getLeavingTransitions().iterator();
  | while 
(availableTransitionsIterator.hasNext()) {
  | transition = (Transition) 
availableTransitionsIterator.next();
  | }
  | 
transitionName=transition.getName();
  | }
  | 
  | token.signal(transitionName);
  | ProcessInstance processInstance = 
token.getProcessInstance();
  | 
  | jbpmContext.save(processInstance);
  | 

there are an error :
anonymous wrote : 
  | Integrity constraint violation - no parent FK_TASKINST_TASK table: 
JBPM_TASK in statement [insert into JBPM_TASKINSTANCE (NAME_, DESCRIPTION_, 
ACTORID_, CREATE_, START_, END_, DUEDATE_, PRIORITY_, ISCANCELLED_, 
ISSUSPENDED_, ISOPEN_, ISSIGNALLING_, ISBLOCKING_, TASK_, TOKEN_, 
SWIMLANINSTANCE_, TASKMGMTINSTANCE_, CLASS_, ID_) values (?, ?, ?, ?, ?, ?, ?, 
?, ?, ?, ?, ?, ?, ?, ?, ?, ?, 'T', null)]
  | 

what's this error means ?
i think it can't execute *.signal() why ?

Please I need your help !!!

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4060831#4060831

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4060831
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user