02-15-2011 10:24 AM
<?xml version="1.0" encoding="UTF-8"?>
<definitions>
<process name="Order_model" id="Order_model">
<startEvent id="startOrder" name=""/>
<serviceTask id="INITIATE_ORDER" name="Initiate the order" activiti:expression="#{orderServiceImpl.initiateOrder(execution)}" />
<userTask id="provisionOrder" name="Validate and provision the order" activiti:formKey="approve.form">
<documentation>
This form will be used to manually approve the orders.
</documentation>
<potentialOwner>
<resourceAssignmentExpression>
<formalExpression>management</formalExpression>
</resourceAssignmentExpression>
</potentialOwner>
</userTask>
<endEvent id="endOrderEvent" name=""/>
<serviceTask id="PLACE_ORDER" name="Place and persist the order" activiti:expression="#{orderServiceImpl.placeOrder(execution)}" />
<sequenceFlow id="SequenceFlow" name="" sourceRef="startOrder" targetRef="INITIATE_ORDER"/>
<sequenceFlow id="SequenceFlow_1" name="" sourceRef="INITIATE_ORDER" targetRef="provisionOrder"/>
<sequenceFlow id="SequenceFlow_2" name="" sourceRef="provisionOrder" targetRef="PLACE_ORDER"/>
<sequenceFlow id="SequenceFlow_3" name="" sourceRef="PLACE_ORDER" targetRef="endOrderEvent"/>
</process>
</definitions>
<serviceTask id="PLACE_ORDER" name="Place and persist the order" activiti:expression="#{orderServiceImpl.placeOrder(execution)}" />
as a field submitted from the form.02-16-2011 03:54 AM
<sequenceFlow id="SequenceFlow_2" name="" sourceRef="provisionOrder" targetRef="endOrderEvent"/>
02-16-2011 03:57 AM
02-16-2011 04:10 AM
02-17-2011 02:42 AM
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:tx="http://www.springframework.org/schema/tx"
xmlns:aop="http://www.springframework.org/schema/aop" xmlns:context="http://www.springframework.org/schema/context"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
http://www.springframework.org/schema/tx
http://www.springframework.org/schema/tx/spring-tx-3.0.xsd
http://www.springframework.org/schema/aop
http://www.springframework.org/schema/aop/spring-aop-3.0.xsd
http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-2.5.xsd">
<bean class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
<property name="location" value="file:/appl/webservers/apache-tomcat-7.0.6/conf/platform.properties" />
</bean>
<bean id="processEngineConfiguration" class="org.activiti.spring.SpringProcessEngineConfiguration">
<property name="databaseType" value="oracle" />
<property name="dataSource" ref="myDataSource" />
<property name="transactionManager" ref="myTxManager"/>
<property name="databaseSchemaUpdate" value="false" />
<property name="jobExecutorActivate" value="${activiti.jobexecutor}" />
<property name="deploymentResources">
<list>
<value>classpath*:be/xxx/poc/*.bpmn20.xml</value>
<value>classpath*:be/xxx/poc/taskform/*.form</value>
</list>
</property>
<property name="history" value="full" />
</bean>
<bean id="processEngine" class="org.activiti.spring.ProcessEngineFactoryBean">
<property name="processEngineConfiguration" ref="processEngineConfiguration" />
</bean>
<bean id="repositoryService" factory-bean="processEngine" factory-method="getRepositoryService" />
<bean id="runtimeService" factory-bean="processEngine" factory-method="getRuntimeService" />
<bean id="taskService" factory-bean="processEngine" factory-method="getTaskService" />
<bean id="historyService" factory-bean="processEngine" factory-method="getHistoryService" />
<bean id="managementService" factory-bean="processEngine" factory-method="getManagementService" />
</beans>
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:tx="http://www.springframework.org/schema/tx"
xmlns:aop="http://www.springframework.org/schema/aop" xmlns:context="http://www.springframework.org/schema/context"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
http://www.springframework.org/schema/tx
http://www.springframework.org/schema/tx/spring-tx-3.0.xsd
http://www.springframework.org/schema/aop
http://www.springframework.org/schema/aop/spring-aop-3.0.xsd
http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-2.5.xsd">
<context:component-scan base-package="be.scarlet.poc.bpm" />
<context:component-scan base-package="be.scarlet.poc.controller" />
<bean id="viewResolver" class="org.springframework.web.servlet.view.InternalResourceViewResolver">
<property name="viewClass" value="org.springframework.web.servlet.view.JstlView"/>
<property name="prefix" value="/WEB-INF/jsp/"/>
<property name="suffix" value=".jsp"/>
</bean>
</beans>
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns
xm="http://www.springframework.org/schema/oxm"
xmlns:sws="http://www.springframework.org/schema/web-services"
xmlns:context="http://www.springframework.org/schema/context"
xmlns:util="http://www.springframework.org/schema/util" xmlns:mvc="http://www.springframework.org/schema/mvc"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
http://www.springframework.org/schema/oxm http://www.springframework.org/schema/oxm/spring-oxm-1.5.xsd
http://www.springframework.org/schema/web-services http://www.springframework.org/schema/web-services/web-services-1.5.xsd
http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.0.xsd
http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-3.0.xsd
http://www.springframework.org/schema/oxm http://www.springframework.org/schema/oxm/spring-oxm-1.5.xsd http://www.springframework.org/schema/mvc http://www.springframework.org/schema/mvc/spring-mvc-3.0.xsd">
<!– Scans the classpath of this application for @Components to deploy as beans –>
<context:component-scan base-package="be.xxx.poc.controller"/>
<!– Configures the @Controller programming model –>
<mvc:annotation-driven/>
</beans>
02-17-2011 03:12 AM
02-17-2011 11:01 AM
02-17-2011 11:50 AM
02-17-2011 02:11 PM
06-27-2012 11:00 AM
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.