[JBoss jBPM] - one question about Fork/Join
by biggo
<?xml version="1.0" encoding="GBK"?>
|
| <process-definition xmlns="urn:jbpm.org:jpdl-3.2" name="convertor15">
|
| <!-- START-STATE -->
| <start-state name="start">
| <transition to="startFork" name="start to startFork"/>
| </start-state>
|
| <!-- NODES -->
| <end-state name="end"/>
| <task-node name="a">
| <transition to="b" name="to b"/>
| <task name="a's Task">
| <assignment actor-id="a"/>
| </task>
| </task-node>
| <task-node name="b">
| <transition to="b Fork" name="b to Fork"/>
| <task name="b's Task">
| <assignment actor-id="b"/>
| </task>
| </task-node>
| <task-node name="c">
| <task name="c's Task">
| <assignment actor-id="c"/>
| </task>
| <transition to="join1"></transition>
| </task-node>
| <task-node name="d">
| <task name="d's Task">
| <assignment actor-id="d"/>
| </task>
| <transition to="join2"></transition>
| </task-node>
| <task-node name="e">
| <transition to="f" name="to f"/>
| <task name="e's Task">
| <assignment actor-id="a"/>
| </task>
| </task-node>
| <task-node name="f">
| <task name="f's Task">
| <assignment actor-id="b"/>
| </task>
| <transition to="join2"></transition>
| </task-node>
| <task-node name="g">
| <task name="g's Task">
| <assignment actor-id="a"/>
| </task>
| <transition to="join1"></transition>
| </task-node>
| <fork name="startFork">
| <transition to="a" name="startForka"/>
| <transition to="e" name="startForke"/>
| </fork>
| <fork name="b Fork">
| <transition to="c" name="to c"/>
| <transition to="d" name="to d"/>
| </fork>
| <join name="join1">
| <transition to="end"></transition>
| </join>
|
| <join name="join2">
| <transition to="g"></transition>
| </join>
|
| </process-definition>
|
by given this processdefinition,When TaskNode f and d 's task were all completed ,but the process stoped in the Join2 , and the TaskNode g cann't be accessed , I'm so puzzled by this question.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4161939#4161939
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4161939
16 years, 5 months
[JBoss jBPM] - one question about Fork/Join
by biggo
<?xml version="1.0" encoding="GBK"?>
|
| <process-definition xmlns="urn:jbpm.org:jpdl-3.2" name="convertor15">
|
| <!-- START-STATE -->
| <start-state name="start">
| <transition to="startFork" name="start to startFork"/>
| </start-state>
|
| <!-- NODES -->
| <end-state name="end"/>
| <task-node name="a">
| <transition to="b" name="to b"/>
| <task name="a's Task">
| <assignment actor-id="a"/>
| </task>
| </task-node>
| <task-node name="b">
| <transition to="b Fork" name="b to Fork"/>
| <task name="b's Task">
| <assignment actor-id="b"/>
| </task>
| </task-node>
| <task-node name="c">
| <task name="c's Task">
| <assignment actor-id="c"/>
| </task>
| <transition to="join1"></transition>
| </task-node>
| <task-node name="d">
| <task name="d's Task">
| <assignment actor-id="d"/>
| </task>
| <transition to="join2"></transition>
| </task-node>
| <task-node name="e">
| <transition to="f" name="to f"/>
| <task name="e's Task">
| <assignment actor-id="a"/>
| </task>
| </task-node>
| <task-node name="f">
| <task name="f's Task">
| <assignment actor-id="b"/>
| </task>
| <transition to="join2"></transition>
| </task-node>
| <task-node name="g">
| <task name="g's Task">
| <assignment actor-id="a"/>
| </task>
| <transition to="join1"></transition>
| </task-node>
| <fork name="startFork">
| <transition to="a" name="startForka"/>
| <transition to="e" name="startForke"/>
| </fork>
| <fork name="b Fork">
| <transition to="c" name="to c"/>
| <transition to="d" name="to d"/>
| </fork>
| <join name="join1">
| <transition to="end"></transition>
| </join>
|
| <join name="join2">
| <transition to="g"></transition>
| </join>
|
| </process-definition>
|
by given this processdefinition,When TaskNode f and d 's task were all completed ,but the process stoped in the Join2 , and the TaskNode g cann't be accessed , I'm so puzzled by this question.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4161938#4161938
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4161938
16 years, 5 months
[JBoss jBPM] - Sub process is always null
by scholtz.albert
I have an old problem or so it seems. I have the following process definition:
<?xml version="1.0" encoding="UTF-8"?>
| <process-definition xmlns="" name="KYHProcess">
| <start-state name="start-state1">
| <transition to="viewAccount" name="toViewAccount"></transition>
| </start-state>
| <state name="viewAccount">
| <transition to="end-state1" name="toEndState1"></transition>
| <transition to="updateThreshold" name="toUpdateThreshold"></transition>
| <transition to="addCompanionProducts" name="toAddCompanionProducts"></transition>
| <transition to="viewBill" name="toViewBill"></transition>
| <transition to="resendVPin" name="toResendVPin"></transition>
| </state>
|
| <process-state name="updateThreshold">
| <sub-process name="updateThreshold"></sub-process>
| <transition to="viewAccount"></transition>
| </process-state>
|
| <process-state name="addCompanionProducts">
| <sub-process name="addCompanionProducts"></sub-process>
| <transition to="viewAccount"></transition>
| </process-state>
|
| <process-state name="viewBill">
| <sub-process name="viewBill"></sub-process>
| <transition to="viewAccount"></transition>
| </process-state>
|
| <process-state name="resendVPin">
| <sub-process name="resendVPin"></sub-process>
| <transition to="viewAccount"></transition>
| </process-state>
|
| <end-state name="end-state1"></end-state>
| </process-definition>
I have the updateThreshold process specified as followed:
<?xml version="1.0" encoding="UTF-8"?>
|
| <process-definition xmlns="" name="updateThreshold">
|
| <start-state name="start-state1">
| <transition to="updateThreshold"></transition>
| </start-state>
|
| <task-node name="updateThreshold">
| <transition to="updateSuccessful"></transition>
| </task-node>
|
| <decision name="updateSuccessful">
| <transition to="success"></transition>
| <transition to="failed" name="to failed"></transition>
| </decision>
|
| <end-state name="failed"></end-state>
| <end-state name="success"></end-state>
| </process-definition>
As i signal to enter the updateThreshold process-state, i get the following exception: org.jbpm.JbpmException: can't create a process instance when processDefinition is null.
I deploy my processes using jbpm admin console, first updateThreshold and then KYHProcess. I also added
<bean name="jbpm.sub.process.resolver" class="org.jbpm.graph.node.DbSubProcessResolver" />
to my jbm-console.war jbpm.cfg.xml as some forum posts suggest and still the same result. Using jBPM 3.2
Regards Albert Scholtz
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4161932#4161932
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4161932
16 years, 5 months
[JBoss jBPM] - jbpm sen mail error
by btl_ayd
Hi I use jbpm 3.2.1 version.I want to send mail.I made necessary configuration.On the testcase my application execute well and can send mail.But when I deployed project on jboss and run it this error has been occured:
| 2008-07-01 14:53:09,016 ERROR [org.jbpm.graph.def.GraphElement] action threw exception: couldn't send email
| org.jbpm.JbpmException: couldn't send email
| at org.jbpm.mail.Mail.send(Mail.java:149)
| at org.jbpm.mail.Mail.send(Mail.java:113)
| at org.jbpm.mail.Mail.execute(Mail.java:63)
| at org.jbpm.graph.def.Action.execute(Action.java:122)
| at org.jbpm.graph.def.GraphElement.executeAction(GraphElement.java:255)
| at org.jbpm.graph.def.GraphElement.executeActions(GraphElement.java:220)
| at org.jbpm.graph.def.GraphElement.fireAndPropagateEvent(GraphElement.java:190)
| at org.jbpm.graph.def.GraphElement.fireEvent(GraphElement.java:174)
| at org.jbpm.graph.def.GraphElement$$FastClassByCGLIB$$7a7d6aa6.invoke(<generated>)
| at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
| at org.hibernate.proxy.pojo.cglib.CGLIBLazyInitializer.intercept(CGLIBLazyInitializer.java:163)
| at org.jbpm.graph.def.Node$$EnhancerByCGLIB$$7e22fdfe.fireEvent(<generated>)
| at org.jbpm.graph.exe.Token.signal(Token.java:191)
| at org.jbpm.graph.exe.Token.signal(Token.java:157)
| at org.jbpm.jsf.core.action.SignalActionListener.handleAction(SignalActionListener.java:56)
| at org.jbpm.jsf.core.impl.JbpmActionListenerWrapper.processAction(JbpmActionListenerWrapper.java:82)
| at javax.faces.event.ActionEvent.processListener(ActionEvent.java:77)
| at javax.faces.component.UIComponentBase.broadcast(UIComponentBase.java:758)
| at javax.faces.component.UICommand.broadcast(UICommand.java:368)
| at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:448)
| at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:752)
| at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:97)
| at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:248)
| at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:117)
| at javax.faces.webapp.FacesServlet.service(FacesServlet.java:244)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
| at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
| at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
| at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
| at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
| at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:524)
| at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
| at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
| at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
| at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
| at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
| at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
| at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
| at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
| at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
| at java.lang.Thread.run(Thread.java:810)
| Caused by:
| javax.mail.SendFailedException: Sending failed;
| nested exception is:
| class javax.mail.MessagingException: Exception reading response;
| nested exception is:
| java.net.SocketException: Connection reset
| at javax.mail.Transport.send0(Transport.java:218)
| at javax.mail.Transport.send(Transport.java:80)
| at org.jbpm.mail.Mail.send(Mail.java:147)
| ... 43 more
|
| and here is my processdefinition.xml for sendin mail.
|
|
| <?xml version="1.0" encoding="UTF-8"?>
|
| <process-definition
| xmlns="urn:jbpm.org:jpdl-3.2"
| name="simple">
| <start-state name="start">
| <transition name="to_state" to="first">
| <action name="action" class="com.sample.action.MessageActionHandler">
| <message>Going to the first state!</message>
| </action>
| </transition>
| </start-state>
| <state name="first" >
| <event type="before-signal">
| <mail name="mail" to="baydin(a)kipas.com.tr" subject="dnetjeÅr" text="http://localhost:8080/jbpm-console"></mail>
| <action name="action1" class="com.sample.action.MessageActionHandler">
| <message>BETUL AYDIN BU BÄ°R DENEME</message>
| </action>
| </event>
| <transition name="to_end" to="end">
| <action name="action" class="com.sample.action.MessageActionHandler">
| <message>About to finish!</message>
| </action>
| </transition>
| </state>
| <end-state name="end"></end-state>
| </process-definition>
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4161748#4161748
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4161748
16 years, 5 months
[JBoss jBPM] - Hibernate Exception - javax.naming.NameNotFoundException: jb
by dhanushgopinath
Hi All,
I am trying to deploy a BPEL Process using API's. I have figured that out using the help in forum. (http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4161648#4161648).
But when I am running the code - I am getting the following exception.
11:50:05,675 DEBUG [Configuration] resolving reference to class: com.ibm.wsdl.MessageImpl
| 11:50:05,675 DEBUG [Configuration] resolving reference to class: org.jbpm.bpel.graph.def.ImportDefinition
| 11:50:05,754 INFO [NamingHelper] JNDI InitialContext properties:{}
| 11:50:06,035 FATAL [DatasourceConnectionProvider] Could not find datasource: java:/DefaultDS
| javax.naming.NameNotFoundException: jbpmbpel-client not bound
| at org.jnp.server.NamingServer.getBinding(NamingServer.java:529)
| at org.jnp.server.NamingServer.getBinding(NamingServer.java:537)
The Sample Code is attached:
|
| import java.io.File;
| import java.io.FileInputStream;
| import java.io.FileNotFoundException;
| import java.util.zip.ZipInputStream;
|
| import org.jbpm.JbpmConfiguration;
| import org.jbpm.JbpmContext;
| import org.jbpm.bpel.graph.def.BpelProcessDefinition;
| import org.jbpm.bpel.persistence.db.BpelGraphSession;
| import org.jbpm.bpel.tools.WebModuleBuilder;
| import org.jbpm.graph.def.ProcessDefinition;
| import org.jbpm.jpdl.par.ProcessArchive;
|
|
| public class DeployProcess {
|
| public static void main(String[] args)
| {
| String fileName = "E:\\WorkFlowProjects\\JBoss-BPEL-Deployments\\Workflow3\\src\\Workflow3.zip";
|
| DeployProcess deployObj = new DeployProcess();
| deployObj.InitDeployDirectory();
| try {
| deployObj.Deploy(fileName,args);
| } catch (Exception e) {
| // TODO Auto-generated catch block
| e.printStackTrace();
| }
|
|
|
| }
|
| private void InitDeployDirectory() {
| String deployDirectoryName = null;
| // deduce the deploy directory from environment information
| String serverHomeDirectory;
| try {
| serverHomeDirectory = "D:\\JBOSS\\jboss-4.2.0.GA";
| }
| catch (SecurityException e) {
| serverHomeDirectory = null;
| }
| deployDirectoryName = serverHomeDirectory + File.separatorChar + "deploy";
| deployDirectory = new File(deployDirectoryName);
|
| }
|
| private File deployDirectory = null;
|
| private void Deploy(String fileName, String[] args) throws Exception {
| String xmlResource =args[0]; //"D:\\JBOSS\\jbpm-bpel-1.1.GA\\config\\jbpm.cfg.xml";
| JbpmConfiguration jbpmConfiguration = JbpmConfiguration.getInstance(xmlResource);
| JbpmContext jbpmContext = jbpmConfiguration.createJbpmContext();
| FileInputStream fisProcess = new FileInputStream(fileName);
| ProcessArchive processArchive = new ProcessArchive(new ZipInputStream(fisProcess));
| ProcessDefinition processDefinition = processArchive.parseProcessDefinition();
|
|
| if (processDefinition instanceof BpelProcessDefinition)
| {
| BpelGraphSession graphSession = BpelGraphSession.getContextInstance(jbpmContext);
| graphSession.deployProcessDefinition((BpelProcessDefinition) processDefinition);
| }
| else
| jbpmContext.deployProcessDefinition(processDefinition);
| if (processDefinition instanceof BpelProcessDefinition)
| deployWebModule((BpelProcessDefinition) processDefinition, fileName);
| }
|
| private void deployWebModule(BpelProcessDefinition processDefinition,
| String fileName) {
| File moduleFile = new File(deployDirectory, extractFilePrefix(fileName) + ".war");
|
| WebModuleBuilder builder = new WebModuleBuilder();
| builder.setModuleFile(moduleFile);
| builder.buildModule(processDefinition);
|
|
| }
|
| private static String extractFilePrefix(String fileName) {
| int dotIndex = fileName.lastIndexOf('.');
| return dotIndex != -1 ? fileName.substring(0, dotIndex) : fileName;
| }
| }
|
|
This issue i have already reported in the earlier post. But I am posting this again hoping more people will notice the exception in the Post Title and respond.
Please let me know if you have come across this exception. And if you know the solution please let me know.
Thanks & Regards
Dhanush
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4161655#4161655
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4161655
16 years, 5 months