Context Xml Files - odtorres/Alfresco-Sublime-Snippets GitHub Wiki
Just type the command and press ctrl + space
<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE beans PUBLIC '-//SPRING//DTD BEAN//EN' 'http://www.springframework.org/dtd/spring-beans.dtd'>
<beans>
</beans>
<!-- Registration of new models -->
<bean id="$1" parent="dictionaryModelBootstrap" depends-on="dictionaryBootstrap">
<property name="models">
<list>
<value>alfresco/module/$2/model/$3.xml</value>
</list>
</property>
</bean>
<!-- Registration of new resourceBundles -->
<bean id="$1" class="org.alfresco.web.app.ResourceBundleBootstrap">
<property name="resourceBundles">
<list>
<value>alfresco.module.$2.messages.$3</value>
</list>
</property>
</bean>
<!-- Registration of new workflow -->
<bean id="$1" parent="workflowDeployer">
<property name="workflowDefinitions">
<list>
<props>
<prop key="engineId">activiti</prop>
<prop key="location">alfresco/module/$2/workflows/$3.bpmn</prop>
<prop key="mimetype">text/xml</prop>
<prop key="redeploy">false</prop>
</props>
</list>
</property>
</bean>
<bean id="$1" class="org.mycode" parent="baseJavaScriptExtension">
<property name="extensionName">
<value>myJSService</value>
</property>
</bean>
<props>
<prop key="engineId">activiti</prop>
<prop key="location">alfresco/module/$1/workflows/$2.bpmn</prop>
<prop key="mimetype">text/xml</prop>
<prop key="redeploy">false</prop>
</props>