AnsweredAssumed Answered

workflow details failure on Share

Question asked by jeremiebal on Nov 6, 2014
Latest reply on Nov 7, 2014 by jeremiebal
Hi

I would test a workflow.

In this one, there is a userTask not assigned and a timer event wich fire a service task.
After this one, there is another user task assigned to a GROUP and after the end Task.

So, the workflow works but if i want to see workflow details on Share i have a Failure error like you can see on the image.

I don't understand why.

So please, if someone can tell me where is my error, i thanks him a lot.


<?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:xsd="http://www.w3.org/2001/XMLSchema" 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="http://www.activiti.org/test">
  <process id="myProcess" name="My process" isExecutable="true">
   
   <startEvent id="alfrescoStartevent1" name="Alfresco start" activiti:formKey="wfac:startTask">
      <extensionElements>
        <activiti:executionListener event="end" class="org.alfresco.repo.workflow.activiti.listener.ScriptExecutionListener">
          <activiti:field name="script">
            <activiti:string><![CDATA[               var nbrSecondesWorkflow = 3000;
               var nbrEtapes = 2;
               if (bpm_package.children[0].properties["alf:montantFacture"]>=10000) nbrEtapes++;
               execution.setVariable('nbrSecondesEtape', (Math.round(nbrSecondesWorkflow/nbrEtapes)).toString());
               var expressionAlerte = "PT".concat(execution.getVariable('nbrSecondesEtape').concat("S"));
               execution.setVariable('tempsAlerte', expressionAlerte);
               logger.warn("*** TEMPS ALERTE : " + expressionAlerte);]]></activiti:string>
          </activiti:field>
        </activiti:executionListener>
      </extensionElements>
    </startEvent>
   
    <userTask id="firstTask" name="Tache d initialisation"></userTask>
   
    <sequenceFlow id="flowInit" sourceRef="alfrescoStartevent1" targetRef="firstTask"></sequenceFlow>
   
    <boundaryEvent id="timer_review_Init" attachedToRef="firstTask" >
      <timerEventDefinition>
        <timeDate>PT0S</timeDate>
      </timerEventDefinition>
    </boundaryEvent>

    <sequenceFlow id="flowTimerInit" sourceRef="timer_review_Init" targetRef="service_Init"></sequenceFlow>
   
    <serviceTask id="service_Init" name="E-mail Reminder" activiti:class="org.alfresco.repo.workflow.activiti.script.AlfrescoScriptDelegate">
      <extensionElements>
        <activiti:field name="script">
         <activiti:string><![CDATA[                   
                  logger.warn("TEST");
                  ]]>
         </activiti:string>
        </activiti:field>
      </extensionElements>
    </serviceTask>

    <sequenceFlow id="flowTimerInit2" sourceRef="service_Init" targetRef="tacheValidationCommercialBU"></sequenceFlow>
   
    <userTask id="tacheValidationCommercialBU" name="Validation Commercial BU" activiti:candidateGroups="GROUP_commercialBU" activiti:formKey="wfac:reviewTask">
      <extensionElements>
        <activiti:taskListener event="create" class="org.alfresco.repo.workflow.activiti.tasklistener.ScriptTaskListener">
          <activiti:field name="script">
            <activiti:string><![CDATA[logger.warn("SCRIPT CREATE BU");]]></activiti:string>
          </activiti:field>
        </activiti:taskListener>
      </extensionElements>
    </userTask>
   
    <sequenceFlow id="flow1" sourceRef="tacheValidationCommercialBU" targetRef="endevent1"></sequenceFlow>
   
   <endEvent id="endevent1" name="End"></endEvent>
   
  </process>



Attachments

Outcomes