part of .bpmn file:
<bpmn2:businessRuleTask id="BusinessRuleTask_2" camunda:class="org.camunda.bpm.att.order.process.ValidateOrderDelegate" name="Validate Order">
<bpmn2:extensionElements>
<camunda:inputOutput>
<camunda:inputParameter name="inputValidateOrder">
<camunda:script scriptFormat="xquery-basex" resource="HelloWorld.xq"/>
</camunda:inputParameter>
</camunda:inputOutput>
</bpmn2:extensionElements>
<bpmn2:incoming>SequenceFlow_10</bpmn2:incoming>
<bpmn2:outgoing>SequenceFlow_7</bpmn2:outgoing>
</bpmn2:businessRuleTask>
part of pom.xml
<dependency>
<groupId>org.camunda.template-engines</groupId>
<artifactId>camunda-template-engines-xquery-saxon</artifactId>
<version>1.1.0-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>net.sf.saxon</groupId>
<artifactId>Saxon-HE</artifactId>
<version>9.7.0-1</version>
</dependency>
<dependency>
<groupId>net.sf.saxon</groupId>
<artifactId>saxon-jdom</artifactId>
<version>8.7</version>
</dependency>
<dependency>
<groupId>org.jdom</groupId>
<artifactId>jdom</artifactId>
<version>2.0.2</version>
</dependency>
...
<dependency>
<groupId>org.basex</groupId>
<artifactId>basex</artifactId>
<version>7.3.1</version>
</dependency>
<dependency>
<groupId>org.basex</groupId>
<artifactId>basex</artifactId>
<version>7.6</version>
</dependency>
<dependency>
<groupId>org.basex</groupId>
<artifactId>basex-api</artifactId>
<version>7.6</version>
</dependency>
<dependency>
<groupId>org.basex</groupId>
<artifactId>basex</artifactId>
<version>8.3</version>
<scope>provided</scope>
</dependency>
...
<repositories>
<repository>
<id>camunda-bpm-nexus</id>
<name>camunda-bpm-nexus</name>
<url>https://app.camunda.com/nexus/content/groups/public</url>
</repository>
<repository>
<id>basex</id>
<name>BaseX Maven Repository</name>
<url>http://files.basex.org/maven</url>
</repository>
<repository>
<id>xqj</id>
<name>XQJ Maven Repository</name>
<url>http://xqj.net/maven</url>
</repository>
</repositories>
Thanks,
Venkataraju Nandam
Hi
, getting errors for diff iterations, but am able to execute the same in other XQuery tools and server. Seems some configuration/jars missing to support xq in jboss in my local.
Ex1.xq
xquery version "3.0" encoding "utf-8";
import module namespace m= 'http://basex.org/modules/Hello' at 'Ex2.xq';
m:hello("Universe")
(: https://docs.marklogic.com/guide/app-dev/import_modules :)
(: http://docs.basex.org/wiki/Repository :)
Ex2.xq
xquery version "3.0" encoding "utf-8";
module namespace m = 'http://basex.org/modules/Hello';
declare function m:hello($world) {
'Hello ' || $world
};
If I use the given above Ex1.xq Ex2.xq files as they are, am getting this error.
[XPST0003] Empty query & [XQST0033] Duplicate declaration of prefix 'svdnx'
If I remove name space(import module 'http://basex.org/modules/Hello' at 'HelloWorld2.xq';), getting the below error
Stopped at ., 1/1:[XPST0003] Empty query.
Stopped at ., 3/1: [XPST0081] No namespace delared for 'm:hello'.
If I use Ex2.xq file directly, getting the below error
[XPST0003] Library modules cannot be evaluated.
If I use Ex2.xq file directly and removing namespace, getting the below error
Stopped at ., 3/18: [XQST0034] Duplicate declaration of function 'local:hello'
If I use Ex2.xq file directly and removing local, getting the below error
[XQST0045] Function 'hello' is in reserved namespace.
Thanks & Regards,
VenkataRaju Nandam
Technology Architect, ECSADM
Mobile:+91-9941316666/ +91-8712166699
[XPST0003] Empty query & [XQST0033] Duplicate declaration of prefix 'm'" for the given below examples.
Ex1.xq
xquery version "3.0" encoding "utf-8";
import module namespace m= 'http://basex.org/modules/Hello' at 'Ex2.xq';
m:hello("Universe")
Ex2.xq
xquery version "3.0" encoding "utf-8";
module namespace m = 'http://basex.org/modules/Hello';
declare function m:hello($world) {
'Hello ' || $world
};
Am using Ex1.xq file as input for
<bpmn2:businessRuleTask id="BusinessRuleTask_2" camunda:class="org.camunda.bpm.att.order.process.ValidateOrderDelegate" name="Validate Order">
<bpmn2:extensionElements>
<camunda:inputOutput>
<camunda:inputParameter name="inputValidateOrder">
<camunda:script scriptFormat="xquery-basex" resource="Ex1.xq"/>
</camunda:inputParameter>
</camunda:inputOutput>
</bpmn2:extensionElements>
<bpmn2:incoming>SequenceFlow_10</bpmn2:incoming>
<bpmn2:outgoing>SequenceFlow_7</bpmn2:outgoing>
</bpmn2:businessRuleTask>
--
You received this message because you are subscribed to a topic in the Google Groups "camunda BPM users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/camunda-bpm-users/RwgoB89WeYw/unsubscribe.
To unsubscribe from this group and all its topics, send an email to camunda-bpm-us...@googlegroups.com.
To post to this group, send email to camunda-...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/camunda-bpm-users/333da2ed-c73b-4c4b-ace8-a7246791ca85%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.