01-11-2011 05:49 PM
01-12-2011 03:09 AM
01-12-2011 04:20 PM
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd">
<bean id="processEngineConfiguration"
class="org.activiti.engine.impl.cfg.StandaloneInMemProcessEngineConfiguration">
<property name="databaseType" value="h2"/>
<property name="jdbcUrl" value="jdbc:h2:mem:activiti;DB_CLOSE_DELAY=1000"/>
<property name="jdbcDriver" value="org.h2.Driver"/>
<property name="jdbcUsername" value="sa"/>
<property name="jdbcPassword" value=""/>
<!– Database configurations –>
<property name="databaseSchemaUpdate" value="true"/>
<!– job executor configurations –>
<property name="jobExecutorActivate" value="false"/>
<!– mail server configurations –>
<property name="mailServerPort" value="5025"/>
</bean>
<bean id="myBean" class="com.simpleprocess.main.MyBean">
<property name= "myProperty" value="Hello, world!"/>
</bean>
</beans>
ç<?xml version="1.0" encoding="UTF-8"?>
<definitions xmlns="http://www.omg.org/spec/BPMN/20100524/MODEL"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:activiti="http://activiti.org/bpmn"
typeLanguage="http://www.w3.org/2001/XMLSchema"
expressionLanguage="http://www.w3.org/1999/XPath"
targetNamespace="http://www.activiti.org/test">
<process id="globalBeanTest">
<startEvent id="startAlone" />
<sequenceFlow targetRef="service" sourceRef="startAlone"/>
<serviceTask id="service" name="Servicio Hola" activiti:expression="#{myBean.callMethod()}"/>
<sequenceFlow targetRef="endFailure" sourceRef="service"/>
<endEvent id="endFailure"/>
</process>
</definitions>
01-14-2011 04:17 AM
01-16-2011 03:53 PM
Without Spring?
If you’ve taken a look at the sources, you’ll notice that getting the dependencies right isn’t trivial. Hell, 99% of my time went to figuring out which libraries I needed and why the hell asm was three times on my classpath with different versions.
In the next months, we’ll be adding a ‘native’ way of calling EJB’s in a BPMN 2.0 process, without having to go through Spring. That way, you’ll just need Activiti and we’ll take care of everything behind the scenes. However, the approach in this tutorial can be used for many other use cases: JMS, webservice calls, some legacy system, etc. Conclusion of this story: If you can wrap it in a Spring bean, you can use it in your BPMN 2.0 process.
01-16-2011 06:40 PM
01-17-2011 04:05 PM
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.