3 Replies Latest reply on Sep 16, 2013 11:12 AM by Chahid jalal

    JBPM 5: Process has no end node

    Chahid jalal Newbie

      Hi

      I have project with  JBPM 5 and Jboss7.

      Sometimes I have this error  ‘ Process has no end node’. if someone  knows why?!!

      NB: process works well most of the time.

        • 1. Re: JBPM 5: Process has no end node
          Ashish T Newbie

          Is it possible to show us your business process  (BPMN) file.   I beleive that in some of the scenario end node is not available and so when process goes in that loop it give sthe error.

          • 2. Re: JBPM 5: Process has no end node
            Chahid jalal Newbie

            processDefinition-image.png

            <?xml version="1.0" encoding="UTF-8"?>

            <definitions id="Definition"

                         targetNamespace="http://www.jboss.org/drools"

                         typeLanguage="http://www.java.com/javaTypes"

                         expressionLanguage="http://www.mvel.org/2.0"

                         xmlns="http://www.omg.org/spec/BPMN/20100524/MODEL"

                         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

                         xsi:schemaLocation="http://www.omg.org/spec/BPMN/20100524/MODEL BPMN20.xsd"

                         xmlns:g="http://www.jboss.org/drools/flow/gpd"

                         xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI"

                         xmlns:dc="http://www.omg.org/spec/DD/20100524/DC"

                         xmlns:di="http://www.omg.org/spec/DD/20100524/DI"

                         xmlns:tns="http://www.jboss.org/drools">

             

             

              <itemDefinition id="_moduleItem" structureRef="String" />

              <itemDefinition id="_accesItem" structureRef="String" />

              <itemDefinition id="_fluxValidationItem" structureRef="String" />

              <itemDefinition id="_personItem" structureRef="com.mastertheboss.jbpm5.Person" />

              <itemDefinition id="_fluxValideItem" structureRef="Boolean" />

              <itemDefinition id="_IntInfoItem" structureRef="eai.process.resume.IntegrationInfo" />

             

             

              <process processType="Private" isExecutable="true" id="com.sample.process" name="My process" >

             

             

                <extensionElements>

             

             

                 <tns:import name="com.X.Y.Validation" />

                 <tns:import name="com.X.Y.Traitemen" />

               

                </extensionElements>

                <!-- process variables -->

                <property id="module" itemSubjectRef="_moduleItem"/>

                <property id="acces" itemSubjectRef="_accesItem"/>

                <property id="fluxValidation" itemSubjectRef="_fluxValidationItem"/>

                <property id="person" itemSubjectRef="_personItem"/>

                <property id="fluxValide" itemSubjectRef="_fluxValideItem"/>

                <property id="IntInfo" itemSubjectRef="_IntInfoItem"/>

             

             

                <!-- nodes -->

                <startEvent id="startevent1" name="Start" />

                <scriptTask id="validation" name="validation" scriptFormat="http://www.java.com/java" >

                  <script>

                                                    action.getInstance().execute(IntInfo);

                                                    Validation.getInstance().execute(IntInfo);

                                                    fluxValidation=Validation.getInstance().decide(IntInfo);

             

             

                                                    kcontext.setVariable("fluxValidation",fluxValidation);

             

             

                                          </script>

                </scriptTask>

                <scriptTask id="Valudation" name="Valudation" >

                  <script>

             

             

                                                    Validation.getInstance().execute(IntInfo);

                                                    acces = Validation.getInstance().decide(IntInfo);

             

             

                                                    kcontext.setVariable("acces",acces);

             

             

                                          </script>

                </scriptTask>

                <scriptTask id="log" name="log" >

                  <script>

                                                    LogValidationFluxAction.getInstance().execute(IntInfo);

                                          </script>

                </scriptTask>

                <exclusiveGateway id="Flux" name="Flux" default="Flux-log" gatewayDirection="Diverging" />

                <exclusiveGateway id="Acces" name="Acces" default="Acces-Log" gatewayDirection="Diverging" />

                <scriptTask id="Log" name="Log" >

                  <script>

                                                    Log.getInstance().execute(IntInfo);

                                          </script>

                </scriptTask>

                <exclusiveGateway id="exclusivegateway3" name="Exclusive Gateway" default="exclusivegateway3-TraitementAutre" gatewayDirection="Diverging" />

                <scriptTask id="Traitement" name="Traitement " >

                  <script>

                                                    Traitement.getInstance().execute(IntInfo);

                                          </script>

                </scriptTask>

                <scriptTask id="Traitement" name="Traitement " >

                  <script>

                                                    Traitement.getInstance().execute(IntInfo);

                                          </script>

                </scriptTask>

                <scriptTask id="Traitement" name="Traitement " >

                  <script>

                                                    Traitement.getInstance().execute(IntInfo);

                                          </script>

                </scriptTask>

                <scriptTask id="Traitement" name="Traitement " >

                  <script>

                                                    Traitement.getInstance().execute(IntInfo);

                                          </script>

                </scriptTask>

                <scriptTask id="Traitement" name="Traitement " >

                  <script>

                                                    Traitement.getInstance().execute(IntInfo);

                                          </script>

                </scriptTask>

                <scriptTask id="Traitement" name="Traitement " >

                  <script>

                                                    Traitement.getInstance().execute(IntInfo);

                                          </script>

                </scriptTask>

                <scriptTask id="Traitement" name="Traitement " >

                  <script>

                                                    Traitement.getInstance().execute(IntInfo);

                                          </script>

                </scriptTask>

                <scriptTask id="Traitement" name="Traitement " >

                  <script>

                                                    Traitement.getInstance().execute(IntInfo);

                                          </script>

                </scriptTask>

                <exclusiveGateway id="exclusivegateway4" name="Exclusive Gateway" gatewayDirection="Converging" />

                <scriptTask id="logAutre" name="Log" >

                  <script>

                                                    Log.getInstance().execute(IntInfo);

                                          </script>

                </scriptTask>

                <scriptTask id="log" name="log" >

                  <script>

                                                    log.getInstance().execute(IntInfo);

                                          </script>

                </scriptTask>

                <scriptTask id="Archivage" name="Archivage" >

                  <script>

                                                    Archivage.getInstance().execute(IntInfo);

                                          </script>

                </scriptTask>

                <exclusiveGateway id="exclusivegateway5" name="Exclusive Gateway" gatewayDirection="Converging" />

                <scriptTask id="Notif" name="Notif" >

                  <script>

                                                    Notif.getInstance().execute(IntInfo);

                                          </script>

                </scriptTask>

                <scriptTask id="Notif" name="Notif" >

                  <script>

                                                    Notif.getInstance().execute(IntInfo);

                                          </script>

                </scriptTask>

                <scriptTask id="Log" name="Log Fin" >

                  <script>

                                                    Log.getInstance().execute(IntInfo);

                                          </script>

                </scriptTask>

                <endEvent id="endevent1" name="End" />

             

             

               

              </process>

             

             

            </definitions>