This document list all changes we did tfo signavio for rebranding it to Activiti Modeler
Checkout
We'll be using the bpmn20 branch:
svn checkout https://signavio-oryx-initiative.googlecode.com/svn/branches/bpmn20 signavio-oryx-initiative --username joram.barrez
Build
in build.xml at the root of the project:
- add the following target:
<target name="build-activiti-war">
<delete dir="build"/>
<delete file="$
/activiti-modeler.war"/>
<mkdir dir="$
"/>
<!- Prepare Explorer, Libs and Editor ->
<ant antfile="build.xml" target="com.signavio.explorer.dir" dir="$
">
<property name="dir-target" value="../build/explorer" />
</ant>
<ant antfile="build.xml" target="com.signavio.libs.dir" dir="$
">
<property name="dir-target" value="../build/libs" />
</ant>
<ant antfile="build.xml" target="com.signavio.editor.dir" dir="$
">
<property name="dir-oryx-editor" value="../$
" />
<property name="dir-target" value="../build/editor" />
</ant>
<!- Prepare Platform ->
<ant antfile="build.xml" target="org.oryxeditor.platform.weaving" dir="$
" />
<!- Build War ->
<war destfile="$
/activiti-modeler.war"
webxml="$
/WebContent/WEB-INF/web.xml"
update="true">
<fileset dir="$
/WebContent">
<exclude name="WEB-INF/"/>
<exclude name="META-INF/"/>
</fileset>
<webinf dir="$
/WebContent/WEB-INF" />
<classes dir="$
/target/woven-classes"/>
<classes dir="build/editor/classes"/>
<lib dir="$
/lib">
<include name="*.jar"/>
<include name="*.xsl"/>
<exclude name="deprecated/**"/>
<exclude name="sources/**"/>
<exclude name="servlet-api.jar" />
<exclude name="activation.jar" />
<exclude name="batik-anim.jar" />
<exclude name="batik-awt-util.jar" />
<exclude name="batik-bridge.jar" />
<exclude name="batik-codec.jar" />
<exclude name="batik-css.jar" />
<exclude name="batik-dom.jar" />
<exclude name="batik-ext.jar" />
<exclude name="batik-extension.jar" />
<exclude name="batik-gui-util.jar" />
<exclude name="batik-gvt.jar" />
<exclude name="batik-parser.jar" />
<exclude name="batik-script.jar" />
<exclude name="batik-svg-dom.jar" />
<exclude name="batik-svggen.jar" />
<exclude name="batik-swing.jar" />
<exclude name="batik-transcoder.jar" />
<exclude name="batik-util.jar" />
<exclude name="batik-xml.jar" />
<exclude name="js.jar" />
<exclude name="org.json.jar" />
<exclude name="pdf-transcoder.jar" />
<exclude name="xml-apis-ext.jar" />
<exclude name="xalan-2.7.1.jar" />
<exclude name="xercesImpl-2.8.1.jar" />
</lib>
<lib dir="$
/lib/wsdl2xforms">
<include name="*.xsl"/>
</lib>
<lib dir="$
/lib/xsd">
<include name="*.xsd"/>
</lib>
<metainf dir="$
/WebContent/META-INF"/>
<fileset dir="build">
<exclude name="editor/classes/**"/>
<exclude name="editor/*.xhtml"/>
<exclude name="editor/stencilsets/aress/**" />
<exclude name="editor/stencilsets/b3mn/**" />
<exclude name="editor/stencilsets/bpel/**" />
<exclude name="editor/stencilsets/bpel4chor/**" />
<exclude name="editor/stencilsets/bpmnexecutable/**" />
<exclude name="editor/stencilsets/bpmnplus/**" />
<exclude name="editor/stencilsets/bpmnq/**" />
<exclude name="editor/stencilsets/extensions/bpel4chor/**" />
<exclude name="editor/stencilsets/extensions/bpel4chor_grounding/**" />
<exclude name="editor/stencilsets/extensions/bpmn-design-thinking-subset/**" />
<exclude name="editor/stencilsets/extensions/bpmn-xforms-user-interfaces/**" />
<exclude name="editor/stencilsets/extensions/bpmn1.1basicsubset/**" />
<exclude name="editor/stencilsets/extensions/bpmncosts/**" />
<exclude name="editor/stencilsets/extensions/bpmnservicecompositionsubset/**" />
<exclude name="editor/stencilsets/extensions/bpmnwikirefs/**" />
<exclude name="editor/stencilsets/extensions/generated-stencil-set-extensions/**" />
<exclude name="editor/stencilsets/extensions/ibpmn-FH/**" />
<exclude name="editor/stencilsets/fmcblockdiagram/**" />
<exclude name="editor/stencilsets/ibpmn/**" />
<exclude name="editor/stencilsets/interactiondiagram/**" />
<exclude name="editor/stencilsets/interactionpetrinets/**" />
<exclude name="editor/stencilsets/kmnets/**" />
<exclude name="editor/stencilsets/letsdance/**" />
<exclude name="editor/stencilsets/trackerworkflow/**" />
<exclude name="editor/stencilsets/treeGraph/**" />
<exclude name="editor/stencilsets/uml/**" />
<exclude name="editor/stencilsets/xforms/**" />
</fileset>
<fileset file="$
/favicon.ico"/>
</war>
</target>
Url changes
Edit the file platform/WebContent/WEB-INF/web.xml and change the following parameters to the following values:
<context-param>
<description>Filesystem directory that is used to store models</description>
<param-name>fileSystemRootDirectory</param-name>
<param-value>/Users/jbarrez/</param-value>
</context-param>
<context-param>
<description>Base URL of the Explorer web application</description>
<param-name>explorer</param-name>
<param-value>/activiti-modeler/explorer</param-value>
</context-param>
<context-param>
<description>Base URL of the Editor web application</description>
<param-name>editor</param-name>
<param-value>/activiti-modeler/editor</param-value>
</context-param>
<context-param>
<description>Base URL of the JS libraries</description>
<param-name>libs</param-name>
<param-value>/activiti-modeler/libs</param-value>
</context-param>
Edit the file \editor modifications\src\client\scripts\config.js line 37:
ORYX.CONFIG.WEB_URL = "/activiti-modeler/explorer";
ORYX.CONFIG.WAR_PATH = "/activiti-modeler";
Edit the file \explorer\src\javascript\config.js line 46
Signavio.Config.EXPLORER_PATH = '/activiti-modeler/explorer';
Signavio.Config.EDITOR_PATH = '/activiti-modeler/editor';
Signavio.Config.BACKEND_PATH = '/activiti-modeler/p';
Signavio.Config.LIBS_PATH = '/activiti-modeler/libs';
Edit the file editor\ modifications/src/client/css/theme_norm_signavio.css
replace all urls with signavio to 'activiti-modeler'
Images
- replace explorer/src/img/signavio/smoky/logo.png with Activiti splash logo
- replace explorer/src/img/signavio/smoky/logo2.png with Activiti header logo
- edit explorer/src/css/xtheme-specific.css to the dimension of the Activiti header logo
#signavio_repository_header #signavio_repository_logo, #oryx_editor_header a {
background:transparent url(../img/signavio/smoky/logo2.png) no-repeat scroll 0 0 !important;
height:32px !important;
left:10px !important;
margin-top:4px !important;
position:absolute;
top:0 !important;
width:350px !important;
z-index:1000;
}
Delete in this file also in mask-logo the border-bottom and change
.mask-logo div img {
padding-bottom:0px;
visibility: hidden;
}
- Edit editor\ modifications/src/client/scripts/Plugins/signavio.js
- "<span class='mask-title' style='"stitle"'>Editor</span>"+
"<span class='mask-version' style='"sversion"'>Version "version"</span>"+ - Search in that file for 'mask-logo' to get to the right line
- Switch those to Activiti-Modeler and the right version
- Edit explorer/src/javascript/core/repository.js
- Same changes as the previous one, now replacing 'explorer'
- Search in that file for 'mask-logo' to get to the right line
- Replace explorer/src/img/signavio/signavio_logo.png with the Activiti splash logo
- Edit editor/src/client/css/theme_norm_signavio.css to match the settings of xtheme-specific.css (it's the same logo):
#oryx_editor_header a {
background:transparent url(/activiti-modeler/explorer/src/img/signavio/smoky/logo2.png) no-repeat scroll 0 0 !important;
height:32px !important;
left:10px !important;
margin-top:4px !important;
position:absolute;
top:0 !important;
width:350px !important;
z-index:1000;
}
- Replace explorer/src/img/signavio/header_background2.png with the image that acts as background for the header
- This will change the editor background
- Replace explorer/src/img/signavio/smoky/header_background2.png with the image that acts as background for the header
- This will change the explorer background
Exception during saving of bpmn 2.0 processes:
changed in build.xml
<lib dir="$
/lib/xsd">
<include name="*.xsd"/>
</lib>
to
<lib dir="$
/lib/xsd">
<include name="*.xsd"/>
<include name="bpmn20/*.xsd" />
</lib>
Build the war
ant build-activiti-war
