cancel
Showing results for 
Search instead for 
Did you mean: 

Customizing the Activiti Modeler

mark1970
Champ in-the-making
Champ in-the-making
Hi all,
I'm trying to customize the Activiti modeler by inserting some custom properties in the nodes. For example, I'm trying to add the activiti:class property to a ServiceTask.

I've successuflly added the property in the bpmn2.0.json file and now it's displayed in the palette, however the property is not added when I generate the bpmn20.xml file.

I can see that the editor's properties are mentioned in the Semantic.xsd file, however adding it also there produces no effect.

Please could you help me how to add the property also in the generated XML file ?

Thanks a lot
Mark
29 REPLIES 29

ronald_van_kuij
Champ on-the-rise
Champ on-the-rise
Could you give me a link please? Thanks!


sorry, no, simply because I don't have it. But I suspect google is your friend

al_lv
Champ in-the-making
Champ in-the-making
@dryabkov
Did you try to integrate your convert function, that now will be started through the ant task into signavio modeler, so that the model will be converted by saving?

croc1
Champ in-the-making
Champ in-the-making
Hi! dryabkov

I build this project and sucess,
   - ant build-all-in-one-war
but when I use the actviti-modeler draw the UserTask
and set activiti:assignee like this:
[attachment=1]aas.png[/attachment]

and I save the process def file,

but generated file(i.e. xxxx.bpmn.xml) has not
activiti:assignee="tom" this attribute

[attachment=0]TTyyy.png[/attachment]

thx!

dryabkov
Champ in-the-making
Champ in-the-making
I don't understand architecture of Activiti Modeller clearly. It's like generation passes in two phases - at first XXX.signavio.xml and transformation it to XXX.bpmn20.xml at second. For distinct separation of my code from original I didn't change second phase yet, I wrote my own converter and call it from ant script. This method suits our organization needs now. Maybe sometime I'll transfer my code to second phase.

nandoztx
Champ in-the-making
Champ in-the-making
Hi dryabkov!

Great work to customize the modeler activiti.

I build this project and sucess, but I have the same problem from croc. I wonder if you had any progress to resolve this problem.

Thank you!

math7189
Champ in-the-making
Champ in-the-making
Hi,

I'm trying to customize the Activiti modeler, I'd like to make more groups of properties, for instance now we can found the Main attributes and More attributes groups, it could be interesting to have more groups.

I also want to add or remove attributes, I tried by modifying the bpmn2.0.json but doesn't work. I don't really understand the way you did that.

Could you help me please. Thanks

math

dryabkov
Champ in-the-making
Champ in-the-making
Hi!

I've done today great change on https://github.com/dryabkov/activiti-modeler-experiment. Things specific for Activiti would be saved right at saving model in browser, no additional convertersion step anymore.

We planned at next days to implement datePattern construction in formProperties:
<activiti:formProperty id="start" type="date" datePattern="dd-MMM-yyyy" />
Watch over github.

math7189
Champ in-the-making
Champ in-the-making
Hi,

I finally manage to add new attributes for the properties, the problem was the cache. I add to delete it and then it worked.

But I still have problems with creating new groups. I added a field "group" for each attributes in the json file, then in propertywindow.js I change the grouping field (groupField: 'group') but doesn't work.

Any idea to create groups in the palette?

thanks

infoleather
Champ in-the-making
Champ in-the-making
In the deployment of the application, I get the same path errors. How did you get this problem?