based on lack of replies should I post a bug report?
Somehow missed your post earlier.
It seems you do not have a command service in your jbpm.cfg.xml with a name "txRequiredCommandService". You need an entry something like this (you may need to change as per your exact requirement):
<command-service name="txRequiredCommandService"> <skip-interceptor /> <retry-interceptor /> <environment-interceptor /> <standard-transaction-interceptor /> </command-service>
Can you point me to the documentation of this requirement? (of adding XML to jbpm.cfg.xml for an API call to work).
I'm struggling understanding where I am supposed to go to determine exactly what needs to be included in jbpm.cfg.xml for my API calls to work.
Command service is something you need to configure to get Jbpm running. But the magic is in the name of the command service. "txRequiredCommandService" and "newTxRequiredCommandService" are two hard coded names used for command service. "txRequiredCommandService" is the command service used in method checkDb().
This is somewhat unintuitive and wish this will be changed to something more intuitive like "find any command service available irrespective of the name" in some future release. Or at least document this very clearly so that nobody misses it.
There is no formal documentation for this - at least I have not come across any. You can refer to the sample configuration provided with the source code. They are good.
The reason for this is that we try to encourage the use of the <import>s as much as possible. When you look at for example jbpm.tx.hibernate.cfg, you can see that the command services are already correctly named.