cancel
Showing results for 
Search instead for 
Did you mean: 

question - extremely simple workflow

dmralfing
Champ in-the-making
Champ in-the-making
I have implemented this workflow that works fine:

<?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" xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI" xmlns:omgdc="http://www.omg.org/spec/DD/20100524/DC" xmlns:omgdi="http://www.omg.org/spec/DD/20100524/DI" typeLanguage="http://www.w3.org/2001/XMLSchema" expressionLanguage="http://www.w3.org/1999/XPath" targetNamespace="Examples">
  <process id="certificadosExpedientesCMAE" name="CMAE 13:06 - Generación de certificados de expedientes">
   <startEvent id="theStart" name="Start" activiti:formKey="cmae:tareaInicio">
   </startEvent>
   <serviceTask id="javaService" name="Servicio Java asociado" activiti:class="org.activiti.colaboracion.cmae.wfs.expedientes.certificados.CreacionCertificadosExpedientes">
    </serviceTask>
   <userTask id="usertask1" name="User Task" activiti:candidateGroups="user"></userTask>
   <endEvent id="theEnd" name="End"></endEvent>
   
    <sequenceFlow id="flow1" name="" sourceRef="theStart" targetRef="javaService"></sequenceFlow>
    <sequenceFlow id="flow2" name="" sourceRef="javaService" targetRef="usertask1"></sequenceFlow>   
    <sequenceFlow id="flow3" name="" sourceRef="usertask1" targetRef="theEnd"></sequenceFlow>
  </process>
</definitions>

…but if I do exactly the same without "userTask1", it doesn´t work. I mean doing like this:

<?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" xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI" xmlns:omgdc="http://www.omg.org/spec/DD/20100524/DC" xmlns:omgdi="http://www.omg.org/spec/DD/20100524/DI" typeLanguage="http://www.w3.org/2001/XMLSchema" expressionLanguage="http://www.w3.org/1999/XPath" targetNamespace="Examples">
  <process id="certificadosExpedientesCMAE" name="CMAE 13:06 - Generación de certificados de expedientes">
   <startEvent id="theStart" name="Start" activiti:formKey="cmae:tareaInicio">
   </startEvent>
   <serviceTask id="javaService" name="Servicio Java asociado" activiti:class="org.activiti.colaboracion.cmae.wfs.expedientes.certificados.CreacionCertificadosExpedientes">
    </serviceTask>
   <!–<userTask id="usertask1" name="User Task" activiti:candidateGroups="user"></userTask>–>
   <endEvent id="theEnd" name="End"></endEvent>
   
    <sequenceFlow id="flow1" name="" sourceRef="theStart" targetRef="javaService"></sequenceFlow>
   <sequenceFlow id="flow2" name="" sourceRef="javaService" targetRef="theEnd"></sequenceFlow>

  <!–<sequenceFlow id="flow2" name="" sourceRef="javaService" targetRef="usertask1"></sequenceFlow>   
    <sequenceFlow id="flow3" name="" sourceRef="usertask1" targetRef="theEnd"></sequenceFlow>–>
  </process>
</definitions>

Somebody knows why I can´t remove "userTask1" keeping my process running ok?
Thank you so much!
2 REPLIES 2

lementree
Champ on-the-rise
Champ on-the-rise
Hi,

To get this work add intermediateCatchEvent from javaservice to end.
like below:

       <intermediateCatchEvent id="timerEvent">
            <timerEventDefinition>
                <timeDuration>PT5S</timeDuration>
            </timerEventDefinition>
        </intermediateCatchEvent>

        <sequenceFlow id="flow2" name="" sourceRef="javaService" targetRef="timerEvent"></sequenceFlow>
        <sequenceFlow id="flow3"   sourceRef='timerEvent'      targetRef='theEnd' />

Regards,

dmralfing
Champ in-the-making
Champ in-the-making
It works fine, THANK YOU SO MUCH!