Skip to content

Instantly share code, notes, and snippets.

@mproch
Created March 27, 2011 19:02
Show Gist options
  • Save mproch/889473 to your computer and use it in GitHub Desktop.
Save mproch/889473 to your computer and use it in GitHub Desktop.
Sample spring activiti configuration
<!-- 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"/>
<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>
<process id="nonInterruptingOnConcurrentTasks">
<startEvent id="theStart" />
<sequenceFlow id="flow1" sourceRef="theStart" targetRef="fork" />
<parallelGateway id="fork" />
<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>
{
"id": "217",
"processDefinitionId": "financialReport:1:1700",
"activityNames": ["writeReportTask"],
"ended": true
}
<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