[JBoss jBPM] - fork can not create a child token for each transition that l
by mrshan
fork can not create a child token for each transition that leaves the fork,
only create one childtoken for the transition of top?
Please tell me why and the solution, thanks.
I have use Jbpm3.1.2, the processdefinition.xml like following:
<fork name="BeginRequest">
| <transition to="IsChief"/>
| <transition to="RequesterCancel"/>
| </fork>
| <decision name="IsChief">
| <handler class="jbpm.example.leave.delegation.ChiefDecision"/>
| <transition name="BossApprove" to="BossApprove"/>
| <transition name="ChiefApprove" to="ChiefApprove"/>
| </decision>
| <task-node name="RequesterCancel">
| <task swimlane="requester">
| </task>
| <transition name="cancel" to="Decided">
| <action class="jbpm.example.leave.action.RequestCancel"/>
| </transition>
| </task-node>
| <task-node name="ChiefApprove">
| <task swimlane="chief">
| </task>
| <transition name="approve" to="Decided">
| <action class="jbpm.example.leave.action.Approve"/>
| </transition>
| <transition name="disapprove" to="Decided">
| <action class="jbpm.example.leave.action.Disapprove"/>
| </transition>
| </task-node>
| <task-node name="BossApprove">
| <task swimlane="boss">
| </task>
| <transition name="approve" to="Decided">
| <action class="jbpm.example.leave.action.Approve"/>
| </transition>
| <transition name="disapprove" to="Decided">
| <action class="jbpm.example.leave.action.Disapprove"/>
| </transition>
| </task-node>
| <join name="Decided">
| <event type="node-enter">
| <action class="jbpm.example.leave.delegation.DecidedJoin"/>
| </event>
| <transition to="DoSomething"/>
| </join>
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3968859#3968859
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3968859
17 years, 9 months
[JBoss Seam] - Problems with Deploy
by ueshiba
Hi all!
Im using JBOSS AS 4.0.4 and SEAM 1.0.1 (GA both). I was an all installation with jboss. All works fine, but when i wanna deploy my app in the server i get this error message:
| 09:31:41,453 INFO [EARDeployer] Init J2EE application: file:/C:/Archivos de programa/jboss-4.0.4.GA/server/default/deploy/jboss-seam-registration.ear
| 09:31:41,796 ERROR [MainDeployer] Could not create deployment: file:/C:/Archivos de programa/jboss-4.0.4.GA/server/default/tmp/deploy/tmp46832jboss-seam-registration.ear-contents/jboss-seam-registration.jar
| org.jboss.deployment.DeploymentException: ejb-jar.xml must either obey the right xml schema or define a valid DOCTYPE!
| at org.jboss.metadata.ApplicationMetaData.importEjbJarXml(ApplicationMetaData.java:339)
| at org.jboss.metadata.XmlFileLoader.load(XmlFileLoader.java:166)
| at org.jboss.ejb.EJBDeployer.create(EJBDeployer.java:541)
| 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.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
| at org.jboss.mx.interceptor.DynamicInterceptor.invoke(DynamicInterceptor.java:97)
| at org.jboss.system.InterceptorServiceMBeanSupport.invokeNext(InterceptorServiceMBeanSupport.java:238)
| at org.jboss.ws.server.WebServiceDeployer.create(WebServiceDeployer.java:99)
| at org.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInterceptor.create(SubDeployerInterceptorSupport.java:180)
| at org.jboss.deployment.SubDeployerInterceptor.invoke(SubDeployerInterceptor.java:91)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| 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 $Proxy42.create(Unknown Source)
| at org.jboss.deployment.MainDeployer.create(MainDeployer.java:953)
| at org.jboss.deployment.MainDeployer.create(MainDeployer.java:943)
| at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:807)
| at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:771)
| at sun.reflect.GeneratedMethodAccessor10.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.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| 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 $Proxy6.deploy(Unknown Source)
| at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:421)
| at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:634)
| at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:263)
| at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:336)
| at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
| at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
| 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:978)
| at $Proxy0.start(Unknown Source)
| at org.jboss.system.ServiceController.start(ServiceController.java:417)
| 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.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
| at $Proxy4.start(Unknown Source)
| at org.jboss.deployment.SARDeployer.start(SARDeployer.java:302)
| at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1007)
| at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:808)
| at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:771)
| at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:755)
| 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.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| 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 $Proxy5.deploy(Unknown Source)
| at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:482)
| at org.jboss.system.server.ServerImpl.start(ServerImpl.java:362)
| at org.jboss.Main.boot(Main.java:200)
| at org.jboss.Main$1.run(Main.java:464)
| at java.lang.Thread.run(Thread.java:595)
| 09:31:42,046 ERROR [URLDeploymentScanner] Incomplete Deployment listing:
|
I was watching in all sites and i dont get an answer to this problem :( Im trying with the examples from the CVS (Ex: seam-registration...). If anyone had the same problem and fix it, please tell me how fix it :)
Many thanks.
Jose
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3968856#3968856
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3968856
17 years, 9 months
[JBoss jBPM] - swimlane and taskinstances
by antitrust1982
Hi all,
I have create two swimlanes with some tasks for each.
I want to execute my process logging me like the swimlane"s user.
Now, I have made this in order to know my current taskinstance but I have some taskinstances but I must have just one.
I think this problem can be a problem of execution of my taskinstance. do you know how do this please. Now I use the token.signal() is it the good solution.
I put my code of get back taskinstance and my console returns in order to know what is for you my problem.
SwimlaneInstance si= (SwimlaneInstance)session.get("si");
| System.out.println( si.getName());
|
|
|
|
|
| System.out.println("avant la création du collection");
| System.out.println("NOM DU SWIMLANE : "+si.getName());
| Collection taskinstances = (Collection) si.getTaskMgmtInstance().getTaskInstances();
| System.out.println("ca fonctionne le MAP");
| Iterator itr1 = taskinstances.iterator();
| System.out.println("iterator ok");
| while(itr1.hasNext()) {
| System.out.println("creation taskinstance");
| taskinstance=(TaskInstance)itr1.next();
| // taskinstance = processInstance.getTaskMgmtInstance().createTaskInstance();
|
|
| if("ernie"==taskinstance.getActorId()){
| System.out.println("TASK ERNIE ARE:.ERNIE................:"+taskinstance.getName());
| }
|
| else if("bert"==taskinstance.getActorId()){
| System.out.println("task BERT ARE:.BERT....................:"+taskinstance.getName());
| }
| else{
|
| System.out.println("THE TASK ARE NOT ALLOWED TO YOUR USER .. the task is :"+taskinstance.getName()+" to the user "+taskinstance.getActorId());
| taskinstance.getSwimlaneInstance().setActorId("bert");
| System.out.println("Changement effectué.. the task is :"+taskinstance.getName()+" to the user "+taskinstance.getActorId());
| }
| /* System.out.println("TASK INSTANCE..................:"+ taskinstance.getName());
|
| System.out.println("SI ACTOR ID..................: "+si.getActorId());
| jbpmContext1.setActorId("bert");
| System.out.println("JBPM CONTEXT ACTOR ID..........: "+jbpmContext1.getActorId());
| */
|
| }
| //////////////////////////////////
| // jbpmContext.save(token);
|
| try{
| token = taskinstance.getToken();
| token.signal();
| token.signal();
| }
| finally{
|
| }
the console returns:
| iterator ok
| creation taskinstance
| task BERT ARE:.BERT....................:DeclarationSinistre
| creation taskinstance
| TASK ERNIE ARE:.ERNIE................:start
| ############## save token good#######
| ############## save process good#######
| USER ..........................ernie
| set currentNode
| #### execute
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3968855#3968855
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3968855
17 years, 9 months