embed-server --server-config=standalone.xml if (outcome == success) of /subsystem=datasources/xa-data-source=jBPMXADS:read-resource /subsystem=datasources/xa-data-source=jBPMXADS:remove end-if xa-data-source add --name=jBPMXADS --jndi-name="java:jboss/datasources/jBPMDS" --driver-name=h2 --user-name=sa --password=sa --xa-datasource-class=org.h2.jdbcx.JdbcDataSource --xa-datasource-properties=[URL= jdbc:h2:file:${jboss.server.data.dir}/jbpm-db;MVCC=TRUE] if (outcome != success) of /system-property=org.kie.server.persistence.ds:read-resource /system-property=org.kie.server.persistence.ds:add(value="java:jboss/datasources/jBPMDS") else /system-property=org.kie.server.persistence.ds:write-attribute(name=value,value="java:jboss/datasources/jBPMDS") end-if if (outcome != success) of /system-property=org.kie.server.persistence.dialect:read-resource /system-property=org.kie.server.persistence.dialect:add(value="org.hibernate.dialect.H2Dialect") else /system-property=org.kie.server.persistence.dialect:write-attribute(name=value,value="org.hibernate.dialect.H2Dialect") end-if if (outcome != success) of /system-property=org.kie.server.id:read-resource /system-property=org.kie.server.id:add(value="sample-server") else /system-property=org.kie.server.id:write-attribute(name=value,value="sample-server") end-if if (outcome != success) of /system-property=org.kie.server.controller:read-resource /system-property=org.kie.server.controller:add(value="http://localhost:8080/business-central/rest/controller") else /system-property=org.kie.server.controller:write-attribute(name=value,value="http://localhost:8080/business-central/rest/controller") end-if if (outcome != success) of /system-property=org.kie.server.location:read-resource /system-property=org.kie.server.location:add(value="http://localhost:8080/kie-server/services/rest/server") else /system-property=org.kie.server.location:write-attribute(name=value,value="http://localhost:8080/kie-server/services/rest/server") end-if if (outcome != success) of /system-property=org.jbpm.casemgmt.showcase.url:read-resource /system-property=org.jbpm.casemgmt.showcase.url:add(value="/jbpm-casemgmt") else /system-property=org.jbpm.casemgmt.showcase.url:write-attribute(name=value,value="/jbpm-casemgmt") end-if stop-embedded-server