Description of problem: Kie-Server doesn't support all valid Drools command. Version-Release number of selected component (if applicable): BRMS 6.1.0 How reproducible: always Steps to Reproduce: 1. Try to send AgendaGroupSetFocusCommand i.e. List<String> classNames3 = new ArrayList<String>(); classNames3.add("org.drools.core.command.runtime.rule.AgendaGroupSetFocusCommand"); JAXBContext jaxbContext3 = DroolsJaxbHelperProviderImpl.createDroolsJaxbContext(classNames3, null); Marshaller marshaller3 = jaxbContext3.createMarshaller(); marshaller3.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT, true); marshaller3.marshal(agenda, xml3); System.out.println(xml3); Fails with Caused by: com.sun.istack.SAXException2: unable to marshal type "org.drools.core.command.runtime.rule.AgendaGroupSetFocusCommand" as an element because it is missing an @XmlRootElement annotation Actual results: Not all Drools commands are supported Expected results: All Drools commands are supported Additional info: Seems like following works: https://github.com/droolsjbpm/drools/blob/master/drools-core/src/main/java/org/drools/core/runtime/help/impl/XStreamXML.java#L70 However, there are few others which are quite common and should be supported too: Checking https://github.com/droolsjbpm/drools/tree/6.2.x/drools-core/src/main/java/org/drools/core/command/runtime/rule Those could be: AgendaGroupSetFocusCommand (this one is directly requested by customer) it comes hand in hand with ClearAgendaGroupCommand Please check https://github.com/droolsjbpm/drools/tree/6.2.x/drools-core/src/main/java/org/drools/core/command/runtime/rule and make sure that for commands which it makes sense there is a support in Kie-Server (both JAXB and XTream requests should work)
Fixed by: master: http://github.com/droolsjbpm/drools/commit/d69fce628 6.2.x: http://github.com/droolsjbpm/drools/commit/c425ef213
Verified in 6.2.0.ER3.