Original Message:
Sent: Tue June 03, 2025 10:59 AM
From: Jozef Marko
Subject: Tool for migrating BPMN from IBM BAMOE 8 (Business Central) to BAMOE 9 (Kogito)?
Thank you for the details. For now I was not able to reproduce the issue. Maybe we could compare the xml source? Here I attach how my script look like stored in xml:
<drools:onExit-script scriptFormat="http://www.java.com/java"> <drools:script><![CDATA[java.text.SimpleDateFormat dateFormat = new java.text.SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS");java.util.Date currentDate = new java.util.Date();String formattedDate = dateFormat.format(currentDate);System.out.println(formattedDate);]]></drools:script> </drools:onExit-script>
I have used full qualified names, but that is the only difference comparing with your code snippet, I think?
------------------------------
Jozef Marko
Software Developer
IBM
Original Message:
Sent: Tue June 03, 2025 02:40 AM
From: balamir kodak
Subject: Tool for migrating BPMN from IBM BAMOE 8 (Business Central) to BAMOE 9 (Kogito)?
Hi,
BPMN file that contains a few User Tasks, Script Tasks, and Custom Work Items.
Some of the nodes have On Entry Action and On Exit Action scripts, and these scripts are Java-based.
For example:
kcontext.setVariable("async", false);
SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS");
Date currentDate = new Date();
String formattedDate = dateFormat.format(currentDate);
// some other code...
This BPMN file validates successfully in Business Central's modeler without any problems.
However, when I open the same BPMN file with BAMOE Dev plugin in VS Code and save it - then try to start the application, I get an error at runtime.
I'm thinking maybe I should convert my Java-based Custom Work Item into a Service Task and implement a handler class logic for it.
But what's confusing me is that in the exception trace I get, it points to this line in my BPMN file:
<bpmn2:itemDefinition id="_jsonHeadersItem" structureRef="String"/>
Here's the exception trace I get:
Caused by: com.github.javaparser.ParseProblemException: (line 8,col 89) Parse error. Found <EOF>, expected "}"
Problem stacktrace :
com.github.javaparser.GeneratedJavaParser.generateParseException(GeneratedJavaParser.java:14457)
com.github.javaparser.GeneratedJavaParser.jj_consume_token(GeneratedJavaParser.java:14302)
com.github.javaparser.GeneratedJavaParser.Block(GeneratedJavaParser.java:5956)
com.github.javaparser.GeneratedJavaParser.BlockParseStart(GeneratedJavaParser.java:8594)
com.github.javaparser.JavaParser.parse(JavaParser.java:125)
As far as I understand, I'll probably have to gradually simplify my process model to isolate and fix this issue.
I had guessed that. I was just wondering if there was a migration tool that would be a faster way to do this.
Thanks anyway.
------------------------------
balamir kodak
Original Message:
Sent: Mon June 02, 2025 07:14 AM
From: Jozef Marko
Subject: Tool for migrating BPMN from IBM BAMOE 8 (Business Central) to BAMOE 9 (Kogito)?
Hi, there is not any special migration tool. It should be just enough open and save file using the v9 tooling.
For similar issues, we usually ask reporters to provide more details about their business process. What type of nodes are contained in your business process, would it be possible to attach a reproducer? (of course with deleted sensitive data)
------------------------------
Jozef Marko
Software Developer
IBM
Original Message:
Sent: Thu May 29, 2025 03:07 AM
From: balamir kodak
Subject: Tool for migrating BPMN from IBM BAMOE 8 (Business Central) to BAMOE 9 (Kogito)?
Hello,
In IBM BAMOE 8, I have a process that I developed using the Business Central interface. When I try to include this process in an IBM BAMOE 9 application, I encounter errors during the application startup - specifically while generating Java code from the BPMN file.
As far as I understand, some adjustments need to be made to the BPMN definition to make it compatible with the BAMOE 9 environment.
Is there any official or community-supported tool available to convert or migrate a BPMN file created in BAMOE 8 (jBPM) to a format that works with BAMOE 9 (Kogito) runtime?
Thanks in advance
------------------------------
balamir kodak
------------------------------