cancel
Showing results for 
Search instead for 
Did you mean: 

Help generating valid bpmn20.xml using activiti-modeler

shbeita
Champ in-the-making
Champ in-the-making
Hi,
I'm trying to integrate Activiti as our BPM tool.
The idea is to five an external tool to the customers by default to generate the process definitions, and I thought we should use activiti-modeler since it web based and easy to use (for non technical users).
The problem is that i can't generate files and use them directly in the explorer. I must change the files manually in order to successfully deploy using activiti-explorer.
I need at least to change the following:
1. add the activiti namespace to the file: xmlns:activiti="http://activiti.org/bpmn"
2. change the isExecutable=ture instead of false
3. add activiti prefix to all activiti elements

Any idea how can i make the modeler works properly?

BTW using the designer works great , but we can give an eclipse plugin as a tool to customers.

Thanks
Serhan
5 REPLIES 5

shbeita
Champ in-the-making
Champ in-the-making
Hi
Can anyone help here….
We need to use out of the box tool to give our customers to create the process definition..
Activiti-modeler even after foloowing up the steps in this page: http://docs.codehaus.org/display/ACT/How+to+build+Activiti+Modeler+from+Signavio
I couldn't make it to generate valid bpmn20.xml file (missing namespace etc')

Please your help so I can convince my team and managers to use activiti as our BPM engine.

Thanks

mindaugas
Champ in-the-making
Champ in-the-making
hi,

for me are also interesting why automatically Signavio editor put isExecutable="false" attribute in false. May be there are some property to change it?



   <signal id="sid-45d1b1d2-1699-4f95-8d44-bc401724fff2" name="s1"/>
   <signal id="sid-48d5d7af-e59b-4fbc-8a21-0422c9faa6f3" name="s2"/>
   <process id="Proc13" isExecutable="false">
      <startEvent id="sid-8FD08E35-7390-4316-B611-9E3D1CE714DD" name="Start Process">
         <extensionElements>

dguggi
Champ in-the-making
Champ in-the-making
i don't know if the modeler can to this (add activity namespace etc.) - i just build the war file (with the configuration=Activiti). Looking at the source code the configuration=Activiti doesn't seem to add any activiti extensions (namespace etc.). I don't know if this was used to work with the ant-activiti-patch (which is not part of acitviti anymore)

Imho currently the eclipse designer is also to limited (transactional-subprocess, cancel-boundary events etc. are afaik unsupported yet…)

So currently I use the Yaoqiang BPMN Editor (http://bpmn.sourceforge.net/). This is a simple (standalone) java program with an activiti-addon. I use the bpmn editor to model the processes and can use them in activiti without modifying the generated xml…

daniel

fmpdmb
Champ on-the-rise
Champ on-the-rise
My question is even more generic.  Why do I have a workflow.bpmn file as well as a workflow.bpmn20.xml file?  My understanding is that the eclipse plugin modifies the bpmn files, but I need to have the bpmn20.xml files to deploy to the process engine.  Is my understanding correct?  If so, how can I keep these files in sync with each other?

fmpdmb
Champ on-the-rise
Champ on-the-rise
I answered my own question and have solved this problem by using ant to rename my *.bpmn files to *.bpmn20.xml with a separate build target as follows:


<target name="deployWorkflowDefinitions">
    <fileset id="workflowDefinitions" dir="src/java/main" includes="**/*.bpmn" />
   
    <resourcecount property="count.workflowDefinitions" refid="workflowDefinitions" />
    <echo>Deployed ${count.workflowDefinitions} workflow definitions.</echo>
   
    <!– copy workflow definition files, but rename to deployable format –>
    <copy todir="${dist-classes}" failonerror="true">
      <fileset refid="workflowDefinitions" />
      <mapper type="glob" from="*.bpmn" to="*.bpmn20.xml"/>
    </copy>
</target>