I am using org.activiti:spring-boot-starter-basic:5.17.0
and I am not able to persist the tasks meaning that the business process I defined runs perfectly but all the ACT_RU_*
tables are always empty.
Should I explicitly switch on persistence? I have not found anything about it in the documentation (https://www.activiti.org/userguide/).
UPDATE
I have added a userTask but nothing has changed:
<definitions id="Definition"
targetNamespace="http://www.jboss.org/drools"
typeLanguage="http://www.java.com/javaTypes"
expressionLanguage="http://www.mvel.org/2.0"
xmlns="http://www.omg.org/spec/BPMN/20100524/MODEL"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.omg.org/spec/BPMN/20100524/MODEL BPMN20.xsd"
xmlns:g="http://www.jboss.org/drools/flow/gpd"
xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI"
xmlns:dc="http://www.omg.org/spec/DD/20100524/DC"
xmlns:di="http://www.omg.org/spec/DD/20100524/DI"
xmlns:tns="http://www.jboss.org/drools">
<itemDefinition id="_personItem" structureRef="org.jbpm.examples.quickstarts.Person"/>
<process processType="Private" isExecutable="true" id="test"
name="Sample Process" tns:packageName="defaultPackage">
<startEvent id="_1" name="StartProcess"/>
<scriptTask id="_2" name="Script">
<script>System.out.println("Hello Ivan");</script>
</scriptTask>
<userTask id="_3" name="User Task" >
<ioSpecification>
<inputSet>
</inputSet>
<outputSet>
</outputSet>
</ioSpecification>
</userTask>
<endEvent id="_4" name="End">
<terminateEventDefinition/>
</endEvent>
<sequenceFlow id="_1-_2" sourceRef="_1" targetRef="_2"/>
<sequenceFlow id="_2-_3" sourceRef="_2" targetRef="_3"/>
<sequenceFlow id="_3-_4" sourceRef="_3" targetRef="_4"/>
</process>
</definitions>
Thx