Created
March 27, 2011 19:02
-
-
Save mproch/889473 to your computer and use it in GitHub Desktop.
Sample spring activiti configuration
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- invoker spring bean with process variables --> | |
<serviceTask id="updateCustomerBalance" | |
activiti:expression="#{customerService.updateBalance(customerId, balance)}"/> | |
<!-- invoke java class implementing JavaDelegate interface --> | |
<serviceTask id="calculateBalance" | |
activiti:class="pl.touk.process.BalanceCalculator"/> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<bean id="processEngineConfiguration" | |
class="org.activiti.spring.SpringProcessEngineConfiguration"> | |
<property name="databaseType" value="h2"/> | |
<property name="dataSource" ref="dataSource"/> | |
<property name="transactionManager" ref="transactionManager"/> | |
<property name="jobExecutorActivate" value="false"/> | |
<property name="deploymentResources" value="classpath*:/process/*.bpmn20.xml"/> | |
</bean> | |
<bean id="processEngine" class="org.activiti.spring.ProcessEngineFactoryBean"> | |
<property name="processEngineConfiguration" ref="processEngineConfiguration"/> | |
</bean> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<process id="nonInterruptingOnConcurrentTasks"> | |
<startEvent id="theStart" /> | |
<sequenceFlow id="flow1" sourceRef="theStart" targetRef="fork" /> | |
<parallelGateway id="fork" /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<bpmndi:BPMNPlane bpmnElement="startTimerEventExample" | |
id="startTimerEventExample_di"> | |
<bpmndi:BPMNShape bpmnElement="theStart" id="theStart_di"> | |
<omgdc:Bounds height="30.0" width="30.0" x="114.0" y="185.0"/> | |
</bpmndi:BPMNShape> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"id": "217", | |
"processDefinitionId": "financialReport:1:1700", | |
"activityNames": ["writeReportTask"], | |
"ended": true | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<userTask id="theTask" name="my task" activiti:formKey="/tasks/task1.form" | |
activiti:candidateGroups="manag |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment