When I run test code class org.jbpm.bpmn2.IntermediateEventTest, method testIntermediateCatchEventTimerCycleWithErrorWithPersistence
Saw the following exception,
Caused by: java.lang.IllegalArgumentException: Unknown node instance type: org.jbpm.workflow.instance.node.ActionNodeInstance@59480073
at org.jbpm.marshalling.impl.AbstractProtobufProcessInstanceMarshaller.writeNodeInstanceContent(AbstractProtobufProcessInstanceMarshaller.java:445) ~[jbpm-flow-6.1.0-SNAPSHOT.jar:6.1.0-SNAPSHOT]
at org.jbpm.marshalling.impl.AbstractProtobufProcessInstanceMarshaller.writeNodeInstance(AbstractProtobufProcessInstanceMarshaller.java:179) ~[jbpm-flow-6.1.0-SNAPSHOT.jar:6.1.0-SNAPSHOT]
at org.jbpm.marshalling.impl.AbstractProtobufProcessInstanceMarshaller.writeProcessInstance(AbstractProtobufProcessInstanceMarshaller.java:117) ~[jbpm-flow-6.1.0-SNAPSHOT.jar:6.1.0-SNAPSHOT]
at org.jbpm.marshalling.impl.AbstractProtobufProcessInstanceMarshaller.writeProcessInstance(AbstractProtobufProcessInstanceMarshaller.java:74) ~[jbpm-flow-6.1.0-SNAPSHOT.jar:6.1.0-SNAPSHOT]
at org.jbpm.persistence.processinstance.ProcessInstanceInfo.update(ProcessInstanceInfo.java:231) ~[jbpm-persistence-jpa-6.1.0-SNAPSHOT.jar:6.1.0-SNAPSHOT]
check the source code and found writeNodeInstanceContent indeed does not support ActionNodeInstance. Can you fix it?
it works as expected. ActionNodeInstance should never be persisted as it's not a wait state node. The test checks that behavior.
HTH