cancel
Showing results for 
Search instead for 
Did you mean: 

Custom Stencils

colinjay
Champ in-the-making
Champ in-the-making
Hi there:
Is there any possibility to run the editor (activiti-modeler) with different configurations regarding to plugins, stencil sets and stencil set extensions?
I just want to dissable some of the BPMN Objects in my installation.

Thx
Best regards
3 REPLIES 3

jbarrez
Star Contributor
Star Contributor
In theory that should be possible (it is possible in Oryx), but I don't the locations of the stencil sets and how they are used.

solar
Champ in-the-making
Champ in-the-making
I assume, you did check out the sources of the Signavio Core Components from here: http://code.google.com/p/signavio-core-components/

We did exactly that in a recent project, it is possible by adding a new stencilset-extension in the "editor->data->stencilsets->extensions" folder.
Just look at the bpmn2.0basicsubset for an example. A more comprehensive guide on stencilset-extensions can be found here:
http://code.google.com/p/oryx-editor/wiki/StencilSetPerspectives and here: http://code.google.com/p/oryx-editor/wiki/HowToCreateStencilSet

After you created the extension, you have to enable it:
Add something like:

{
"title" : "Core Elements",
"title_de":"Kernelemente",
"namespace" : "http://oryx-editor.org/stencilsets/extensions/bpmn2.0basicsubset#",
"description":"A basic subset of BPMN 2.0 containing only task, sequence flow, start event, end event, parallel gateway and data-based XOR.",
"definition":"bpmn2.0basicsubset/bpmn2.0basicsubset.json",
"extends":"http://b3mn.org/stencilset/bpmn2.0#"
},
to the "configuration->Activiti->editor->extensions.json" file. The files in this folder will be used, if you build the target "Activiti".

If you want to be able to switch between several perspectives, you need to activate the select-perspective plugin in the plugins.xml (same configuration folder as above) by adding these lines:

<plugin source="selectssperspective.js" name="ORYX.Plugins.SelectStencilSetPerspective">
<notUsesIn namespace="http://b3mn.org/stencilset/jbpm4#'/>
<notUsesIn namespace="http://b3mn.org/stencilset/timjpdl3#'/>
</plugin>

I'm not sure, if you need this, but it does not hurt:
check the last file "stencilsets.json" in that folder and see, that your extension is listed in the "extensions" property of the stencilset.
Look at the "stencilsets.json" in the "default" folder for reference.

Hope that helps.

Cheers,
solar

colinjay
Champ in-the-making
Champ in-the-making
Yep, that helps!
Thank you