Camunda BPM 7.2: register engine-plugin in processes.xml -
according docs, can register plugin in processes.xml. (see http://docs.camunda.org/latest/guides/user-guide/#process-engine-process-engine-plugins-configuring-process-engine-plugins).
the xsd says element 'process-engine' complex-type , has attribute 'name' (see http://camunda.org/schema/1.0/processapplication.xsd).
but when deploy process-application following processes.xml camunda-bpm-wildfly-7.2.0, error:
19:16:08,547 error [org.jboss.msc.service.fail] (msc service thread 1-5) msc000001: failed start service jboss.deployment.unit."firsttestproject-0.0.1-snapshot.war".post_module: org.jboss.msc.service.startexception in service jboss.deployment.unit."firsttestproject-0.0.1-snapshot.war".post_module: jbas018733: failed process phase post_module of deployment "firsttestproject-0.0.1-snapshot.war" @ org.jboss.as.server.deployment.deploymentunitphaseservice.start(deploymentunitphaseservice.java:166) [wildfly-server-8.1.0.final.jar:8.1.0.final] @ org.jboss.msc.service.servicecontrollerimpl$starttask.startservice(servicecontrollerimpl.java:1948) [jboss-msc-1.2.2.final.jar:1.2.2.final] @ org.jboss.msc.service.servicecontrollerimpl$starttask.run(servicecontrollerimpl.java:1881) [jboss-msc-1.2.2.final.jar:1.2.2.final] @ java.util.concurrent.threadpoolexecutor.runworker(threadpoolexecutor.java:1145) [rt.jar:1.7.0_21] @ java.util.concurrent.threadpoolexecutor$worker.run(threadpoolexecutor.java:615) [rt.jar:1.7.0_21] @ java.lang.thread.run(thread.java:722) [rt.jar:1.7.0_21] caused by: org.camunda.bpm.engine.processengineexception: cvc-type.3.1.1: element 'process-engine' simple type, cannot have attributes, excepting namespace name identical 'http://www.w3.org/2001/xmlschema-instance' , [local name] 1 of 'type', 'nil', 'schemalocation' or 'nonamespaceschemalocation'. however, attribute, 'name' found. | vfs:/content/firsttestproject-0.0.1-snapshot.war/web-inf/classes/meta-inf/processes.xml | line 6 | column 34
my processes.xml:
<?xml version="1.0" encoding="utf-8" ?> <process-application xmlns="http://www.camunda.org/schema/1.0/processapplication" xmlns:xsi="http://www.w3.org/2001/xmlschema-instance"> <process-archive name="mybpmapp"> <process-engine name="default"> <plugins> <plugin> <class>myrealm.bpm.camunda.engine.plugin.myidentityproviderplugin</class> </plugin> </plugins> </process-engine> <properties> <property name="isdeleteuponundeploy">false</property> <property name="isscanforprocessdefinitions">true</property> </properties> </process-archive>
what miss? thanks!
the process engine configuration must outside of process-archive
declaration. inside process-archive
configuration can specify name of process engine use (cf. docs).
for example:
<?xml version="1.0" encoding="utf-8"?> <bpm-platform xmlns="http://www.camunda.org/schema/1.0/bpmplatform" xmlns:xsi="http://www.w3.org/2001/xmlschema-instance"> <process-engine name="my-engine"> <!-- configuration --> </process-engine> <process-archive> <process-engine>my-engine</process-engine> <properties> <property name="isdeleteuponundeploy">false</property> <property name="isscanforprocessdefinitions">true</property> </properties> </process-archive> </bpm-platform>
Comments
Post a Comment