cancel
Showing results for 
Search instead for 
Did you mean: 

problem in parallel gateway

dev1
Champ in-the-making
Champ in-the-making
hi all,
here i have attached a BPMN.jpg file which shows my process diagram..in this diagram my ACTIVITI engine is not able to execute "task 3"..it doesnt show any error but, it just dont execute it. Can any one answer this please
10 REPLIES 10

tiesebarrell
Champ in-the-making
Champ in-the-making
DEV,

the best way to get help in this case is probably to include the BPMN XML for your process.

dev1
Champ in-the-making
Champ in-the-making
hi,
i am still stuck with this problem…i have included BPMN xml …but still the same trouble

regards,
DEV

tiesebarrell
Champ in-the-making
Champ in-the-making
DEV,

it might just be me, but where's the XML? All I see attached to this post is the image.

dev1
Champ in-the-making
Champ in-the-making
hi,
as u wished to see the XML of the above mentioned XML…
this is the xml generated by the engine:-


<?xml version="1.0" encoding="UTF-8"?>
<definitions xmlns="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:activiti="http://activiti.org/bpmn-extensions" typeLanguage="http://www.w3.org/2001/XMLSchema" expressionLanguage="http://www.w3.org/1999/XPath" targetNamespace="http://www.activiti.org/bpmn2.0"><process id="helloworld" name="helloworld">

<startEvent id="startevent1" name="Start"></startEvent>
<serviceTask id="servicetask1" name="task 1" activiti:class="com.company.Foo"></serviceTask>
<serviceTask id="servicetask2" name="task 2" activiti:class="com.company.Bar"></serviceTask>
<serviceTask id="servicetask3" name="task 3" activiti:class="com.company.FooBar"></serviceTask>

<parallelGateway id="parallelgateway1" name="Parallel Gateway"></parallelGateway>
<parallelGateway id="parallelgateway2" name="Parallel Gateway"></parallelGateway>


<sequenceFlow id="flow1" name="to Service Task" sourceRef="parallelgateway2" targetRef="servicetask1"></sequenceFlow>
<sequenceFlow id="flow2" name="to Service Task" sourceRef="parallelgateway2" targetRef="servicetask2"></sequenceFlow>
<sequenceFlow id="flow3" name="to Parallel Gateway" sourceRef="servicetask1" targetRef="parallelgateway1"></sequenceFlow>
<sequenceFlow id="flow4" name="to Parallel Gateway" sourceRef="servicetask2" targetRef="parallelgateway1"></sequenceFlow>
<sequenceFlow id="flow6" name="to Service Task" sourceRef="parallelgateway1" targetRef="servicetask3"></sequenceFlow>
<sequenceFlow id="flow7" name="to End" sourceRef="servicetask3" targetRef="endevent1"></sequenceFlow>
<sequenceFlow id="flow12" name="to Parallel Gateway" sourceRef="startevent1" targetRef="parallelgateway2"></sequenceFlow>

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


in the above mentioned XML..the ACTIVITI engine is not able to execute "task 3"…pls tell me why..

tiesebarrell
Champ in-the-making
Champ in-the-making
DEV,

I can't see a problem with the XML. I was wondering whether you had run into the known bug in the designer, where if you reconnect a sequence flow, the business object linking is not correctly updated. It appears though, that this isn't the case for your process.

The only other obvious thing I can think of is the the com.company.FooBar class doesn't exist or isn't part of your process archive when you run it. Have you checked that?

dev1
Champ in-the-making
Champ in-the-making
hi,
I really appreciate u all peoples effort to help me..thank you for doing so….

As u said in your previous reply i checked  "FooBar" class in eclipse and it is perfectly included in the project…
for the things to be more clear i am attaching a screen shot of my eclipse……
I also want to know if you create 3 "Service task" as i have created in your eclipse..do you too face the same problem or not ???

regards,
DEV

tiesebarrell
Champ in-the-making
Champ in-the-making
DEV,

I have limited experience with running processes, so maybe somebody else can chip in with some tips. Your classes all implement JavaDelegation?

http://activiti.org/javadocs/org/activiti/engine/delegate/JavaDelegation.html

dev1
Champ in-the-making
Champ in-the-making
Thanks for your help…i will go through the docs and let u know if i face any trouble…
regards.
DEV

trademak
Star Contributor
Star Contributor
Hi,

Your BPMN 2.0 XML looks perfectly fine. Did you add some logging statements to the Java service task classes to see if they are executed? If so, send me your bpmn 2.0 XML + Java service task classes and I will test it. You can send it to tijs@apache.org.

Best regards,

Tijs Rademakers