Does anyone know if Timer BoundaryEvents can work when attached to User Tasks? I created a simple process model (see attached) with the said scenario and KnowledgeBuilder is unable to parse the process file.
java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
at java.util.ArrayList.RangeCheck(ArrayList.java:547)
at java.util.ArrayList.get(ArrayList.java:322)
at org.jbpm.bpmn2.xml.ProcessHandler.linkBoundaryEvents(ProcessHandler.java:333)
at org.jbpm.bpmn2.xml.ProcessHandler.end(ProcessHandler.java:144)
at org.drools.xml.ExtensibleXmlParser.endElement(ExtensibleXmlParser.java:417)
...
I traced into source the issue and it fails in the following method from within ProcessHandler.java
public static void linkBoundaryEvents(NodeContainer nodeContainer) {
for (Node node: nodeContainer.getNodes()) {
if (node instanceof EventNode) {
final String attachedTo = (String) node.getMetaData().get("AttachedTo");
if (attachedTo != null) {
String type = ((EventTypeFilter)
((EventNode) node).getEventFilters().get(0)).getType();
There appears to be no issues attaching Timers to other types of tasks.
Thanks in advance for any insights into this.