cancel
Showing results for 
Search instead for 
Did you mean: 

Deploying a process created with modeler fails

lordharaldi
Champ in-the-making
Champ in-the-making
Hello!

First of all, I am a newbie here and have problems when generating a process with the ActivitiModeler.
1. I design a new process with the ActivitiModeler and assign the tasks to different groups.
[attachment=0]ActivitiModeler.png[/attachment]
So test.bpmn20.xml File is generated with the following fragment:

      <userTask completionQuantity="1" id="sid-0B5E91B2-35E3-4BAF-B5D8-2C6E350E2763" implementation="webService" isForCompensation="false" name="testen" startQuantity="1">
         <extensionElements>
            <signavio:signavioMetaData metaKey="bgcolor" metaValue="#ffffcc"/>
         </extensionElements>
         <incoming>sid-4622F0F1-8763-44CB-B3A2-FE66441635B9</incoming>
         <outgoing>sid-E1F2146F-9301-465A-AA2C-D147E614B377</outgoing>
         <potentialOwner id="sid-e65b1a36-c1d7-4d57-b829-d78e311f6e23" resourceRef="">
            <resourceAssignmentExpression id="sid-fde38be4-e26e-48df-a7d2-f585f82edea9">
               <formalExpression id="sid-1ca696a9-f612-49b2-9974-3f13a31676b3">sales</formalExpression>
            </resourceAssignmentExpression>
         </potentialOwner>
      </userTask>

When trying to deploy the file with ActivitiProbe, I am getting the following error message:
cvc-complex-type.3.2.2: Attribute 'resourceRef' is not allowed to appear in element 'potentialOwner'. | test.bpmn20.xml

When deleting the resourceRef attribute, the deployment is successful. I don't like to delete the attribute, allways when changing something at the diagram.
What I am doing wrong?

Greetings,
lordharaldi
6 REPLIES 6

eye
Champ in-the-making
Champ in-the-making
Hi,

just wanted to report the exact same issue and found this thread. But maybe I am doing something wrong here, too.

Greetings,
Dirk

jpp
Champ in-the-making
Champ in-the-making
I've the same issue.. some idea?

Thanks.

jpp
Champ in-the-making
Champ in-the-making
I tried with the Eclipse Plugin and it worked. When you export the .activiti file to xml, its simplifies the content in the xml 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"
typeLanguage="http://www.w3.org/2001/XMLSchema" expressionLanguage="http://www.w3.org/1999/XPath"
targetNamespace="http://www.activiti.org/test">
<process id="helloworld" name="helloworld">
  <startEvent id="startevent1" name="Start"></startEvent>
  <userTask id="usertask1" name="Inicio"
   activiti:candidateGroups="operadores"></userTask>
  <sequenceFlow id="flow1" name="" sourceRef="startevent1"
   targetRef="usertask1"></sequenceFlow>
  <sequenceFlow id="flow2" name="" sourceRef="usertask1"
   targetRef="endevent1"></sequenceFlow>
  <endEvent id="endevent1" name="End"></endEvent>
</process>
</definitions>

Then, you can see the way to asign the candidateGroups (I didn't try candidateUsers or assignee yet).

I hope this help.

Regards,

JP

jbarrez
Star Contributor
Star Contributor
It seems that the Modeler produces an XML wich does not validate to the BPMN 2.0 XSD.

I will file a Jira for it and follow it up.

rainstar79
Champ in-the-making
Champ in-the-making
I have the same problem…are there any news on this issue!?

jbarrez
Star Contributor
Star Contributor
I filed a Jira on the Signavio website: http://code.google.com/p/signavio-core-components/issues/detail?id=12,

but no response yet. You can always add a comment there, maybe it will speed up things.